Roblox Lua Tutorials - 6: if, else and elseif statements

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

ive been watching this nonstop! its very helpful, but ineed a break. Time to play some already scripted games

JohnMerdo
Автор

@DanAppStu It stands for 'Not In List' in Pascal, which is an old programming language, but not in Lua or any other language I know.

ThePighead
Автор

@DanAppStu I'm going in an order that doesn't cover random things unless necessary on purpose, the only tutorial I was forced to do that in was the 'built-in functions' tutorial. I'm teaching scripting in Roblox, and the idea is once you've learnt enough you'll be able to work out how to weld objects by yourself.

ThePighead
Автор

thanks man your realy helping me with scripting XD

yoyobeerman
Автор

@DanAppStu nil DOES NOT stand for Not In List. It's an adjective for 'non-existent' or the noun for 'zero'.

ThePighead
Автор

Yes you can. To do this you would need a function (in the next tuturial). LOL, I am advertising thepighead's vids :P.

cardgamechampion
Автор

Can you make where you step on a block and it changes the variable is == to a different number?

John
Автор

Okay.
That makes things easier for me.
I have said nasty things to that guy below, (Not Tempodoa).

zekromk
Автор

So basically scripting is a whole bunch of simple things mixed together to make complicated and very good games. Am I right?

zekromk
Автор

@ThePigHead10
Is this stuff easy for you? Or is it just one sort of 'building block' for making games?

zekromk
Автор

If I put a as a random value using random(100, 1) will it still work?

eee
Автор

You can, buts thats pointless and time waisting. Just do somthing like


myproblem = 1 * 2 [ Replace the 1 * 2 with the problem]
print (myproblem)

ikyogre
Автор

The "If" statement is EXACTLY like

acarroll
Автор

ThePigHead10
What's your roblox character name?

zekromk
Автор

So you can use Lua Scripting as a calculator xD?

tempodoafromroblox
join shbcf.ru