Animation not working

Not sure why this is not working, there’s no errors being outputted.
Might be because I might’ve forgot something, or just a really weird bug.
This is the script:

local replicatedstorage = game:GetService("ReplicatedStorage")
local rt = replicatedstorage:WaitForChild("Explode")
local debris = game:GetService("Debris")
local animationid = "rbxassetid://13300148301"
local animation = Instance.new("Animation")
animation.AnimationId = animationid
rt.OnServerEvent:Connect(function(plr, handle, mousex, mousez, mouse)
	local char = plr.Character
	local hum = char.Humanoid
	local animator = hum.Animator
	local loadanim = animator:LoadAnimation(animation)
	loadanim:Play()
	task.wait(0.18)
--- ignore the part below this
	local clone = handle:Clone()
	clone.CFrame = plr.Character.Torso.CFrame:ToWorldSpace(CFrame.new(0,0,-10))
	clone.Parent = workspace
end)
2 Likes

Does the animation have the same rig type? For exp : Does your animation is made for R15 but is played in R6 Rig?

Other than that, does you set the animation priority to low? That might be the problem too!

1 Like

Just realized I made it in an R15 rig :sweat_smile:
Thank you for the help

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.