so iv been trying to make my first game the idea is you get Teleported to a map you get a sword and the last person to die wins and gets points iv been trying to fix this problem for days but them i tried to run a code under a while loop and it didn't work? so then i made a short script to test if anything under will run and it didn't Any Help? Here's the simple script:
while wait() do
print("In side loop print")
wait(10)
end
print("Outside loop print")
As you see it doesn't print OutSide loop print Any Help?

5 comments
put "break" under wait and see what happens
Reminder that while loops will always run on themselves until broken. Ignoring the code outside. Breaking the loop allows the script to continue executing code.
This loop will continue running until true is no longer true. Put "break" so it exits the loop.
use spawn(function(), it creates a seperate thread of what you want. which allows you to run a loop and print outside the loop.
use spawn(function(), it creates a seperate thread of what you want. which allows you to run a loop and print outside the loop.