----------------moving model script will go on forever---------------------------------------
local model = script.Parent --make sure script.parent Is a model
while true do --loop two
model:TranslateBy(Vector3.new(0.05, 0, 0))---makes it move
wait()
end
-------------------moving script will move until the timer is done---------------------------
local disablescript = script.Parent.keep -- ps this is a script just name the script something else so you dont get confused
local tim = 0
local timer = 5 --any number works here
while wait(1) do
---every secound it will add to the timer until it stops i recomend to only edit it to 60 sec or it will get more complex
tim = tim + 1
if tim == timer then --dont want it to keep going here too
disablescript.Disabled = true
script.Disabled = true
end
end
-------------------------------put both of these scripts in two separate scripts keep them inside the model you want to move though
local model = script.Parent --make sure both scripts are in a model
while true do --loop two
model:TranslateBy(Vector3.new(0.05, 0, 0))---makes it move
wait()
end