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

Question: Anyone have an obby leader board script? [closed]

Asked by 4 years ago

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!

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?

1 answer

Log in to vote
-1
Answered by 4 years ago
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.

0
I put it into the checkpoints and checked the indentation but it still wasn't working, i'm not sure whats up with it. ImFunnying -2 — 4y
Ad