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
 

PlayerGUI is not a valid member of Player?

Previous Thread :: Next Thread 
73EPIC311 is not online. 73EPIC311
Joined: 28 Aug 2012
Total Posts: 454
24 Jul 2013 01:20 PM
Please help this is wrong when I step on something with this script,
local ShopGUI = game.Lighting.ShopGUI1:Clone()

script.Parent.Touched:connect(function(hit)
ShopGUI.Parent = game.Players:GetPlayerFromCharacter(hit.Parent).PlayerGUI
end)

It says that playergui is not a valid member of player!
Report Abuse
Zomebody is not online. Zomebody
Joined: 01 Jun 2010
Total Posts: 789
24 Jul 2013 01:22 PM
PlayerGUI

should be spelled like this:

PlayerGui
Report Abuse
compy111 is not online. compy111
Joined: 02 Apr 2009
Total Posts: 583
24 Jul 2013 01:22 PM
It's PlayerGui not PlayerGUI (not logic since it should be GUI: Game User Interface)
Report Abuse
Quidditchman is not online. Quidditchman
Joined: 08 Apr 2011
Total Posts: 8389
24 Jul 2013 01:26 PM
local ShopGUI = game.Lighting.ShopGUI1:Clone().Parent = game.Workspace

script.Parent.Touched:connect(function(hit)
ShopGUI.Parent = game.Players:GetPlayerFromCharacter(hit.Parent).PlayerGui

end)
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