|
| 13 Mar 2014 06:32 PM |
Im trying to make a certain gui disable so that an option is available, what could be wrong?
Game.Players.PlayerAdded:connect(function(Player) if Game:GetService("GamePassService"):PlayerHasPass(149441426) then Player.StarterGui.Total.AFKVIP.Visible = false else end end)
|
|
|
| Report Abuse |
|
|
|
| 13 Mar 2014 06:39 PM |
total is the frame
Mermaid master race |
|
|
| Report Abuse |
|
|
|
| 13 Mar 2014 06:40 PM |
| What does the output say :l |
|
|
| Report Abuse |
|
|
Alex645ca
|
  |
| Joined: 02 Feb 2009 |
| Total Posts: 2531 |
|
|
| 13 Mar 2014 06:41 PM |
| Players don't have a startergui, they have a playergui or somesuch. Also, if total is the frame and not a screengui it won't render. (Put total in a screengui.) |
|
|
| Report Abuse |
|
|
|
| 13 Mar 2014 06:42 PM |
In studio when you are in test mode all player names are 'Player1'. Because Player1 doesn't have the gamepass there is no output because the script never has to start..
Mermaid master race |
|
|
| Report Abuse |
|
|
|
| 13 Mar 2014 06:42 PM |
Thanks alex let me test
Mermaid master race |
|
|
| Report Abuse |
|
|
|
| 13 Mar 2014 06:42 PM |
You forgot the player argument.
if Game:GetService("GamePassService"):PlayerHasPass(Player, 149441426) then
|
|
|
| Report Abuse |
|
|
|
| 13 Mar 2014 06:48 PM |
Got it to work, thanks knight!
Mermaid master race |
|
|
| Report Abuse |
|
|