Variables - Roblox Beginners Scripting Tutorial #4 (2024)
Vložit
- čas přidán 6. 08. 2024
- DISCORD 📜
Join my Discord Community if you want scripting help, participate in events/challenges, and make friends!
/ discord
MEMBERSHIPS 🎁
Get Access To My Scripts + More Perks By Becoming a Channel Member! 👇
/ @brawldevrblx
BEGINNER ROBLOX SCRIPTING SERIES 🟢
• Roblox Beginners Scrip...
ROBLOX GUI TUTORIAL SERIES 🎨
• Roblox GUI Tutorial Gu...
ADVANCED ROBLOX SCRIPTING SERIES 🔴
• Roblox Advanced Script...
TWITTER / X 🐦
/ brawlbattlerblx
In this NEW 2024 Guide to Roblox Scripting for Beginner Developers, I will go through everything you need to know to continue scripting on Roblox!
My new mission is to have fun teaching everything I know from developing games on Roblox since 2016. We will dive into scripting concepts as basic as printing to as complicated as raycasting. For every episode of this series, I encourage you to do everything I do to gain experience and let it stick with you so that you can create the games you're passionate about on your own. Enjoy this series and remember: being a competent scripter takes time and effort so don't get discouraged if things get too tricky. Remember where your inspirations came from; if you can be a Roblox scripter, then anyone can!
Tags:
#roblox #robloxstudio #robloxscript #robloxscripting #robloxadvancedscripting #robloxdev #robloxdevelopment #robloxdeveloper #robloxprogramming #scripting #programming #gamedev #gamedevelopment #gamedeveloper #robloxtutorial #robloxscriptingtutorial #howtomakeagameonroblox #robloxhowto #robloxcoding #coding #codingtutorial #codingtutorials #foryou
DOWNLOAD ROBLOX STUDIO HERE:
create.roblox.com
(On the left side under "Quick Links", click on "Studio" and download)
not only did i print numbers..i also printed facts:
local XDagaz = "cool"
local BrawlDev = "awesome"
local Percent = 100
print(XDagaz)
print(BrawlDev)
print("yes")
print(Percent)
Thia is what i did:
local myVariableIsFifty = ("Hey how are you?")
print(myVariableIsFifty)
print(myVariableIsFifty)
print(myVariableIsFifty)
local hello =("I am good")
print(hello)
print(hello)
print(hello)
@@dabent874 when your variable is fifty:
I’m good 😎
I have been learning a lot from your 4 video tutorials i have watched so far. You speak very good and not too fast so i really understand everything that you both show and do :) Incredible videos for sure.
loving the consistency
this playlist is very helpful! i love it. Its helping a lot. Thanks bro
Saved the playlist, this is the best one so far, keep it short and you speak perfectly for us to understand, if I keep this going, I’ll be doing the advanced playlist in no time
Agreed!!
I'm so very glad I decided to watch this I was missing some basics and fundamentals that for sure, hearing about being able to disable and enable scripts in properties opened up so many ideas in my mind. Mostly about making handler scripts to manage other ones, turning them off and on based on variables that occur in the game... so many use cases, thank you!
This guy is underrated for sure Im noticing that Im understanding him far greater than the other creators who create even longer videos about this type of stuff
You answered our prayers, with an advanced series!!!!! :-)
First! And your tutorials is awesome!
thanks this is helping so far
Hey, when the advanced series is back, i have some requests
* Lerping
* Raycasting (because everyone loves raycasting)
* math functions (pi, clamp, round, sqrt, etc.)
yes advanced series plz plz plz plz plz
great video bro
You are such a great teacher!
This is helping me more than other youtubers
As someone creating a lot of unlockable buttons for my Roblox game, this is pretty useful!
Creating tables for Module scripts is just simply too much to manage on a larger scale.
Are still going to post on the advanced tutorials cause i really need it!
brawldev,what do u recomment i asked my friend who can also code and he said i should watch 2 a day of your videos what di u think?
bro this is so useful i just made an example myself i bassically put, local PrintingDataTypes = true and then i changed it to false and it didnt print omg im learning scripting weeeeeeeeee
You explain variables in the same way as my computer science teacher. Very good.
figured that you can put multiple inputs into a print statement so I added a variable to make:
local numvariable = 123
print("ooh hello world! I'm clump, and I'm ", numvariable)
:D
Love it 🎉
ive learnt ALOT. even in 4 videos. oh and yeah:
local myVariableIsFifty = 50
print(myVariableIsFifty)
print(myVariableIsFifty)
print("if run, the prints will show 50, because myVariableIsFifty = 50")
print("these numbers can aslo be booleans,")
local thisIsBoolean = true
print(thisIsBoolean)
print("or strings")
local andThisIsAString = "yuh"
print(andThisIsAString)
HEY! I got just two questions
1: How often will these videos be coming out?
2: Is it worth watching the previous Beginner Scripting Tutorial? Or should I wait for all the episodes in this 2024 series to release
he said in his community post he'll be posting these videos once per day
--variables
local b = 'hello'
local a = 20
if (a==20) then
print(b)
end
this is my code i used an if condition to print something cool i studied a bit of lua long ago thx anyways!
yo, can you make a video about raycasting ?
managed to make a for loop half way through the tutorial based on previous coding experience
Hey, why'd you make a new playlist of the exact same thing?
I am honestly suprised with how well this is teaching me. I want to learn scripting because I already am used to roblox studio and I build stuff when I am bored and with scripting I could make a bunch of games work
This is what I did in this video
local Number = 0.000125
local Number5 = 500039
local Boolean = true
local String = ("This is a string")
local String2 = ("This is also a string")
print(Number)
print(Boolean)
print(String)
print(Number5)
print(String2)
print(Number)
This is an example of addition with variables
local twentyFivePlusTwentyFive = "25 + 25 ="
local equalsFifty = 50
print(twentyFivePlusTwentyFive)
print(equalsFifty)
local Variable = 50
local Variable1 = 100
local Variable2 = 150
print(Variable + Variable1 + Variable2) -- This will combine all 3 variables and add them up to eachother then printing it.
omg this is help soo mutch this is what i did: wait(8) print("sigma") wait(4)print(false) wait(3)print(true) wait(5.75)print("local")
local kkk = 100
wait(3)print(kkk)
This is what I did
local myVariableIsFifty = 50
print(myVariableIsFifty)
print(myVariableIsFifty)
print(myVariableIsFifty)
local xVariable = true
local yVariable = false
print(xVariable)
print(xVariable)
print(yVariable)
local zVariable = ("Start a new objective")
print(zVariable)
print(yVariable)
can currencies in game be made like this:
local Coins = 1
print(Coins)
print(Coins)
print(Coins)
print(Coins)
print(Coins)
print(Coins)
print(Coins)
print(Coins)
print(Coins)
print(Coins)
print(Coins)
print(Coins)
print(Coins)
print(Coins)
print(Coins)
print(Coins)
print(Coins)
print(Coins)
print(Coins)
print(Coins)
print(Coins)
(if not i will think of a new way through-out the series)
many devs are literally complaining on the devforum that they got terminated for stupid vague reasons, like misusing roblox system, unauthorized charges, etc.
when you get the chance, can you make a video about 'how to avoid getting terminated from roblox'? so everyone's hardwork doesnt get deleted for no reason in one second.
or at least can you make a video about you telling us what you've been doing and what you've been avoiding for 12 years that helped you safe from roblox terminations?
Sounds like an interesting video idea! I may do something like that in the future!
@@BrawlDevRBLX
thx!
local myVariable = 50
print(myVariable)
print(myVariable)
print(myVariable)
local xyPractice = true
print(xyPractice)
print(xyPractice)
this is the best tutorial i aint gonna lie i had no experience with lua scripting neither any scripting things but im really starting to understand thanks to you
Fr the learning objective idea he has came up with is really helpful and helps us to learn better or revise like it's a homework
i was just practicing making new variables and putting different DataTypes: local MyVariablediffname = 100
print(MyVariablediffname)
print(MyVariablediffname)
print(MyVariablediffname)
print(MyVariablediffname)
print(MyVariablediffname)
print(MyVariablediffname)
local Hotdog = true
print(Hotdog)
print(Hotdog)
print(Hotdog
local Lamborghini = -1000
print(Lamborghini)
print(Lamborghini)
Can you make an inventory system tutorial that uses modules with armor i cant find anything like it :(
All i can find has to do with folder usage and values for example a folder called inventory inside player acting much like a leaderstats and uses a value to keep track of how much wood (example) the player has as a value object but i feel that that can be easily hacker or manipulated also i wanted more drag to main hotbar instad of equip button because i feel its easier on mobile gameplay
--You can make a Variable instead of Copy Pasting the same value or editing them individually
local MyVariable = 100
print(MyVariable)
local Damage = 10
print(Damage)
local MagSize = 30
print(MagSize)
local MoveSpeed = 15
print(MoveSpeed)
local m1 = game.Workspace.Baseplate
if 2 + 2 == 4 then
m1.Anchored = false
end
hi typed up a boolean and it said nil in the output
For the learning objective I did:
local myVariable = 100
print("The number is now " .. myVariable) -- remember to add space at the end of the string
local myVariable = myVariable + 50
print("The number is now " .. myVariable)
local myVariable = myVariable - 50
print("The number is now " .. myVariable)
my english is 8\•10 but this is help so mutcht ty for this and alll vid:)
--booleans
local trueVariable = true
print(trueVariable)
print(trueVariable)
print(trueVariable)
local falseVariable = false
print(falseVariable)
print(falseVariable)
print(falseVariable)
local l = 1
local u = 2
local a = 3
print(l)
print(u)
print(a)
--strings i think?
local name = 'insert name'
local height = 'insert height'
local robloxuser = 'insert robloxuser'
print(name)
print(height)
print(robloxname)
-- Variables
local myPart = 50
local NotmyfavPart = 150
print(myPart + NotmyfavPart)
can you make a tutorial on type checking
When we return to the advanced series!
@@BrawlDevRBLX and what about instance.fromexisting?
local num = 10
print(num + num)
with
- -
you can write notes :D
local skibidi = ("HI")
print(skibidi)
print(skibidi)
print(skibidi)
so i printed "HI" 3 times
i did this i don`t know if i did something wrong.
local myVariableIsFiftyToTheTenthOfTheInfinity = print(false)
print(myVariableIsFiftyToTheTenthOfTheInfinity)
print(myVariableIsFiftyToTheTenthOfTheInfinity)
print(myVariableIsFiftyToTheTenthOfTheInfinity)
print(myVariableIsFiftyToTheTenthOfTheInfinity)
print(myVariableIsFiftyToTheTenthOfTheInfinity)
print(myVariableIsFiftyToTheTenthOfTheInfinity)
print(myVariableIsFiftyToTheTenthOfTheInfinity)
print(myVariableIsFiftyToTheTenthOfTheInfinity)
print(myVariableIsFiftyToTheTenthOfTheInfinity)
roblox studio broke my heart
local myFIRSTvariableEVER = "my first variable EVER!!"
wait(1)
print(myFIRSTvariableEVER)
local myFIRSTvariableEVER = "i redefined the variable"
wait(1)
print(myFIRSTvariableEVER)
local myFIRSTvariableEVER = "the name may be the same, but is it truly.. myFIRSTvariableEVER?!"
wait(1)
print(myFIRSTvariableEVER)
cool had me practising for a whi;le thnx s much
local stringWord = "Loco gone whild!"
print(stringWord)
local whatIsOutcome = 'Got results'
print(whatIsOutcome)
local useThisnumber = 90
print(useThisnumber)
local anotherNumber = 9.99
print(anotherNumber)
when run it results -
Loco gone whild!
Got results
90
9.99
For Objective:
local Variableis50 = 50
print(Variableis50)
print(Variableis50)
print(Variableis50)
local Opinion = "This tutorial is great :)"
print(Opinion)
local Abhahubadhsh = "Scripting makes me want to bang my head against the wall"
print(Abhahubadhsh)
local Number = 12
local AddFifty = Number + 50
print(AddFifty)
local AddSixty = Number + 60
print(AddSixty)
print(AddFifty, AddSixty)
I've been storing the scripts in a rainbow staircase starting from episode 3 :)
enough now rest for the tommorow
again, i thought youre gonna say my name is brawlbattle
local num = 50
Bool = true
String = ("Hello")
print (num)
print (Bool)
print (String)
What I did:
local myVariableIsFifty = 50
print(myVariableIsFifty)
print(myVariableIsFifty)
print(myVariableIsFifty)
local variableBoolean = true
print(variableBoolean)
print(myVariableIsFifty)
local string = "Hello World!"
print(string)
local factTrue = "awesome."
print("This game is")
print(factTrue)
Real life
We learn accepting the sad true
Local myExam = 0
print(myExam) ( Biology)
print(myExam) ( Math)
print(myExam) (Spanish)
local Dazzle = 10
print(Dazzle)
local GrumpyCat = 5
print(GrumpyCat)
wait(0.5)
print(GrumpyCat + Dazzle)
local aCoolVariable = true
local hiGuys = 'love you'
local iDontLikeScripting = false
local iThinkProgrammingIsPoetry = true
print(aCoolVariable)
print(hiGuys)
print(iDontLikeScripting)
print(iThinkProgrammingIsPoetry)
Simple stuff but i am loving to learn it
local math = 5+5
print(math)
wait(3)
local math2 = 10+10
print(math2)
wait(3)
local math3 = 20+20
print(math3)
Variables are cool, like your videos
local myVariable = ('Im very cool ;0')
local alsoMyVariable = ('Im cool too :D')
print(myVariable)
print(alsoMyVariable)
local Mathics = 50
local Divide = 20
local Amazed = "Wow that equals 70"
print(Mathics + Divide)
print(Amazed, "keep going")
local myVariable =500
print(myVariable)
print(myVariable)
print(myVariable)
local chcikennuggy = -90
print('chickennuggy')
print(chickennuggy)
local hopscotch =21
print(hopscotch)
i printed this things KKKK
local miringuicho = 100
local edadChino = 13
local nombreChino = "eder moises miringuicho"
print(miringuicho)
print(edadChino)
print(nombreChino)
local myVariableIsThirtySix = 36
local ballOfYarn = 'a string'
local space = true
print(myVariableIsThirtySix)
print(myVariableIsThirtySix)
print(myVariableIsThirtySix)
print(ballOfYarn)
print(space)
local myVariable = 50
print(myVariable)
local myVariable2 = 35
print(myVariable2)
end
end
my doing (very sigma ig):
print(false)
print(true)
print(420)
print(-69)
print(420.69)
print("This is less cool(it has double quotes so its usual)")
print('This is so cool(it has single quotes so its supposed to be cool cuz its not ussual(yippe)) ')
wrong video ;skull;
local variableNumber = 20
print(variableNumber)
print(variableNumber)
local Boolean = 70
print(Boolean)
print(Boolean)
print(Boolean)
local Burger = ("delicious")
local Delicious = ("Burger")
local is = ("is")
print(Delicious)
print(is)
print(Burger)
local MyVariable = 100
local Variable = 50
local AnotherVariable = 20
print(MyVariable)
print(AnotherVariable)
print(Variable)
local h = "hey"
local t = true
local f = false
print(h)
print(f)
print(t)
3:35 But why?
local vaccuum = true
print(vaccuum)
print(vaccuum)
popcat = false
print(popcat)
print(popcat)
local Yes =print("Hello World")
i made this lol
local chicken ="i"
local chicken2 ="am"
local chicken3 ="sigma"
print(chicken)
print(chicken2)
print("you are what?")
print(chicken3)
print('you are not sigma lol')
print(chicken3)
print("oke that is just")
print(-10000000)
print("aura")
local notFifty = 49
print(notFifty)
local numberVariable = 10
local booleanVariable = true
local stringVariable = "Yes"
print(numberVariable)
print(booleanVariable)
print(stringVariable)
local myVariableIsFifty = 50
print(myVariableIsFifty)
print(myVariableIsFifty)
print(myVariableIsFifty)
local FalseVariable = false
print(FalseVariable)
local TrueVariable = true
print(TrueVariable)
local HelloWorldString = "Hello World"
print(HelloWorldString)
print(HelloWorldString)
print(HelloWorldString)
My Variable :
local MyFavoriteMemberIsFive = 5
print(MyFavoriteMemberIsFive)
print(MyFavoriteMemberIsFive)
print(MyFavoriteMemberIsFive)
local SetbooleanTrue = true
print(SetbooleanTrue)
print(SetbooleanTrue)
local SetbooleanFalse = false
print (SetbooleanFalse)
local myVariableisOne = 1
print(myVariableisOne)
local Variable = 122
print(Variable)
print(myVariableisOne)
local myVariablesix = 777
print(myVariablesix)
print(myVariableisOne)
print(Variable)
print(myVariableisOne)
print(myVariablesix)
local Variable2 = true
local variable3 = false
print(true)
print(false)
print("THANKYOU BrawlDev mwa mwa")
local myVariableIsFifty = 50
print(myVariableIsFifty)
print(myVariableIsFifty)
print(myVariableIsFifty)
local oneHundredsTheGoat = 1000
print(oneHundredsTheGoat)
print(oneHundredsTheGoat)
print(oneHundredsTheGoat)
this is what i made
local monkey = 'Steve:Lets Play 2 Truths And 1 Lie'
local sure = "John:il go first i killed a man"
local op = "John:i like nuts and i was born in november"
local hah = 'John:haha u got me!'
print(monkey)
print(sure)
print(op)
print("Steve:i though u hated nuts")
print("silence is so loud it can be heard...")
print("Steve Died ur next")
This is what I made:
local MyNum = 10
local MyName = ("Jon")
local MyVal = (false)
local MyCount = 0
print(MyName)
MyCount = MyCount + MyNum
MyNum = MyNum + 10
print(MyCount)
print(MyVal)
DO NOT LIKE THIS VIDEO AGAIN(there is 69 likes as of 6.7.2024.)
169 rn
213 now
Now it’s 269
What I did
local pifgesuatg = 100
local jafg = "idfjoa"
local iodshgiq = true
local iraiap = 'aeooapt'
print(pifgesuatg)
print(jafg)
print(iraiap)
print(iodshgiq)
impressive😅
local myVaribleIsFifteen = 15
local myString = ("Test")
local False= (false)
print(myVaribleIsFifteen)
print(myString)
print(False)
print(myString)
You can do Booleans as variables here’s the script xd
Local ImBadAtScripting = true
Local imGoodAtScripting = false
Print(imGoodatScripting, ImBadAtScripting)
If you want to be good at variables you can learn these
local OneAboveAll = 1
print(OneAboveAll)
local HEHEH = 100
print(HEHEH)
local Variabless = 111
print(Variabless)
Local sayHi = “hi”
Local myName = “my name is Enzo”
Local iWantToBe = “i want to be a”
Local answer = “Roblox devloper”
Print(sayHi)
Print(myName)
Print(iWantToBe)
Print(answer)
uhh yeah heres what i did ig
local hotdog = 69
print (hotdog)
print (hotdog)
print (hotdog)
local pizza = "yap"
print (pizza)
local spg = false
print(spg)
local myName = "YourNameHere"
local myAge = 200
local myHeight = 1100
local myWeight = 10013
print(myName)
print(myAge)
print (myHeight)
print(myWeight)
local aSentence = "Starting off."
local aBoo = true
local aNumber = 1010
print(aBoo)
print (aSentence)
print(aNumber)
local booLang = false
print(booLang)
local maZonIsSigma = "Sigma"
print(maZonIsSigma)
print(maZonIsSigma)
print(maZonIsSigma)
print(true)
print(false)
print(100)
print(-100)
print(100.50)
print("this is a string ")
print("this is a string ")
print(false)
print(false)
print(100000000012331231231232131232131232132132132131543.80)
i think its funny that every video has less and less views
they are dropping like flies!
So many people gave up it went from 14k views to just 3k now. Don’t give up!
local chickenugget = I
local amogus = iam
local help = kind
print(chickenugget)
print(amogus)
print(help)
local myVariable = 100
local myBoolean = true
print(myVariable)
print(myVariable)
print(myVariable)
print(myBoolean)
print(myBoolean)
print(myBoolean)
local number = 69
print (number)
local myv = 100
local myx = 20
print(myv + myx)
print(myv)
print(myv)
print(myv)
print(myx)
print(myx)
print(myv - myx)
print(myx - myv)
print(myx * myv)
local X = "lol"
local Y = 5
local Z = true
local W = false
print(X)
print(Y)
print(Z)
print(W)
local oogaBooga = 12
print(oogaBooga)
print(oogaBooga)
print(oogaBooga)
local myVariableIsFifty = 50
print(myVariableIsFifty)
print(myVariableIsFifty)
print(myVariableIsFifty)
BrawelDev > all devs
you again?
i too am a muslim
@@Ambush715 i know bro eid mubark
Eid mubarak to you too!