I have a script that is supposed to make a spawn go up and down continuously... But it doesn't work. (This script is a regular script inside of a spawn)
spawn = script.Parent
function UpAndDown()
for i = 0, 4, 0.1 do
spawn.CFrame = CFrame.new(0, 0.1, 0)
wait(0.1)
end
for i = 0, -4, -0.1 do
spawn.CFrame = CFrame.new(0, -0.1, 0)
wait(0.1)
end
UpAndDown()
end
UpAndDown()

1 comment
I probably did this completely wrong but i'm new to scripting and this is what i thought i was supposed to do...