I'm trying to create a script that stops until a NumberValue in workspace is a certain value.
Example:
game.workspace.part.transparency = 1 wait(game.workspace.value.value == 100) -- Trying to have the script stop here until the value = 100 game.workspace.part.transparency = 0
Definitely don't know how to do it, thank you in advance.
The argument for wait is a number, not a boolean value.
what you want to do is this:
workspace.part.Transparency = 1 --since this is an intvalue, 'value' will just be the number. workspace.Value.Changed:Connect(function(value) if value == 100 then workspace.part.Transparency = 0 end)