So i want to prevent this script from damaging the same humanoid twice while still being able to damage other ones, just not multiple times.
wait()
script.Parent.Touched:Connect(function(hit)
local h = hit.Parent:FindFirstChild("Humanoid")
local dmg = 15
if h~=nil then
h:TakeDamage(dmg)
end
end)

8 comments
Oh by the way, to reset the table, put this in the script anywhere --> touched = {}
Doesn't seem to be doing any damage, i'm trying to find the error but there doesn't seem to be any.
strange, add a wait(3) to the top and tell me if you find any errors
no errors, but it doesn't work either
OOOH IK WHY, TRY NOW!!!
I forgot ".Parent" I am so clumsy ;(
Ik i saw that but even after i changed it, still nothing :(
Try debugging it with prints...