Bro i am not gonna lie you are the best one in explaining roblox studio - clear sound (and theres no music dont ever add music) - pretty good explanation way - at least you know what are you doing in most videos they are testing in the video lol Thanj you so much
You are such a great TH-camr, and your tutorials are so awesome. They are very clear, you know what you're doing, and you give really good examples. I've watched so many of your tutorials that I predicted what example you were going to use! Even before you give us a code example, you explain each method so well that I can already do half of it. Keep up the amazing work, man.
I did never think that a .Touched event still fires in a for i, v in pairs() loop :0 Thx a lot, this is gonna be pretty good for a tree breaking system. I though I'd have to insert a script into every single tree on my map lol
Hello bro, is that normal when the tag is added but when i touche the part it didnt do nothing but the other parts that i added the tag in tag editor manually its work properly but not the parts that we add the tag in the script??!!!..
Yeah that works too,but personally collection service is better as it has more things too, like for example what if you wanna get a specific part with a tag using HasTag() and add or remove a tag and then do something else? Thats where you use GetInstanceAddedSignal or GetInstanceRemovedSignal.
this works, but just as with many of the other videoes he made he shows us scripts that gives us more control and more commands that we can use to modify the game. Such as you cant just add a new part mid game if you made a folder like that, atleast not as easily as with tags. Like with tags you can make scripts to add parts, or even a completely different item inside roblox studio, trough specific events happening ingame and make it spawn into the game like that
I can think of situations in which this logic is not that good, tho. Imagine if your game has stages and each stage has its own objects, including, for instance, the kill bricks. You would have them all spread across the stages directories, and not grouped in one, so thats why using tags is the best approach, bc the CollectionService was made for this, ya know.
u should delete that example from the video. my brain got confused so hard. otherwise keep it up bro. that is amazing u made me love scripting so much and make it simple
About the start of the video, when I was creating my first beginner game on my own, i actually just unioned the whole kill brick part and used one script on it lol
omg thanks i would originally put them in a model or a folder and do _, killbrick in ipars(model) and it was tiring to keep putting killbricks in that model or folder
so everything u said in the example in the end there in easy few words: You can use it to make all scripts/instances with a specific tag for example "outOfProximity" stop running once they are over a specific distance apart from you, am I right? cause u made it overly complicated
Hi @BrawlDev I'm lost, I've added the tag to the newPart as you showed but the tag isn't applying the KillBrick function to that part. What am i doing wrong? Is the newPart supposed to kill the player or is it just adding a tag. Cuz when i load in the tag will add after 5 seconds but it doesn't kill my player.
Hi, once the get tagged function runs, it does not run again. You need to run the function inside a spawn() environment with a while task.wait loop. And then it will update for new parts tagged.
ok so i have a question like if i had multiple parts and all of em are using same tag applied to them on server but i wanna access some ui and stuff on client but due to remote event delay on server and client, how can i make it more reliable?
Just a question, how do I store the RBXScriptConnection in the part so I can disconnect a function (like the killing function) when the "KillBrick" tag is removed? I'm trying to create a system that dynamically changes objects only depending on the tags. Thanks
Instead of this I would just not make the scripts parent the kill brick it self and just make a table of the kills bricks and if one of them is touch it just kills you, but in other ways I can see how this is useful
You have to add a connect function Example: CollectionService:GetInstanceAddedSignal(“Killbricks”):Connect(function() print(“Kill brick has been added to the collection”) End)
Bro i am not gonna lie you are the best one in explaining roblox studio
- clear sound (and theres no music dont ever add music)
- pretty good explanation way
- at least you know what are you doing in most videos they are testing in the video lol
Thanj you so much
Fr
fr
BRO I REALLY NEEDED THIS I WAS THINKING ABT GIVING UP MY PROJECT BUT THEN YOU CAME AND SAVED IT TY TY TYT TY
keep going bro
SKIBIDITOILET
oh
Prior to this video, I didn't even know this was a thing! Great video yet again!
You are such a great TH-camr, and your tutorials are so awesome. They are very clear, you know what you're doing, and you give really good examples. I've watched so many of your tutorials that I predicted what example you were going to use! Even before you give us a code example, you explain each method so well that I can already do half of it. Keep up the amazing work, man.
Ngl bro is better than The Dev King
@@Yaboy8r1 FRRR
I love this, it helps optimize your game alot!
I needed this, thank you so much!
Thx a lot bro, thanks a LOT !
I didn't even know this existed. Combined with coroutines, this is *VERY VERY VERY* helpful! THANK YOU!!!
I did never think that a .Touched event still fires in a for i, v in pairs() loop :0 Thx a lot, this is gonna be pretty good for a tree breaking system. I though I'd have to insert a script into every single tree on my map lol
Thanks bro, this helped tons!
love ur vids ! Would be epic if u make a vid about Value :3
Hello bro, is that normal when the tag is added but when i touche the part it didnt do nothing but the other parts that i added the tag in tag editor manually its work properly but not the parts that we add the tag in the script??!!!..
tldr: Collection service can be used to make sorting objects and compacting scripts. Please don’t duplicate scripts cuz it’s just not optimised!!
i can also tag people on instagram
THIS WAS THE MOST USEFUL THING I HAVE EVER LEARNT SO FARRR TYSMM😍
I’ve been scripting for years, this is by far the most useful service, thanks for explaining it more clearly!
for the kill bricks just make folder put all the kill bricks inside it and use for loop and get children to make them all kill brick ?
your game your choice
Yeah that works too,but personally collection service is better as it has more things too, like for example what if you wanna get a specific part with a tag using HasTag() and add or remove a tag and then do something else? Thats where you use GetInstanceAddedSignal or GetInstanceRemovedSignal.
this works, but just as with many of the other videoes he made he shows us scripts that gives us more control and more commands that we can use to modify the game. Such as you cant just add a new part mid game if you made a folder like that, atleast not as easily as with tags. Like with tags you can make scripts to add parts, or even a completely different item inside roblox studio, trough specific events happening ingame and make it spawn into the game like that
I can think of situations in which this logic is not that good, tho.
Imagine if your game has stages and each stage has its own objects, including, for instance, the kill bricks.
You would have them all spread across the stages directories, and not grouped in one, so thats why using tags is the best approach, bc the CollectionService was made for this, ya know.
Thanks a lot!
u should delete that example from the video. my brain got confused so hard. otherwise keep it up bro. that is amazing u made me love scripting so much and make it simple
About the start of the video, when I was creating my first beginner game on my own, i actually just unioned the whole kill brick part and used one script on it lol
Side note about unions, it's not good to use them too much in any game. They cause major performance issues compared to just grouping or using a mesh.
same lol
Isn’t this the same as just creating a table and inserting all the parts then using a for loop to iterate through using the killpart code?
just make folder in workspace put all killbricks and make one script by getting the children of the folder and using for loop u can do the same thing
@@capitilianino yeah using collections doesn’t seem to be of much benefit, unless I’m missing something?
@@2gullyy IG the appeal with Collections is they have way more functionality than just using folders.
lol ok bro
omg thanks i would originally put them in a model or a folder and do
_, killbrick in ipars(model)
and it was tiring to keep putting killbricks in that model or folder
so everything u said in the example in the end there in easy few words: You can use it to make all scripts/instances with a specific tag for example "outOfProximity" stop running once they are over a specific distance apart from you, am I right? cause u made it overly complicated
" Touched is not a valid member of Script " i need help 💔
what's the story behind the roblox game card you're holding in almost every video?
Can you make a tutorial about raycasting?
Bro the goat 🐐
That or a simple option is just to make all of those parts in one big part
With one script
How to make collection service to dynamically spawned instances for example from cloning them?
i dont see why i would need this
It's for organization and really optimized.
It is more professional and easy
@@rahrota2 okay
Hi @BrawlDev I'm lost, I've added the tag to the newPart as you showed but the tag isn't applying the KillBrick function to that part. What am i doing wrong? Is the newPart supposed to kill the player or is it just adding a tag. Cuz when i load in the tag will add after 5 seconds but it doesn't kill my player.
That only add tag to the newPart. You need to run the loop with GetTagged() again
Hi, once the get tagged function runs, it does not run again. You need to run the function inside a spawn() environment with a while task.wait loop. And then it will update for new parts tagged.
ty for responding guys
What about if I create a table from a folder within all my killBricks?
The Tageditor wouldn't show the tags you add through the properties of an instance,is that how it works?
i also thinks that you can store them in a table and then run them all
How would we use collection service for items that are constantly spawning?
ok so i have a question like if i had multiple parts and all of em are using same tag applied to them on server but i wanna access some ui and stuff on client but due to remote event delay on server and client, how can i make it more reliable?
thank you very much!
goldmine of a vid
Just a question, how do I store the RBXScriptConnection in the part so I can disconnect a function (like the killing function) when the "KillBrick" tag is removed? I'm trying to create a system that dynamically changes objects only depending on the tags. Thanks
How did you customize your roblox studio icons? They look so vibrant!
It's a custom icon set called "Vanilla 3" by dphfox. You can look it up and follow the tutorial to install it! The default icons are not it for me lol
@BrawlDevRBLX update. I think the feature vanilla 3 depends upon was rolled back.
I swear you sound like ByteBlox bruh
Question = Can you change the script to a local script or any type of script?
Scripts are the best because its global, A local script is better for something like GUI because it should only be on your screen
and what if I use isA:?
Instead of this I would just not make the scripts parent the kill brick it self and just make a table of the kills bricks and if one of them is touch it just kills you, but in other ways I can see how this is useful
My CollectionService:GetInstanceAddedSignal event not firing when new tag added.
You have to add a connect function
Example: CollectionService:GetInstanceAddedSignal(“Killbricks”):Connect(function()
print(“Kill brick has been added to the collection”)
End)
@@UsTube. many thanks!
wait does it work with cframe and make then do it at the same time?
ok it doesnt work...
What is the best type of game to make for my first game ?
Tycoon
quick question. I added newpart into the collection, but it does not seem to be functioning as a killbrick? it doesn't kill me when touched
same everything worked except "newpart" not kills when you touch it
Algorithm
i know what you are talking about.
W
GetTagged is pretty much like a threat or an insult 💀💀
get tagged man
@@wisegamer6354
same to you dude.
GET TAGGED
Bro no indian😶😶
first