What do you want to achieve? Keep it simple and clear!
Make an animation play when I activate the tool
What is the issue? Include screenshots / videos if possible!
My animation just doesn’t work at all
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have sheached for over 1 hour but has came with no result in my current problem
Here is the script used to play the animation
script.Parent.Activated:Connect(function()
local animation = script.Animation
local humanoid = script.Parent.Parent.Humanoid
local animationtrack = humanoid:LoadAnimation(animation)
animationtrack:Play()
end)
script.Parent.Activated:Connect(function()
print('Connection is running')
local animation = script.Animation
local humanoid = script.Parent.Parent.Humanoid
local animationtrack = humanoid:LoadAnimation(animation)
animationtrack:Play()
print('animationtrack played')
end)
try this code, tell me what it prints. (The prints should tell you what’s working or not)