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

Поделиться
HTML-код
  • Опубликовано: 5 окт 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
  • ИгрыИгры

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

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

    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()

  • @Monkeymario.
    @Monkeymario. 3 месяца назад +2

    3:43 if code assist is annoying you then disable it

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

    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

  • @EpicPico0625
    @EpicPico0625 2 месяца назад +1

    Code assist might be annoying at times, but when it catches on what you're doing then it comes in clutch for time savings.
    Thats why i like it

    • @dxlorean2938
      @dxlorean2938 Месяц назад

      and then it unfolds all your functions

  • @Monkeymario.
    @Monkeymario. 3 месяца назад +2

    saying random.new is better than math.random triggers me math.random is more random but random.new has more features but is psudo random not random well technically math.random is kinda psudo random but it still is more random

    • @Brambes05
      @Brambes05 6 дней назад

      math.random and Random.new are the exact same thing. math.random is just a globally stored Random.new with only the NextNumber function. You can even try it in studio like this
      math.randomseed(123)
      local random = Random.new(123)
      print(math.random(), random:NextNumber())

  • @Madooxs
    @Madooxs 4 месяца назад +3

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

  • @acudex
    @acudex 4 месяца назад +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 4 месяца назад

      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 4 месяца назад +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 4 месяца назад

      @@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

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

      @VerdantROBLOX you can, it has a maxforce property

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

      @VerdantROBLOX not really, linearvelocity allows you to change it's mode to line so instead of doing LookVector*speed you can just put the speed there, while bodyvelocity only supports global movement

  • @skyblox-eo5se
    @skyblox-eo5se 4 месяца назад +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 4 месяца назад

      he did it in a old video i think

    • @berendberend702
      @berendberend702 4 месяца назад +2

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

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

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

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

    Hey nice video, pretty good for beginners (:

  • @АнненковОлександр
    @АнненковОлександр 4 месяца назад +1

    It is very helpful!

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

    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

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

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

    • @Cardo2004
      @Cardo2004 4 месяца назад +7

      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 4 месяца назад

      @@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 4 месяца назад +3

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

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

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

  • @mrtomato_oficial
    @mrtomato_oficial 4 месяца назад +15

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

    • @ZylithDev
      @ZylithDev 4 месяца назад +20

      wait() is less accurate

    • @PiterparkerYT
      @PiterparkerYT 4 месяца назад +5

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

    • @furantsu1
      @furantsu1 4 месяца назад +26

      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.

    • @boi875_RBLX
      @boi875_RBLX 4 месяца назад +2

      @@PiterparkerYT no

    • @lumalumii
      @lumalumii 4 месяца назад +2

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

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

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

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

    whats the difference between math.random and random.new

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

      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 4 месяца назад

      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 4 месяца назад

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

    • @Brambes05
      @Brambes05 6 дней назад +1

      sorry to bring this up 4 months later but i saw no one has actually answered you correctly so i will. math.random is just a globally stored Random.new they're exactly the same. You can test it out in studio like this
      math.randomseed(123)
      local random = Random.new(123)
      print(math.random(), random:NextNumber())
      random in computers can become quite complicated but for general things math.random works just fine. Only when you're in more advanced things like terrain generation and you want the same world every time you load it you would use Random.new with a set seed. Just like how Minecraft does it for example, every different type of structure has a unique seed with a unique Random.new() to ensure structures are always on the same spot with the same seed.

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

    The code assist is so annoying lmao

  • @polalagi
    @polalagi 4 месяца назад +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 4 месяца назад

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

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

      I literally said this in the video

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

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

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

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

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

      @@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

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

    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 4 месяца назад

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

    • @lumalumii
      @lumalumii 4 месяца назад +3

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

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

    How I bee understand code like you ?

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

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

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

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

    • @shoppingcart69420
      @shoppingcart69420 4 месяца назад +2

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

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

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

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

      @@GuiDuckz especially for lua

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

    What nuh uh math.random is better in most cases