Why wont this script play the animation?

hello there, I’m trying to get this script to work but it says that Play() isn’t a valid member of animation. How can I fix this?

here’s my code:

local Player = game.Players.LocalPlayer
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://7508203508"
anim.Parent = script
local particles = Character.LeftFoot.Attachment.ParticleEmitter


local stateConnection = Humanoid.StateChanged:Connect(function(oldState, newState)
	if (oldState == Enum.HumanoidStateType.Freefall) and (newState == Enum.HumanoidStateType.Landed) then
		print("landed")
		Humanoid.WalkSpeed = 0
		particles.Enabled = true
		wait(0.05)
		anim:Play()
		wait(1)
		Humanoid.WalkSpeed = 16
		particles.Enabled = false
	end
end)

It’s because you have to play the AnimationTrack which is returned from Animator:LoadAnimation().