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
server script not local script
Make sure its server sided it should work.
its a script in serverscriptservice
This may not be the problem, the problem could be that you are setting the values on client, not making.
I figured it out u have to do a remote event :/