of     1   

1000knives
#225676372Wednesday, September 27, 2017 9:35 PM GMT

Hello, I made a messaging script. It is a local script in PlayerStarterScripts. When send ## #### it's supposed to generate a TextLabel to the selected player, but the output states 'PlayerGui is not a valid member of Player'. Can someone tell me why this is? Is it because it isn't possible to change another player's PlayerGui from another player? If this is so what can I do?
Mouse_Potatoe
#225676626Wednesday, September 27, 2017 9:41 PM GMT

I don't know what you are saying, but you cant change the parent of 'PlayerGui' but you can change the parents of the guis inside it
1000knives
#225676716Wednesday, September 27, 2017 9:43 PM GMT

this is the script : local receiveframe = Instance.new("ScrollingFrame") receiveframe.Parent = v.PlayerGui.playersgui -- heres the error receiveframe.Position = UDim2.new(0.681, 0, 0.619, 0) receiveframe.Size = UDim2.new (0, 436, 0, 234) receiveframe.ScrollBarThickness = 0 receiveframe.BorderSizePixel = 0 receiveframe.BackgroundTransparency = 1 I'm trying to instance a frame into a players gui.
ExplodeLikeAVolcano
#225676772Wednesday, September 27, 2017 9:45 PM GMT

The frame has to be parented into a screengui that is parented into PlayerGui.
1000knives
#225676823Wednesday, September 27, 2017 9:46 PM GMT

ah okay, let me try that.
1000knives
#225677034Wednesday, September 27, 2017 9:52 PM GMT

I'm getting the same output. this is the script now: local receiveframe = Instance.new("ScrollingFrame") receiveframe.Parent = v.PlayerGui.receiveframe receiveframe.Position = UDim2.new(0.681, 0, 0.619, 0) receiveframe.Size = UDim2.new (0, 436, 0, 234) receiveframe.ScrollBarThickness = 0 receiveframe is a ScreenGui that every player has.
ExplodeLikeAVolcano
#225677133Wednesday, September 27, 2017 9:55 PM GMT

Something like this. local player = game.Players.LocalPlayer local screengui = Instance.new("ScreenGui") screengui.Parent = player.PlayerGui local receiveframe = Instance.new("ScrollingFrame") receiveframe.Parent = screengui receiveframe.Position = UDim2.new(0.681, 0, 0.619, 0) receiveframe.Size = UDim2.new(0, 436, 0, 234) receiveframe.ScrollBarThickness = 0
1000knives
#225677633Wednesday, September 27, 2017 10:07 PM GMT

Okay, I have added this, but the problem still persists e.e output: PlayerGui is not a valid member of Player The button that is clicked is from another client, once is clicked receiveframe is supposed to instance. If that's going to help.
ExplodeLikeAVolcano
#225677713Wednesday, September 27, 2017 10:09 PM GMT

Works for me.
1000knives
#225677903Wednesday, September 27, 2017 10:14 PM GMT

rip me
Lnxl
#225678317Wednesday, September 27, 2017 10:27 PM GMT

You are welcome! game.Players.PlayerAdded:connect(function(plr) local receiveframe = Instance.new("ScrollingFrame", plr:WaitForChild('PlayerGui')) receiveframe.Position = UDim2.new(0.681, 0, 0.619, 0) receiveframe.Size = UDim2.new (0, 436, 0, 234) receiveframe.ScrollBarThickness = 0 receiveframe.BorderSizePixel = 0 receiveframe.BackgroundTransparency = 1 end) game:Destroy()
jaden2blox
#225678344Wednesday, September 27, 2017 10:28 PM GMT

@1000knives Try using the following commands in your script: local gui = script.Parent.(GUI name goes here):Clone() gui.Parent = game.Players.LocalPlayer.PlayerGui
Lnxl
#225678347Wednesday, September 27, 2017 10:28 PM GMT

The Bottom is my siggy btw! game:Destroy()
Lnxl
#225678384Wednesday, September 27, 2017 10:29 PM GMT

Btw you need it in a screengui for it to show! --Game:Destroy()--
Lnxl
#225678662Wednesday, September 27, 2017 10:37 PM GMT

Like game.Players.PlayerAdded:connect(function(plr) local gui = Instance.new("ScreenGui", plr:WaitForChild('PlayerGui')) local receiveframe = Instance.new('ScrollingFrame', gui) receiveframe.Position = ############## ##### #### ##### receiveframe.Size = UDim2.new (0, 436, 0, 234) receiveframe.ScrollBarThickness = 0 receiveframe.BorderSizePixel = 0 receiveframe.BackgroundTransparency = 0 end) --Game:Destroy()--
1000knives
#225711538Thursday, September 28, 2017 10:17 PM GMT

Thanks for all the replies, but the problem is that a player can not alter another players gui, atleast I think.

    of     1