local ElevatorPlayers = game.ReplicatedStorage.Players.PlayerValue.Value repeat until ElevatorPlayers == ElevatorPlayers >1 print("Sucsess") wait(5)
ServerScriptService.ElevatorScripts.Script:5: attempt to compare number with boolean Output error
Hello, hokyboy!
repeat until
works as loops that waits for a certain condition
basically,
repeat (code) until (condition)
Your script should be:
local ElevatorPlayers = game.ReplicatedStorage.Players.PlayerValue.Value repeat wait() until ElevatorPlayers > 1 -- Don't forget waits on all loops print("Sucsess") wait(5)