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

How do I make my place ranked by group? [closed]

Asked by 10 years ago

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?

Closed as Not Constructive by AmericanStripes

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 10 years ago
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)
0
Thank you! :) Alyssall 0 — 10y
Ad