Repeat loop dont work

For some reason, the loop keeps on going even when the Playing BoolValue is true, I have tried printing it and it says its true when it needs to be but the loop keeps on going.

if data.quest1 == "begin" then
	print("starting")
	repeat 
		task.wait() 
			
			
	until playing.Value == true
	print("playing")
	Wiki.begin.action(plr)
end

Hello! Can you show where you define “playing”. And just to confirm is playing a BoolValue?

image
image

Alrighty, do you parent the cloned playing instance anywhere or do you just keep the Clone in the script?

Wait I just realised that it only sets it true on the client, so I might need to fix that

1 Like