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

How do you make group-rank only spawns?

Asked by 4 years ago

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.

0
Check if a player exists, check if the player is in your group, check what rank they are... and if it matches with the criteria you set... assign the player to a specific spawn. I personally dont know how to do the 2nd step but i hope this helps! speedyfox66 237 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

Insert a script into server script service.


game.Players.PlayerAdded:Connect(function(player) local playerrank = player:GetRoleInGroup() -- Insert group id inside the brackets if playerrank == "Rank_Name" or playerrank == "Rank_Name2" then local wplayer = game.Workspace:WaitForChild("player.Name") 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. end)
Ad

Answer this question