function wait_time(z)local p=tick()local R=(game:GetService("\082\117\110\083\101\114\118\105\099\101")).Heartbeat repeat R:Wait()until tick()-p>=z return tick()-p end
-- a better alternative implementation for the wait function
function wait_time(duration)
	local start = tick()
	local Heartbeat = game:GetService("RunService").Heartbeat
	repeat
		Heartbeat:Wait()
	until (tick() - start) >= duration
	return (tick() - start)
end
