I want to make a mask that keeps expanding by 0.1 in length, and as soon as it touches another part, it goes back to 1 in length, and it starts from beginning. I tried to do it but it doesn't work. here is my source code. I would be happy if you could correct it:
function expand("Handle") (Script.Parent.Size.Z) = "length" length + 0.2 end function onTouch script.Parent:FindFirstChild("Part") end while onTouch = false expand if onTouch = true then length = "1" return end end