On games like elimination tower, I cant see how many wins or other people i/they have. I cannot see my leaderstats. I've tried double tapping where it's supposed to be but I cannot see it. Pls help meeee.
COMMUNITY QUESTION
Leaderstats arent showing up?
1 answer
There are many tutorials on YouTube to learn from, an example would be AlvinBlox, he has done many beginner scripting tutorials which you can find on his channel which you might find useful.
Anyway I can help you with this.
If you insert a script into ServerScriptService and add the following code to it:
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local wins = Instance.new("IntValue")
wins.Name = "Wins"
wins.Value = 0 --Starting Value
wins.Parent = leaderstats
end)
You can keep adding on leaderstats like Kills, Cash, etc. Just do the same thing I did with Wins just change the name of it.
This discussion is preserved as it was. New answers, comments, and votes are closed.
