Hello, anybody know why this script may not work? (animation script)

It’s very strange because it work perfectly :
image

1 Like

im going to see if its my client by testing a custom part brb

wait my output says that at 2:38 it worked…

Ok so just change the code to select the Part and then it should work

problem is that i can replicate this output for some reason
also wdym change the code to select the Part?

wait i was wrong i can replicate it

Uh put that :

local Bell = workspace.bellmodel.Bell.bellhitbox

local Animation = Instance.new("Animation")
Animation.AnimationId = "rbxassetid://"

Bell.ClickDetector.MouseClick:Connect(function(player)
	local Character = player.Character

	if Character then
		local Humanoid = Character:WaitForChild("Humanoid")

		local Track = Humanoid.Animator:LoadAnimation(Animation)
		Track:Play()
	end
end)
1 Like

oh replace Part lol
mb
character limit

1 Like

testing rn but i keep fixing errors bc i made a few mistake in my placement of stuff
all fixed now tho

i added smth so it print now instead of the animation just to see

i got it working :o
its jsut a problem with my animation

Oh, alright if it’s not working so it might be a bug or something.

1 Like

the solution was to duplicte the hitbox and del the new one D:

alr tysm for the help
have a good one o7

1 Like

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