Hey I'm new to roblox studio and have been watching your videos like the CFrame and raycast videos but I was wondering how I could implement that into a tool like a flashlight to make the light cast at the mouse, I'm not completely new and have made a basic flashlight but it only points the direction of the player head regardless of where your look. And also which method would be better/simpler to do?
Sorry for another comment, but can I get the script? I don't want to download any apps to get the code. Please make it open sourced I have a small memory leak on UserInputService
can you make tutorial on how to make arm movement, something of like a game called "Getting Over It with Bennett Foddy", it's a game about man in a pot (cauldron) that has hammer and climbing till the space
Tips: 1 - You don't need to use local at begin of a variable (local Test = nil - Test = nil). It works 100% correctly and don't throws a error (except if variable is into a scope, it CAN OR NOT throws a error at input but script continue working 100% normal) 2 - When you use Instance.new("Part") you don't need do it: Part = Instance.new("Part") Part.Parent = game.Workspace You can use Instance.new("Part", workspace) - You can set the parent at same command. 3 - You don't need game.Workspace, you can just workspace. 4 - You don't need to use: task.wait(1) workspace.Part:Destroy() Because task.wait() stop all script, so you can do: Debris = game:GetService("Debris") Debris:AddItem(workspace.Part, 1) It means that at next 1 second the workspace.Part will be destroyed without stop script. I HOPE YOU LIKED THIS! [Sorry, I don't know speak english so good, i'm from Brazil]
It's best practice to use local because global variables are a code smell and cost in terms of performance. Just because you can do something to save 5 letters doesn't mean you should. Also, just because code works doesn't mean its good code.
Just to reiterate @BRicey's point, and expand a bit: 1) Yes, you do not want to have all of your variables in global scope. You're going to be stepping all over yourself, overwriting values and the performance cost of accessing global scope isn't cheap. Global variables should be used incredibly sparingly. It's generally considered bad practice to use them if it can be avoided in most programming languages. They aren't thread-safe, either. And 2) If you plan to change any properties of the part (or any kind of instance that's going to be parented to workspace), it's better to do that first BEFORE you parent it to the workspace. If you local part = Instance.new("Part", workspace), then need to change the position, color, attributes, whatever, it's much more costly since the part has been replicated to all the clients. Instead of making the part's property changes first, when it's just a single part that hasn't be replicated, you're now sending out these property changes across the network to each of the clients and updating each of those replicated parts. 3) Yep! 4) Yep! He uses Debris Service in his Tycoon tutorials, in fact.
It's when you leave something out in the world without deleting it. Over time, the "trash" builds up and can eventually crash your game if your physical device or the server runs out of RAM (memory)
@@BRicey I don't really get it does every time the stepped function run does it add data to the memory and it gets removes when disconnected? Doesn't it just do the code and forget about it? Or do we disconnect it so that when we call the function again there wouldn't be two stepped events firing at the same time is that the problem or the first one?
Or just don't connect non-object specific events when you create an object, but work with them somewhere else. This may lead to poor performance of the function itself, but it can be much better to manage.
Finally a garbage collecting tutorial in Roblox Development.Thank you dude you are a legend.
Nice! Could you do a tutorial on Knits components module? I've been having trouble figuring it out 😄
I could totally do that, I use it all the time
@@BRicey I would also love to see a video on it
Hey I'm new to roblox studio and have been watching your videos like the CFrame and raycast videos but I was wondering how I could implement that into a tool like a flashlight to make the light cast at the mouse, I'm not completely new and have made a basic flashlight but it only points the direction of the player head regardless of where your look. And also which method would be better/simpler to do?
didn't watch the vid yet, but just liked and commented in advanced, thanks
I appreciate that
such an amazingly helpful module
Could you make a tutorial on implementing ProfileService into the Tycoon series? Love your videos!
ohhhhh I was waiting for this one
so basically its putting objects in a table then deleting the table?
Sorry for another comment, but can I get the script? I don't want to download any apps to get the code. Please make it open sourced I have a small memory leak on UserInputService
interesting module thanks for the video!
Glad you liked it!
I needed this video so bad
Can you do a video about RbxUtils/Knit Utils and Data Serialization for Datastore?
Yep I want to do a vid on components soon, and other rbx util libraries
What is the difference of each one?
Just the sytnax, some are more convenient, some are faster, its just personal preference tbh.
What's the practical difference between Trove, Maid, and Janitor?
Isn’t it default that when an object is destroyed, all connection are disconnected?
Yes, but connections to stuff like runservice, userinputservice, and the like are not disconnected, you have to do that yourself.
@@BRicey damnnnnnnn
what if we happen to remember to always disconnect and destroy the connections and objects we create?
It’s still recommended to use this as it’s easier and more flexible
@@puzzled3d but if we always remember to disconnect, then we don't really have to use this module
@@pepperdayjackpac4521well can you do allat, or you can just use the module and only have to do one line to disconnect and destroy all of it
can you make tutorial on how to make arm movement, something of like a game called "Getting Over It with Bennett Foddy", it's a game about man in a pot (cauldron) that has hammer and climbing till the space
Ooh that's a fun idea
maybe next tutorial would be the aerogame framework? or springs by quenty?
I wouldn't use aerogame framework anymore, as the author has moved on to Knit, and even Knit is going to be replaced soon
@@BRicey oh so much better if you create your own loader then?
I would like a Nevermore tutorial the docs don't make much sense
can you make more explanation on the component {Come with Knit} module cuz I read The Documentation it Don't really Help ::Thank :)
Tips:
1 - You don't need to use local at begin of a variable (local Test = nil - Test = nil). It works 100% correctly and don't throws a error (except if variable is into a scope, it CAN OR NOT throws a error at input but script continue working 100% normal)
2 - When you use Instance.new("Part") you don't need do it:
Part = Instance.new("Part") Part.Parent = game.Workspace
You can use Instance.new("Part", workspace) - You can set the parent at same command.
3 - You don't need game.Workspace, you can just workspace.
4 - You don't need to use:
task.wait(1)
workspace.Part:Destroy()
Because task.wait() stop all script, so you can do:
Debris = game:GetService("Debris")
Debris:AddItem(workspace.Part, 1)
It means that at next 1 second the workspace.Part will be destroyed without stop script.
I HOPE YOU LIKED THIS! [Sorry, I don't know speak english so good, i'm from Brazil]
It's best practice to use local because global variables are a code smell and cost in terms of performance. Just because you can do something to save 5 letters doesn't mean you should. Also, just because code works doesn't mean its good code.
Just to reiterate @BRicey's point, and expand a bit:
1) Yes, you do not want to have all of your variables in global scope. You're going to be stepping all over yourself, overwriting values and the performance cost of accessing global scope isn't cheap. Global variables should be used incredibly sparingly. It's generally considered bad practice to use them if it can be avoided in most programming languages. They aren't thread-safe, either.
And 2) If you plan to change any properties of the part (or any kind of instance that's going to be parented to workspace), it's better to do that first BEFORE you parent it to the workspace. If you local part = Instance.new("Part", workspace), then need to change the position, color, attributes, whatever, it's much more costly since the part has been replicated to all the clients. Instead of making the part's property changes first, when it's just a single part that hasn't be replicated, you're now sending out these property changes across the network to each of the clients and updating each of those replicated parts.
3) Yep!
4) Yep! He uses Debris Service in his Tycoon tutorials, in fact.
Could you explain memory leaks and what causes them I'm kinda dumb
It's when you leave something out in the world without deleting it. Over time, the "trash" builds up and can eventually crash your game if your physical device or the server runs out of RAM (memory)
@@BRicey I don't really get it does every time the stepped function run does it add data to the memory and it gets removes when disconnected? Doesn't it just do the code and forget about it? Or do we disconnect it so that when we call the function again there wouldn't be two stepped events firing at the same time is that the problem or the first one?
okay I've been dying to ask, how do download the module?
how the heck did i find you here
@@PankakeSyrip this guy is literally the back of the classroom for roblox studio tutorials and he's awesome
@@refusalstudios true....
I don't use OOP, I use Haskell.
Can you plss make a video and its about how to make roblox game using mobile cuz i want to make in mobile🙏🙏🙏
Promise
how do u install trove?
nvm i did it
@@RealOakyhow
Or just don't connect non-object specific events when you create an object, but work with them somewhere else. This may lead to poor performance of the function itself, but it can be much better to manage.
yeah never speak again
@@ImUkoo damn💀💀💀
Help me, please
I HATE THESE MODULJES. GIT.
Module scripts are goated