function wait_time(c)local T=tick()local m=(game:GetService("\082\117\110\083\101\114\118\105\099\101")).Heartbeat repeat m:Wait()until tick()-T>=c return tick()-T end

function wait_time(duration)
    local start = tick()
    local Heartbeat = game:GetService("RunService").Heartbeat
    repeat Heartbeat:Wait() until (tick() - start) >= duration
    return (tick() - start)
end
