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 » Scripting Helpers
Home Search
 

Not a valid member of player Gui

Previous Thread :: Next Thread 
sidekick601 is not online. sidekick601
Joined: 27 Feb 2012
Total Posts: 8734
08 May 2014 06:48 PM
Output says TopClicksGUI is not a valid member of PlayerGui

there is a variable that directs to TopClicksGui (screenGui)

I made sure it was all good and directed properly. I really do not know what the problem is?
Report Abuse
Soybeen is online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
08 May 2014 06:51 PM
Post some code so we can see, we can't dictate the problem if we don't have the script.

Either TopClicksGUI isn't a child of PlayerGui, or you tagged it wrong in your script.

Make sure you tag it like this:

x = playerpath.PlayerGui.TopClicksGUI

Not like this:

playerpath.PlayerGui.TopClicksGUI = x
Report Abuse
sidekick601 is not online. sidekick601
Joined: 27 Feb 2012
Total Posts: 8734
08 May 2014 06:52 PM
clicksButton = script.Parent.Parent.Parent.Parent.TopClicksGUI.TextLabel

player = script.Parent.Parent.Parent.Parent.Parent

while true do
wait()
clicksButton.Text = "Your clicks: "..script.Parent.Value
end
Report Abuse
sidekick601 is not online. sidekick601
Joined: 27 Feb 2012
Total Posts: 8734
08 May 2014 06:53 PM
Everything worked correctly yesterday, i don't know why it's not working now.
Report Abuse
Soybeen is online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
08 May 2014 07:01 PM
Perhaps you're trying to interact with TopClicksGUI before it's fully loaded. Use this at the beginning of your code:

repeat wait() until script.Parent.Parent.Parent.Parent.TopClicksGUI ~= nil
Report Abuse
Soybeen is online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
08 May 2014 07:01 PM
That is, if you are 100% sure that the TopClicksGUI is:
- Spelled right
or
- A direct child of PlayerGui
Report Abuse
sidekick601 is not online. sidekick601
Joined: 27 Feb 2012
Total Posts: 8734
08 May 2014 07:03 PM
Still isn't working.
Report Abuse
Soybeen is online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
08 May 2014 07:04 PM
Is it a localscript?
Report Abuse
sidekick601 is not online. sidekick601
Joined: 27 Feb 2012
Total Posts: 8734
08 May 2014 07:04 PM
I'm 100% sure it's spelled right
Report Abuse
sidekick601 is not online. sidekick601
Joined: 27 Feb 2012
Total Posts: 8734
08 May 2014 07:04 PM
No it's a normal script
Report Abuse
sidekick601 is not online. sidekick601
Joined: 27 Feb 2012
Total Posts: 8734
08 May 2014 07:19 PM
bump
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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