Hello, I was wondering if anyone has a script that will display a leader board containing the stage number as well as the other players in the game along with their stage numbers. If you could help me out that would be great. Thanks!
game.Players.PlayerAdded:Connect(function(plr) local stats = Instance.new("Folder") stats.Parent = plr stats.Name = "leaderstats" local stage = Instance.new("IntValue") stage.Name = Stage stage.Parent = stats stage.Value = 0 script.Parent.Touched:Connect(function(plr) if plr.Parent:WaitForChild("Humanoid") then local plrs = game.Players:FindFirstChild(plr.Parent.Name) plrs.leaderstats.Stage.Value = plrs.leaderstats.Stage.Value + 1 end end
The indentation may not be correct so just type it out into a script in the checkpoint and it should work.
Closed as Not Constructive by SoftlockedUnderZero, NotedAPI, WideSteal321, and DeceptiveCaster
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?