Hi I need some help with making a sword, that doesn't one hit players. I tried fixing it so many times but It wont work. I need some help! Here is my script:
local sword = script.Parent
debounce = 2
notfree = false
local function slash()
if notfree == false then
sword.blade.Touched:Connect(function(hit)
human = hit.Parent:FindFirstChild("Humanoid")
if human then
human:TakeDamage(20)
end
notfree = true
end)
end
end
sword.Activated:Connect(slash)
sword.Deactivated:Connect(function()
wait(debounce)
notfree = false
end)

2 comments
WHat do you mean by "Not One Hitting a player"?
I mean dealing only some damage and not instantly killling them.