Humanoid.Touched Tutorial (Roblox)
Although this is a very simple piece of code to manipulate, it has it's own tutorial because of its great number of uses. For example, this code can be put in a LocalScript. If you have that in the client, through StarterPlayer or replicatedFirst, you can check what the player touches. This could mean instead of having a script in every kill brick in a place, you instead have a script in each client, checking what the brick's name is, and if it's called for example: "kill" then it will kill the Player.
This is a lot more efficient than a script in each brick.
I made a LocalScript which goes in ReplicatedFirst. This plays a beeping sound every time someone touches a part called "Touch". Although this is of course pretty useless, it represents what you can do with this and why it's actually a pretty useful tool.
Here's the code I used:
It does of course work, otherwise I wouldn't have put it here.
You can read up on this event on the wiki here. But bear in mind there's not much documentation.
Uses in code, followed by the arguments you can use: