|
| 15 Aug 2013 06:16 PM |
Basic idea: I'm going to need a ladder to go over a wall on both sides every 10 minutes or so for around 30 seconds each time. I have the script to do this, but I only want the script to activate when a user with the gamepass for the ladder feature is in the server. It would also be nice, but not necessary, if you could help me with making this ladder script go idle again when there are 0 gamepass players in the server.
Also, is there a way to do this without multiplying the idle script when more than one person with the gamepass is in the server? If so, help would be appreciated.
Thanks in advance! |
|
|
| Report Abuse |
|
|
|
| 15 Aug 2013 06:19 PM |
I'm going to guess you already have the "make ladders show up every 10 minutes for 30 seconds" thing figured out. Here's how you would do the gamepass part:
local pass = 0 -- The ID of the gamepass local passFound = false for i, player in pairs(game.Players:GetPlayers()) do if (game:GetService("GamePassService"):PlayerHasPass(player, pass)) then passFound = true end end if (passFound) then -- Do your ladder thing end end
Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson |
|
|
| Report Abuse |
|
|
| |
|
|
| 15 Aug 2013 06:27 PM |
| Wrote a script, tried to post it, Roblox says there is a badbad word in it. #RobloxFails. |
|
|
| Report Abuse |
|
|
|
| 15 Aug 2013 06:27 PM |
#pastebin
Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson |
|
|
| Report Abuse |
|
|
|
| 15 Aug 2013 06:30 PM |
@Spleen #FirstWorldProblems |
|
|
| Report Abuse |
|
|