I'm not sure why this local variable has an error on it i assigned it a value so whats the problem?
script.Parent.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter
local Money = player.leaderstats.Money -- my question,I just want to know whats causing the "local" error it says expected '(' and <string> what does it mean
if hit.Parent == game.Workspace.PartStorage then
wait(0.4)
Money.Value = Money.Value + hit.Value
hit:Destroy()
end
end
end)

1 comment
thanks this helps me understand im not getting the player correctly