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
|
  |
| Joined: 01 Jun 2010 |
| Total Posts: 789 |
|
|
| 24 Jul 2013 01:22 PM |
PlayerGUI
should be spelled like this:
PlayerGui |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|