I don't know how to put the actual script code in correctly, but if you need to look at the script, I got it here:
https://scriptinghelpers.org/questions/2368/how-do-i-make-my-place-ranked-by-group
I tried the code in ServerScriptService, Teams, Players, and Workspace. Nothing works.
It can either be in Workspace or ServerScriptService.
Have you tried Starterpack/StarterGUI?
You put the script in Workspace because it is dealing with Leaderboards and we use the PlayerAdded event in game.Players
. Oh and to add the code you press the Lua button while highlighting the code. (EDIT)
The code that was provided didn't work because it didn't name the stats Value to leaderstats
.
local GroupID = 1 game.Players.PlayerAdded:connect(function(player) local stats = Instance.new("IntValue") stats.Name = "leaderstats" -- Add this local rank = Instance.new("StringValue", stats) rank.Name = "Rank" -- Add this 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)