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