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

I need help with alot of things like loops A little with functions and much more PLS HELP?!

Asked by 9 years ago

I need help with loops,functions,making a game with the things I know.

2 answers

Log in to vote
0
Answered by 9 years ago

Be a bit more specific...?

Ad
Log in to vote
0
Answered by 9 years ago

Loops:

while (Condition) do
    COMMANDS
end

for (Variable Declaration, COondition, Callback = +1) do
    COMMANDS
end

do
    COMMANDS
while(Condition)

Functions:

function Foo(local bar)
    bar = bar + 5;
    return bar
end

print(Foo(5)) --Prints 10

Kinda short, but I hope it helps :)

Answer this question