Animation Not Playing

Hey, I have a problem with some code that im working with. So to explain how it works, when a player touches a block, it fired a remote event and then is suppose to play a animation after moving a player to a certain point. everything works fine besides the part where the animation plays. ive called the animation track to play, but the character just stands there and nothing happends. im not very familliar with animations so im not sure if im doing something wrong. It would be great it someone could look into it.

Server-Sided Script

local RopeSlideDetectionArea = script.Parent
local RepStore = game:GetService("ReplicatedStorage")
local RopeSlideEvent = RepStore.RemoteEvents.RopeSlide

RopeSlideDetectionArea.Touched:Connect(function(Hit)
	local Hum = Hit.Parent:FindFirstChild("Humanoid")
	if Hum then
		Hum:MoveTo(game.Workspace.Lava.AnimationStartLocationBlock.Position)
		local Plr = game.Players:GetPlayerFromCharacter(Hum.Parent)
		RopeSlideEvent:FireClient(Plr)
	end
end)

Local Script

local RopeSlideAnim = script.RopeSlide -- the animaton
local Plr = game.Players.LocalPlayer
local PlrScripts = Plr:WaitForChild("PlayerScripts")
local PlayerModule = require(PlrScripts:WaitForChild("PlayerModule"))
local MovmentControls = PlayerModule:GetControls()
local Event = game:GetService("ReplicatedStorage"):WaitForChild("RemoteEvents"):WaitForChild("RopeSlide")


Event.OnClientEvent:Connect(function()
	MovmentControls:Disable()
	wait(3)
	local Char = Plr.Character or Plr.CharacterAdded:Wait()
	local AnimTrack = Char.Humanoid:LoadAnimation(RopeSlideAnim)
	AnimTrack:Play()
	print("Played") -- this prints just fine but the line before it doesnt seem to be doing anything???
end)
2 Likes

Don’t you add the Plr into Event.OnClientEvent:Connect(function(Plr)?