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