Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you make group-rank only spawns?

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.

1 comment

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!

1 answer

✓ Accepted answer

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.