I'm trying to make a Model slowly move down for 3 seconds. Thank's to whoever helped me on the first question, but I just need it to slowly move down for 3 seconds, but I have to keep clicking it and it moves like 2 studs down:
function onClicked(playerWhoClicked)
local model = workspace.Tuner1.Lift --Model to move
local part = model:GetChildren()[1]
model.PrimaryPart = part
for i = 1,1,.01 do
wait(i)
model:SetPrimaryPartCFrame(model:GetPrimaryPartCFrame() - Vector3.new(0,3,0))
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

6 comments
Ok, but what if I wanted it to automatically go down? With that one I have to spam click it
My bad, the for loop on line 8 was messed up. Try my edit.
Ok, so to stop it, it would be wait(3) then CFrame 0,0,0?
What? No, it will stop automatically.
Er, it doesn't
Nevermind, thank you.