#I can't fix this script to stop an animation

18 messages · Page 1 of 1 (latest)

native pendant
#

i'm trying to do this

#

when the player stops walking the animation stop

#

to avoid running on the air

#

but its not working

#

(Ps: its a toggle sprint)

#

good for mobile players

native pendant
#

.

odd birch
#

i'm not sure this would work, but maybe add a check? if the player's speed is 0 then stop the animation from playing

#

give that a try

native pendant
#

you know how i can do that?

#

i tried doing this

#
local function isPlayerMoving()
    local velocity = char.HumanoidRootPart.Velocity
    return velocity.magnitude > 0
end
orchid quartz
native pendant
#

ok

swift quartzBOT
#

studio** You are now Level 10! **studio

native pendant
#

@orchid quartz