#Animation playing when not moving
1 messages · Page 1 of 1 (latest)
Hello there
hi
Ur animation is not moving
?
So I can help you fixed it
Are you d one making the game from scratch
like posting the progress of my game into social medias?
no
im not the guy
U can hire me as a partner for ur game
for free?
** You are now Level 3! **
how much?
I can't say but I accept IRL money
** You are now Level 2! **
u have to make a detect like
local = lastPosition = humanoidrootpart.Position
if (humanoidrootpartPosition - lastPosition) < 0.01 then return end
do i create a localscript for this
Just comvine it in your sprintingScript
i mean
if (humanoidrootpart.Position - lastPosition).Magnitude < 0.0q
Forgot magnitude
do i replace it with the humanoidrootpartposition - lastposition?
Yes
@boreal mural
can you shwo me full script?
no dude
local lastPosition = humanoidRootPart.Position
make a new variable
for humanoidRootPart upper there (if u haven't)
local humanoidRootPart: BasePart = player.Character:WaitForChild("HumanoidRootPart")
put all upper
** You are now Level 2! **
for the variable
the 1st lines?
no
under runService
ngl it's so messy tho
then put the if statement under UIS.InputBegan then under if keyCode
like this?
if (humanoidRootPart.Position - lastPosition).Magnitude < 0.01 or 0 then return end
no
above the Run()
so if it detect character isn't moving it will just return without continuing all the codes under it
try it
make variable for humaoidRootPart
local humanoidRootPart = player.Character:WaitForChild("HumanoidRootPart")
put last position uinder the humanodirootpart
humanoidRootPart must be first (above the last position)
no
okay remove or 0
wait
i didn't realize Run() and Sprint() is different
also add (humanoidRootPart.Position - lastPosition).Magnitude < 0.01 then return end under if RunConfig.Running then
yeah sure ig u can put it on the function instead
don't forget if
if (humanoidRootPart bla bla bla
and also the sprint function
alr i added if
add it in the sprint func too
here?
oh
** You are now Level 4! **
alr
