Hi i have a script that removes a few parts and clones a few but after it finishes it doesnt do it again even though i used repeat until and at the until i Nevers value is just a variable that will never change so the script will always repeat.
repeat
wait(20)
game.Workspace.Block.CanCollide = false
wait(77)
game.Workspace.Train:remove()
game.ReplicatedStorage.Train:Clone().Parent = game.Workspace
game.Workspace.Train:MakeJoints()
game.Workspace.Block.CanCollide = true
game.ReplicatedStorage.SpawnAll:Clone().Parent = game.Workspace
wait(4)
game.Workspace.SpawnAll:remove()
game.Workspace.Block.CanCollide = true
until
game.Workspace.Never.Value == 1
Fore some reason the script only does this once and doesnt repeat like it should

2 comments
Why is line 14 necessary? If it is an 'IntValue' type instance, and it's Value property is equal to '1', then the loop WILL stop, Also, the 'until' keyword is the code that ENDS the block of code, but also says 'repeat code until condition', meaning it will REPEAT the code inside the loop UNTIL the CONDITION is MET.
@SirKitten; We don't have any idea why your code isn't repeating. Even just the way you have it, nothing indicates that the code is broken in any way. Are you getting any errors in the Output? The long waits may be hiding the fact that some part of your code is broken.