Beginner’s Roblox Scripting Tutorial #8 – If Statements (Beginner to Pro 2019)
Hey guys, in today’s video I am going to be teaching you about if statements. Now these are very important because you will use these all the time when you are scripting and they are useful for finding out values of variables. If statements are pretty easy though so no need to worry. As always if you have any questions be sure to leave a comment, and I will get back to you as soon as I can! I hope you guys enjoy the video and I’ll see you tomorrow!
Link to Beginner’s Tutorial Series:
https://www.youtube.com/playlist?list=PLhieaQmOk7nIfMZ1UmvKGPrwuwQVwAvFa
/>
— Follow me on twitter! (my name is tapwater because thats my main channel): https://twitter.com/realtapwater
— Join my Discord Server to learn and meet other developers!–
https://discord.gg/FKcSyRh
–What is this series about and who is it for?
So this series is meant for people who really want to learn exactly how to script, if that is you then I promise by the time you watch this whole series you will know exactly how to script on roblox. Anyways be sure to subscribe to see whenever I release a new tutorial and I will see you guys in the next one. Peace!
Hey guys! Be sure to join the discord server if you have any questions or if you would like to meet me! https://discord.gg/FKcSyRh
For who still doesent get it it's simple it's just like if this block is anchored then play that music or something, and for who doesent understand wait you just put wait(any number) and the number you put next to wait is how many seconds it will wait and after the seconds finishing you have to put a script after the wait and it will play the script after waiting
Im a few months into scripting. Watching through the playlist for beginners to refresh! This one caught my attention pretty awesome if statement tutorial!
THATS THE MOST EXPLAINED AND BASIC THING YOU EXPLAINED ME, here is a script that makes the baseplate invincible after 3 seconds:
local Cheese = true
if Cheese == true then
wait(3)
game.Workspace.Baseplate.Transparency = 1
end
Really great tutorial thanks for the tip at the end.
equa lto equal to be like…
a cool script
local x = 3
local y = 9
if x == 3 and y == 9 then
print("YES")
end
if x == 4 or y == 9 then
print("MAYBE")
end
if x == 5 and y==7 then
print("PROBALLY")
else
print("NO")
end
if your not gay wait (2) then like my comment
When i try to use equal on if statement, it turns into an error. How to fix that?
Edit: I figured out that I need 2 equals
ok watching this in 2024 is pretty cool.
❤ Thanks for Tutorial!!!