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)