I made a Weapon Selection Gui and it Parents the Weapon Selected to the Player's Character, then inside the Tool I have a local script, inside I have an Animation and then I use the .Activated Event for Attacking, but for some reason, nothing Works even InGame! then I tried doing it manually, .Equipped and then .Button1Down and still the same Result :/ nothing in the Output, and everything is fine in my Script :/ if canAttack then canAttack = false Anim = Humanoid:LoadAnimation(animation) Anim:Play() etc etc... nothing works :/
Edit:
tool.Activated:connect(function() if canAttack then canAttack = false local Anim = hum:LoadAnimation(anim) Anim:Play() Anim:AdjustSpeed(0.5) if not canAttack then fist.Touched:connect(Damage) end wait(0.5) canAttack = true end end)
Everything is defined
We can't help you unless you post your script, sir. Some of the rest of your code may have errors in it, you never know. Also, could you supply an output, if there is any?
Put the script in the tool and do this instead;
script.Parent.Activated:connect(function() if canAttack then canAttack = false local Anim = hum:LoadAnimation(--Where your animation is located) Anim:Play() Anim:AdjustSpeed(0.5) if not canAttack then fist.Touched:connect(Damage) end wait(0.5) canAttack = true end end) script.Parent.connect:(Activated)
I dunno if this will work because I need the whole script.