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
 

Gamepass gui not working

Previous Thread :: Next Thread 
IceSIipper is not online. IceSIipper
Joined: 23 Mar 2013
Total Posts: 10447
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
IceSIipper is not online. IceSIipper
Joined: 23 Mar 2013
Total Posts: 10447
13 Mar 2014 06:39 PM
total is the frame


Mermaid master race
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
13 Mar 2014 06:40 PM
What does the output say :l
Report Abuse
Alex645ca is not online. 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
IceSIipper is not online. IceSIipper
Joined: 23 Mar 2013
Total Posts: 10447
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
IceSIipper is not online. IceSIipper
Joined: 23 Mar 2013
Total Posts: 10447
13 Mar 2014 06:42 PM
Thanks alex let me test


Mermaid master race
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
13 Mar 2014 06:42 PM
You forgot the player argument.

if Game:GetService("GamePassService"):PlayerHasPass(Player, 149441426) then
Report Abuse
IceSIipper is not online. IceSIipper
Joined: 23 Mar 2013
Total Posts: 10447
13 Mar 2014 06:48 PM
Got it to work, thanks knight!


Mermaid master race
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