#Help with walking animation

1 messages · Page 1 of 1 (latest)

upbeat ice
#

Ignore the sound 🙏

main saddle
#

any errors?

#

@upbeat ice

upbeat ice
#

where do i check

wanton tiger
#

how do u expect us to fucking review ur code

wanton tiger
upbeat ice
#

Where do I open output

main saddle
main saddle
#

when playing

upbeat ice
#

oh thats it

main saddle
#

or

main saddle
#

go to view and click that

upbeat ice
#

ops

#

wait

main saddle
#

output there

upbeat ice
main saddle
#

is that the script

#

you're having issue with?

upbeat ice
#

I didnt make a script

#

I just put the id

#

in the walking animation and

#

the walking script

main saddle
#

do you own the animations?

upbeat ice
#

Yes its mine

main saddle
#

so uhh

#

theres multiple places

#

where you have to insert ids into

#

in the "Animate" script

upbeat ice
#

I inserted it in two

#

yes

#

I put it inside the Animate

main saddle
#

Not the values

#

You should place the ids

#

Into the

#

Animations

upbeat ice
main saddle
main saddle
#

When the player

#

is REALLY slow

#

you can spot that easily in mobile

#

insert the walk id to run too

upbeat ice
#

is the 16 value slow

#

oaky

#

Okay

#

nope

#

same thing with run

main saddle
#

did you insert the ids here too?

upbeat ice
#

wait

main saddle
#

make sure

#

you have the id replaced on

#

"run" too

upbeat ice
#

oop

#

I placed it there

main saddle
#

alright

#

now try

upbeat ice
#

same thing happened...

main saddle
#

can you send me

#

your script

#

as a file?

#

not as

#

text

upbeat ice
#

the animate?

spring mist
#

wait lemme make one

upbeat ice
#

okay

#

gl

#

I will be back in 20 minutes

#

gotta shower

main saddle
spring mist
#

is it a R6 or a R15?

#

the animation

upbeat ice
#

r6

#

sorry for late response

#

I just showered

spring mist
#

ok and its set to R6 in studio?

upbeat ice
#

yes

spring mist
#

because i think they made it default R15 only

#

ok so here is a script i have for R6 i tested it it works

#

put it in startercharacterscripts "print("Custom walk animation script started")

local character = script.Parent
local humanoid = character:WaitForChild("Humanoid")

-- Disable Animate script
local animateScript = character:FindFirstChild("Animate")
if animateScript then
animateScript.Disabled = true
print("Animate script disabled")
else
print("No Animate script found")
end

-- Animation setup
local walkAnim = Instance.new("Animation")

-- Use the same animation for both R6 and R15
-- Replace this with your animation ID
walkAnim.AnimationId = "rbxassetid://96208968525324"

-- R15 uses Animator, R6 uses Humanoid directly
local walkTrack
if humanoid.RigType == Enum.HumanoidRigType.R15 then
print("RigType: R15")

local animator = humanoid:WaitForChild("Animator")
walkTrack = animator:LoadAnimation(walkAnim)

elseif humanoid.RigType == Enum.HumanoidRigType.R6 then
print("RigType: R6")

walkTrack = humanoid:LoadAnimation(walkAnim)

else
warn("Unknown rig type:", humanoid.RigType)
return
end

print("Walk animation loaded")

-- Play/stop the walk animation based on speed
humanoid.Running:Connect(function(speed)
print("Running event. Speed:", speed)

if speed > 0 then
    if not walkTrack.IsPlaying then
        walkTrack:Play()
        print("Walk animation started")
    end
else
    if walkTrack.IsPlaying then
        walkTrack:Stop()
        print("Walk animation stopped")
    end
end

end)
" also yes its ai but it works

#

just make sure to replace the animation id with urs

upbeat ice
#

Wait

#

do i add

#

local script

#

or script

#

Thanks dude

#

it works

#

Just 1 problem

#

😭

#

the footstep sound

#

isnt matching

spring mist
#

ok lets try fix it