Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how to end a while true do?

21:38:19.155 - ServerScriptService.Main Script:163: 'end' expected (to close 'while' at line 17) near ''

IDK WHAT 2 DO PLZ HELP ME i was watching a tutorial but there were 3 episodes that r 1h long each. idk where i messed up.

1 answer

Your while loop has to be structured like this:

while true do
print("Your code here")
end

If you don't put 'end', your script wouldn't know which blocks of code needs to be ran in the while true do loop.

This discussion is preserved as it was. New answers, comments, and votes are closed.