Generating Infinite Balls! - Learn To Script #6

In this episode we investigate how to make to make use of some of the functions inside the Roblox API such as Clone(), Destroy() and Instance.new()
FILES ►gnome.codes/LearnToScript/
DISCORD ► / discord
TWITTER ►@gnomecodeRBLX
MUSIC
Aerosol Of My Love by Kevin MacLeod
Link: filmmusic.io/song/7013-aeroso...
License: filmmusic.io/standard-license

Пікірлер: 147

  • @Eclipse1047
    @Eclipse10472 жыл бұрын

    "we've got a lot of blue balls now" Perfect

  • @jellybeann69420

    @jellybeann69420

    2 жыл бұрын

    HAHHAHAGZSGBAS

  • @jojesefwjaabwh6496

    @jojesefwjaabwh6496

    Жыл бұрын

    @Slimei HAHHAHAGZSGBAS

  • @bromomento5913

    @bromomento5913

    Жыл бұрын

    @Slimei ARGH ARGH ARGH ARGH ARGH ARGH ARGH

  • @NightT1mee

    @NightT1mee

    Жыл бұрын

    Ayooo 💀

  • @ctcuthbert

    @ctcuthbert

    9 ай бұрын

    😹😹😹😹😹😹😹😹😹😹😹

  • @Toasts
    @Toasts3 жыл бұрын

    3:09 imagine taking this out of context

  • @MistaShorts585
    @MistaShorts5853 жыл бұрын

    wow we've come along way on this series and i'm loving it and to tell you to keep up the great work and i have a question about teddy. will there be an easter quest. i was thinking maybe there could be an egg around any of the maps and you simply touch and you get the skin. kinda like the ginger skin. can you reply with your thought of if you will add this feature i think it pretty cool. what about you?

  • @commonsquidtail
    @commonsquidtail3 жыл бұрын

    NO I HAVE ALREADY NEARLY FINISHED THE SERIES! I need more, these videos are BRILLIANT

  • @ZTN_deadline
    @ZTN_deadline3 жыл бұрын

    I’m proud too say I’ve met gnome code in a game!

  • @StarGaming-uw3yl

    @StarGaming-uw3yl

    2 жыл бұрын

    Cap

  • @ZTN_deadline

    @ZTN_deadline

    2 жыл бұрын

    @@StarGaming-uw3yl not cap

  • @StarGaming-uw3yl

    @StarGaming-uw3yl

    2 жыл бұрын

    If you saw him he would notice you

  • @ZTN_deadline

    @ZTN_deadline

    2 жыл бұрын

    @@StarGaming-uw3yl not in this vid but I joined his game before and talked to him :) it was fun

  • @BluSplat

    @BluSplat

    2 жыл бұрын

    thats cool!

  • @dvdmaster9957
    @dvdmaster9957 Жыл бұрын

    3:51 The way you laughed🤣🤣

  • @Tajrocks
    @Tajrocks3 жыл бұрын

    "we are having a load of blue balls appear every few seconds"

  • @bla3253
    @bla32533 жыл бұрын

    I always love seeing what you can do with roblox! Thanks for all the amazing videos, gnomecode! You should start doing your own roblox game jams, like when you did one that one time!

  • @GnomeCode

    @GnomeCode

    3 жыл бұрын

    Great to hear you're enjoying the videos. We've done 3 'gnome' jams so far. We'll definitely be doing more of them but I'm not sure when the next one will be

  • @bla3253

    @bla3253

    3 жыл бұрын

    @@GnomeCode ok! Also, is there a specific laptop you would recommend I buy?

  • @bla3253

    @bla3253

    3 жыл бұрын

    @DJ Weirdo imagine having $800. Nah fam, I was thinking $350 and under? Got any suggestions for that?

  • @HealthyWC-2

    @HealthyWC-2

    2 жыл бұрын

    @@bla3253 Ask reddit.

  • @clocky1

    @clocky1

    2 жыл бұрын

    @@HealthyWC-2 Lol.

  • @mubashirsaleem843
    @mubashirsaleem843 Жыл бұрын

    bro this helped me alot of how to add things into workspace and how to clone parts! Thanks so much my guy!

  • @boltnz6141
    @boltnz61414 ай бұрын

    yknow i watched like 2 tutorials and they taught me nothing they just started yapping hardly explaining what anything does, you actually explain things in a way we will actually remember them. Your talented.

  • @potatoYt655
    @potatoYt6552 жыл бұрын

    You have helped me so much i am starting to learn scripting!Thanks

  • @ayhanabbasov9233
    @ayhanabbasov9233 Жыл бұрын

    I'm glad to how you teaching script for people wants to make game😁

  • @kolastewerd08933
    @kolastewerd089333 жыл бұрын

    This is amazing! Really helps us making games...i misjudged a gnome lol! Maybe make when you goal a ball, you get a badge?

  • @kolastewerd08933

    @kolastewerd08933

    3 жыл бұрын

    @@HarryDKH i know that i just wanna know how to make a goal badge

  • @rainiell612
    @rainiell612 Жыл бұрын

    this is the perfect video that i can find

  • @zika9688
    @zika96883 жыл бұрын

    When will the next one be uploaded :D , loving the content btw please keep them coming

  • @2BADSUCKER
    @2BADSUCKER9 ай бұрын

    i am in love with you gnome man

  • @Bigmakxz
    @Bigmakxz Жыл бұрын

    "We've got a bunch of blue balls now." *small laughter*

  • @nlaboratorio105robloxstudi4
    @nlaboratorio105robloxstudi43 жыл бұрын

    Thats a lot of ball there gnome how is the goalkeeper gonna save those 😂 ur Tutorials are amazing! And I have issues to verify the account on discord to ur server sorry I can’t verify in discord.. good job with these tutorials!

  • @GnomeCode

    @GnomeCode

    3 жыл бұрын

    Glad you like them!

  • @nikolasvlachos6805
    @nikolasvlachos6805 Жыл бұрын

    "Blue Balls" Wow that definetly doesnt remind me of anything however, Great tutorial, you should be getting more recognition

  • @MemeBagPlays
    @MemeBagPlays2 жыл бұрын

    Hello i know this was from a year ago but can you make a video making a game? and showing how you made the script thanks these videos are great i learned some basic scripting! and now i don't think scripting is that complicated than i thought it was

  • @GnomeCode

    @GnomeCode

    2 жыл бұрын

    Hello, by the end of this series I turned the project into a finished albeit basic football game. Currently on my channel I'm making a Tower Defense game tutorial.

  • @rkyielenfrancais
    @rkyielenfrancais Жыл бұрын

    I love how he holds his laugh when he says blueballs

  • @grimesgaming8692
    @grimesgaming86922 ай бұрын

    Hey @GnomeCode whenever I run the script the ball is only 1 stud wide, what am I doing wrong? Code below --Defines Variables Ball = workspace.Ball OriginPos = Ball.Position --Changes balls properties while true do newBall = Instance.new('Part') newBall.Shape = Enum.PartType.Ball newBall.BrickColor = BrickColor.Blue() newBall.Position = OriginPos newBall.Parent = workspace wait(2) newBall:Destroy() end

  • @LukasKK670
    @LukasKK670 Жыл бұрын

    its been 1 year and i still laugh when he says " we got alot of blue balls "

  • @ezgi9127
    @ezgi91273 жыл бұрын

    woah there gnome code

  • @proheroexperiencing5598
    @proheroexperiencing5598 Жыл бұрын

    I love how self aware he was when he made "new balls"

  • @fryingcode3951
    @fryingcode39513 жыл бұрын

    Your da best coding yt!!!!

  • @JackEtheGuyMan
    @JackEtheGuyMan3 жыл бұрын

    I don’t know what is going on but it’s awesome

  • @oojuo3464
    @oojuo3464 Жыл бұрын

    underrated

  • @mrgruntandhumans7874
    @mrgruntandhumans78742 жыл бұрын

    hi i have been doing your tro videos, and there good for teaching, but i have a problem when i play the code 3:24 in the video i get an error of "Unable to create an Instance of type "part"" do can you or someone help me

  • @hoube_7852
    @hoube_78523 жыл бұрын

    Interestingly, more I was wondering if it is possible to change the color of the part randomly while it is being created.

  • @GnomeCode

    @GnomeCode

    3 жыл бұрын

    ball.BrickColor = BrickColor.Random()

  • @quackywhackityphillyb.3005
    @quackywhackityphillyb.30053 жыл бұрын

    Gnomejam foreshadowing?

  • @johdoh199
    @johdoh1993 жыл бұрын

    Love the title 👍

  • @gamgamesplayer4506
    @gamgamesplayer45062 жыл бұрын

    4:00 i understood that lol

  • @Poopslinger69
    @Poopslinger69 Жыл бұрын

    Anybody else noticed that the clone command is way better at football then gnome XD

  • @fishthingidk
    @fishthingidk3 жыл бұрын

    Did you forget about your mafia city game

  • @DropRBLXYoutube
    @DropRBLXYoutube3 жыл бұрын

    Yes!

  • @bondo532
    @bondo532 Жыл бұрын

    why does :clone create multiple parts?

  • @Huynoobdev
    @Huynoobdev11 ай бұрын

    what is part type

  • @rtsNoName
    @rtsNoName Жыл бұрын

    thanks it works now

  • @RedPixels...
    @RedPixels... Жыл бұрын

    Mine has a error saying 'blue' is not a valid member of BrickColor can this be solved or is this just outdated?

  • @alexanderarambula9795
    @alexanderarambula97953 жыл бұрын

    Hey on chapter 3 on teddy you can glitch out of the toy place

  • @mangatanga.
    @mangatanga. Жыл бұрын

    hello @gnomecode is my script wrong? bc it dosen't work ball = workspace.ball originalposition = ball.Position while true do newball = Instance.new ("Part") newball.shape = Enum.parttipe.ball newball.brickcolor = BrickColor.Blue() newball.position = originalposition newball.parent = workspace wait (3) end

  • @mastawba

    @mastawba

    Жыл бұрын

    setting up properties are case sensitive like Parent instead of parent and also in your 6 line you misspelled Parttipe.ball instead of Particle.Ball i guess always check your spelling before executing your code i hope it helps :)

  • @mangatanga.

    @mangatanga.

    Жыл бұрын

    @@mastawba thanks

  • @3.57Aeust
    @3.57Aeust5 ай бұрын

    how can I chnage the ball size

  • @cliffcoastcafe
    @cliffcoastcafe3 жыл бұрын

    Can you make a piggy tutorial but better than alvinblox one? It feels so imcomplet without a spectate thingy and a wierd exit and much more wierd stuff. Also let me now if i can translate eny thing! Awsome vid!

  • @cliffcoastcafe

    @cliffcoastcafe

    3 жыл бұрын

    @DJ Weirdo i now, but he stoped with the explaining stuff. Thads what interests me

  • @casualbeaver
    @casualbeaver5 ай бұрын

    at 7:40 iff i tried running my stuido just crashes

  • @arandomguywithfriends
    @arandomguywithfriends Жыл бұрын

    The title tho ☠️☠️☠️

  • @DropRBLXYoutube
    @DropRBLXYoutube3 жыл бұрын

    He's swimming

  • @DeustOfficial
    @DeustOfficial3 жыл бұрын

    I have a problem in 7:03 only 3 balls are spawning, no more. Is there anything wrong with my script? ball = workspace.Ball originalPosition = ball.Position while 5>3 do ClonedBall = ball:Clone() ClonedBall.Parent = workspace wait(1) end

  • @themkingyt8594

    @themkingyt8594

    2 жыл бұрын

    Hey! when I try it, It works.

  • @rahulbhardwaj5546

    @rahulbhardwaj5546

    2 жыл бұрын

    Instead of '5>3' try 'true'

  • @herograaf5850

    @herograaf5850

    Жыл бұрын

    Same

  • @Me-eo1qq
    @Me-eo1qq3 жыл бұрын

    Title sounds very normal

  • @wyser3862
    @wyser38622 жыл бұрын

    you make scripting so easy

  • @ElderWizard
    @ElderWizard3 жыл бұрын

    I got a map idea for chapter 4 it’s teddy land teddy land is a theme park with roller coasters carousel and a Ferris wheel! After chapter 3 Our dad comes out of the toy store and then he takes us to teddy land where he works! Plus I got some skin ideas -clown teddy -Proto teddy -ketchup teddy/The Teddy you made after Proto Teddy -panda Teddy -polar bear teddy Those are all of my ideas feel free to Add any of these to teddy

  • @agamingchannel2

    @agamingchannel2

    3 жыл бұрын

    1. piggy has a carnival so that's basically "Teddy land" 2. he just finished chapter 3, give him a break 3. alot of writing here

  • @ElderWizard

    @ElderWizard

    3 жыл бұрын

    @@agamingchannel2 no the map carnival is a Carnival but Teddy land is a theme park there’s a difference plus i’m just giving him some ideas!

  • @agamingchannel2

    @agamingchannel2

    3 жыл бұрын

    @@ElderWizard u said ferris wheel, carnival has a ferris wheel

  • @ElderWizard

    @ElderWizard

    3 жыл бұрын

    @@agamingchannel2 just listen you little critic would you like there to be a teddy land map of course everyone would like that plus it’s a theme park not a bloody carnival

  • @agamingchannel2

    @agamingchannel2

    3 жыл бұрын

    @@ElderWizard i cant be bothered to deal with a kid who doesnt have a brain

  • @LuaExplained
    @LuaExplained2 жыл бұрын

    My question is why didn't you have to put "local" for the variables?

  • @tunayee

    @tunayee

    Жыл бұрын

    kzread.info/dash/bejne/m6GIrrCfpsmZpMY.html Episode 11 of this series

  • @ifwedonothing9294
    @ifwedonothing92943 жыл бұрын

    Wow, I'm early!

  • @egor15661
    @egor15661 Жыл бұрын

    I tried to insert the script from 6:59, but my balls are only getting cloned once, why is that?

  • @herograaf5850

    @herograaf5850

    Жыл бұрын

    Same

  • @baconsforever4864
    @baconsforever4864 Жыл бұрын

    i recreated the burj khalifa with the clone script

  • @Aneui
    @Aneui2 жыл бұрын

    I set the wait command to 0.05 and it made such a long tower of balls lmaoo

  • @herograaf5850
    @herograaf5850 Жыл бұрын

    The script does not work anymore

  • @rayplayz1214
    @rayplayz12143 жыл бұрын

    I’m first and hi gnome code

  • @GnomeCode

    @GnomeCode

    3 жыл бұрын

    Welcome aboard!

  • @Matthew73326

    @Matthew73326

    3 жыл бұрын

    @@GnomeCode hey gnome I wanted to say sorry for spamming in game night I was looking at my tv and I had auto paste on sorry

  • @morganleoni5031
    @morganleoni50313 жыл бұрын

    One time I accidentally made an infinite ball script and I couldn't figure out how to stop it haha it was not good haha

  • @Quoteory
    @Quoteory3 жыл бұрын

    Is there a reason this series isn't teaching common good coding practices like writing local before declaring variables and storing scripts in the appropriate locations (not in workspace)? There are also services you could be teaching in this one (like Debris), but it makes since if you left that out if this series is meant for beginners

  • @GnomeCode

    @GnomeCode

    3 жыл бұрын

    Fair questions. I was intending to address the issue of scope in a later lesson. As for using ServerScriptService, for me that's more an issue of project management. I thought it was simpler to purely focus on workspace for now. Services also haven't been introduced yet, so that's why I didn't use Debris.

  • @Quoteory

    @Quoteory

    3 жыл бұрын

    @@GnomeCode I see, thanks for response

  • @pedror1439
    @pedror14393 жыл бұрын

    😳

  • @kalojang3601
    @kalojang36013 жыл бұрын

    ok i read the title wrong lol

  • @awpariss
    @awpariss3 жыл бұрын

    Same

  • @half_lifescientist
    @half_lifescientist4 ай бұрын

    i have an issue, the balls are cloning each other and crashing my game

  • @brightenlahaie533
    @brightenlahaie5333 жыл бұрын

    6 views and 10 comments? Woahh dude..

  • @robloxtestsandtutorials3326
    @robloxtestsandtutorials33263 жыл бұрын

    Hi i had to come i couldnt pass it up

  • @GnomeCode

    @GnomeCode

    3 жыл бұрын

    I'm glad you did :)

  • @eddgow
    @eddgow Жыл бұрын

    When you say the title out loud it just sounds wrong

  • @frkrkr31
    @frkrkr31 Жыл бұрын

    2:53

  • @Channal1009
    @Channal100910 ай бұрын

    Ball not spawning

  • @kendrili
    @kendrili3 жыл бұрын

    balls

  • @agamingchannel2
    @agamingchannel23 жыл бұрын

    ok

  • @disrespecc9678
    @disrespecc9678 Жыл бұрын

    I also generate infinite balls.

  • @non_reai
    @non_reai3 жыл бұрын

    i alr know how to make this stuff why am i watching it lmao

  • @GnomeCode

    @GnomeCode

    3 жыл бұрын

    We all know you're here for that GnomeCode ASMR content

  • @non_reai

    @non_reai

    3 жыл бұрын

    @@GnomeCode yes

  • @peri5787
    @peri57873 жыл бұрын

    👁v👁 hi

  • @faridperalta2340
    @faridperalta23404 ай бұрын

    The script at 3:40 crashed my game

  • @s.p.e.gaming2201
    @s.p.e.gaming22013 жыл бұрын

    Gnomecode! I’m inspired by your work! Could you please help me make my game about a bunch of killer stuffed animals that’s like a game like piggy? I beg you!!!! I will do anything! I am REALLY good at building so I can do that. Thanks! I also made you an editor so you have access to it!

  • @mokhaled1384

    @mokhaled1384

    Жыл бұрын

    He fulfilled your wish...

  • @rayplayz1214
    @rayplayz12143 жыл бұрын

    First

  • @agamingchannel2

    @agamingchannel2

    3 жыл бұрын

    behold the i-dont-care-inator

  • @pedror1439

    @pedror1439

    3 жыл бұрын

    k

  • @wolfcraft7406
    @wolfcraft74063 жыл бұрын

    Pls continue make teddy tutorials shop menu fixing after cutscene and game money PLS

  • @robloxtestsandtutorials3326
    @robloxtestsandtutorials33263 жыл бұрын

    third also

  • @agamingchannel2

    @agamingchannel2

    3 жыл бұрын

    no

  • @firedogex
    @firedogex Жыл бұрын

    "infinite balls" 🤨

  • @shinyhatgod9312
    @shinyhatgod93124 ай бұрын

    my game crashed :D😀

  • @Milk-yi9hg
    @Milk-yi9hg3 жыл бұрын

    3rd hehe

  • @agamingchannel2

    @agamingchannel2

    3 жыл бұрын

    5th

  • @robloxtestsandtutorials3326

    @robloxtestsandtutorials3326

    3 жыл бұрын

    no actually i was third

  • @agamingchannel2

    @agamingchannel2

    3 жыл бұрын

    @@robloxtestsandtutorials3326 u werent

  • @Milk-yi9hg

    @Milk-yi9hg

    3 жыл бұрын

    @@robloxtestsandtutorials3326 you where not

  • @LedgendaryPlayer
    @LedgendaryPlayer Жыл бұрын

    for some reason its not working it just says Workspace.New balls:11: attempt to call a nil value ball = workspace.ball respawn = ball.Position while true do wait(3) newBall= Instance.new("Part") newBall.Shape = Enum.PartType.Ball newBall.Position = respawn newBall.BrickColor = BrickColor.blue() newBall.Parent = workspace end

  • @MerlucinYT

    @MerlucinYT

    Жыл бұрын

    Respawn doesent have a value, so, its value is "nil" which means, it does not exist. So, you need to give "respawn" a value

  • @timpa5213

    @timpa5213

    Жыл бұрын

    It's probably because you said ball = ball.position instead of ball = Ball.Position

  • @LedgendaryPlayer

    @LedgendaryPlayer

    Жыл бұрын

    @@timpa5213 Wait what do you mean by ball = Ball.Position because I don't remember setting any variable with that except the respawn variable?

  • @timpa5213

    @timpa5213

    Жыл бұрын

    ​@@LedgendaryPlayer Above the respawn variable you set the variable for ball. And if your ball model is called "Ball" in roblox studio, it should be referred as "workspace.Ball" when you set that variable

  • @LedgendaryPlayer

    @LedgendaryPlayer

    Жыл бұрын

    @Timpa ohhh I see I will fix it when I get home

  • @user-ej2jj1jb9v
    @user-ej2jj1jb9v5 ай бұрын

    balls