Hello!
I was doing a booking system (tutorial by Jhxan) when at one moment the Roblox Output showed me that there was a possible infinite yield on the line 52 and here's the script that is concerned :
`-- button detections
adminFrame:WaitForChild("publicBtn").MouseButton1Down:connect(function()
print ("Hello! The script works")
hideAll("startFrame")
end)
lastFrame:WaitForChild("adminBtn").MouseButton1Down:connect(function()
hideAll("adminFrame")
end)
lastFrame:WaitForChild("backBtn").MouseButton1Down:connect(function()
hideAll("bookingFrame")
end)
startFrame:WaitForChild("adminBtn").MouseButton1Down:connect(function()
hideAll("adminFrame")
end)
startFrame:WaitForChild("startBtn").MouseButton1Down:connect(function()
hideAll("bookingFrame")
end)`
If someone could help me to fix this mess, that would be great!

2 comments
And the editor did that the "end)" is after hideAll but it is at the next line.
My eyes hurt from looking at the script, plz make it code blocks and, if you find a WaitForChild() anywhere, change it to FindFirstChild()