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

How to remove roblox leaderboard to use mine? [closed]

Asked by 10 years ago

i can not find the option to hide it the default leaderboard

Locked by adark, TurboFusion, SanityMan, and TheMyrco

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

2 answers

Log in to vote
8
Answered by 10 years ago

Use game.StarterGui:SetCoreGuiEnabled("PlayerList",false). This is the most effective way of doing it.

Note: The code has to be in a LocalScript or it probably won't work correctly

Ad
Log in to vote
-1
Answered by 10 years ago

Try this

function onPlayerEntered(newPlayer)

    local stats = Instance.new("IntValue")
    stats.Name = "leaderstats"

    local cash = Instance.new("IntValue")
    cash.Name = "Score" --Change score to the name of the leaderboard
    cash.Value = 0

    cash.Parent = stats
    stats.Parent = newPlayer
end

game.Players.ChildAdded:connect(onPlayerEntered)