So, apparently, when a brick touches another one, I want the cash to change from the current + 25, but i get this error: 18:51:02.429 - Workspace.Full Tycoon.Red.ConveyorBelt.Part.Script:1: attempt to index field 'LocalPlayer' (a nil value). Some one please help!!
local money = game.Players.LocalPlayer:WaitForChild("leaderstats"):FindFirstChild("Cash")
script.Parent.Touched:connect(function(hit)
if hit.Name == "Basic" then
money.Value = money.Value + 25
hit:remove()
end
end)
