#Animations for character

1 messages · Page 1 of 1 (latest)

vocal aspen
#

This is code

local animation = script:WaitForChild("Animation")

-- Pobieramy konkretnego gracza, do którego należy ten skrypt
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")

local animationTrack = animator:LoadAnimation(animation)

task.wait(5)
print("Playing animation...")
animationTrack:Play()
print("Animation should be playing!")

When I enter the game it doesn't play the animation but shows both subtitles and I don't know what might be wrong, I have the correct animation ID. The local script is in the StarterPlayer>StarterCharacterScripts and animation is in the script

vocal aspen
#

what else can it be?

stray cradle
#

im joking

#

u said this is code

vocal aspen
#

I just solved it by my own self