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 |
|
|
|
| 28 May 2014 01:55 PM |
| http://web.roblox.com/Forum/ShowPost.aspx?PostID=135343668 |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 28 May 2014 02:03 PM |
| use the same script 4 times, filling in the top two lines |
|
|
| Report Abuse |
|
|
Daninapex
|
  |
| Joined: 30 Oct 2008 |
| Total Posts: 51 |
|
| |
|
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
|
  |
| Joined: 30 Oct 2008 |
| Total Posts: 51 |
|
| |
|