#How can i script movement correctly?

1 messages · Page 1 of 1 (latest)

tough bone
#

how should i script characters to move somewhere or towards somewhere correctly without it being buggy or going against walls etc... for example dashes, how can i "correctly" script dashes?

halcyon spear
#

idk

dim raptor
dim raptor
celest sigil
celest sigil
tough bone
dim raptor
#

wait is this for like an npc or a player

tough bone
dim raptor
# tough bone an actuall player

ohh,
i've used linear velocity for this like CallMe_A said, and just added a invisible part to like the torso so that you can't hit and fly off walls and it also stops you
linear velocity shouldn't be unpredictable due to floor friction in my experience
however this all depends on the terrain/map you have, certain bumps and stuff can be really bad for it

if the force of the linear velocity is still a problem, try using the tweens and also adding a hitbox to the player that sends a signal using bindable or remote events to stop the animation and tween

tldr: linear velocity works but if too unpredictable still then use tweens and a hitbox

tough bone
dim raptor
tough bone
#

yeah its the kind of issue i had on the very fast movements

dim raptor
#

i think if you weld an invisible cube it might stop the springing from happening

celest sigil
tough bone
celest sigil
unborn creekBOT
#

studio** You are now Level 11! **studio

celest sigil
#

like its just linear velocity without all the shenanigans

#

and all the settings

#

But sometimes when I use it I get better results that linear velocity