I have been making a leaderboard script and when i test within a published version of the game, for me, the other players' stats won't update and my stats update for me. Is there anyway to fix this problem?
(FilteringEnabled is false)
leaderboard script:
local function onPlayerJoin(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local cash = Instance.new("IntValue") cash.Name = "Cash" cash.Value = 0 cash.Parent = leaderstats local rebirth = Instance.new("IntValue") rebirth.Name = "Rebirth" rebirth.Value = 0 rebirth.Parent = leaderstats end game.Players.PlayerAdded:Connect(onPlayerJoin)