I am trying to create a boat where the character does not slide off while it moves, when tweening you can simply parent the character to the boat and they’ll be stable but this doesn’t work for Lerp.
Tween
Lerp
The code for the tween was quite simple too as shown below.
function M:ZoneEntered(player)
player.Character.Parent = M.Boat
end
function M:ZoneExited(player)
player.Character.Parent = workspace
end
It’d be very appreciated if I could get some help!!
That is because it is not being affected by Physics. If you want the characters to automatically ‘stick’ to it then you can not use Tweening or any non-physics substitutes without manually matching velocities yourself. I recommend switching to your method to something involving a Physics Object.
You can use AlignPosition in the ‘OneAttachment’ mode. If you want to handle rotations as well there’s also AlignOrientation. They are very similar in terms of API.