function PlayerAdded(player) local leaderstats = Instance.new("Model", player) leaderstats.Name = "leaderstats" local money = Instance.new("IntValue", leaderstats) money.Name = "Money" money.Value = 100000 end game.Players.PlayerAdded:connect(PlayerAdded)
Everytime I run this script I get two errors. 1)17:29:02.579 - Plugin_142731176._Char:15: attempt to index local 'myPlayer' (a nil value) 2)17:29:02.736 - Attempt to connect failed: Passed value is not a function
Any help?