#anim not change????

1 messages · Page 1 of 1 (latest)

drifting willow
#

so i made a script that changes animations because i made a custom animation for my custom character for my up and coming RPG game, but it won't work and the anim doesn't get changed so its the classic R6 anim instead of the custom one.

#

code is:

 local Players = game:GetService("Players")
local walkAnimation = "rbxassetid://103319492960339"

local function onCharacterAdded(character)
    local humanoid = character:WaitForChild("Humanoid")
    local animateScript = character:WaitForChild("Animate")

    local runAnim = animateScript:WaitForChild("run"):WaitForChild("RunAnim")
    runAnim.AnimationId = walkAnimation
end

local function onPlayerAdded(player)
    player.CharacterAdded:Connect(onCharacterAdded)
end

Players.PlayerAdded:Connect(onPlayerAdded)```
#

99% sure its in the correct place

long isle
drifting willow
#

it dont work

long isle
#

then uhhh

#

local Players = game:GetService("Players") local Player = Players.LocalPlayer local char = Player.Character or Player.CharacterAdded:Wait()
local walkAnimation = "rbxassetid://103319492960339"

local humanoid = character:WaitForChild("Humanoid")
local animateScript = character:WaitForChild("Animate")

local runAnim = animateScript:WaitForChild("run"):WaitForChild("RunAnim")
runAnim.AnimationId = walkAnimation
#

oops mb

#

im just editing the code

drifting willow
#

its ok

long isle
#

also one question

drifting willow
#

alr lemme see

drifting willow
long isle
long isle
drifting willow
#

then u add lua

#

so

long isle
#

ahhh

drifting willow
#

then click enter

#

then paste code

#

so

#
 local Players = game:GetService("Players")
local walkAnimation = "rbxassetid://103319492960339"

local function onCharacterAdded(character)
    local humanoid = character:WaitForChild("Humanoid")
    local animateScript = character:WaitForChild("Animate")

    local runAnim = animateScript:WaitForChild("run"):WaitForChild("RunAnim")
    runAnim.AnimationId = walkAnimation
end

local function onPlayerAdded(player)
    player.CharacterAdded:Connect(onCharacterAdded)
end

Players.PlayerAdded:Connect(onPlayerAdded)```
#

like that

long isle
#

'''local Players = game:GetService("Players") local Player = Players.LocalPlayer local char = Player.Character or Player.CharacterAdded:Wait()
local walkAnimation = "rbxassetid://103319492960339"

local humanoid = character:WaitForChild("Humanoid")
local animateScript = character:WaitForChild("Animate")

local runAnim = animateScript:WaitForChild("run"):WaitForChild("RunAnim")
runAnim.AnimationId = walkAnimation
#

oop nvm

#

its backquotes 💀

#
local walkAnimation = "rbxassetid://103319492960339"

    local humanoid = character:WaitForChild("Humanoid")
    local animateScript = character:WaitForChild("Animate")

    local runAnim = animateScript:WaitForChild("run"):WaitForChild("RunAnim")
    runAnim.AnimationId = walkAnimation
#

there u go

drifting willow
#

so its just what

fervent streamBOT
#

studio** You are now Level 1! **studio

drifting willow
#

that*

long isle
#

yea

#

since itll already play once the player joins

drifting willow
#

hmmmm

#

it still doesnt work

drifting willow
#

is it in correct place

long isle
#

oop mb

#

i made an error

#

one sec

#
local walkAnimation = "rbxassetid://103319492960339"

    local humanoid = char:WaitForChild("Humanoid")
    local animateScript = char:WaitForChild("Animate")

    local runAnim = animateScript:WaitForChild("run"):WaitForChild("RunAnim")
    runAnim.AnimationId = walkAnimation
#

try now

drifting willow
#

hmmm

long isle
drifting willow
#

i did

drifting willow
long isle
drifting willow
#

ok

long isle
drifting willow
#

yeah the walk anim doesnt playt

drifting willow
long isle
#

add print statements to check

drifting willow
long isle
drifting willow
#

hm

#

oh wait

long isle
#

?

drifting willow
#

something happened

#

NOW NO ANIMS PLAY AT ALL AND MY CHARACTERS HAT IS GONE.

#

ok nvm had to rerun

#

its just classic roblox walk anim

#

not my custom one

drifting willow
fervent streamBOT
#

studio** You are now Level 2! **studio

long isle
#

wait

long isle
drifting willow
long isle
#

normal

drifting willow
long isle
drifting willow
long isle
fervent streamBOT
#

studio** You are now Level 8! **studio

long isle
# drifting willow also it still doesnt work
local walkAnimation = "rbxassetid://103319492960339"

local function onCharacterAdded(character)
    local humanoid = character:WaitForChild("Humanoid")
    local humDescription = humanoid:WaitForChild("HumanoidDescription")                                                                                                                                                             humDescription.WalkAnimation = walkAnimation                               humanoid:ApplyDescriptionReset(humDescription) 
end

local function onPlayerAdded(player)
    player.CharacterAdded:Connect(onCharacterAdded)
end

Players.PlayerAdded:Connect(onPlayerAdded) ```
long isle
#

i mean walk

drifting willow
#

huh

#

how do i uh

#

turn it into running

#

i gotta bleach my hair rq

#

ill be back

long isle
# drifting willow turn it into running
local walkAnimation = "rbxassetid://103319492960339"

local function onCharacterAdded(character)
    local humanoid = character:WaitForChild("Humanoid")
    local humDescription = humanoid:WaitForChild("HumanoidDescription")                                                                                                                                                             humDescription.RunAnimation = walkAnimation                               humanoid:ApplyDescriptionReset(humDescription) 
end

local function onPlayerAdded(player)
    player.CharacterAdded:Connect(onCharacterAdded)
end

Players.PlayerAdded:Connect(onPlayerAdded) ```
drifting willow
#

(sorry I wasn't on)

drifting willow
#

i still need help if anyone will help