Тёмный

What Roblox Doesn't Tell You | Roblox Studio 

Stewiepfing
Подписаться 2,6 тыс.
Просмотров 23 тыс.
50% 1

Keep memory consumption in mind!
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, memory leaks game development, how to stop memory leaks roblox studio, memory leaks roblox studio, disconnecting events roblox studio, disconnect() roblox studio, how to optimize your scripts roblox studio, how to optimize your game roblox studio, optimize memory usage roblox studio, prevent memory leaks roblox studio, unkown roblox feature, what roblox doesnt tell you
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

Игры

Опубликовано:

 

12 май 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 103   
@stewiepfing539
@stewiepfing539 25 дней назад
Optimize the amount of memory your using!!
@workindad
@workindad 24 дня назад
That :Once is interesting. You can use that for day/night cycle when the first player enters on a new server so that everyone is sync'd or perhaps when there's a timer on how long a server has been online.
@1Teb
@1Teb 24 дня назад
Wrong your
@ProSureStrings
@ProSureStrings 24 дня назад
@@1Tebyou’re* wrong
@Kitsune_Dev
@Kitsune_Dev 24 дня назад
@@workindadyou can use modulus operator with a shared timestamp value
@enpiesie
@enpiesie 23 дня назад
​@@workindad I was really surprised when I saw :Once() existed. Usually I just use connect and then disconnect it when I'm done. this is so useful
@pingolein
@pingolein 25 дней назад
most of the roblox scripting content creators don't teach about optimization and more unknown functions / features, Keep up the great work!
@detsuk1
@detsuk1 17 дней назад
"if you really don't know about programming, become a programming youtuber"
@berendberend702
@berendberend702 25 дней назад
Great tutorial! One thing to keep in mind is that roblox automatically cleans up memory from variables that are no longer in use, so you don't have to manually do variable = nil (although this will free up the memory faster than roblox's automatic garbage collection afaik). As for the last part of the video, roblox now automatically destroys players and characters (previously an option called PlayerCharacterDestroyBehavior).
@epic_devz
@epic_devz 25 дней назад
This was really helpful, Thanks!
@hayden2638
@hayden2638 25 дней назад
It's pretty useful to know this, although for small games it won't make a huge difference, but for big projects it sure will.
@DynoDeso
@DynoDeso 3 дня назад
It will make a pretty big difference. If it's a small game and these connections are constantly being made and not created then the memory usage will keep piling up
@johanildpg5414
@johanildpg5414 9 дней назад
Actually very useful, thanks!
@thedrogba246
@thedrogba246 24 дня назад
just use maid, trove or janitor and you are good, disconnecting stuff is time consuming those modules do that for you, never heard of destroying the character on leave, but that's just a visual thing, their character will stay there for 2-3 seconds but the character will be removed anyways
@wedoalittletrolling723
@wedoalittletrolling723 24 дня назад
I think people confuse removing the character in studio within the client window Because studio is both the server and the client, some issues can occur that might not occur on a live game.
@zenstarz2406
@zenstarz2406 16 дней назад
far too much unnecessary bloat from some of those modules you are recommending when you could really just make a table containing all things that are planned to be cleaned up and iterate through them later on
@wedoalittletrolling723
@wedoalittletrolling723 16 дней назад
@@zenstarz2406 or make a module script, call it Globals or smth and cram all your utility functions and constants inside it.
@didymos03
@didymos03 25 дней назад
Didn't know about this. I just started making my own game. Thanks for the tut.
@_demosthenes
@_demosthenes 24 дня назад
you don't need to manually destroy the players or characters, afaik that issue only happened with characters and it has since been fixed. just manage your event connections and avoid globals, lua is a high level interpreted language anyways so it's always going to have some performance issues or lack of fine control of memory
@mathesimard
@mathesimard 23 дня назад
I totally agree. I think this is definitely a thing they should fix as it may cause a decent amount of lag/delay on low-end or also called potato devices. I am a scripter myself and I totally agree with you.
@ExplyDev
@ExplyDev 23 дня назад
Disagree
@mathesimard
@mathesimard 23 дня назад
@@ExplyDev Why?
@nicraftstudios0
@nicraftstudios0 24 дня назад
Meanwhile me with hundreds of poorly optimized loops constantly running at the same time: hm I wonder why my game’s so laggy
@FEG_Studio
@FEG_Studio 24 дня назад
Awesome !
@KashTheKingYT
@KashTheKingYT 25 дней назад
nice, you should make a video about luau compiling and how roblox optimizes your script on compile time
@jujhar.
@jujhar. 6 дней назад
Kash 🤑🤑🤑
@ImNot_Nightare
@ImNot_Nightare 25 дней назад
Great example of a memory leak is parkour reborn
@ahsrua
@ahsrua 22 дня назад
As a expl. script dev, doing these will strongly optimise it. Most scripts are laggy and unoptimised, funny
@xzenkaidragon9664
@xzenkaidragon9664 12 дней назад
Thanks man this was helpful but one thing I'm still confused about is why do we have to run destroy on player and character when playerremoving or characterremoving events run? Do they not just destroy on their own and in that case all connections tied to them also get cleaned up?
@zacomad
@zacomad 18 дней назад
Bro save my life with :Once and other tech just thanks bro 🙂👌
@technykgs
@technykgs 25 дней назад
Could you put the docs in the description or in a pinned comment? I'd like to read it through
@TripmineProductions
@TripmineProductions 25 дней назад
I've never realized you had to do something like this to prevent memory leaks. Is this why some games I play are extremely laggy even with all of the settings turned down. Roblox: Powering bad optimized games
@Zeriumi
@Zeriumi 24 дня назад
The developers just don't care about optimization of scripts at the first, if your code is clean and you know how to do it, it won't lag. Another issue can be that visuals cause lag, not unoptimized scripts. For this case that's device problem but games should add options for example turning off effects and stuff.
@gfries4906
@gfries4906 23 дня назад
oddly, its very typical for roblox devs to ignore optimization entirely. theyll import full resolution pngs that take like multiple megabytes, spawn a bunch of functions, etc.
@Zeriumi
@Zeriumi 23 дня назад
@@gfries4906 Ye that's what I said, barely anyone cares about optimization, even though it's not that hard to make
@Martinchi
@Martinchi 25 дней назад
Great video! I'm relatively new to scripting, though I've been on the platform for the better part of 13 years, and optimization in my opinion is heavily neglected (judging by the lack of tutorials or videos that speak about it). This was quite informative, keep it up.
@Istillbeamin2024
@Istillbeamin2024 25 дней назад
how and when did you learn how to script
@AleyzRo
@AleyzRo 25 дней назад
dusty trip is an example, it fr crashed my roblox when i wanted to go in a round💀 (sometimes)
@hyperix-dead
@hyperix-dead 20 дней назад
just shows how """"""""""""""""""""""great"""""""""""""""""""""" this game is
@MOHA_1484.
@MOHA_1484. 24 дня назад
Bro I was like I will learn scripting I alreaddy saw some vedios but now I'm scary I mean my dream is to make games now I cant and I dont have money
@firepalmmy5933
@firepalmmy5933 24 дня назад
Title: what roblox doesn't tell you in video: roblox also says that clearing up tables when they are no longer needed is another way of optimizing
@stewiepfing539
@stewiepfing539 24 дня назад
Yeah roblox doesn’t tell you about memory optimization but they still have documentation 🤡
@firepalmmy5933
@firepalmmy5933 24 дня назад
@@stewiepfing539 could you make a video explaining all tabs in developer console: memory, network, etc.
@RuskyDev
@RuskyDev 23 дня назад
Nice tutorial! Do you have a Discord server? If not, can I create one for you?
@veliantriic
@veliantriic 9 дней назад
9:18 what if theres a datastore? will it save?
@ufoulroo2035
@ufoulroo2035 25 дней назад
3:00 the assistant is so annoying when trying to code 😂
@AlreadyCode
@AlreadyCode 23 дня назад
fr. you can get rid of it though
@NurJoel
@NurJoel 23 дня назад
yeah it sometimes stresses me because ik when those three loading points finished there'll be a code. And then it distracts me from what I wanted to code
@jujhar.
@jujhar. 6 дней назад
Yeah, I know what I wanna write it just starts going *. . .*
@NurJoel
@NurJoel 5 дней назад
@@jujhar. Isn't there a way you ca turn it off?
@bebra3392
@bebra3392 2 дня назад
Ofc roblox's max amount of memory is "6.9" GB
@dominilk0165
@dominilk0165 24 дня назад
OHH no! my pressuse octet lost by setting a variable to nil
@golden-gamingmore5931
@golden-gamingmore5931 23 дня назад
me when memory leak 🧨💥
@jujhar.
@jujhar. 6 дней назад
I love running thousands of unnecessary loops at once 😊😊😊
@baconheadhair6938
@baconheadhair6938 4 дня назад
how to reactivate a connection after disconnecting
@NoSences
@NoSences 5 дней назад
Roblox limit of 6.9 Nice
@user-sq3xj9wr2i
@user-sq3xj9wr2i 20 дней назад
we are really getting in times of C where programmers need to carefuly manipulate memory?
@stewiepfing539
@stewiepfing539 20 дней назад
Always been a thing
@Lazu_o
@Lazu_o 25 дней назад
destroying players and characters upon their removal is weird. aren't they automatically destroyed when removed?
@ProSureStrings
@ProSureStrings 24 дня назад
Sometimes if values still exist and are somehow tied to the player, it will remove them
@Te.le.
@Te.le. 23 дня назад
Nope, the motor6d instances are just deleted.
@alexikabakilwa2663
@alexikabakilwa2663 20 дней назад
Did i play 3vade with you
@Tamla1959
@Tamla1959 25 дней назад
4:30i thought you said setting it to nil uses up some memory, but you just set it back to nil here, is there a difference?
@stewiepfing539
@stewiepfing539 25 дней назад
I meant to say when the variable is equal to nothing eats up memory like: local variable. Sorry I messed up the way I should of done it
@Tamla1959
@Tamla1959 25 дней назад
@@stewiepfing539 Ok, "local test" eats up memory but "local test = nil" does not, is that right? Also at 8:16 you mentioned that Roblox among others recommends deleting the players character, but Roblox already does this? When a player leaves a game, it gets destroyed automatically, right?
@Tamla1959
@Tamla1959 25 дней назад
@@stewiepfing539 Also could you send me the dev forum/creator page that says about optimising your game, I would like to read it in depth more.
@stewiepfing539
@stewiepfing539 25 дней назад
@@Tamla1959 as far I as I know yes, destroying the player and character was just on the documentation so I covered it
@Tamla1959
@Tamla1959 25 дней назад
@@stewiepfing539 ah ok, could you send me a link to the documentation?
@crooda3681
@crooda3681 23 дня назад
Learned this the hard way in c++
@ionelaalexandru2652
@ionelaalexandru2652 25 дней назад
Is there a way to simulate water with floating physics (for a boat game) so that the game works well on mobile too?
@Zakeksi4ek
@Zakeksi4ek 25 дней назад
use a better game engine for that
@halohasawaken6793
@halohasawaken6793 25 дней назад
If you want to accomplish something like that in Roblox (of all things), you might as well make your own physics system. At the moment, Im creating a physics system for grenades since using remote events + applying velocity on server will make the process slow. And I aint using FastCast!
@LooperEpic
@LooperEpic 25 дней назад
Couldn’t you do raycasts? Same concept as a vehicle with raycast suspension but over water (and probably submerged a bit)
@Sown.
@Sown. 25 дней назад
@@halohasawaken6793 have fun with getting that to perform at least somewhat fast. Native codegen will not work for that I believe so uhh yeah I think you should think of using another game engine
@OcnarfPro
@OcnarfPro 24 дня назад
​@@halohasawaken6793use OcnarfCast
@Nwmcosczycosidk123
@Nwmcosczycosidk123 4 дня назад
1:15 is this real?
@aasddffghhjjkl
@aasddffghhjjkl 23 дня назад
grrah
@windy6191
@windy6191 7 дней назад
nil and 0 take up the same amount of memory
@stewiepfing539
@stewiepfing539 7 дней назад
No they dont, in Lua, numbers are typically stored as double-precision floating-point numbers, which means they take more memory (8 bytes / 64 bits) than just nothing
@windy6191
@windy6191 7 дней назад
@@stewiepfing539 all luau primitives (and even Vector3s) are stored in a 16 byte union
@windy6191
@windy6191 6 дней назад
@@stewiepfing539 how about pointing out whats wrong with what i said? you can look at the source code yourself look it up. Nil and number are the same size. Variables for tables and strings are the same size too (the variable stores a pointer to the content inside internally)
@windy6191
@windy6191 6 дней назад
why did all my and your replies get deleted?
@windy6191
@windy6191 6 дней назад
did you delete my replies?
@puppetbirds
@puppetbirds 25 дней назад
HOW DO PROGRAMMERS NOT KNOW MEMORY MANAGEMENT? these people will never be able to write a SINGLE zig program without a memory leak
@_demosthenes
@_demosthenes 24 дня назад
they dont need to, lua has a garbage collector, it just doesnt clean up some connections depending on scope and where theyre referenced. luas a scripting language precisely because you dont have to worry about memory management. imagine trying to use lua to configure a program and have to worry about memory allocation. also not sure what zig has to do with this
@baconheadhair6938
@baconheadhair6938 4 дня назад
how do programmers not know everything about programming the second the start programming
@ding.1367
@ding.1367 25 дней назад
6.9GB specifically, bro what. nice video though
@Te.le.
@Te.le. 23 дня назад
its 7 gb - the 0.1gb thats reserved for other services that roblox runs that arent binded to the player task. 7 gb is a lot for roblox.
@Kitsune_Dev
@Kitsune_Dev 24 дня назад
oh 💩
Далее
Super gymnastics 😍🫣
00:15
Просмотров 18 млн
Roblox's Lowest Possible Era...
8:47
Просмотров 137 тыс.
The Only Thing You Need To Learn How To Script
4:36
Просмотров 116 тыс.
I Made Minecraft in Roblox
14:01
Просмотров 51 тыс.
Optimizing my Game so it Runs on a Potato
19:02
Просмотров 367 тыс.
The Wild World of Discontinued Roblox Features
29:45
Просмотров 92 тыс.
These Optical Illusions Are Actually Playable
17:25
Просмотров 344 тыс.
I Learned How to SCRIPT in 7 Days | Roblox
11:00
Просмотров 20 тыс.
Programming Can Be VERY Repetitive... | Roblox Studio
11:39
Roblox's Worst Gaming Company
17:44
Просмотров 288 тыс.
CyberBrawl - The Last Sacrifice
1:35
Просмотров 1,3 млн