Roblox Beginners Scripting Tutorial 11 - Logical Operators

preview_player
Показать описание

This is quite an interesting thing to know. It's also quite important in order to save lines in your code.

Got any questions or suggestions for this video? Leave it in the comments.
Рекомендации по теме
Комментарии
Автор

Hopefully he looks at his You tube channel again and sees how much we all appreciate his videos and how he makes it more easier to learn then other videos.
Thank you.

robloxianmaniac
Автор

Even tho I tried to learn from AlvinBlox you gave me hope on scripting

oskdontpeek
Автор

I love your vids. You actually explain it well! I've learned so much from you i can't learn other places. I've tried other ways but could never understand = and ==. Now i do! THANK YOU!

thatguyschannel
Автор

If statements are really helping me, I created a script where if somebody falls on a layer of wall it breaks, all though I had to learn from another vid about humanoid touch, this still helped me and thank you! 🌝

oskdontpeek
Автор

1:44 he's teaching someone else on skype

csyphes
Автор

Wow my brain has gotten 2X bigger so thats why ppl suggest you Congrats you got a new sub :D

jbcboxer
Автор

although some stuff might be outdated, this has sitll helped a ton i wish i found this sooner

sunirl
Автор

This is epic. Detailed as well as informative.

MrRandomallthetime
Автор

Remind me a lot of logic gates.

or = 1 or the other or both
and = both but not one
not = opposite of the input

Thanks for these videos, they're amazing!

darthmidir
Автор

--Logical Operators


--[[


+ = addition symbol


- = subtraction symbol


* = multiplication symbol


/ = division symbol


== = saying if it equals something, not setting it equal too


and = adding on another condition for a statement


or = giving another option for a conditions statement


false = saying that a statement is false


true = saying a that a statement is true


]]

parkeros
Автор

Im gonna be so happy when I finish this, I've got 10 more vids till I know how to script or edit a script

calcumalations
Автор

This is actually really easy and really useful to save some lines. Thank you for teaching me another script tip and another script.

eeway
Автор

if true then
print('hi')
end


if false then
print('hi')
end






if not false then -- if it isn't false then it must be true
print('hi')
end




if not true then -- if it isn't true then it must be false
print('hi')
end


-- In all "if statements" the print will only work if the "statement" is true
--From roblox wiki, "the not operator returns true if the argument is false or nil, otherwise it will return false"

ekjotkaila
Автор

I ran out of fun roblox games so I’m just gonna make my own. That’s my motivation.

twistedfoot
Автор

I cant stop thinking about bingbongshonglongtong is online

alexmdm
Автор

script.Parent.Anchored = true

myBoolean = true

if not myBoolean then
script.Parent.Anchored = not script.Parent.Anchored
end


did i done this right?

aestrecaz
Автор

For print string you dont have to have the () only like print’your message’

ouz
Автор

I made a function out of this:
-- too smart 4 u


variable1 = 2

function nerd (e2)
if variable1 == 1 or variable1 == 2 then
print(e2)

end
end

nerd(4)

pixel
Автор

I love peaspod's tutorials. Here's something I made with the "if, Elseif, (although it doesn't involve Elseif statements), and else statements.

ABOUT: It's a little math quiz, but you don't answer.
NOTE: Needs to be inside a part.

SCRIPT:

if 1+1==2
then
= BrickColor.new "Bright green"
else
= BrickColor.new "Bright red"
end
wait(10)

if 2+2==5
then
= BrickColor.new "Bright green"
else
= BrickColor.new "Bright red"
end
wait(10)

if 3*3==9
then
= BrickColor.new "Bright green"
else
= BrickColor.new "Bright red"
end
wait(10)

if 1+1==2
then
print(1)
else
print(0)
end

if 2+2==5
then
print(2)
else
print(0)
end

if 3*3==9
then
print(3)
else
print(0)
end

supermario
Автор

This guy needs more subscribers so he can be recognized more.

sauce