Hey Cookie Tech!
I am wondering how I would go about making a script that assigns teams to specific group ranks (e.x. 2+)
Everything I have tried has not worked.
Thanks,
@peter
Hey Cookie Tech!
I am wondering how I would go about making a script that assigns teams to specific group ranks (e.x. 2+)
Everything I have tried has not worked.
Thanks,
@peter
Do you mean like when you say “!host” your role becomes a host?
butterfly, peter. you legit tell people to use butterfly and you don’t use it yourself
Butterfly doesn’t do what I want. I want teams to be auto-assigned to a user by their group rank as opposed to commands.
I think this has been answered before, try searching…
There is, thank you! And to add more teams I would just copy the teams?
game.Players.PlayerAdded:Connect(function(plr)
wait(0)
plr.Team = game.Teams:WaitForChild("Avarage Player")
if plr:GetRankInGroup(nil) >= 255 then
plr.Team = game.Teams:WaitForChild("Moderator")
end
end)
Yeh, you can duplicate the if statement, it’s not the most efficient method, but, it works.
So, this?
game.Players.PlayerAdded:Connect(function(plr)
wait(0)
plr.Team = game.Teams:WaitForChild("Avarage Player")
if plr:GetRankInGroup(nil) >= 255 then
plr.Team = game.Teams:WaitForChild("Moderator")
if plr:GetRankInGroup(nil) >= 255 then
plr.Team = game.Teams:WaitForChild("Moderator")
if plr:GetRankInGroup(nil) >= 255 then
plr.Team = game.Teams:WaitForChild("Moderator")
if plr:GetRankInGroup(nil) >= 255 then
plr.Team = game.Teams:WaitForChild("Moderator")
if plr:GetRankInGroup(nil) >= 255 then
plr.Team = game.Teams:WaitForChild("Moderator")
end
end)
Yeh, except that code is kind of painful, also nil should be the group id.
Alright, thanks! I’ll fix it.
I think this is more what you need:
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.