cd = false
anim = script.Parent.Parent.Humanoid:LoadAnimation(script.Parent.Animation)
script.Parent.Activated:Connect(function()
if cd == false then
print("OVERDRIVE")
script.Parent.OverDrive.Playing = true
cd = true
anim:Play()
script.Parent.Parent.HumanoidRootPart.Anchored = true
script.Parent.Parent.HumanoidRootPart.Touched:Connect(function(touch)
if touch.Parent:FindFirstChild("Humanoid") then
touch.Parent.Humanoid:TakeDamage(30)
end
end)
wait(6)
script.Parent.Parent.HumanoidRootPart.Anchored = false
cd = false
end
end)
COMMUNITY QUESTION
How do I stop this from repeating damage? This Is a tool Btw
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
