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 » Game Design
Home Search
 

Re: !URGENT! Make a button in a GUI visible if

Previous Thread :: Next Thread 
SuddenSnipe is not online. SuddenSnipe
Joined: 25 Nov 2012
Total Posts: 218
25 Feb 2017 02:31 AM
Does anyone know how to make a script so that if someone owns a game pass a button in a script is visible?
Report Abuse
LightFantom is online. LightFantom
Joined: 23 Sep 2014
Total Posts: 7830
25 Feb 2017 02:45 AM
plr = game.Players.LocalPlayer

id = 0000000
gp = game:GetService("GamePassService")

if gp:PlayerHasPass(plr,id) then

script.Parent.Visible = true

end


Report Abuse
SuddenSnipe is not online. SuddenSnipe
Joined: 25 Nov 2012
Total Posts: 218
25 Feb 2017 02:47 AM
IN a local script?
Report Abuse
LightFantom is online. LightFantom
Joined: 23 Sep 2014
Total Posts: 7830
25 Feb 2017 02:49 AM
Ye.


Report Abuse
SuddenSnipe is not online. SuddenSnipe
Joined: 25 Nov 2012
Total Posts: 218
25 Feb 2017 02:51 AM
Okay because that didn't work. :(
Report Abuse
SuddenSnipe is not online. SuddenSnipe
Joined: 25 Nov 2012
Total Posts: 218
25 Feb 2017 02:52 AM
still nothing
Report Abuse
LightFantom is online. LightFantom
Joined: 23 Sep 2014
Total Posts: 7830
25 Feb 2017 02:52 AM
Did you edit the 0000 for the id of the pass you use? And did you put the script inside the gui?


Report Abuse
SuddenSnipe is not online. SuddenSnipe
Joined: 25 Nov 2012
Total Posts: 218
25 Feb 2017 02:53 AM
YEys it's in the button
Report Abuse
SuddenSnipe is not online. SuddenSnipe
Joined: 25 Nov 2012
Total Posts: 218
25 Feb 2017 02:56 AM
GUI > Main > Selection Frame > Button > LocalScript
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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