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

Group rank spwan?

Asked by 8 years ago

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

Log in to vote
0
Answered by 8 years ago
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)
0
So could i make this with out the Kick? ken12345678900000000 0 — 8y
Ad

Answer this question