while wait(1) do for i = 1,30 do wait(0.7) script.Parent:MoveTo(script.Parent.Head.Position + Vector3.new(0.01,0,0)) end for i = 1,30 do wait(0.7) script.Parent:MoveTo(script.Parent.Head.Position + Vector3.new(-0.01,0,0)) end end
I've been trying for a while but I haven't gotten it yet. So above I'm trying to get a script move side to side, but every time I run this script all it does is moves a inch back. Then it doesn't make a single move after that. I have no idea what I did wrong.
Extra Information: The thing I made is a target and what I'm trying to do is get the target to move side to side. There are 6 things in this model named 'Target'. Part, Part,Part,Head, and Humanoid. Inside the humanoid there is another script but that isn't important. Just ask questions if you are confused or need more info.
-Thanks for the help