I need a script for translateby and a button so that I can get a model to move left or right then stop. Then click the button again to move back to home position?
You can use a for loop for this, for example;
local model=game.Workspace.Model local part=game.Workspace.Part part.ClickDetector.MouseClick:connect(function(pwc) for i=1,10 do model:TranslateBy(Vector3.new(0, 0.1, 0) wait(0.1) end end)
this will make the model move up 1 stud in 1 second by 1 tenth of a stud per 1 tenth of a second.