script.Parent.Touched:connect(function(Part)
if Part:FindFirstChild("Cash") then
Part.Cash.Value = Part.Cash.Value * 2
end
end)
-- When the game lags the parts are worth millions each due to debounce
Is there a way i can avoid this problem, when i test play i get millions/billions and it's game breaking. I want it so that every single part gets upgraded 2x max and can't be upgraded above 2x (just 2x the part's value). -- Btw this is a upgrader.

1 comment
db will only make it so some parts that goes through gets multiplied and not all of them (if like 3 or 5 parts go through at the same time)