I have been looking everywhere for a script which makes a horse move from one place then to another.
How do i make a model move, for example a person or a horse?
2 answers
You can use " Workspace:findFirstChild("PUT MODEL NAME HERE"):MoveTo(Vector3.new(PASTE A POSITION YOU WANT IT TO MOVE IT INTO, Like a part position that has 3 numbers, Ex. "3, 3, 3", SO PASTE THE PART HERE))
Or you can use BodyVelocities. You can insert it into a part. First Change the parts in the model all surfaces to "Weld". Mainly Unanchor it. If it is C-Framed then it will Explode. Next, make your you inserted the "BodyVelocity" or "BodyPosition". You have to look at the BodyVelocity properties. BodyVelocity make the object keep going a direction. BodyPosition Slides a block to a certain Position. (I recommend BodyVelocity not BodyPosition.) Once you look at the BodyPosition Properties, you will see a maxForce. Paste this into it
"99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999")
Once you pasted it, you will see "inf, inf, inf". Then, there will be a "velocity property" it will have "0,0,0" in it or "0,2,0" It works like this:
*X, Y, Z axis is "0,2,0" *Part can't be anchored *All sides must be "Weld" On Part
If it still doesn't work, PM Hybric the model and he will give it back to you with the updates.
local CurrentPart = nil
local MaxInc = 30
function onTouched(hit)
if hit.Parent == nil then
return
end
local humanoid = hit.Parent:findFirstChild("Humanoid")
if humanoid == nil then
CurrentPart = hit
end
end
function waitForChild(parent, childName)
local child = parent:findFirstChild(childName)
if child then
return child
end
while true do
print(childName)
child = parent.ChildAdded:wait()
if child.Name==childName then
return child
end
end
end
local Figure = script.Parent
local Humanoid = waitForChild(Figure, "Humanoid")
local Torso = waitForChild(Figure, "Torso")
local Left = waitForChild(Figure, "Left Leg")
local Right = waitForChild(Figure, "Right Leg")
Humanoid.Jump = true
Left.Touched:connect(onTouched)
Right.Touched:connect(onTouched)
while true do
wait(math.random(0.1,4))
if CurrentPart ~= nil then
if math.random(1, 2) == 1 then
Humanoid.Jump = false
end
Humanoid:MoveTo(Torso.Position + Vector3.new(math.random(-MaxInc, MaxInc), 0, math.random(-MaxInc, MaxInc)), CurrentPart)
end
end
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
It works, by the way, it cannot be CFRAMED, must be collided in each other**************************