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
 

Re: How do you properly implement gamepasses?

Previous Thread :: Next Thread 
Daninapex is not online. Daninapex
Joined: 30 Oct 2008
Total Posts: 51
28 May 2014 01:53 PM
Hello, I'm attempting to add gamepasses to my game that give you a special weapon when you spawn. I've placed the gear I want into the ServerStorage area, but I need help with implementing it from there. I've got the authentication script set up, but I don't know what to do from there. I've got four different passes to implement, all of which give you weapons. Help would be wonderful. Thanks!

p.s. My authentication script (from the wiki)
PASSNAME and MYPASS are fake names for the pass.

function PASSNAME(player)
return game:GetService("GamePassService"):PlayerHasPass(player, MYPASS)
end
Report Abuse
Shaydesilva is not online. Shaydesilva
Joined: 16 Oct 2010
Total Posts: 1240
28 May 2014 01:55 PM
http://web.roblox.com/Forum/ShowPost.aspx?PostID=135343668
Report Abuse
Daninapex is not online. Daninapex
Joined: 30 Oct 2008
Total Posts: 51
28 May 2014 01:58 PM
Shay, could I have a copy of the final script from that post that would work on multiple game passes (4 to be exact)? I'm a beginner at this type of programming, so I don't understand it very well.
Report Abuse
Shaydesilva is not online. Shaydesilva
Joined: 16 Oct 2010
Total Posts: 1240
28 May 2014 02:03 PM
use the same script 4 times, filling in the top two lines
Report Abuse
Daninapex is not online. Daninapex
Joined: 30 Oct 2008
Total Posts: 51
28 May 2014 02:03 PM
Ok, thanks!
Report Abuse
Daninapex is not online. Daninapex
Joined: 30 Oct 2008
Total Posts: 51
28 May 2014 02:12 PM
There is an error in the code:

repeat wait(0.1) until player.Backpack
Report Abuse
Daninapex is not online. Daninapex
Joined: 30 Oct 2008
Total Posts: 51
28 May 2014 04:33 PM
Bump
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