Aight so the animation when I click plays when i press but the hit the :TakeDamage(60) happens right away when I don't click like if I just get the Handle(The handle is a square part ) it does damage right away how can i make it so that only if i click it does damage
tool = script.Parent
Handle = tool:WaitForChild("Handle")
player = game.Players.LocalPlayer
mouse = player:GetMouse()
Animation = tool:WaitForChild('Anime')
AnimationTime = true
tool.Equipped:Connect(function()
print(tool)
end)
tool.Activated:Connect(function()
if AnimationTime then
AnimationTime = false
local AnimationPlay = player.Character.Humanoid:LoadAnimation(Animation)
AnimationPlay:Play()
wait(1)
AnimationTime = true
end
end)
Handle.Touched:Connect(function(hit)
debounce = false
if hit and tool.Activated then
Humanoid = hit.Parent:FindFirstChild('Humanoid')
if Humanoid then
Humanoid:TakeDamage(60)
wait(1)
end
end
end)

2 comments
Please provide some explanation to your code and what you're trying to accomplish.
Im trying to make it so that only when I click it does damage because If i have that tool out and it touches a Humanoid it does damage and instakils right away