The only i got from the workshop are the scripts and the files that are used into scripts like a template or something.
But did you get the lite-c.chm help file? That's what you need to read or else you wont understand the scripts.
A while loop runs a code block once every frame until a certain condition is false... Here's an example.
Say i have a health pack object, and when the player touches it his/her health is increased.
var player_health = 50; > this is a variable to hold the player's health
while(player is touching health pack) // check if player is touching health pack
{
player_health +=1; > add 1 to the players health
wait(1); > resume other functions
}now this while loop checks if the player is touching the health pack and if so, runs whatever is inside the {}. If the player isn't touching the health pack, then it returns false and the code is not run, the health is not increased.
Loops are fundamentals in programming. They are the easiest way to repeat code sections again and again, without having to re-write each line.