Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does wait() get messed up and slower over time?

Asked by 2 years ago

Over time, the block disappearing and reappearing becomes slower. Why is this?

Sorry if this is bad code and all that, I am new to scripting.

local block3 = game.Workspace.epics2.Union2

repeat
    wait(0.1)
    block3.Transparency = 1
    block3.CanTouch = false
    wait(9.5)
    block3.Transparency = 0
    block3.CanTouch = true
until false
0
Try task.wait() ? It is better SuperPuiu 497 — 2y
0
If someone had an FPS unlocker and a good PC then task.wait() can be really fast, but wait() runs at 30hz and sometimes even less. task.wait() has a refresh rate depending on someone's FPS MarkedTomato 810 — 2y

Answer this question