Hi guys ive made this little leaderstats script and i cant figure out why it doesnt work, ive compared it to other leaderstats script and its seem that nothing is wrong
function OnPlayerEntered(newPlayer)
local stats = Instance.new("IntValue")
stats.Name = "LeaderStats"
local Cash = Instance.new("IntValue")
Cash.Name = "Money"
Cash.Value = 500
Cash.Parent = stats
stats.Parent = newPlayer
end
game.Players.ChildAdded:Connect(OnPlayerEntered)

1 comment
thank you !! it does work now !