I'm making a tycoon and I want to know how to make a upgrader do times then just add how do I do this with a script if anyone can help me?
This is the script I use: script.Parent.Upgrader.Touched:connect(function(Part) if Part:FindFirstChild("Cash") then Part.Cash.Value = Part.Cash.Value + 1 -- Try not to use * because if the game lags, parts may be worth millions each due to debounce end end)
The only way to multiply something the simple way is by using * So it would look like this in your code;
script.Parent.Upgrader.Touched:connect(function(Part) if Part:FindFirstChild("Cash") then Part.Cash.Value = Part.Cash.Value * 2 -- 2 would be how much its multiplied by