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

How do I make my place ranked by group?

Examples: Kestrel.

Kestrel has ranked by group. Like, President, General, etc. Its based on your rank in that group's place. How do you do this?

1 answer

local GroupID = 1

game.Players.PlayerAdded:connect(function(player)
local stats = Instance.new("IntValue")
local rank = Instance.new("StringValue", stats)
rank.Value =player:GetRoleInGroup(GroupID)
stats.Parent = player
--[[player.CharacterAdded:connect(function(character)
local groupSpawns = game.Workspace:FindFirstChild("GroupSpawns"):GetChildren()
local torso = character:WaitForChild("Torso")
torso.CFrame = CFrame.new(groupSpawns[math.random(1,#groupSpawns)].Position)
end)]]
end)

1 comment

0

Thank you! :)

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