_G.DamageOverTime = function(Humanoid,Dmg,Time,STEP)
--Step = 0.15
local t = 0
repeat wait(STEP)
t = t + STEP
local currentDamage = ? -- Insert here
Humanoid:TakeDamage(currentDamage) -- ?
until Humanoid == nil or Humanoid.Parent == nil or t >= Time
end
How would I make it so every “STEP” it does a certain amount of damage so that by the time it has reached the given “Time” it has done the full “Dmg”?