Collection Service - Roblox Advanced Scripting #10
BrawlDev · 4,296 words · 21 min read · EN-ORIG

Below is the complete, readable transcript of Collection Service - Roblox Advanced Scripting #10 by BrawlDev on YouTube. Read the full text, copy any part you need, or generate a transcript for any video with our free tool.
I want to make an obstacle course but let's imagine this for a minute if we had multiple kill bricks that we would be planning to use inside of our Obby that we're trying to create we would probably want more than one of these kill bricks since these kill bricks are basically run through a simple script if
I open up workspace and open up my part I made a script here where it's like if a player that has a humanoid touches it then their health is set to zero that's pretty much how you make a kill brick so if we had one of these then it pretty much works just as expected but what if
we wanted to add more kill bricks to our obstacle course which is what we're most likely going to do this is probably how you would do it okay so let's take our part let's duplicate it put it over here diagonally over here and then let's take another one just duplicate that and put
it over here let's take all these three duplicate it and then just drag it over this way okay so now it looks like we have a sustainable stage for our obstacle course so this should pretty much work as expected but here is the issue now that we duplicated our part that had our kilber script it also
duplicated the same script for all these other parts that are contained here with our one stage now why is this a problem it's a problem mainly because if we have the same script being copied and pasted over and over again to all these different parts it's going to be very disorganized and very confusing to just
go back to each of these scripts and modify it if I need to and it's also just bad for optimization in general because through our obstacle if we touch any one of them it should basically fire that individual script for that individual part but what I'm trying to get at here is that what if all of these
Transcribe another video
Paste any YouTube, Instagram or TikTok link to get a free transcript.