Alvin, everytime you upload a video, it helps me with at least one thing in Roblox studio. Although I am not the best scripter, I never would have been able to start learning lua and other code without you. The types of things that you make on Roblox inspire me to make my own games and keep trying, even when my script doesn’t work. Thanks for all of your help!
@@hedgehog8485 ah but you see you have defined the variable as "Find", but when you tried to call it you have spelt it as "find", meaning Daler is still dead. RIP Daler
you're such an amazing teacher. I've actually been using your lessons to code because I joined a group of people recently who have a creature game they want to make but we don't have a programmer yet so I decided to try and learn, though I also do the art for the creatures. I'm super excited to keep learning from these videos and hopefully really be able to make a game with what I've learned from you.
bro ur the best guy ever, i've always wanted to learn how to script but it seemed like its alot to learn and you need to wait alot so you can make a proper script but now im at your 9th lesson and this is surprisingly not boring as it is at school and its fun!
Thx for making the beginner scripted series Alvin! I knew most of the videos you did, but you made me understand them even better than any other youtuber can do! I enjoy watching your tutorials! Keep up the good work!
so true Alvin is like always so kind and is like taking free tuition. like almost 99.99% of the people here who concentrates on everything he says are to learn scripting for sure.
Hi Alvin, i am founding like 1 year of script where "If player is in some bath "aka i think some Part" then he got let say points 2 times added to stats" if u know in Super Power Training simulator i mean something like (city port) or tornado if u know game u know what i mean so if u can, please make video or message me back thanks you, Ps: i looked anywhere [Like so he see please]
If you need help with parent and child look in the properties of the thing you want to find the parent for and it should be there but thanks for all you've done Alvin your a real one :)
Reminder that: local myClone = game.Workspace.Part:Clone() myClone.Parent = game.Workspace and game.Workspace.Part:Clone().Parent = game.Workspace both create the same duplicate part. It just gets rid of the variable created with "local myClone". Which means if you want to create 5 parts of the same block, the script would look like this: local myClone = game.Workspace.Part:Clone() myClone.Parent = game.Workspace myClone.Parent = game.Workspace myClone.Parent = game.Workspace myClone.Parent = game.Workspace myClone.Parent = game.Workspace or game.Workspace.Part:Clone().Parent = game.Workspace game.Workspace.Part:Clone().Parent = game.Workspace game.Workspace.Part:Clone().Parent = game.Workspace game.Workspace.Part:Clone().Parent = game.Workspace game.Workspace.Part:Clone().Parent = game.Workspace They both do the same, but with the variable the code just becomes a lot more structured.
@@Andrew-nl4jf I apologize for my condolences but it seems that the code is actually i = 0 while i < 5 do game.Workspace.Part:Clone().Parent = game.Workspace i += 1 end If I am wrong, I am sorry again
quick overview Built in Functions are Roblox's premade functions and there are 2 types of built in functions: Member functions and Global functions. AlvinBlox mentioned 5 basic Built in functions that are useful. Member functions are functions that affect an object, while Global functions affect the script. To use a Member function you need to define what part you want and then type a ( : ), then the function you want to use. Example: game.Workspace.part:Destroy() To use a Global function you type it in in what spot of the script you want it to be in, global functions appear blue. Example: wait(5)
ClearAllChildren() will clear all the Objects inside it like "workspace:ClearAllChildren()" it will remove parts mesh part wedge ands any kinds of part will be removed from workspace even a player model will be removed too and it cannot remove the "Camera" , "Terrain" from the workspace.
I would never have been able to learn Lua code and other code without you and your amazing videos. because of this I also keep trying and never give up even if my script doesn't 't work
Hey Alvin can you halps me I am trying to make a script that will respawn a part that I have created with a function every 5 seconds. It will delete it then respawn it in the same position again. I cant find what i am doing wrong. Here is the script: function RespawnPart() local part = Instance.new("Part") part.Anchored = false part.Color = Color3.new(0.384314, 0.219608, 0.109804) part.CanCollide = true part.Material = Enum.Material.Wood part.Position = Vector3.new(-1, 0.5, 6) part.Name = "Car1" part.Parent = workspace end local x = 25 repeat RespawnPart() wait(5) game.Workspace.Car1:Destroy() until x == 30
Wow, AlvinBlox I know how to code in python and this series was VERY easy to pick up! Every time I watched one of your videos it made me want to try something on my own to see if it works and it was just a feeling I didn't get while I learned python. Thanks so much for making these vids I LOVE THEM!!!!
bruh without you i wouldnt know what im doing on studio and id make trash games with no scripting and hardly any effort tysm and keep up the good work mate ur doing well
Hi Mr. Blox of Alvin. I was looking at other UA-cam videos about how to set a safe zone and coding for 2 hours and none of them worked so can you make one since you are the best youtuber I know Thank you for you service To Mr.Blox of Alvin
10:30 indented means on your key board is pressed tab, you can see those used in functions, basically defining is something in something or is it not. function idk() print("something") (youtube neither alot of platforms for searching etc dont support indention or tab character)
if youre wondering how to make it wait in python use this type in import time at the top line and then use time.sleep() and put the seconds u like make sure that its correct as well
If someone's watching this in august 2020 Just want to remember that you can also use warn() like a print() they are similar and they work the same, They just change the color of the print
I liked your video, but I don't understand why you have to put the clone part into a variable other than making it easier to type in the future. This is because you can code in (game.Workspace.Part:Clone().Parent = workspace) and it work just like it intended. Good practices perhaps to write it in variables?
if i do something like lcoal part = game.workspace.part:clone part.parent = workspace part:clear all children how would i make it clear the children of both parts?
Very Helpful, I tried it myself and wondered if we are able to clone the parts that has functions added within them? cause at the moment, it looks like I can only clone the end result of what the part will become once the function has ended instead of the beginning of when the function has started
why do we need the parentheses in the built in functions?? like for clearallchildren and clone? alvin pls tell me because i saw scripts where people put something in the parentheses of Clearallchildren.
Anyone confused of Parented by and children thing of it like this. When you have a book, theres a "Table of contents" in it. The "Table of contents" is parented by the book while being the children of the book since it's in it. Anyone expert scripter out there that can tell me if this is a good comparison? Got it from a roblox lua book.
Hey AlvinBloxx, I think I have an idea for a new tutorial. Ever thought of making skateboards? Like scripting an animation for them, making them work, doing the collisions?
Don't forget to use Star code ALVINBLOX when buying Robux or Roblox Premium to support my channel at no extra cost! Thanks!
ok
ok
You deserve more subs
I am #5
I used it :D
10:31
"And all these thicc children"
hoo boy this is so wrong
Amazing. Amazing xD
UwU
that is wrong on so many levels
Oh no
Alvin, everytime you upload a video, it helps me with at least one thing in Roblox studio. Although I am not the best scripter, I never would have been able to start learning lua and other code without you. The types of things that you make on Roblox inspire me to make my own games and keep trying, even when my script doesn’t work.
Thanks for all of your help!
No worries!
Omg
hie jay from ryg :)
Yeah I even write on my NoteBook to keep this Datas like Variables,Functions Etc
@@hlflifeenjoyer6176 Same
Alvin: 11:42
me: you murderer.
That what I thaught
I'm dieing
Haha, lol
the programmer behind the slaughter
@@RNoctowl big *yes*
"These are the children because they are inside of them"
my burger is my child
@@pipitplays9519 burger
theres the door 👉 🚪
@@Z3ttabyte1 LOL
"it will DESTROY all the children"
I saw the background cycle, you should definitely do a tutorial on a day/night cycle
yeah i stared at my screen for a good 20 seconds waiting for the moon to speed by at 10000 miles an hour but nothing happened so i was like ok
moon animator
Yea he must really learn it to us
There is a Tutorial on UA-cam, but from Roblox itself.
@@jayfontanilla7026 that’s not what moon animator is for…
Wait(5)
Earth.Life.HomoSapiens.MyMom:ClearAllChildren()
Ok so guys I started the script and everything seems g
Under rated comment lol
local Find = Earth.Dead.Humans:FindFirstChild("Daler Karimov
")
If find then
find.Parent = Earth.Life
end
There you should be alive now Daler Karimov.
No it’s Universe.Earth.House.Mom:ClearAllChildren()
@@hedgehog8485 ah but you see you have defined the variable as "Find", but when you tried to call it you have spelt it as "find", meaning Daler is still dead. RIP Daler
Yahya Ali instead, you couldve did this:
local Find = Instance.new("Daler Karimov")
Find.Parent = Earth.Life
you're such an amazing teacher. I've actually been using your lessons to code because I joined a group of people recently who have a creature game they want to make but we don't have a programmer yet so I decided to try and learn, though I also do the art for the creatures. I'm super excited to keep learning from these videos and hopefully really be able to make a game with what I've learned from you.
update?
Hey there! Do you mind sharing some tips for building in Roblox? Sorry for bothering btw.
you really help me man, i havent gone this far in scripting in my life to be honest
nobody:
absolutely nobody:
people who decide to watch an AlvinBlox video after a year: WoW bRo YoUr VoIcE cHaNgEd!
no one asked
@@sortrec7718 About you
@@sortrec7718 lmao one whole year and mans not even gotten one person to agree with him
@@eloelz56 2 now
bro ur the best guy ever, i've always wanted to learn how to script but it seemed like its alot to learn and you need to wait alot so you can make a proper script but now im at your 9th lesson and this is surprisingly not boring as it is at school and its fun!
Thx for making the beginner scripted series Alvin! I knew most of the videos you did, but you made me understand them even better than any other youtuber can do! I enjoy watching your tutorials! Keep up the good work!
Make a tutorial on how to make end game results. (Like MVP and that)
how the hell is this man making scripting fun, just how, like its so fun man
so true Alvin is like always so kind and is like taking free tuition. like almost 99.99% of the people here who concentrates on everything he says are to learn scripting for sure.
thank you so much, i really like how you explain scripting in the most simple way possible, i love ur vids
R.I.P
Part
00:00 - 5:15
“I just want to be in a game...”
Hi Alvin, i am founding like 1 year of script where "If player is in some bath "aka i think some Part" then he got let say points 2 times added to stats" if u know in Super Power Training simulator i mean something like (city port) or tornado if u know game u know what i mean so if u can, please make video or message me back thanks you, Ps: i looked anywhere [Like so he see please]
*"hopefully, it will get destroyed."*
thanos.. hmmm... alvin
If you need help with parent and child look in the properties of the thing you want to find the parent for and it should be there but thanks for all you've done Alvin your a real one :)
Wow. I Haven’t watch you in 2 years, and I time did it’s thing to your voice
are you stalker
Reminder that:
local myClone = game.Workspace.Part:Clone()
myClone.Parent = game.Workspace
and
game.Workspace.Part:Clone().Parent = game.Workspace
both create the same duplicate part. It just gets rid of the variable created with "local myClone". Which means if you want to create 5 parts of the same block, the script would look like this:
local myClone = game.Workspace.Part:Clone()
myClone.Parent = game.Workspace
myClone.Parent = game.Workspace
myClone.Parent = game.Workspace
myClone.Parent = game.Workspace
myClone.Parent = game.Workspace
or
game.Workspace.Part:Clone().Parent = game.Workspace
game.Workspace.Part:Clone().Parent = game.Workspace
game.Workspace.Part:Clone().Parent = game.Workspace
game.Workspace.Part:Clone().Parent = game.Workspace
game.Workspace.Part:Clone().Parent = game.Workspace
They both do the same, but with the variable the code just becomes a lot more structured.
i = 0
while i < 5 then
game.Workspace.Part:Clone().Parent = game.Workspace
i =+ 1
end
less verbose way to do it
@@Andrew-nl4jf what does i translates to
@@Andrew-nl4jf I apologize for my condolences but it seems that the code is actually
i = 0
while i < 5 do
game.Workspace.Part:Clone().Parent = game.Workspace
i += 1
end
If I am wrong, I am sorry again
@@izih yeah you wrote it right btw
quick overview
Built in Functions are Roblox's premade functions and there are 2 types of built in functions: Member functions and Global functions.
AlvinBlox mentioned 5 basic Built in functions that are useful.
Member functions are functions that affect an object, while Global functions affect the script.
To use a Member function you need to define what part you want and then type a ( : ), then the function you want to use.
Example: game.Workspace.part:Destroy()
To use a Global function you type it in in what spot of the script you want it to be in, global functions appear blue.
Example: wait(5)
coding in a nutshell:
Parent:findfirstchild("Brat")
Brat:Destroy()
ClearAllChildren() will clear all the Objects inside it like "workspace:ClearAllChildren()" it will remove parts mesh part wedge ands any kinds of part will be removed from workspace even a player model will be removed too and it cannot remove the "Camera" , "Terrain" from the workspace.
Intelligence
@@oldgingergirs7791 thanks uwu
hihi
I would never have been able to learn Lua code and other code without you and your amazing videos. because of this I also keep trying and never give up even if my script doesn't
't work
Murderer: destroy the child
Scripter: ok. :ClearAllChildren()
Murderer: ok how did you say brackets
@@thunderr3869 r/whoosh
@@skymbuc9049 r/Igotreddit
@@noobsunited5059 r/noboyasked
@@skymbuc9049 r/WhoooshHas3Os
Hey Alvin can you halps me I am trying to make a script that will respawn a part that I have created with a function every 5 seconds. It will delete it then respawn it in the same position again. I cant find what i am doing wrong. Here is the script:
function RespawnPart()
local part = Instance.new("Part")
part.Anchored = false
part.Color = Color3.new(0.384314, 0.219608, 0.109804)
part.CanCollide = true
part.Material = Enum.Material.Wood
part.Position = Vector3.new(-1, 0.5, 6)
part.Name = "Car1"
part.Parent = workspace
end
local x = 25
repeat
RespawnPart()
wait(5)
game.Workspace.Car1:Destroy()
until x == 30
I remember that soft voice you had near the beginning of your youtube channel awwww. Lol
Wow, AlvinBlox I know how to code in python and this series was VERY easy to pick up! Every time I watched one of your videos it made me want to try something on my own to see if it works and it was just a feeling I didn't get while I learned python. Thanks so much for making these vids I LOVE THEM!!!!
same bro
when i saw the first episode of this series, when he was printing a number i thought he was gonna type
print(str(5048))
Hey, I love your vids so much. By the way, do you have plans for doing a tutorial for GUIs?
You should watch TheDevKing's GUI Tutorial series it is very helpful!
bro i have two words to say: thank you! like you're making good toturials and make scripting fun and easy
Wow! I’m back from 2 years, and your voice is so different! This video also helped me a lot, thank you,
alvinblox tutorials are literally the only scripting tutorials i can understand. thank you alvinblox
"has no more children, they've all been destroyed"
you make very good tutorials i didnt thought i was gonna ever learn LUA
Thank you for the clone one, Now I know how to reset Maps!
bruh without you i wouldnt know what im doing on studio and id make trash games with no scripting and hardly any effort tysm and keep up the good work mate ur doing well
Interesting, I managed to teach myself scripting but if it wasn’t for you I wouldn’t have been able to get started :)
you know
you could teach me too
Hi Mr. Blox of Alvin. I was looking at other UA-cam videos about how to set a safe zone and coding for 2 hours and none of them worked so can you make one since you are the best youtuber I know
Thank you for you service
To Mr.Blox of Alvin
'To Mr Blox of Alvin' lel
My guy Alvin Is such a big help, Coding is fun!
Finally new alvin blox vid, your
Tutorials are the best
Press F to pay respect for the children of that part. They were a happy family but were murdered by the swift judgment of the script.
Wait (2)
Print ("F")
10:30 indented means on your key board is pressed tab, you can see those used in functions, basically defining is something in something or is it not.
function idk()
print("something") (youtube neither alot of platforms for searching etc dont support indention or tab character)
Before I watch the Video I press Like because I know it will be GOOOOD! Thanks Buddy
Dude, I am obviously gonna use your star code when buying robux, you are saving me money, I have learned alot from this
I'm starting to forget everything you said from the beginning so had to rewatch again
if youre wondering how to make it wait in python use this type in import time at the top line and then use time.sleep() and put the seconds u like
make sure that its correct as well
DUDE THIS IS HELPING OUT SOOOOOOOOOOOOOOOOOOO MUCH IM SUBING
Great explanation! Your videos are really helpful! 👍
Epic video as always. tThanks for the lesson :D
I am starting to learn lua and your videos are helpful
All the tutorials I have been putting wait in some parts and I made it work 🙂
I needed this for the game I am working on. Wowwww nice!
thank you Alvin for your vids they are really helpful and you explaining it well
alvin your the best now i can start coding i didt anything like anything you helped me a lot bro
In captions, sometimes when he is saying wait, it says he is saying weight
If someone's watching this in august 2020
Just want to remember that you can also use warn() like a print() they are similar and they work the same, They just change the color of the print
Can you make a video on a christmas prize calendar??
ppl: "inteligence"
alvin blox: "inetlisence"
me: "intelectual"
smart ppl: "AI"
community:"a very smart person"
I've seen this video like 5 times for reference but everytime he says "They are Children." at 10:20 it always catches me off guard
Roblox studio do be Joseph Joestar guessing your next line of code
Thank you a lot I feel like you are getting me somewhere on my journey to make a game
You do really teach me, You taught me/Are teaching me better than those creator challenge things
Once he guessed how I was wondering about print being useful, I knew, he was the chosen one.
You're really helpful, clear and easy to understand and follow! Thank you for these amazing videos! :D
Hey Alvin Blox!I have been trying to do the tutorial sword game but it wont work for some reason! can you help me?
Awesome as always
I just learned today how to make a lag game with this
>:)
the returning tutorial was more confusing than this one, this tutorial is actually easy.
Ur pc fast, what’s kind u have?
Hey Alvin can you make a video were when you level up in the game you can unlock stuff and buy stuff with an in game currency?
Alvin: 11:42
Alvin = The man behind the slaughter
TY ALVIN BLOX I LEARNED A LOT FROM YOU
11:53 If you wrote game.workspace:ClearAllChildren() would it get rid of everything in the workspace?
yes
that would make a great virus for people who make viruses lol.
Amazing, even just as a refresher. Have you got/can you make something on data storage?
I liked your video, but I don't understand why you have to put the clone part into a variable other than making it easier to type in the future. This is because you can code in (game.Workspace.Part:Clone().Parent = workspace) and it work just like it intended. Good practices perhaps to write it in variables?
if i do something like
lcoal part = game.workspace.part:clone
part.parent = workspace
part:clear all children
how would i make it clear the children of both parts?
Can you do a Tutorial Video for HttpService?
Maybe if I have time
Alvin, i made a map/game but when i try to play it ,it only shows baseplate. And then i open to roblox studio and my creation are still there...
Alvin belike: "so you do game.Workspace.part:destroy()"
Part belike: "Please dont destroy me"
Very Helpful, I tried it myself and wondered if we are able to clone the parts that has functions added within them? cause at the moment, it looks like I can only clone the end result of what the part will become once the function has ended instead of the beginning of when the function has started
now u know? cause i want to know if u can do this
I miss your old voice, _they grow so fast_
This is where it gets fun.
Destroyed can be great for map voting because once the map is voted on you can close the old map and open the new map uses a instance.new
I still wish I was a member but keep up the good work Alvin!
My favourite scripting tutorial, learning how to delete children
why do we need the parentheses in the built in functions?? like for clearallchildren and clone? alvin pls tell me because i saw scripts where people put something in the parentheses of Clearallchildren.
My gosh. Your voice. You’ve grown.
Anyone confused of Parented by and children thing of it like this. When you have a book, theres a "Table of contents" in it. The "Table of contents" is parented by the book while being the children of the book since it's in it. Anyone expert scripter out there that can tell me if this is a good comparison? Got it from a roblox lua book.
guys just so you know these scripting tutorials still work in 2020
Alvin can you please make a metatable tutorial sometime for us slightly more advanced scripters!?
Thank u Alvin!
"The part has no children, they've been destroyed" -AlvinBlox 11:42
Thank you
Hey AlvinBloxx, I think I have an idea for a new tutorial.
Ever thought of making skateboards? Like scripting an animation for them, making them work, doing the collisions?
hey Alvin, do you know a script to make your arm stay down when you’re holding items?
create a function with humanoid properties
A bit inaccurate on the ":Clone" part of the video You can in fact use game.Workspace.Part:Clone().Parent = game.Workspace
8:26
"Its cloned, alright."
Alvin. Easier way with destroy is "game.Workspace.Part:Destroy()"
Eventually can you make a video about all of the events? (I know that seems like a lot, no worries if you cannot.)