Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Start on stage 20 for groupers?

Asked by
arez81 0
9 years ago

Please include the code which you are trying to use, so the community will be better-equipped to help you with your problem.

I have an obby and I want to make anyone who is in my group start on Stage "20" I kept on trying to fix it but I can't seem to make it work... Help?

1 answer

Log in to vote
0
Answered by
Kyokamii 133
9 years ago

You would need to use :IsInGroup()

Groupid = 0 --Put your group id here
game.Players.PlayerAdded:connect(function(newPlayer)
   if newPlayer:IsInGroup(Groupid) then                    
     newPlayer.stage = 20
   end
end)

Change the script so it fits your game and here you go!

Source ; http://wiki.roblox.com/index.php?title=API:Class/Player/IsInGroup

0
Hope this helped Kyokamii 133 — 9y
Ad

Answer this question