ArtificialHB=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116",script)ArtificialHB.Name="\072\101\097\114\116\098\101\097\116"script:WaitForChild("\072\101\097\114\116\098\101\097\116")frame=.016666666666667 tf=0 allowframeloss=false tossremainder=false lastframe=tick()script.Heartbeat:Fire();(game:GetService("\082\117\110\083\101\114\118\105\099\101")).Heartbeat:connect(function(c,E)tf=tf+c if tf>=frame then if allowframeloss then script.Heartbeat:Fire()lastframe=tick()else for c=1,math.floor(tf/frame),1 do script.Heartbeat:Fire()end lastframe=tick()end if tossremainder then tf=0 else tf=tf-frame*math.floor(tf/frame)end end end)

ArtificialHB = Instance.new("BindableEvent", script)
ArtificialHB.Name = "Heartbeat"
script:WaitForChild("Heartbeat")

frame = 1 / 60
tf = 0
allowframeloss = false
tossremainder = false


lastframe = tick()
script.Heartbeat:Fire()


game:GetService("RunService").Heartbeat:connect(function(s, p)
	tf = tf + s
	if tf >= frame then
		if allowframeloss then
			script.Heartbeat:Fire()
			lastframe = tick()
		else
			for i = 1, math.floor(tf / frame) do
				script.Heartbeat:Fire()
			end
			lastframe = tick()
		end
		if tossremainder then
			tf = 0
		else
			tf = tf - frame * math.floor(tf / frame)
		end
	end
end)