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

How do you make a leaderboard not client sided?

Asked by 6 years ago

I'm making a clicker game and I'm trying to make the leaderboard values appear to everyone, so lets say Player1 clicked this button to get +1 cash and he can see how much bux he has in the leaderboard, but on the screen of Player2 he only sees "0" instead of "1"

The script for the leaderstats is not local

It probably might be because of the button that gives you +1 cash is a local script

Heres the leaderstats script

game.Players.PlayerAdded:connect(function(p)
    local stats = Instance.new("IntValue", p)
    stats.Name = "leaderstats"
    local stats2 = Instance.new("IntValue", p)
    stats2.Name = "Stats"
    local money = Instance.new("NumberValue", stats)
    money.Name = "Bux"
    money.Value = 0
    local money3 = Instance.new("NumberValue", stats)
    money3.Name = "Tix"
    money3.Value = 0
    local money2 = Instance.new("NumberValue", stats2)
    money2.Name = "Cps"
    money2.Value = 0
    local money24 = Instance.new("NumberValue", stats2)
    money24.Name = "Tps"
    money24.Value = 0
end)
0
uhhh, make it in a script instead of a localscript Launderer 343 — 6y
0
yeah the script changing the value cannot be local Donut792 216 — 6y
0
i posted something Bloxulen 88 — 6y

Answer this question