Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to end a while true do? [closed]

Asked by 4 years ago

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

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.

Closed as Not Constructive by zblox164 and chess123mate

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 4 years ago

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.

Ad