|
| 02 Jan 2015 01:37 PM |
I'm trying to make a platform that shrinks when you touch it, but when I touch it, it keeps changing the Y axis my 6.5. Here is the script:
local debounce = true
script.Parent.Touched:connect(function() if debounce then debounce = false for i = 6, 0, -0.1 do script.Parent.Size = Vector3.new(i, 1, i) wait(0.05) end script.Parent.Transparency = 1 wait(5) script.Parent.Transparency = 0 script.Parent.Size = Vector3.new(6, 1, 6) debounce = true end end) |
|
|
| Report Abuse |
|
| |
|
| 02 Jan 2015 01:56 PM |
| Reposition it every time you resize it. |
|
|
| Report Abuse |
|