Animation Not Playing

I am making an animation where when the proximity prompt is triggered it plays but when I trigger it nothing happens, here’s my code.

local player = game.Players.LocalPlayer
local character = player:WaitForChild("Character")
local Animator = character:WaitForChild("Humanoid"):WaitForChild("Animator")
local AnimationsFolder = game:GetService("ReplicatedStorage").Animations

local MoveAnimation = AnimationsFolder.MoveBin.AnimationId
local MoveBinTrack = Animator:LoadAnimation(MoveAnimation)
MoveBinTrack.Priority = Enum.AnimationPriority.Action

script.Parent.Part.ProximityPrompt.Triggered:Connect(function()
	MoveBinTrack:Play()
end)

I am also very bad with animations

local player = game.Players.LocalPlayer
local character = player:WaitForChild("Character")
local Animator = character:WaitForChild("Humanoid"):WaitForChild("Animator")
local AnimationsFolder = game:GetService("ReplicatedStorage").Animations

local MoveAnimation = AnimationsFolder.MoveBin
local MoveBinTrack = Animator:LoadAnimation(MoveAnimation)
MoveBinTrack.Priority = Enum.AnimationPriority.Action

script.Parent.Part.ProximityPrompt.Triggered:Connect(function()
	MoveBinTrack:Play()
end)

Try this

replace with local character = player.Character or player.CharacterAdded:Wait()

if you did not publush this animation to roblox yourself then you cant use it in your game.