I want to make animation that plays when you enter the game

Hello,

I haven’t been working on animation for a long time. So I couldn’t remember how to make an autoplaying animation either.

[Animation will be played when the player enters the game.]

Thanks :slight_smile:

game.Players.PlayerAdded:connect(function(plr)
wait(1)

local character = plr.Character
local Animation = script:WaitForChild(‘Animation’)
local loadedanimation = character.Humanoid:LoadAnimation(Animation)

	loadedanimation:play()