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

Group rank spwan?

Ok so i want to make a Spawn that you will only spawn on it if you are a Certain rank in the group. But i want to make it with out teams.I want it to still be a open game and not kick anyone i just want it to spawn my members at a area. How would i do that?

1 answer

local groupId = 00000 -- Id of the group
local minRank = 255 -- Number value of the rank, currently set at owner only.
local obj = game.Workspace.GroupSpawn -- where they'll spawn
game.Players.CharacterAutoLoads = false -- stops the player from spawning


game.Players.PlayerAdded:connect(function(p)
	if p:IsInGroup(groupId) and p:GetRankInGroup(groupId) > minRank then
		p.RespawnLocation = obj
		p:LoadCharacter() -- Loads their character
	else
		p:Kick() -- Kicks player
	end
end)

1 comment

0

So could i make this with out the Kick?

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