repeat wait()  until _G.ChatHistory 
print("EXISTS") 

Is this right or is there a better way to do this...

Any help will be upvoted