Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How Do I Make A Model Move Side To Side?[Solved]

Asked by
tanzane 100
10 years ago
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

0
Solved By Me :P tanzane 100 — 10y

Answer this question