Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Timed Update?

Using something like RenderStepped or heartbeat, how can I time these to fire at the same rate for everybody? Is this even possible?

3 comments

0

while wait() do will fire at the same time for everyone. FireAllClients will fire at the same time for everyone.

0

^ Anything that will go faster than 1/30th of a second?

0

You can't c:

2 answers

Try Making a script in client: PS This function is really fast so i Think theres no need to Make Remote functions, etc..

game:GetService"RunService".RenderStepped:connect(function()
-- Your function
end)

2 comments

0

"same rate for everybody" That is different for everybody.

0

This is same rate.. Emm its about 10 tick i dont remember. But its same rate

Compensate

Use the time difference between iterations.

game:GetService("RunService").RenderStepped:connect(function(delta)
  -- code
end)

Where in this instance delta is how many seconds since the last iteration. You can use this as x*delta to mean x per second.

This discussion is preserved as it was. New answers, comments, and votes are closed.