Dont Use These (Roblox Even Says So!) | Roblox Studio

Sdílet
Vložit
  • čas přidán 18. 05. 2024
  • Dont use deprecated things!!!
    Please like and subscribe for more tutorials! 💟
    If you get any enjoyment or use out of my videos, I would really appreciate if you like, comment, and subscribe! 👍 You help me make more videos and to keep teaching people the secrets of roblox studio and how to make the best possible games! 💝 I do sometimes make more complicated tutorials focused for more advanced developers, so keep in kind the information I am giving out. 📄
    #roblox #robloxstudio #robloxscript #robloxscripting #robloxadvancedscripting #robloxdev #robloxdevelopment #robloxdeveloper #robloxprogramming #scripting #programming #gamedev #gamedevelopment #gamedeveloper #robloxtutorial #robloxscriptingtutorial, #robloxadvancedscripting, #programming, #robloxdev, #robloxstudiotutorial, #lua #coding, #robloxshorts, dont use this roblox studio, deprecated functions roblox studio, scripting only using deprecated functions roblox studio, deprecated body movers roblox studio, wait() is deprecated roblox studio, wait() or task.wait() roblox studio, roblox news, roblox ceo, dont use these in roblox studio
    ROBLOX,character,character shop,scripting,coding,programming,program,pc,comptuter program,lua,how to make,how,how to make a character shop,studio,roblox studio,roblox scripting,How to script,roblox,studio coding,SCRIPTING ROBLOX,stewiepfing,How to make a,Pets,egg system,simulator,roblox simulator, power ups, how to make power ups roblox studio power ups scripting pet simulator x, pet, pet sim, pet sim x? LEADERSTATS, leaderstats, door, LEADERSTATS DOOR, how to make a leaderstats door, WorldBoost
    ROBLOX,character,character shop,scripting,coding,programming,program,pc,comptuter program,lua,how to make,how,how to make a character shop,studio,roblox studio,roblox scripting,How to script,roblox,studio coding,SCRIPTING ROBLOX,stewiepfing,How to make a,Pets,egg system,simulator,roblox simulator,Dash,how to script a dash,power,power ups, hightlight, stroke, roblox studio highlight feature pet simulator x, Pet simulator x game, How to make a simulator, how to make a game, how to make a roblox game, printing and debugging, roblox beginners scripting, scripting, roblox programming, roblox studio, printing roblox scripting, printing, roblox, learn how to script, learn how to script roblox, pet simulator x, game developer, day in the life of a game developer, day in the life of a roblox scripter, day in the life of a programmer
    kreekcraft, flamingo, sml, big games, pet simulator x, buildintogames, hazem, pls donate, polaris prog, polarisprog, roblox studio, rtc, twitter x, x, denisdaily, ibella, how to make a pet following system, arm wrestle simulator, 1coal, lanaslife, booshot, mrbooshot, skibidi toilet, skibidi, yeet a pet, recommend this youtube, fyp, tiktok, gravycatman, robuilder, alvin blox, scripting tutorials, How To Make A Tycoon In Roblox, how to make a simulator in roblox, tazd, roblox twitter, roblox twitter community, egg hatching system roblox studio, Roblox Studio - Arm Wrestle Simulator | UNCOPYLOCKED, pet simulator x uncopylocked, thedevking, how to make a hoverboard, how to make a hoverboard in roblox studio, b ricey, module scripts, How to script a Tool Gamepass | Roblox Studio Tutorial, How To Make A Teleport Gui In Roblox Studio 2023, How To Make A Notification System In Roblox Studio 2023, How To Make A Combat System In Roblox Studio 2023, HOW TO MAKE A GAME LIKE ARSENAL IN ROBLOX STUDIO PART 1!, HOW TO MAKE A GAME LIKE FRIDAY NIGHT FUNKIN IN ROBLOX STUDIO PART 1 !, How to make a game like among us in Roblox Studio. Part 1, How to make an ACTUAL Loading Screen in Roblox Studio, How to make an FPS game in ROBLOX STUDIO part 6!, How To Make A Survival Game In Roblox Studio - Part 1, I tried remaking DOORS in 1 HOUR..., I tried remaking pet simulator x in 1 hour, making a game in one hour, How to make a Shop Gui in ROBLOX Studio, ROBLOX Studio Story Game Part 1 Tutorial, I Made Minecraft's Terrain Generation in Roblox, blender, kreekcraft 10 mil
  • Hry

Komentáře • 60

  • @stewiepfing539
    @stewiepfing539  Před 9 dny +2

    wait() is locked to minimum of 30hz (e.g. at 60fps it would wait 2 frames). It is also subject to throttling (if you have too many threads waiting).
    task.wait() has no throttling and resumptions are considered each RunService Heartbeat.
    Always use task.wait() over wait()

  • @johndevv1522
    @johndevv1522 Před 14 dny +2

    3:37 You can disable code assists auto trigger by going to File > Studio Settings > Script Editor > Code Assist and then disabling auto trigger. Just a heads up

  • @Syntex_Error
    @Syntex_Error Před 11 dny

    Hey nice video, pretty good for beginners (:

  • @user-eg7me1ud4d
    @user-eg7me1ud4d Před 14 dny

    It is very helpful!

  • @Madooxs
    @Madooxs Před 14 dny +3

    collectgarbage was exploitable but it would be a great debugging tool.

  • @skyblox-eo5se
    @skyblox-eo5se Před 14 dny +3

    Hello . Honetly, you should compare task.wait() and wait() by seeing which one have a more accurate yeild time instead of just comparing the speed . This is because when we want to yeild . we would want it to wait for a certain amount of seconds as precise as possible . Hope you understand. Nice vid tho , I never knew that spawn() is depricated

    • @Plixy1
      @Plixy1 Před 14 dny

      he did it in a old video i think

    • @berendberend702
      @berendberend702 Před 14 dny +2

      pretty sure task.wait() is more accurate too as it runs at 60hz while wait() runs at 30hz

    • @until3am
      @until3am Před 14 dny

      It's same as spawn, you can use task.spawn()

  • @allstar4065
    @allstar4065 Před 14 dny +4

    Nah, I'm still using legacy body movers. Roblox would be out of their mind to let them go broken.

    • @Cardo2004
      @Cardo2004 Před 14 dny +6

      Programming is a forever evolving field, if you choose to stay behind you’ll be left behind.
      Deprecated just means it will no longer receive updates, so if a future update breaks it, it will remain broken. So it’s in your best interest to implement the better option.

    • @allstar4065
      @allstar4065 Před 14 dny

      @@Cardo2004 I don't think it's the better option though. I think using body movers like Body Velocity and Body Gyro are better because of the ease of use, and the fact no attachments are needed. It's a simpler process to cancel forces along an axis and makes much more intuitive sense. I know many devs who still use this system, so if roblox decided to do something that broke that feature, they would make a lot of people mad. Me included.

    • @Cardo2004
      @Cardo2004 Před 14 dny +2

      @@allstar4065 And this is why Roblox gives their devs plenty of time to adjust to the changes.

    • @NotAisar
      @NotAisar Před 13 dny

      @@allstar4065 i used to think the same but now i just use linearvelocity and alignposition and alignorientation much better for me

  • @jonathankrzeszewski9010

    all though using deprecated functions is bad and using new ones is good. i still have a place in my heart for getfenv and setfenv. i find it easy to make frameworks with it and replicate functions across all my modules, or replace wait with task.wait, etc

  • @acudex
    @acudex Před 14 dny +5

    if you ever want to make a dash or anything that moves the player without changing in speed wether you are airborn or not use a bodyvelocity even if it is deprecated its just way better than a linearvelocity in every way

    • @polalagi
      @polalagi Před 14 dny

      actually a linearvelocity is better (assuming that you're trying to move the player to the direction that the player is facing in), because with bodyvelocity to do it you would have to use CFrame.LookVector*speed, while in linearvelocitys using the line constraint mode you can just set it to the speed (and you don't have to update it every second)

    • @acudex
      @acudex Před 14 dny +1

      @@polalagi well how come that when you jump with a linear velocity you fly off into the void because it doesnt account for friction meaning whatever you are trying to do with it has to be only on the ground or air so friction doesnt mess up your speed

    • @polalagi
      @polalagi Před 14 dny

      @@acudex not really sure what you're talking about but about the flying off, you need an attachment for the linearvelocity to work. personally I've never had any issues with linearvelocity since it moves objects (at least from my experience) exactly like bodyvelocity

    • @VerdantROBLOX
      @VerdantROBLOX Před 11 dny

      can u change the maxforce on bodyvalocity?

    • @polalagi
      @polalagi Před 11 dny

      @@VerdantROBLOX you can, it has a maxforce property

  • @bartekgaw1
    @bartekgaw1 Před 14 dny

    you could just display on print how long it took the script to print the said message

  • @VerdantROBLOX
    @VerdantROBLOX Před 11 dny

    why is is now task.wait instead of just wait

  • @mafnor2268
    @mafnor2268 Před 14 dny

    The code assist is so annoying lmao

  • @BlingTheSlim
    @BlingTheSlim Před 14 dny

    doesn't that mean that you could use wait() for making something like cannons? ive heard from the comments taht its more accurate so wouldnt it work for hitboxes better depending on the type of game ur making?

    • @fitmotheyap
      @fitmotheyap Před 14 dny

      It also happens less often, but there is also the fact you don't need microseconds of accuracy

    • @lumalumii
      @lumalumii Před 14 dny +3

      People are spreading misinformation, wait() is less accurate than task.wait().

  • @roninexplode
    @roninexplode Před 14 dny +1

    whats the difference between math.random and random.new

    • @vera2193
      @vera2193 Před 14 dny

      I looked it up, math.random is actually faster but can only handle up to 32 bit signed numbers, whereas random.new can handle 64 bit. so, math.random has a smaller limit but generates the number faster. basically, I think random.new is pretty useless if you aren't in need of REALLY large numbers. atleast, that's what google says.

    • @kirillchshukin6602
      @kirillchshukin6602 Před 14 dny

      in Math.random(1,10) it will get an random number from 1-10 in Random.new():NextRange(1,100) it will get an Random number out of this range ig it was like that correct me lol ig so "Random.new():NextRange(1,100)" it mostly Used in RNG Games and like hatching pet system yk check forum u will see the diffrence np

    • @nathancs716
      @nathancs716 Před 12 dny

      math.random will only get you whole numbers
      random.new is a class with methods that get you anything from whole to decimal numbers

  • @Abdalla_Zeko1
    @Abdalla_Zeko1 Před 14 dny

    How I bee understand code like you ?

    • @GuiDuckz
      @GuiDuckz Před 14 dny +1

      i think u need to work on ur english before u can start learning how to code

    • @PurpleLegoPieces
      @PurpleLegoPieces Před 14 dny +6

      ​@@GuiDuckzI dont know English that good but I can still code

    • @shoppingcart69420
      @shoppingcart69420 Před 14 dny +2

      @@GuiDuckz Not everyone has english as their first language, be respectful

    • @GuiDuckz
      @GuiDuckz Před 14 dny

      @@shoppingcart69420 i wasnt disrespectful at all. If all coding languages are in english, working on his english might help

    • @banjoller
      @banjoller Před 14 dny

      @@GuiDuckz especially for lua

  • @mrtomato_oficial
    @mrtomato_oficial Před 14 dny +15

    wait() is for accurate waiting, but task.wait() is more for a game task.

    • @ZylithDev
      @ZylithDev Před 14 dny +18

      wait() is less accurate

    • @PiterparkerYT
      @PiterparkerYT Před 14 dny +4

      @@ZylithDev wait() is more accurate but less optimized

    • @franzhaydenferrer
      @franzhaydenferrer Před 14 dny +25

      task.wait() is more accurate. wait() runs at 30hz, yielding 2 frames but task.wait runs at 60hz, yielding only 1 frame. wait() also throttles but task.wait() doesn’t.
      Basically, task.wait() updates 2x more than wait() and is more optimized.

    • @boi8756
      @boi8756 Před 14 dny +2

      @@PiterparkerYT no

    • @lumalumii
      @lumalumii Před 14 dny +2

      ​@@PiterparkerYT no it's not, print wait() and task.wait() on the output and youll see the difference.

  • @polalagi
    @polalagi Před 14 dny +1

    math.random isn't deprecated and is (probably) never going to be - it's not an old function for a removed feature like collectgarbage() or wait() which was replaced with task.wait(), math.random is just a way to generate a random integer between number 1 and number 2 without needing to give it a random seed. also wait() isn't deprecated, it's just a less accurate way of waiting than task.wait() (I tested it and task.wait was 90% of the time more accurate than wait), so you should be fine using wait() and math.random()

    • @polalagi
      @polalagi Před 14 dny

      also iirc the accuracy difference between wait() and task.wait() is around ~0.03s

    • @stewiepfing539
      @stewiepfing539  Před 14 dny

      I literally said this in the video

    • @polalagi
      @polalagi Před 14 dny

      mb I didn't watch the full video since I had to go

    • @abidbmtt
      @abidbmtt Před 14 dny

      wait() is officially deprecated for a long time now, i dont know what you are talking about

    • @polalagi
      @polalagi Před 14 dny

      @@abidbmtt it doesn't really display a warning in the script editor about it being deprecated (like a line over it in the recommendation/autocompletion tab or whatever you want to call it) so in my opinion it isn't deprecated yet