#when i jump my walk animation playing
239 messages · Page 1 of 1 (latest)
Help me pls
the second is over
local walkAnimation = script:WaitForChild("Walk")
local JumpAnimation = script:WaitForChild("Jump")
local idleAnimation = script:WaitForChild("Idle")
local Char = script.Parent
local Humanoid = Char:WaitForChild("Humanoid")
local animationTrack1 = Humanoid:LoadAnimation(walkAnimation)
local animationTrack2 = Humanoid:LoadAnimation(JumpAnimation)
local animationTrack3 = Humanoid:LoadAnimation(idleAnimation)
Humanoid.Running:Connect(function(movementSpeed)
if movementSpeed > 0 then
if not animationTrack1.IsPlaying then
animationTrack3:Stop()
animationTrack1:Play()
end
else
if animationTrack1.IsPlaying then
animationTrack1:Stop()
animationTrack3:Play()
end
end
end)
Humanoid.Jumping:Connect(function()
animationTrack2:Play()
end)
there
Bro fr
Uh do i just paste it there?
no
Then
put animationTrack1:Stop()
Which line
So do shift and place this at this?
???
He told you exactly where to put which line
Then help me
Do we need to fully spoonfeed every button on your keyboard you need to press?
Yes.
Just read his messages and you’ll figure it out
** You are now Level 2! **
bro just
@uncut lion I pitty you for dealing with these people once again
Humanoid.Jumping:Connect(function()
animationTrack2:Play()
animationTrack1:Stop()
end)
ok???
Ok
srry man
don't be sorry. I'm sorry for you
oh i translated and i understand now man well yeah its hard sometimes 
the animation wont even play now
ive made it already it suppost to work but it dosent
Humanoid.Jumping:Connect(function()
if animationTrack1.IsPlaying then
animationTrack1:Stop()
end
animationTrack2:Play()
end)
try this
can you send the script full
ok
local walkAnimation = script:WaitForChild("Walk")
local JumpAnimation = script:WaitForChild("Jump")
local idleAnimation = script:WaitForChild("Idle")
local Char = script.Parent
local Humanoid = Char:WaitForChild("Humanoid")
local animationTrack1 = Humanoid:LoadAnimation(walkAnimation)
local animationTrack2 = Humanoid:LoadAnimation(JumpAnimation)
local animationTrack3 = Humanoid:LoadAnimation(idleAnimation)
Humanoid.Running:Connect(function(movementSpeed)
if movementSpeed > 0 then
if not animationTrack1.IsPlaying then
animationTrack3:Stop()
animationTrack1:Play()
end
else
if animationTrack1.IsPlaying then
animationTrack1:Stop()
animationTrack3:Play()
end
end
end)
Humanoid.Jumping:Connect(function()
if animationTrack1.IsPlaying then
animationTrack1:Stop()
end
animationTrack2:Play()
end)
@uncut lion there
local walkAnimation = script:WaitForChild("Walk")
local JumpAnimation = script:WaitForChild("Jump")
local idleAnimation = script:WaitForChild("Idle")
local Char = script.Parent
local Humanoid = Char:WaitForChild("Humanoid")
local animationTrack1 = Humanoid:LoadAnimation(walkAnimation)
local animationTrack2 = Humanoid:LoadAnimation(JumpAnimation)
local animationTrack3 = Humanoid:LoadAnimation(idleAnimation)
Humanoid.Running:Connect(function(movementSpeed)
if movementSpeed > 0 then
if not animationTrack1.IsPlaying then
animationTrack3:Stop()
animationTrack1:Play()
end
else
if animationTrack1.IsPlaying then
animationTrack1:Stop()
animationTrack3:Play()
end
end
end)
Humanoid.Jumping:Connect(function()
if animationTrack1.IsPlaying then
animationTrack1:Stop()
end
animationTrack2:Play()
end)
wait
paste this?
ok
printing to someone named lua hi?
ok
```lua
```
makes it so we can read your script
so what do i suppost to do why wont it work
im looking
local walkAnimation = script:WaitForChild("Walk")
local JumpAnimation = script:WaitForChild("Jump")
local idleAnimation = script:WaitForChild("Idle")
local Char = script.Parent
local Humanoid = Char:WaitForChild("Humanoid")
local animationTrack1 = Humanoid:LoadAnimation(walkAnimation)
local animationTrack2 = Humanoid:LoadAnimation(JumpAnimation)
local animationTrack3 = Humanoid:LoadAnimation(idleAnimation)
Humanoid.Running:Connect(function(movementSpeed)
if movementSpeed > 0 then
if not animationTrack1.IsPlaying then
animationTrack3:Stop()
animationTrack1:Play()
end
else
if animationTrack1.IsPlaying then
animationTrack1:Stop()
animationTrack3:Play()
end
Humanoid.Jumping:Connect(function()
if animationTrack1.IsPlaying then
animationTrack1:Stop()
end
animationTrack2:Play()
end)
end
end)
try this
bet
but wait
maybe the problam is that i didnt done the jump and idle?
and only walk?
wdym
lol hell ye
is it?
im making it now
well yes thats the problem
but can u make me a script then without the idle and fixing the problam of this cchannel
the program cannot run nil anim
can u?
i fixed it bru
WITHOUT the idle
i want to delete the idle part
i dont want to make an idle animatio
local walkAnimation = script:WaitForChild("Walk")
local JumpAnimation = script:WaitForChild("Jump")
local Char = script.Parent
local Humanoid = Char:WaitForChild("Humanoid")
local animationTrack1 = Humanoid:LoadAnimation(walkAnimation)
local animationTrack2 = Humanoid:LoadAnimation(JumpAnimation)
Humanoid.Running:Connect(function(movementSpeed)
if movementSpeed > 0 then
if not animationTrack1.IsPlaying then
animationTrack1:Play()
end
else
if animationTrack1.IsPlaying then
animationTrack1:Stop()
end
Humanoid.Jumping:Connect(function()
if animationTrack1.IsPlaying then
animationTrack1:Stop()
end
animationTrack2:Play()
end)
end
end)
there you go
let me try
do you have the jump and
ye
run anim
ok dont forget to put the id of the anim
nice
but
** You are now Level 3! **
are you sure that you put the id in the correct anim ?
ofc..
@tall yew
want me to share my screen
?
could you look at this bru
ok
.
lol
are you sure that's the one inside your game?
did i made it wrong?
can you record a vid and share with us
ok then
wait ive changed my mind ill made an idle animation so ill use this
Humanoid.StateChanged:Connect(function(OldState, NewState)
print("OldState:" ..Oldstate .."\n New state:".. NewState)
end
not sure but
add that
i did
to check when the states change
if i woudlnt my walking animation would not work
im not talking about that
then
im talking about the jump anim loop
let me check
and could you try that
yes the jump was not with a loop
can you try with loop
ok turn off the loop
oh I forgot 2 dots
?
fixed it
.
I fixed it in the original message
yeah at the end would be your bes toption
hang on
why is it tabbed to the right?
where did you exactly put it?
at the end of the script
can i show screen share maybe
how
ima call u
does it not return anything?
did you guys try to just do
Humanoid.StateChanged:Connect(function(OldState, NewState)
print("OldState:" ..Oldstate)
print("New state:" .. NewState)
end```
oh wait
NewState is a method
so?
no wait
I'm just dumb and forgot discord isn't the same as a texteditor
damn discord making me type 2 "s
then ill try this?
** You are now Level 4! **
you can just when you are press the button play in roblox studio go to worlspace get the Animate LocalScript in your CharacterModel that named as your nick Name
and right click to it
click cut
press stop
?
right click to StarterCharacterScripts and click paste into it
then change the anims id to your id
others?
ye
WHİCH
the one that wil play it
its automaticly play for you
and delete the script that youve made
and problem solved
bro im just gonna go find someone that acuttly care and giving me working scripts
than you have to ready to give robux :))
see @tall yew thats why we should stop helping people
yea