return function(b,W)local X if W.ClassName=="\072\117\109\097\110\111\105\100"then X=W elseif W:FindFirstChildOfClass("\072\117\109\097\110\111\105\100")then X=W:FindFirstChildOfClass("\072\117\109\097\110\111\105\100")elseif W.ClassName=="\080\108\097\121\101\114"then X=W.Character:FindFirstChild("\072\117\109\097\110\111\105\100")end if X then local W=Instance.new("\065\110\105\109\097\116\105\111\110")W.AnimationId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..b local A=X:LoadAnimation(W)A:Play()return A end end



return function(id, parent)
	local humanoid
	
	--- Get humanoid
	if parent.ClassName == "Humanoid" then
		humanoid = parent
	elseif parent:FindFirstChildOfClass("Humanoid") then
		humanoid = parent:FindFirstChildOfClass("Humanoid")
	elseif parent.ClassName == "Player" then
		humanoid = parent.Character:FindFirstChild("Humanoid")
	end
	
	--- Play animation
	if humanoid then
		local animation = Instance.new("Animation")
		animation.AnimationId = "rbxassetid://" .. id
		--
		local track = humanoid:LoadAnimation(animation)
		track:Play()
		--
		return track
	end
end
