How do you make this script repeat itself after the forth click? What it does it stays the same at the forth click. By the way, what is a professional word to label 1 (local Inc = 1) instead of Inc?
local Inc = 1 script.Parent.MouseButton1Click:connect(function() if Inc == 1 then --First Click --Code elseif Inc == 2 then --Second Click --Code elseif Inc == 3 then --Third Click --Code elseif Inc == 4 then -- Fourth Click --Code end Inc = Inc + 1 end)
Thank you!
local Inc = 1 script.Parent.MouseButton1Click:connect(function() if Inc == 1 then --First Click --Code elseif Inc == 2 then --Second Click --Code elseif Inc == 3 then --Third Click --Code elseif Inc == 4 then -- Fourth Click Inc = 0 -- resets it but regards how it adds again at the end end Inc = Inc + 1 end)