I'm trying to make a tube from the hunger games but it rises before clicked and doesn't stop after the set time.
local active = false
if workspace.Clickmebutton.ClickDetector.MouseClick
then
active = true
end
if active == true then
local brick=script.Parent
while wait(0) do
brick.CFrame=brick.CFrame+Vector3.new(0,.133,0)
wait()
end
wait(37.3)
script:Destroy()
end
I'm kind of a noob so please go easy on me!

3 comments
wait(0)?
It's to make it move smoothly
wait(0) does nothing. use 'true' instead