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

2 comments

0

Try task.wait() ? It is better

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