If I take debounce off from local script, it'll work. However, it'll hit multiple times. Can someone help?
This is my script
local module = {} local debounce = false function module.FireHot(hit) local parent = hit.Parent if (parent) then local hum = parent:FindFirstChild("Humanoid") if (hum) then for i = 1,5 do hum:TakeDamage(2) wait(2) end end end end return module
This is my module script
local module = {} local debounce = false function module.FireHot(hit) local parent = hit.Parent if (parent) then local hum = parent:FindFirstChild("Humanoid") if (hum) then for i = 1,5 do hum:TakeDamage(2) wait(2) end end end end return module