I’ve created an tool animation script, but it seems not to work.
local Tool = script.Parent
local Animation = Tool.Animation
local player = game.Players.LocalPlayer
Tool.Equipped:Connect(function(Mouse)
Mouse.Button1Down:Connect(function()
local Character = player.Character or player.CharacterAdded:Wait()
local Humanoid = Character.Humanoid
local AnimationTrack = Humanoid:LoadAnimation(Animation)
AnimationTrack:Play()
print(“Mouse Click Works.”)
end)
end)
It doesn’t show any error in the output. Can someone help me fix it?
Sorry to hear that your script isn’t working. I’d move this topic to #help-and-feedback:scripting-support and I bet you’ll get more help! Good luck, though!