How to create a smooth system for rideable horse?

I want to create a efficient system for rideable horses but I can’t figure out how to do it without either sending a trillion Remote Events!

local turnDirections = {
	[1] = Vector3.new(1,0,0),
	[2] = Vector3.new(-1, 0, 0)
}

MoveEvent.OnServerEvent:Connect(function(Player, Dismount, movementDirection)
	if Dismount == true then
		dismountHorse(Player)
	else
		print(movementDirection)
		Horse.HumanoidRootPart.Orientation += turnDirections[movementDirection]
	end
end)

I wrote some code here for how I might do a system with remote events, but I feel like this would far too much delay and im not sure how I would detect when the input is ending or starting efficiently.

I would appreciate any ideas or design principles to help me out! :relaxed:

1 Like

Set the network owner of the horse to the player riding it so the player can control the physics

4 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.