New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

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

Asked by 10 days 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 chloe_price65, xWhiteHat, WideSteal321, and BashCaster

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 days 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 — 10d
Ad