I Maked Tycoon And Placed Conveyor But When Part Deletes It Gives Extra Money! Here's Script:
script.Parent.IDK.Touched:connect(function(hit) if hit.Name == "Money" then local plr = game.Players.LocalPlayer plr.leaderstats.Money.Value = plr.leaderstats.Money.Value + script.Parent.WOW.Value hit:Destroy() end end)
Please Fix It! Thanks For Looking!
You are just missing a debounce. Sometimes the Touched
event can fire multiple times for a single part.
local debounced script.Parent.IDK.Touched:connect(function(hit) if not debounced and hit.Name == "Money" then debounced = true local plr = game.Players.LocalPlayer plr.leaderstats.Money.Value = plr.leaderstats.Money.Value + script.Parent.WOW.Value hit:Destroy() debounced = false end end)