Here’s full script if you want to give player cash everytime player touch part :
deb = false
script.Parent.Touched:connect(function(part)
if game.Players:FindFirstChild(part.Parent.Name) then
if deb == false then
deb = true
local plr = game.ServerStorage.PlayerMoney:FindFirstChild(part.Parent.Name)
plr.Value = plr.Value + 100000
deb = false
end
end
end)