How Unoptimized Can a Roblox Game Get?

Поделиться
HTML-код
  • Опубликовано: 13 янв 2025

Комментарии • 745

  • @byteblox100
    @byteblox100  9 месяцев назад +154

    COURSES ARE 50% OFF, USE CODE "EDGEBYTE" (ends in 3 days lol):
    linktr.ee/ByteBlox

  • @artisanmain
    @artisanmain 8 месяцев назад +873

    “Why doesn’t tf2 get updates?” What the intern at valve who had the same question sees upon looking at the code:

    • @distorted_heavy
      @distorted_heavy 8 месяцев назад +88

      Nah instead he sees a function that supposedly makes spheres but actually makes squares and quits on the spot

    • @gshnoozer2
      @gshnoozer2 8 месяцев назад +17

      Riot Games employee looking at the code

    • @joedingo7022
      @joedingo7022 8 месяцев назад +35

      And the code that makes squares is also integral to transparency rendering, and will make the player camera render in front of itself disabing all vision.

    • @FeeshUnofficial
      @FeeshUnofficial 8 месяцев назад +5

      ​@@distorted_heavynot even cubes? Just 2 dimensional squares? Just rectangle planes?

    • @albertthescout9169
      @albertthescout9169 5 месяцев назад +1

      @@FeeshUnofficial of course

  • @blackbirdsax4041
    @blackbirdsax4041 9 месяцев назад +2232

    REAL programmer's NEVER use variables or any of that utter nonsense, how foolish of you! Obviously you have to declare the exact part every single time it needs to be called, like a real programmer would 💪

    • @codingpileofdirt
      @codingpileofdirt 9 месяцев назад +85

      Real *Lua* programmers. If it was something as basic as Scratch or something it would be a pretty different story.

    • @Sakupenny
      @Sakupenny 9 месяцев назад +9

      so fucking real

    • @kirbyrparchives
      @kirbyrparchives 9 месяцев назад +34

      Scatch is not real 👹​@@codingpileofdirt

    • @NaraSherko
      @NaraSherko 9 месяцев назад +1

      @@codingpileofdirt I was a scratch dev before now i use roblox studio and i use those variables

    • @arandomguythatdoesntpost
      @arandomguythatdoesntpost 9 месяцев назад +8

      not using variables actually makes the code run slower (as described in the lua documentation), don't know if this applies to LuaU though

  • @TheCrankSpiderNinja
    @TheCrankSpiderNinja 9 месяцев назад +4648

    yandere dev type code

    • @aljon5947
      @aljon5947 9 месяцев назад +363

      making a game with only if statements

    • @Sakupenny
      @Sakupenny 9 месяцев назад

      ​​@@aljon5947 "if true then"

    • @not_eagleye
      @not_eagleye 9 месяцев назад +12

      💀💀💀

    • @not_eagleye
      @not_eagleye 9 месяцев назад +17

      ​@@aljon5947 lmao

    • @nacroni
      @nacroni 9 месяцев назад

      @@aljon5947undertale type code

  • @cartertitan-rv3xe
    @cartertitan-rv3xe 8 месяцев назад +379

    professional roblox jojo game developer coding live footage

  • @Aslyuriel
    @Aslyuriel 9 месяцев назад +827

    When your assignment at school has a minimum word count

    • @sparrowEP
      @sparrowEP 8 месяцев назад

      this

    • @Abolishtaxes1997
      @Abolishtaxes1997 8 месяцев назад

      real

    • @1000-THR
      @1000-THR 8 месяцев назад

      minimum line count

    • @em-si-ton-somsoc
      @em-si-ton-somsoc 8 месяцев назад

      ​@@1000-THRyes

    • @lenoobxd
      @lenoobxd 5 месяцев назад

      how to reach minimum word count 101
      step 1: you’re > you are
      +1 word
      repeat

  • @Youkuri
    @Youkuri 8 месяцев назад +333

    5:35 This is just that tweet saying "God I wish there was an easier way to do this"

    • @DraxilSpada-vc2wg
      @DraxilSpada-vc2wg 8 месяцев назад +4

      no don't say it you'll summon derek baum

    • @shaneharding7399
      @shaneharding7399 8 месяцев назад +7

      "Hello, it's me, Derek Baum! And I am here to introduce... the code missile! First, point the missile toward your PC, light the thruster, and then...
      *BAAAAAAAAAAAAAAAAAAAANG!!!*
      And now all of your code is perfectly optimized!"

    • @tyrannosaurustits7083
      @tyrannosaurustits7083 8 месяцев назад

      yandere dev else if saga

    • @star-phobia
      @star-phobia 8 месяцев назад

      @@DraxilSpada-vc2wghe did :(

    • @WeeHee
      @WeeHee 8 месяцев назад +2

      I literally saw the source of an old Roblox game that did that

  • @3hxde
    @3hxde 9 месяцев назад +296

    16:00 Genuinely most of my code when I was younger consisted of this, and funny part is my games were more supposed to be jokes rather than real games. I made a whole game basically Rick rolling my Friend just because I thought it would be funny

    • @reddeadleisure
      @reddeadleisure 9 месяцев назад +16

      This is how devforum memes are created

  • @yur5670
    @yur5670 9 месяцев назад +987

    A lot of games unironically run on code like this 😄

    • @DDog09
      @DDog09 9 месяцев назад +49

      Was gonna say this, some top games breaking the 50,000 lines mark

    • @reddeadleisure
      @reddeadleisure 9 месяцев назад +120

      ​@@DDog09??? Thats literally normal if its a big game

    • @DDog09
      @DDog09 9 месяцев назад +12

      @@reddeadleisure that’s… literally my point, literally what i just said 🤣

    • @reddeadleisure
      @reddeadleisure 9 месяцев назад +131

      @@DDog09 The fuck you mean? It seems like you were suggesting bigger lines of code = unoptimized which is straight up not true

    • @DDog09
      @DDog09 9 месяцев назад +6

      @@reddeadleisure calm down 💀, you’re being overly combative for no reason. I never said bigger lines of code = unoptimized did I?

  • @thegreatollyrusanddaisy5511
    @thegreatollyrusanddaisy5511 9 месяцев назад +357

    "theres a child inside of one thing" byteblox 2024

    • @scratchingcatclaw
      @scratchingcatclaw 9 месяцев назад +16

      Ah yes, programmer language

    • @blacklight683
      @blacklight683 8 месяцев назад +17

      Guys is that freddy fazbear? Hur hur hurhur

    • @Cootieb
      @Cootieb 8 месяцев назад +3

      @@blacklight683GUYS IS THAT FREDDY FAZBEAR? HUR HUR HURHUR

    • @bluebearfinn
      @bluebearfinn 8 месяцев назад +1

      @@blacklight683god no

    • @lamp7746
      @lamp7746 8 месяцев назад

      I searched up “tween model” the other day and I was scarred.

  • @adrianle3
    @adrianle3 8 месяцев назад +50

    It's crazy to think that coding makes people say the most diabolical things if taken out of context
    "If you touch this part, you explode and earn a point"
    "I'm gonna immediately pair it to a child which is the player"

    • @vindi167
      @vindi167 5 месяцев назад

      remember: the only difference between coding and demon summoning is candles.

  • @lycandusk7263
    @lycandusk7263 8 месяцев назад +63

    i have no clue how close it's related to this bc i have like no knowledge of code but this reminds me of a time my friend showed me code and near the start was "true = True" and "false = False"

    • @maincraf-yk5qq
      @maincraf-yk5qq 8 месяцев назад +9

      Ah, yes, 1 = 1+0

    • @gigimoosegaming3465
      @gigimoosegaming3465 8 месяцев назад +21

      its python, because in other languages its normally just true and false without caps, in python it is. its probably because they want to make it easier for themselves

    • @biigsmokee
      @biigsmokee 8 месяцев назад +14

      write true = False, false = True just under it and watch him debug for ages

    • @cewla3348
      @cewla3348 8 месяцев назад +3

      @@biigsmokee anyone who knows how to debug will watch variable states tho?

    • @newuser689
      @newuser689 8 месяцев назад +2

      ⁠@@cewla3348>print(true)
      >prints False
      this is when u put shotgun in mouth

  • @brawldude2656
    @brawldude2656 9 месяцев назад +70

    4:40 I love how he didn't even use the yielding result after all the tree search. (He just used script.Parent after all)

    • @semydev
      @semydev 8 месяцев назад +13

      Yeah because what if the script isn’t the right script you know? You gotta know the script is on the right part before finding the part

  • @BreadXs
    @BreadXs 9 месяцев назад +60

    i love making a main menu, thanks for the tutorial!!

  • @midge_gender_solek3314
    @midge_gender_solek3314 8 месяцев назад +14

    In my experience, absolute most problems in game optimisation have nothing to do with "bad code" per se (unnecessary loops and inefficient ways of referencing things) and everything to do with drawing too much, moving too much, generally doing too much stuff every frame.
    Devs sometimes really need to drop their inner C coder when working with modern engines, at least as a beginner it helped me to focus on avoiding spaghetti code first and foremost

  • @XDxbox420
    @XDxbox420 9 месяцев назад +165

    day 2 of asking for byteblox to recreate the drake video for his next video

    • @costa-w3k
      @costa-w3k 9 месяцев назад +8

      I will edge to it

    • @BuddyDaCat1
      @BuddyDaCat1 9 месяцев назад +8

      Byteblox swinging it side to side

    • @ТІР
      @ТІР 9 месяцев назад +3

      omd

    • @real_GreenThingy
      @real_GreenThingy 9 месяцев назад +1

      Maybe I could do it

    • @sonic176yt7
      @sonic176yt7 9 месяцев назад

      *NO*

  • @pretzneko
    @pretzneko 8 месяцев назад +11

    i got my hands on a type soul copy and the code actually makes me want to cry. all of the client statements are contained in a single local script, bordering on 10k lines. this isnt even the worst example of this in the game.

    • @jayinvictus3945
      @jayinvictus3945 8 месяцев назад +3

      Wait like a copy of the old code?? THAT'S why I was lagging constantly and my friend crashed everytime he opened the game??? XD

    • @pacomatic9833
      @pacomatic9833 7 месяцев назад +2

      I was absolutely rolling when I heard that

    • @opiumsigmaclan
      @opiumsigmaclan 6 месяцев назад

      type soul code isnt even bad 😭

  • @Creative_YT
    @Creative_YT 5 месяцев назад +5

    “How unoptimized can a roblox game get?”
    *any simulator game:*

  • @th3_marc0
    @th3_marc0 9 месяцев назад +9

    Hey bro, I just wanted to say your videos are AMAZING. They helped me so much in coding fundamentals. Literally no other channel or video could do this. Keep up the good work bro

  • @RakeV8
    @RakeV8 7 месяцев назад +1

    at 7:09 you should have made it loop through the children of Players every 0.5 seconds and keep track of all of them and if any of them are new (not in the table/variables you're storing them in) then it does the function. this works basically the same as PlayerAdded() but it has a delay and it's more laggy

  • @Seme_
    @Seme_ 8 месяцев назад +6

    I understand like a very little bit of LUA, and that was enough to make me understand what you were doing and laughed all throughout the video. 🤣

  • @cypressment
    @cypressment 9 месяцев назад +9

    the final part is asking for help in devforum once you accidentally made an error somewhere

  • @groboggan9535
    @groboggan9535 9 месяцев назад +9

    Wow I didn’t even know what optimizing is this is pretty helpful

  • @connecting7161
    @connecting7161 8 месяцев назад +6

    I'm pretty sure this is a common practice in the roblox dev community by now...

  • @CyanNStuff
    @CyanNStuff 9 месяцев назад +9

    omg before this video... I was using a single variable for things... now I know I need to make sure the children don't cross contaminate.
    Thank you for this useful tutorial.

  • @DefinitelyNotJethro
    @DefinitelyNotJethro 9 месяцев назад +21

    7:20 I agree. Roblox told us we can just tell the AI what to do and it'l lwrite the code for us, but instead it just suggests random stuff that we didn't even want. I don't think you can write a prompt to the AI to tell it what to write either

    • @ninlaw9810
      @ninlaw9810 8 месяцев назад

      ai is shit at making code might as well look a tutorial or go on dev forunlm

    • @Teroces1Gaming
      @Teroces1Gaming 8 месяцев назад

      Personally my experience with the ai is very good. I usually never pause when writing code, but the few times i do, it sometimes feels like its reading my mind cause it perfectly auto completes.
      Prob the most impressive examples of this was that the ai was able to finish the rest of my dynamic memory allocator function written in my own customized assembly language (i made a cpu emulator on roblox). It somehow learned the rules of my custom assembly language and even realized the algorithm that i was trying to make (and it did that despite being trained to develop good luau code, not assembly)

  • @geckapus
    @geckapus 8 месяцев назад +6

    After taking my AP Computer Science A Exam this morning, I can certify this is completely acceptable and optimized code.

  • @InvisibleSquids
    @InvisibleSquids 8 месяцев назад +4

    I have a project that took a map, wrote a script that would look at the position, rotation, color, and size of every object, then generate a script that would delete the entire world only to build it back. It would freeze for a solid two minutes, the world would vanish, then freeze for another two minutes as it built the world back.... Ended up being around 280k lines long in the end.... This was around 11 years ago though, so theres a good chance the project got nuked

    • @r2w-z9o
      @r2w-z9o 8 месяцев назад +2

      bro most well known games dont even have 150k lines of code

    • @InvisibleSquids
      @InvisibleSquids 8 месяцев назад +2

      @@r2w-z9o Yep, I was simply trying to see if i could do meta-programming. The answer is "kind of"

    • @ramarrageEditz
      @ramarrageEditz 4 месяца назад

      DAMN

  • @LennyFace987
    @LennyFace987 4 месяца назад +1

    7:55 u should've done a while true loop cause I suck at coding and that's what I do when i don't know how to use the function

  • @Oc_TheGrunt
    @Oc_TheGrunt 9 месяцев назад +7

    This reminds me in the old version on noob adventure (my game) I wanted to have a bounce effect, but the bounce effect wouldnt stay in one place when the effect was emitted.
    So instead of just unchecking the LockedToPart vatiable I made a scrip that creates a part sets the pose of the part to the hrp set the parent to workspace and then cloned the effect and put thats parent as the part 😭😭

    • @Sky_Blue_Crew
      @Sky_Blue_Crew 9 месяцев назад

      No way ur here too

    • @Tealen
      @Tealen 8 месяцев назад +1

      i could see myself doing that a few years back, i was TERRIBLE at optimizing.
      and i, for so long, instead of using :Emit(1) to make particle emitters emit just 1 particle (to make like an explosion or something), i would make it enabled for 0.1 seconds and disable it right after...

  • @amaz1699
    @amaz1699 9 месяцев назад +38

    pls
    make a game that uses no variables 🙏
    i promise it’ll be a fun challenge 😃

    • @Tealen
      @Tealen 8 месяцев назад

      :D

    • @giuyo
      @giuyo 8 месяцев назад +3

      I code with no variables, not pressing enter and using the Brush Script font. 😊

    • @Tealen
      @Tealen 8 месяцев назад +1

      @@giuyo when i need to disable a chunk of code from a script for a bit, i just place - - before every line 😃

    • @mr_originalname
      @mr_originalname 8 месяцев назад +1

      @@Tealen when i wanna loop through a folder, i make a variable for each part in it 😃

    • @randomchannel-kh7oc
      @randomchannel-kh7oc 8 месяцев назад +1

      without using local?

  • @jademonass2954
    @jademonass2954 6 месяцев назад +4

    i looked away because i was doing something, and tuned back to see line 12845 and had a mini heart attack

  • @marksmanmerc1
    @marksmanmerc1 8 месяцев назад +3

    I always hated that mindset about not optimizing code when learning. Never understood wanting to learn things wrong.

  • @Nexis_vr
    @Nexis_vr 5 месяцев назад +2

    I have no clue how to code in Lua but I like your funny words, magic man

  • @neonowlgery
    @neonowlgery 7 месяцев назад

    I love how you intentionally made a specific variable for something. As a Java Plugin developer (Minecraft), that's so natural to me... (it makes stuff easier sometimes...)

  • @AndrewRoberts-ty9qy
    @AndrewRoberts-ty9qy 8 месяцев назад +1

    Wrote this script (below) to see if I could do the same, basically all it does is look for when the player touches part of yes then fling player, what causes it to be unoptimized is its use of the wait() function, it constantly checking if the part exists and making new body velo instead of reusing the old one.
    Script:
    -- Define a function to fling the player
    function flingPlayer(hit)
    -- Check if what was touched is a player
    local character = hit.Parent
    local humanoid = character:FindFirstChildOfClass('Humanoid')
    if humanoid then
    -- Create a BodyVelocity object to fling the player
    local bodyVelocity = Instance.new('BodyVelocity')
    bodyVelocity.Velocity = Vector3.new(math.random(-100,100), math.random(50,100), math.random(-100,100))
    bodyVelocity.MaxForce = Vector3.new(1e4, 1e4, 1e4)
    bodyVelocity.Parent = character.HumanoidRootPart
    -- Wait for a short time and then remove the BodyVelocity object
    wait(0.5)
    bodyVelocity:Destroy()
    end
    end
    -- Create a Part in the workspace
    local part = Instance.new('Part', workspace)
    part.Size = Vector3.new(10, 1, 10)
    part.Anchored = true
    part.Position = Vector3.new(0, 10, 0)
    -- Connect the 'Touched' event of the part to the 'flingPlayer' function
    part.Touched:Connect(flingPlayer)
    -- Inefficiently keep checking if the part exists
    while wait(1) do
    if not part:IsDescendantOf(workspace) then
    part = Instance.new('Part', workspace)
    part.Size = Vector3.new(10, 1, 10)
    part.Anchored = true
    part.Position = Vector3.new(0, 10, 0)
    part.Touched:Connect(flingPlayer)
    end
    end

  • @seltexe
    @seltexe 8 месяцев назад +1

    8:57 as a C dev, i'm really triggered by your variable naming, which makes it even better.

  • @Petit_loup137
    @Petit_loup137 7 месяцев назад

    3:51
    so more pathing's in the workspace AND children in the workspace, slower it will be

  • @VariantBank
    @VariantBank 9 месяцев назад +3

    every time you needed to find a part make a combination of all 10 character letter combinations until it equals the name of the part

  • @Xx_babanne_avcisi27_xX
    @Xx_babanne_avcisi27_xX 5 месяцев назад +2

    thanks for the scripting tutorial, at first i didnt know how to script but thanks to this video i already started making my roblox game!

  • @FireDragon91245
    @FireDragon91245 8 месяцев назад +1

    Programming should be done in stages (may not apply to game dev)
    1, Understand the problem, customer requirements, solutions
    2. Just Get your Solution in code write it without structure, just get your idea in code even if its the worst code seen in 100 years
    3. Convert you Proof of Concept into actual Porduction Code, structure optimize where needed...

  • @HEnTYH
    @HEnTYH 5 месяцев назад

    12:48 what you were about to write, i saw bitt instead of a button, it looked like local bit## for a second

  • @arandomguy46
    @arandomguy46 8 месяцев назад +1

    i remember a long time ago when i first got into programming i wanted to make an animated typing effect so i allocated one line of code for each character and then added a wait()... looking back now i know what was going through the devforums mind when i showed this off.

  • @PhoenixAscension554
    @PhoenixAscension554 9 месяцев назад +4

    Could you consider making a video about coroutines cause I really like how you explain things and I don't understand those.

  • @funnydude69
    @funnydude69 6 месяцев назад

    At 5:40 you should have just always used tweenservice from 0 to 0.1 and etc with no loops for true 🍝

  • @aero4856
    @aero4856 8 месяцев назад +1

    always remember to connect and never disconnect. you never know when you'll need that connection again, after all!

  • @SuperBootsTheDog
    @SuperBootsTheDog 9 месяцев назад +1

    Make a bunch of variables that are all equally as long of a name as the object it’s representing, and make those variables used once

  • @helo3309
    @helo3309 2 месяца назад

    if you can take the most basic thing you can do in luau and unoptimize THAT, you're the best scripter i have ever seen

  • @K4YTIKAL
    @K4YTIKAL 9 месяцев назад +2

    As a programmer myself, I can confirm that this type of coding makes me want to rip my eyes and brain out of my head.

  • @NatanGamerul777
    @NatanGamerul777 6 месяцев назад +1

    this is how i used to write code after 1 week of scripting, it's been over an year since, i still suck af

  • @TlMEL0RD
    @TlMEL0RD 8 месяцев назад +6

    My scratch games: amateurs.

  • @Derlabrbx
    @Derlabrbx 5 месяцев назад +1

    you could make another variable called ws3 that's like local ws3 = workspace
    I was too lazy to test if you can do it even tought it's the most useless thing ever but you probably can.
    When I'm in my games and I wanna execute commands faster I write workspace instead of game.Workspace it does work.

  • @QuestionabIeStudios
    @QuestionabIeStudios 8 месяцев назад +1

    me when i clicked in this video: Ah, unoptimized code, this sure will be funny!
    me 4 minutes in: Why can i understand everything?...

  • @vwnt
    @vwnt 8 месяцев назад +1

    finally, you made the average acs gunkit game

  • @luh034
    @luh034 8 месяцев назад +1

    Why would you choose Roblox out of all the amazing Engines out there? I don't get what makes Roblox worth choosing over, say Godot, Unity, Unreal, Unigine, Cryengine or any other big ones out there. Isn't the Roblox engine just more limited, whilst simultaneously having less features and running worse than any of the ones listed above? The only reason I could think of is, that a lot is already pre-made - reducing the amount of development time required, which I somewhat get - but at that point just make a Source mod.
    Is there something I'm missing??

  • @kevy-uhhhhh
    @kevy-uhhhhh 5 месяцев назад +1

    Dawg I just realized how many times byte says "ok" in a video 😭

  • @KittenKatja
    @KittenKatja 7 месяцев назад

    How to claim that you wrote 12k lines in 10 min:
    Copy code that already has 10k lines, copy a feature in the code and paste it another 10 times, and make variation in those lines.
    Now, you got a forked project with 12k lines that you spent 10 min writing strings for the only "code" you actually made "yourself".
    This is how a friend claimed to have worked all day on a bot.

  • @UnethicalHacking
    @UnethicalHacking 6 месяцев назад

    this helped me a lil bit with for i loops. im currently trying to understand how i can acces the indivisual player in a table. and then assign them "player1" and if ur player 1 or 2-4 then it will show for the players in whatever to check and display there roblox thumbnail to the apropriate UI location. this is prolly confussing. but im getting close. if anyone would like to share some ideas or tipsor questions or anything, i would be so greatful. and vice versa, if u have a question, id love to try to help. stay scripting!

  • @cirkulx
    @cirkulx 5 месяцев назад

    5:35 this is where i started crying.

  • @connor7272
    @connor7272 8 месяцев назад

    As a game enjoyer, I have never complained abt a game being too optimized, maybe if there’s a significant impact on gameplay, but otherwise I like optimization, as everyone else does

  • @googoogaagaayt
    @googoogaagaayt 8 месяцев назад +1

    so glad you stopped making those long and overcomplicated tutorials😊

  • @harryvpn1462
    @harryvpn1462 8 месяцев назад

    16:00 A lot of roblox gears actually have this kinda stuff in them

  • @ErrorAnimator687
    @ErrorAnimator687 6 месяцев назад +1

    "If theres a child, inside a thing" 💀

  • @borkrz
    @borkrz 8 месяцев назад +20

    geometry dash lore

  • @nikolainyegaard
    @nikolainyegaard 8 месяцев назад +1

    Take a shot every time he ends a sentence with “okay?”

  • @nonsindev
    @nonsindev 8 месяцев назад

    I think i realy learned more in this video then in some other youtube tutorials👍 thank you very much❤

  • @BeansBem
    @BeansBem 5 месяцев назад

    it all starts to go down hill when nested loop is introduced

  • @pyepie4491
    @pyepie4491 6 месяцев назад

    i love how he didnt even use task.wait() he just used wait() which is EVEN MORE unoptimized

  • @Father-pq7tn
    @Father-pq7tn 9 месяцев назад +1

    When you realize his unoptimized code is how your code looks.

  • @eavfr
    @eavfr 9 месяцев назад +14

    Outstanding🔥🔥🔥🔥🔥

    • @whatthewhere
      @whatthewhere 9 месяцев назад +1

      🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥f

    • @NoobNoobyNobNub
      @NoobNoobyNobNub 9 месяцев назад

      🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥f

    • @tornadoruby
      @tornadoruby 9 месяцев назад

      🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥s🔥🔥🔥🔥🔥🔥🔥🔥🔥

    • @gdplentie3
      @gdplentie3 8 месяцев назад

      iNSITTING🧊🧊🧊🧊🧊🧊

  • @vincehomoki1612
    @vincehomoki1612 7 месяцев назад

    6:12 Can't wait for the part to stop pulsating after 2 hours!

  • @ThundermostYT
    @ThundermostYT 8 месяцев назад +1

    try to make a code but every time roblox studio tries to finish the code you gotta accept it and see what the code does at the end

  • @seamo-vt
    @seamo-vt 8 месяцев назад

    I don't know a single thing about coding but I was entertained the whole way through anyways

  • @ethanbritton
    @ethanbritton 8 месяцев назад

    4:52
    All of that to get the part
    then define the variable just using script.Parent
    genius, my friend

  • @vinciith
    @vinciith 9 месяцев назад +13

    AMATEUR!
    forgot ws3 = workspace

    • @parasyct
      @parasyct 9 месяцев назад +1

      only related comment in this video and so far behind the other ones

    • @reddeadleisure
      @reddeadleisure 9 месяцев назад

      ​​@@unfortunatemystery1778workspace is a default global variable smart ass

    • @xPWR-ol6ze
      @xPWR-ol6ze 9 месяцев назад

      ​@@unfortunatemystery1778 No, "workspace" is a valid way to get the Workspace of a game. game.Workspace, workspace, and game:GetService('Workspace') are all ways to get the workspace. If you want to get it like this you need to say "workspace" not "Workspace", making sure you have a lowercase "w". Anyway point is you can get it with "workspace".

    • @jdv_vv
      @jdv_vv 9 месяцев назад

      @@unfortunatemystery1778it is possible though-

    • @darilliostheillios
      @darilliostheillios 9 месяцев назад

      ​@@unfortunatemystery1778you don't need to add game. Before workspace.

  • @mainfalsedata
    @mainfalsedata 9 месяцев назад +1

    You can just do the part.Transparency like
    while true do
    wait(1)
    part.Transparent = transparenthere
    wait(1)
    part.Transparent = transparenthere
    end

    • @poopipants2155
      @poopipants2155 9 месяцев назад

      now make the code longer

    • @palmberry5576
      @palmberry5576 9 месяцев назад

      I don’t understand, that’s only two transparencies and where is 0.5 and 1

    • @mainfalsedata
      @mainfalsedata 9 месяцев назад

      @@poopipants2155 Well its like
      while true do
      wait(1)
      script.Parent.Transparent = 0
      wait(1)
      script.Parent.Transparent = 0.5
      wait(1)
      script.Parent.Transparent = 0
      wait(1)
      script.Parent.Transparent = 0.5
      wait(1)
      script.Parent.Transparent = 0
      wait(1)
      script.Parent.Transparent = 0.5
      wait(1)
      script.Parent.Transparent = 0
      wait(1)
      script.Parent.Transparent = 0.5
      wait(1)
      script.Parent.Transparent = 0
      wait(1)
      script.Parent.Transparent = 0.5
      wait(1)
      script.Parent.Transparent = 0
      wait(1)
      script.Parent.Transparent = 0.5
      end

  • @randienz1196
    @randienz1196 9 месяцев назад +1

    well done, you hurt me and everyone with at least basic programming and optimizing skills

  • @A13xx.
    @A13xx. 9 месяцев назад +2

    as a 3d modeller, this code is frying my brain

    • @jaop3734
      @jaop3734 6 месяцев назад

      Hey man I know this is kinda outta the blue but I'm an aspiring 3d modeller and I'd like to know if you have any tutorial/ channel recomendations cuz right now I feel really lost and demotivated. I use blender and really enjoy modelling and sculpting but scene making, animation and texturing... not so much. Should I at least try to learn the basics of those or just stick with what I like?

    • @A13xx.
      @A13xx. 6 месяцев назад

      @@jaop3734 i think it’s important to learn the basics based on what your interested in. blender has so much functionality so you should learn the controls for the specific bit you wanna use

  • @glob1212
    @glob1212 8 месяцев назад

    new scripter: “can someone tell me how to reference part” byteblox: “throws 17 lines of code”

  • @CalGal985
    @CalGal985 9 месяцев назад +1

    Could use more print statement whenever anything happens

  • @caboose6411
    @caboose6411 8 месяцев назад

    It’s honestly funny seeing my pc struggle with some roblox games yet handle FH5 at 4k maximum settings and raytracing with no problems.

  • @最も愚かな
    @最も愚かな 5 месяцев назад

    Love the unoptimized video my man!

  • @SillyGaming4
    @SillyGaming4 5 месяцев назад

    4:16 "Ok so now if we know that theres a CHILD inside of a THING called a script" what is bro yapping about 🙏🙏💀

  • @angrybirdnate0626
    @angrybirdnate0626 8 месяцев назад

    (11:35-12:40)
    the thing is some scripts on roblox's official documentation actually do this and it pisses me off to no end

  • @chuachev
    @chuachev 9 месяцев назад +1

    Hey byteblox can you make a video on how to make a bullet hell or something like that? I'd really appreciate it

    • @Arch-mv5te
      @Arch-mv5te 9 месяцев назад

      havent tried it yet, but i think you can try to make sort of generators and give them each an attribute of the position where the "bullet" will go and then using collection service tween it and use cframe.lookat to make it look at the destination

  • @HauntedKnight-cj8kv
    @HauntedKnight-cj8kv 8 месяцев назад +1

    Toy Defense is more unoptimized. 30 fps gaming. Some guy said he was getting 20 on an rtx 4090 in the same match as me, but I doubt it since I have some Radeon RX 580 series.

  • @jvthan
    @jvthan 8 месяцев назад

    Yo bro instead of holding down the backspace key, hold CTRL when pressing backspace and it'll delete the previous word instantly

  • @kaboomproduct
    @kaboomproduct 7 месяцев назад

    ever since watching the low framerate video i am only getting you in my recommended 😭😭

  • @dealsoperation
    @dealsoperation 8 месяцев назад +1

    That mrbest guy seems to give good advice he should start a RUclips channel

  • @2DCheese
    @2DCheese 5 месяцев назад

    "There's a CHILD inside a THING called The Script."

  • @byngerull6861
    @byngerull6861 8 месяцев назад +1

    add recursion without limits, will be good

  • @edcz_builds
    @edcz_builds 9 месяцев назад

    this starts to have the same feel as my high school math

  • @goodpuffs
    @goodpuffs 9 месяцев назад +1

    The editing is too distracting, did you hire a new editor for this video? I prefer the one's without the zoom ins and fast-paced cuts... 🤕😢😢

    • @byteblox100
      @byteblox100  9 месяцев назад

      It’ll be 50/50 old editing and new editing lol. If one style does better I’ll stick with that

  • @Yu-Gi-Oh36508
    @Yu-Gi-Oh36508 9 месяцев назад

    3:24 where is the stacked if statements??

  • @thevisiblefiend1534
    @thevisiblefiend1534 8 месяцев назад

    should make a game where you have too collect poimts™️ to get to a next level, in which give you more poimts™️ in which you can buy pets in which give more points. you should also have at the end of the level a boss, where you dont fight & make the pets fight it and the pets have health. and at the end pf each level you can develop an addiction & force the pets into labor to help you support the addiction, and each level is like this, just an endless loop of forced labor for your pets. also make the scripts like literally unreadable, unoptimized with tones of useless things in it.

  • @cookiecutter5176
    @cookiecutter5176 3 месяца назад

    Im as rookie as rookie gets in terms of coding
    But even still, looking at this, i can feel my brain trying to dissolve into dust.

  • @tabanty
    @tabanty 8 месяцев назад +1

    good job! you made a code worst than in yandere sim

  • @Dogemin
    @Dogemin 9 месяцев назад

    16:01 😬 i still do this even tho I've been programming for 1 year now, i really have to learm to us "for"

    • @DitherWither
      @DitherWither 8 месяцев назад

      bruh, how do you even
      like, sure, im not a roblox dev, but shouldn't any gamedev need an absolute metric load of loops? because i doubt you are using recursion or higher order functions for that

    • @Dogemin
      @Dogemin 8 месяцев назад

      @@DitherWither nope, in fact most games I made didn't use or needed "for i", but it depends "for" is good for like smooth transitions, now loops you can use a variety of options but what I normally do is "while true do" which basically loops an entire thing over and over again everytime it ends basically a loop, now it depends on the game, but most of the games I do doesn't require a heavy load of loops, but a heavy load of functions, statements, Events and variables like,
      Local blah = script.parent
      Local Function whatever()
      --Stuff you want to do goes here
      Blah.Touched:connect(whatever)
      Then if you wanna add a statement then you can make a function within the connection then add bellow, and then add a statement like; if blah.Name == "AHHHH" then
      In conclusion not every game needs a load of loops,
      Because every game is different.

    • @DitherWither
      @DitherWither 8 месяцев назад

      ​@@Dogemin Makes sense, i digged through the codebases of the couple of games i made, and except for the ones i wrote without a game engine, there wasn't too much looping (as stuff usually used callbacks/signals)
      The only loops i could find were ones like this (this is gdscript)
      ```
      ## Should always be set up from editor
      @onready var start_point = $RespawnPoint
      @export var checkpoints: Array[Area2D] = []
      func _ready():
      hide()
      for i in range(checkpoints.size()):
      checkpoints[i].body_entered.connect(get_checkpoint_handler(i))
      # Returns the handler for the particular checkpoint id
      func get_checkpoint_handler(idx):
      var handler = func handler(_body):
      set_checkpoint(idx + 1)
      return handler
      ```
      Considering the fact that neither lua nor gdscript are particularly performant, i'm guessing the reason for this approach is to be able to do as much of the computation in the native(C/C++) code as possible, and also to make it multi-threaded (maybe).

  • @SonicGaming6
    @SonicGaming6 8 месяцев назад

    If you put // technically you could make your code inf size

  • @slimecat_lol
    @slimecat_lol 5 месяцев назад

    how monsters make a kill brick: *damge 1 every 0.1 seconds*