I want to make an upgrade level for my weight but this script doesn't work, help me please! The output said this : " Players.TheKakYTArmy.PlayerGui.ShopGui.Box.Upgrade.Script:2: attempt to index local 'player' (a nil value)"
script.Parent.MouseButton1Click:Connect(function(player) if player.leaderstats.Cash.Value >= 100 then game.StarterPack.Weight.Level.Value = game.StarterPack.Weight.Level.Value + 1 player.leaderstats.Cash.Vlue = player.leaderstats.Cash.Value - 100 end end)

2 comments
The output says that the line 4 is incorrect
This is the best answer here so ok