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

Group Rank Spawn Help? [Script Included]

Asked by
Vividex 162
10 years ago

So I have two scripts, one which makes you on a certain team if your a rank in a specific group, and one that spawns you at a specific spawn if your a rank in a group and up. The team one works perfectly, but the spawn one sort of works. I mean when I join it most of the time spawns me on the right spawn, but when I reset it spawns me on the other one.

What I have in Studio:

Workspace - SpawnLocation - Script

Script for spawn:

adminTeam = game.Teams:findFirstChild("Interviewers") 

function onEntered(newPlayer) 
if newPlayer:GetRankInGroup(1061709) == 5 then
newPlayer.TeamColor = adminTeam.TeamColor
end 
end 

game.Players.ChildAdded:connect(onEntered) 

The teams color is Bright blue, and so is the spawn color. Help please?

Answer this question