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 - Игры
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()
3:43 if code assist is annoying you then disable it
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
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
and then it unfolds all your functions
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
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())
collectgarbage was exploitable but it would be a great debugging tool.
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
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)
@@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
@@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 you can, it has a maxforce property
@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
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
he did it in a old video i think
pretty sure task.wait() is more accurate too as it runs at 60hz while wait() runs at 30hz
It's same as spawn, you can use task.spawn()
Hey nice video, pretty good for beginners (:
It is very helpful!
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
Nah, I'm still using legacy body movers. Roblox would be out of their mind to let them go broken.
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.
@@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.
@@allstar4065 And this is why Roblox gives their devs plenty of time to adjust to the changes.
@@allstar4065 i used to think the same but now i just use linearvelocity and alignposition and alignorientation much better for me
wait() is for accurate waiting, but task.wait() is more for a game task.
wait() is less accurate
@@ZylithDev wait() is more accurate but less optimized
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.
@@PiterparkerYT no
@@PiterparkerYT no it's not, print wait() and task.wait() on the output and youll see the difference.
you could just display on print how long it took the script to print the said message
whats the difference between math.random and random.new
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.
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
math.random will only get you whole numbers
random.new is a class with methods that get you anything from whole to decimal numbers
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.
The code assist is so annoying lmao
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()
also iirc the accuracy difference between wait() and task.wait() is around ~0.03s
I literally said this in the video
mb I didn't watch the full video since I had to go
wait() is officially deprecated for a long time now, i dont know what you are talking about
@@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
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?
It also happens less often, but there is also the fact you don't need microseconds of accuracy
People are spreading misinformation, wait() is less accurate than task.wait().
How I bee understand code like you ?
i think u need to work on ur english before u can start learning how to code
@@GuiDuckzI dont know English that good but I can still code
@@GuiDuckz Not everyone has english as their first language, be respectful
@@shoppingcart69420 i wasnt disrespectful at all. If all coding languages are in english, working on his english might help
@@GuiDuckz especially for lua
What nuh uh math.random is better in most cases
Explain
It's faster
@@crackedatfortnite666 proof?