game.Players.PlayerAdded:Connect(function(plr)
	local leaderstats = Instance.new("IntValue", plr)
	leaderstats.Name = "leaderstats"
	
	local yuan = Instance.new("IntValue", leaderstats)
	yuan.Name = "Yuan"
	yuan.Value = 0

this is my currency for a game I'm working on and for some reason on the top I can only see how much I have and when my friend joined I can't see how much he has and he can't see how much I have, all we see is 0

5 comments

0

server script not local script

0

Make sure its server sided it should work.

0

its a script in serverscriptservice

0

This may not be the problem, the problem could be that you are setting the values on client, not making.

0

I figured it out u have to do a remote event :/