You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
To get my custom rig (a horse) to look where it is going. -
What is the issue? Include screenshots / videos if possible!
The horse always looks in the same direction -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have tried AutoRotate and removing my animations. Neither works.
I am making a player-ridable horse and want it’s Head/HumanoidRootPart to face in the direction where it is going (like Player’s Characters).
Currently, it moves while facing the original direction. Example: I am moving directly left here…
Here is the Explorer:
The Animate script also controls movement. It always follows an attachment inside the HumanoidRootPart.
local humanoid = script.Parent.Humanoid
local rootPart = script.Parent.HumanoidRootPart
local seat = script.Parent.VehicleSeat
local walk = humanoid:LoadAnimation(humanoid.WalkAnimation)
walk:Play()
local runService = game:GetService("RunService")
runService.Heartbeat:Connect(function()
rootPart.MoveTo.Position = Vector3.new(seat.Steer * 5, 0, seat.Throttle * -5)
humanoid:MoveTo(rootPart.MoveTo.WorldPosition)
end)