#Snapping Rotation
1 messages · Page 1 of 1 (latest)
duplicate the movedirection by 2
set the move direction to movedir.x, 0, movedir.z
add it to the cframe.lookat part when setting the rotation
heres a reference script i found on devforum
1 messages · Page 1 of 1 (latest)
How can I make a visual effect of snapping rotation, players don't rotate and snap fully into 1 of the 8 directions they can turn, I tries doing this in so many ways but in client-side the characters are too laggy and in server-side the character are pushed back every time they turn around
duplicate the movedirection by 2
set the move direction to movedir.x, 0, movedir.z
add it to the cframe.lookat part when setting the rotation
heres a reference script i found on devforum