generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: ScreenGui not found

Previous Thread :: Next Thread 
BobserLuck is not online. BobserLuck
Joined: 09 Mar 2012
Total Posts: 653
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
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
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
BobserLuck is not online. BobserLuck
Joined: 09 Mar 2012
Total Posts: 653
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
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
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
BobserLuck is not online. BobserLuck
Joined: 09 Mar 2012
Total Posts: 653
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
BobserLuck is not online. BobserLuck
Joined: 09 Mar 2012
Total Posts: 653
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
BobserLuck is not online. BobserLuck
Joined: 09 Mar 2012
Total Posts: 653
14 Jun 2015 10:57 PM
Can a standard script not excess a player gui when FilteringEnabled?
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
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
BobserLuck is not online. BobserLuck
Joined: 09 Mar 2012
Total Posts: 653
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
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
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
BobserLuck is not online. BobserLuck
Joined: 09 Mar 2012
Total Posts: 653
14 Jun 2015 11:50 PM
No, I put this in a standard script.
Report Abuse
BobserLuck is not online. BobserLuck
Joined: 09 Mar 2012
Total Posts: 653
14 Jun 2015 11:52 PM
and this script is in a part in the workspace.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image