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!