I am doing this for my group game. I am really wondering how do you make group-rank only spawns? This is a thing for just group spawns only. but I don't need that.
Insert a script into server script service.
1 | game.Players.PlayerAdded:Connect( function (player) |
2 | local playerrank = player:GetRoleInGroup() -- Insert group id inside the brackets |
3 | if playerrank = = "Rank_Name" or playerrank = = "Rank_Name2" then |
4 | local wplayer = game.Workspace:WaitForChild( "player.Name" ) |
5 | wplayer.HumanoidRootPart.CFrame = CFrame.new() -- insert a part where you want the player to teleport, copy the position property, and paste it inside brackets, then delete the part as you no longer need it. |
6 | end ) |