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)

3 comments

0

well, roblox has been moving towards a safer environment; which means they want you to use filtered enabled; therefore, they aren't adding new handlings for non-filtered enabled games, which could cause all sort of things to happen

0

What type of script?

0

regular script in serverscriptservice