while true do
local a = 0.1
repeat
script.Parent.Position = script.Parent.Position + Vector3.new(0,a,0)
wait(0.01)
a = a + 0.1
until a == 1
repeat
a = a - 0.1
script.Parent.Position = script.Parent.Position - Vector3.new(0,a,0)
wait(0.01)
until a == 0.1
end
The purpose of this script is that the part that owns this script goes up and down infinitely. But the problem is that it goes up infinitely, and it never goes down… Why does it never go down?