This is the code The animation has the highest priority.

		CD.MouseClick:Connect(function(plr)
			if plr.Character:FindFirstChild("Rake") and plr:FindFirstChild("RakeQuest") and (plr.Character.HumanoidRootPart.Position - LP.Position).magnitude < 10 and not table.find(LazySarinFix, LP) then
				plr.Character.HumanoidRootPart.Anchored = true
				table.insert(LazySarinFix, LP) 
				spawn(function()
					wait(1)
					table.remove(LazySarinFix, table.find(LazySarinFix, LP))
				end)
				--LP.RakeSound:Play()
				
					local Anim = Instance.new("Animation", plr.Character)
					Anim.AnimationId = "rbxassetid://5709558189"
					local RakeAnim = plr.Character.Humanoid:LoadAnimation(Anim)
					RakeAnim:Play()
					wait(4.8)
					Anim:Destroy()
					RakeAnim:Stop()
					--LP.RakeSound:Stop()
				
				
				plr.Character.HumanoidRootPart.Anchored = false
				plr.RakeQuest.Value += 1
				local LPClone = LP:Clone()
				LPClone.Parent = game:GetService("ServerStorage")
				LPClone.CFrame = LP.CFrame * CFrame.new(math.random(-35, 35)/10, 0, math.random(-35, 35)/10)
				LP:Destroy()
				wait(2)
				LPClone.Parent = script.Parent
			
			end
		end)
	end
end

4 comments

0

And you didn't try debugging it with prints here and there? Maybe at least try to debug it and then tell what doesn't run as it should.

0

add print statements for debugging and tell me the results. Add a print statement after each "If statement" and see what it prints.

0

lol , me and Noel were thinking the same thing.

0

why is if statement in quotation marks