I want to stop a value changing so the stun wont become false during wait. (Without using loops otherwise it crashes the game/makes it really laggy)
--V is a character
--Stunned is a bool value
task.spawn(function()
v.Stunned.Value = true
--v.Stunned.CanChange = false
wait(stunTime)
--v.Stunned.CanChange = true
v.Stunned.Value = false
end)

2 comments
Are u 100% sure its happening during the wait?
You could create a second bool value named StunnedCanChange, and set and check that when you want