(When answering, you do not need to answer every question, even answering one will help!)
What I am mainly trying to figure out is if you can save a players position every half a second, even through a large lag spike, where the player may look like they teleported (through local or server scripts.) To figure this out, I have some general questions I have struggled to find answers to.
To my knowledge, there are different types of lag spikes (having a low internet speed or low-end device.) I am using the word “lag-spike” to include both, if this difference matters, please mention it in your response.
General questions
- Are local scripts still running during a lag spike?
- If I hold a movement key during a lag spike, will I teleport to the new location as if I held the key for however long the lag spike lasts?
- If I walk forward in front of a thin wall and a lag spike happens, will I go through that wall?
- When players rubberband in Roblox, are their positions being quickly tweened, or are they being teleported?
- If a players position is de-synced from the client to the server, will the player rubberband?
- Can general lag stop or stall local scripts?
- With a heartbeat function, will a local script run multiple times after a lag spike to catch up?