|
| 14 Jun 2015 10:29 PM |
| I am trying to edit a screen Gui that I put in the starter Gui but it is not transferring over to the playerGui. Why is this? |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2015 10:30 PM |
Instead of giving you the simple version, here is a link: http://wiki.roblox.com/index.php?title=User:MrNicNac/Where_are_all_the_GUIs%3F |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2015 10:32 PM |
| I am editing the player gui but the gui that I put in the starter gui is not in the player gui and I can't understand why. |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2015 10:38 PM |
Has the player spawned? If this is a LocalScript, then use WaitForChild the first time you access it - it takes the client a while to load everything. |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2015 10:39 PM |
When I am in studio it works fine but it doesn't in game. When open up the game console and do this:
for i,v in pairs (game.Players.BobserLuck.PlayerGui:GetChildren()) print(v.Name) end
I get no output and when I try this:
print(#game.Players.BobserLuck.PlayerGui:GetChildren())
I get an output of 0. Where are all the Guis going? |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2015 10:43 PM |
No, I am using a global script but it does not activate until a player gets near a block then it makes the frame in the Gui visible but it can't even find the Gui. I am not using local player but this: b=game.Players:FindFirstChild(part.Parent.Name) b.PlayerGui.random.Frame.Visible=true but it can't find the Gui in the PlayerGui. |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2015 10:57 PM |
| Can a standard script not excess a player gui when FilteringEnabled? |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2015 11:01 PM |
It can.
I think you are messing up.
Paste the respecting tree of the works space and your script you are using. |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2015 11:07 PM |
Ok, well, I have a ScreenGui in the StarterGui called "sellables". The script I have edited to make the Gui visible is this:
list=game.Workspace:GetChildren() while wait(1) do local list = game.Workspace:children() local torso = nil local dist = 10 local temp = nil local human = nil local temp2 = nil for x = 1, #list do temp2 = list[x] if (temp2.className == "Model") and (temp2 ~= script.Parent) then temp = temp2:findFirstChild("Right Arm") human = temp2:findFirstChild("Humanoid") if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then if (temp.Position - script.Parent.Position).magnitude < dist then test=game.Players:FindFirstChild(temp.Parent.Name) test.PlayerGui.sellables.Frame.Visible=true end end end end end
and in studio, this works just fine but in a real server, the error it is giving me is "sellable is not a member of PlayerGui". |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2015 11:18 PM |
:WaitForChild("Sellable")
You also need to wait for all children.
This is a localscript. This means local runs before replication. You have to wait for things to be replicated. |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2015 11:50 PM |
| No, I put this in a standard script. |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2015 11:52 PM |
| and this script is in a part in the workspace. |
|
|
| Report Abuse |
|
|