{"id":680,"date":"2025-03-07T06:47:55","date_gmt":"2025-03-07T11:47:55","guid":{"rendered":"https:\/\/kushaltimsina.com\/blog\/?p=680"},"modified":"2025-04-07T06:01:52","modified_gmt":"2025-04-07T10:01:52","slug":"how-to-script-a-kill-brick-in-roblox","status":"publish","type":"post","link":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/","title":{"rendered":"How to Script A Kill Brick in Roblox"},"content":{"rendered":"\n<figure class=\"wp-block-video\"><video controls loop src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/2025-03-07-06-47-08.mov\"><\/video><\/figure>\n\n\n\n<p>In this article, I&#8217;ll teach you how to script a kill brick in Roblox from scratch.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What is a Kill Brick?<\/strong><\/h2>\n\n\n\n<p>Kill bricks are types of parts in Roblox that will kill any player that touches them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Make a Kill Brick in Roblox Studio?<\/strong><\/h2>\n\n\n\n<p>If you want to learn how to script a kill brick in Roblox from scratch, there are a few prerequisites. Don&#8217;t worry, they&#8217;re easy prerequisites!<\/p>\n\n\n\n<p>First, you&#8217;ll want to make sure that you have Roblox Studio downloaded. If you need any help accessing Roblox Studio, <a href=\"https:\/\/kushaltimsina.com\/blog\/2025\/02\/05\/how-to-download-roblox-studio\/\">please read this article<\/a>.<\/p>\n\n\n\n<p>From there, you&#8217;ll want to make sure that you can <a href=\"https:\/\/kushaltimsina.com\/blog\/2025\/02\/28\/what-is-the-explorer-window-in-roblox-studio\/\">view the Explorer window<\/a>, and that <a href=\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/03\/what-is-the-properties-window-in-roblox-studio\/\">you can also view the Properties window<\/a> <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"589\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/02\/image-81-1024x589.png\" alt=\"The baseplate template in Roblox Studio.\" class=\"wp-image-580\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/02\/image-81-1024x589.png 1024w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/02\/image-81-300x172.png 300w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/02\/image-81-768x441.png 768w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/02\/image-81-1536x883.png 1536w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/02\/image-81-2048x1177.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>At this point, you should be looking at the baseplate and spawn location.<\/p>\n\n\n\n<p>I would recommend you remove the SpawnLocation, as it can cause problems when following this tutorial.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"504\" height=\"326\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-23.png\" alt=\"\" class=\"wp-image-684\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-23.png 504w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-23-300x194.png 300w\" sizes=\"auto, (max-width: 504px) 100vw, 504px\" \/><\/figure>\n\n\n\n<p>To do so, click on the SpawnLocation in the Explorer and press your delete key on your keyboard.<\/p>\n\n\n\n<p>And poof! The SpawnLocation should be gone.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"386\" height=\"246\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-24.png\" alt=\"\" class=\"wp-image-685\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-24.png 386w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-24-300x191.png 300w\" sizes=\"auto, (max-width: 386px) 100vw, 386px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Building the Kill Brick<\/strong><\/h3>\n\n\n\n<p>Before we can script a kill brick in Roblox, we need to build the actual brick that will kill players when they touch them.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"242\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-22.png\" alt=\"\" class=\"wp-image-683\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-22.png 512w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-22-300x142.png 300w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<p>Start by clicking on the (+) button next to the Workspace and searching for &#8220;Part&#8221;<\/p>\n\n\n\n<p>Now, you should see a Part in Workspace.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"738\" height=\"1024\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-25-738x1024.png\" alt=\"\" class=\"wp-image-686\" style=\"width:300px\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-25-738x1024.png 738w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-25-216x300.png 216w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-25-768x1065.png 768w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-25.png 776w\" sizes=\"auto, (max-width: 738px) 100vw, 738px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Changing the Kill Brick&#8217;s Properties<\/strong><\/h3>\n\n\n\n<p>Right now, our kill brick looks like a plain old gray brick.<\/p>\n\n\n\n<p>Let&#8217;s give it some stylish looks!<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>BrickColor<\/strong><\/h4>\n\n\n\n<p>A lot of games use the color red to denote that the brick will kill you.<\/p>\n\n\n\n<p>You can set the color of the kill brick to red by going into the Properties window and setting the BrickColor to red.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"508\" height=\"496\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-26.png\" alt=\"\" class=\"wp-image-687\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-26.png 508w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-26-300x293.png 300w\" sizes=\"auto, (max-width: 508px) 100vw, 508px\" \/><\/figure>\n\n\n\n<p>To do so, click on your Part in the Explorer.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"756\" height=\"482\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-27.png\" alt=\"\" class=\"wp-image-688\" style=\"width:400px\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-27.png 756w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-27-300x191.png 300w\" sizes=\"auto, (max-width: 756px) 100vw, 756px\" \/><\/figure>\n\n\n\n<p>Then, click on that &#8220;Medium stone grey&#8221; property next to BrickColor, which should open up the BrickColor palette window.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"726\" height=\"724\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-28.png\" alt=\"\" class=\"wp-image-689\" style=\"width:300px\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-28.png 726w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-28-300x300.png 300w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-28-150x150.png 150w\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" \/><figcaption class=\"wp-element-caption\">The BrickColor palette window allows you to choose different colors for your Part.<\/figcaption><\/figure>\n\n\n\n<p>After selecting the red color, your Part should be red!<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"550\" height=\"480\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-29.png\" alt=\"\" class=\"wp-image-690\" style=\"width:300px\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-29.png 550w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-29-300x262.png 300w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><figcaption class=\"wp-element-caption\">After changing the Part&#8217;s BrickColor, it&#8217;s red.<\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Neon Material<\/strong><\/h4>\n\n\n\n<p>We can make this Part look even more killer if it&#8217;s glowing like a laser.<\/p>\n\n\n\n<p>Set the Part&#8217;s Material to <code>Neon<\/code> using the Properties window.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"758\" height=\"416\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-30.png\" alt=\"\" class=\"wp-image-691\" style=\"width:400px\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-30.png 758w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-30-300x165.png 300w\" sizes=\"auto, (max-width: 758px) 100vw, 758px\" \/><figcaption class=\"wp-element-caption\">Change the Material to Neon<\/figcaption><\/figure>\n\n\n\n<p>And you should see our beautiful glowing part.  <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"843\" height=\"1024\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-31-843x1024.png\" alt=\"Our Part now glows\" class=\"wp-image-692\" style=\"width:300px\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-31-843x1024.png 843w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-31-247x300.png 247w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-31-768x933.png 768w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-31.png 846w\" sizes=\"auto, (max-width: 843px) 100vw, 843px\" \/><figcaption class=\"wp-element-caption\">Our Part now appears to glow, radiating energy<\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Size<\/strong><\/h4>\n\n\n\n<p>Awesome! All that&#8217;s left for the building of our Part is making it a bit bigger.<\/p>\n\n\n\n<p>You can use Roblox&#8217;s built-in scale tool to make the Part bigger.<\/p>\n\n\n\n<p>Click on your Part, and click on the Scale button on the ribbon bar on the top of Roblox Studio.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"637\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-32-1024x637.png\" alt=\"The Roblox Scale tool allows you to resize your part\" class=\"wp-image-694\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-32-1024x637.png 1024w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-32-300x187.png 300w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-32-768x478.png 768w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-32-1536x955.png 1536w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-32-2048x1274.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">The Scale Tool allows you to resize your Part<\/figcaption><\/figure>\n\n\n\n<p>I have dragged the red handles outward, making the Part longer.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"540\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-33-1024x540.png\" alt=\"The kill brick is now longer\" class=\"wp-image-695\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-33-1024x540.png 1024w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-33-300x158.png 300w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-33-768x405.png 768w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-33.png 1510w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">The Kill Brick is now longer<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Scripting the Kill Brick<\/strong><\/h2>\n\n\n\n<p>All that&#8217;s left is making the kill brick, well, kill any player that touches it.<\/p>\n\n\n\n<p>Now, I&#8217;ll teach you how to script a kill brick in Roblox.<\/p>\n\n\n\n<p>For this, we&#8217;ll need to use a Script.<\/p>\n\n\n\n<p>If you&#8217;re completely new to scripting, it might be helpful to <a href=\"https:\/\/kushaltimsina.com\/blog\/2025\/02\/05\/your-first-roblox-script-a-step-by-step-tutorial-for-absolute-beginners\/\">view this easy tutorial for beginner scripters first<\/a>.<\/p>\n\n\n\n<p>We&#8217;ll start by adding a Script object into the kill brick.<\/p>\n\n\n\n<p>To do this, click on the Part in the Explorer and add a Script to it, in the same way that we added a Part before.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"531\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-34-1024x531.png\" alt=\"\" class=\"wp-image-696\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-34-1024x531.png 1024w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-34-300x155.png 300w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-34-768x398.png 768w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-34-1536x796.png 1536w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-34-2048x1061.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Roblox&#8217;s default Script contents<\/figcaption><\/figure>\n\n\n\n<p>Now, you should be looking at a:<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:lua decode:true \" title=\"Print \" hello,=\"\" world!\"=\"\" is=\"\" the=\"\" default=\"\" script=\"\" that=\"\" roblox=\"\" provides=\"\" us=\"\" with.\"=\"\">print(\"Hello, world!\")<\/pre><\/div>\n\n\n\n<p>We can get rid of it, as we&#8217;ll be scripting our own kill brick from scratch.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>The Touched Event<\/strong><\/h3>\n\n\n\n<p>For our kill brick, we want it to do something when something touches it.<\/p>\n\n\n\n<p>In order to set it up so that it does stuff when something touches it, we need to use a <strong>Touched<\/strong> event.<\/p>\n\n\n\n<p>A Touched event basically tells Roblox &#8220;I want this object to do something when it is touched by another object.&#8221;<\/p>\n\n\n\n<p>So, we start here:<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:lua decode:true \" title=\"The Touched Event allows us to connect functions that fire when something touches our part.\">local part = script.Parent\npart.Touched:Connect(function(hit)\n   print(\"The kill brick was touched by: \")\n   print(hit:GetFullName())\nend)<\/pre><\/div>\n\n\n\n<p>In that piece of code, the <code>part<\/code> is referring to our kill brick.<\/p>\n\n\n\n<p>Then, the <code>part.Touched<\/code> stuff is us telling Roblox &#8220;I want something to happen when this part gets touched by something else.&#8221;<\/p>\n\n\n\n<p>And after the part gets touched, it will print whatever touched it (as I have denoted with a parameter called <code>hit<\/code>) on the <a href=\"https:\/\/create.roblox.com\/docs\/studio\/output\">Output<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"359\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-35-1024x359.png\" alt=\"\" class=\"wp-image-699\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-35-1024x359.png 1024w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-35-300x105.png 300w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-35-768x269.png 768w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-35.png 1284w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Our code now prints whatever object touches our Part<\/figcaption><\/figure>\n\n\n\n<p>You can test this code by pressing F5 on your keyboard, or the blue play button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"362\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-37-1024x362.png\" alt=\"\" class=\"wp-image-701\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-37-1024x362.png 1024w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-37-300x106.png 300w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-37-768x272.png 768w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-37.png 1306w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">You can view the Output window by clicking the second button on the grid<\/figcaption><\/figure>\n\n\n\n<p>Now, if you can&#8217;t see your Output, click &#8220;VIEW&#8221; on the top, and click on the second of the tiny buttons.<\/p>\n\n\n\n<p>And on your Output, you should see that our Script has detected that the Baseplate (the giant gray checkered thing) has touched the kill brick.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"613\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-38-1024x613.png\" alt=\"\" class=\"wp-image-702\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-38-1024x613.png 1024w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-38-300x180.png 300w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-38-768x460.png 768w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-38-1536x920.png 1536w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-38.png 1680w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Our script is able to successfully detect the objects that touch the kill brick<\/figcaption><\/figure>\n\n\n\n<p>And if we walk over to the kill brick, it will print the stuff inside our character.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"821\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-39-1024x821.png\" alt=\"\" class=\"wp-image-703\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-39-1024x821.png 1024w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-39-300x241.png 300w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-39-768x616.png 768w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-39.png 1534w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>As you can see, our script is detecting all sorts of stuff, like:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Our RightLowerLeg<\/li>\n\n\n\n<li>Our RightFoot<\/li>\n\n\n\n<li>Our HumanoidRootPart<\/li>\n\n\n\n<li>The Baseplate<\/li>\n<\/ul>\n\n\n\n<p>The script is actually detecting the different body parts that are inside of our Roblox character that have touched the object, as well as the Baseplate.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"498\" height=\"1024\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-40-498x1024.png\" alt=\"\" class=\"wp-image-704\" style=\"width:300px\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-40-498x1024.png 498w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-40-146x300.png 146w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-40.png 542w\" sizes=\"auto, (max-width: 498px) 100vw, 498px\" \/><\/figure>\n\n\n\n<p>In our code, the word <code>hit<\/code> refers to the object that has touched it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"359\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-35-1024x359.png\" alt=\"\" class=\"wp-image-699\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-35-1024x359.png 1024w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-35-300x105.png 300w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-35-768x269.png 768w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-35.png 1284w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Now, we need to tell Roblox &#8220;detect only if the object that touched it is part of a player.&#8221;<\/p>\n\n\n\n<p>In other words, we have to perform some hit validation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Hit Validation<\/strong><\/h3>\n\n\n\n<p>Our current code will print whatever object touched the kill brick.<\/p>\n\n\n\n<p>With a few changes, we can get it to detect only the objects that have health (like players).<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:lua decode:true \" title=\"Now, our kill brick will print only objects that touch it that have health.\">local part = script.Parent\npart.Touched:Connect(function(hit)\n  if hit.Parent and hit.Parent:FindFirstChild('Humanoid') then \n    print(\"The kill brick was touched by: \")\n    print(hit:GetFullName())\n  end\nend)<\/pre><\/div>\n\n\n\n<p>In here, we are using something known as<a href=\"https:\/\/create.roblox.com\/docs\/tutorials\/fundamentals\/coding-3\/intro-to-if-statements\"> if statements<\/a> to make sure that the object that touches our kill brick has a <code>Humanoid<\/code>.<\/p>\n\n\n\n<p>The reason we need to make sure that it has a <code>Humanoid<\/code> is because every Player&#8217;s Character has a <code>Humanoid<\/code> object, and <code>Humanoid<\/code>s have a <code>Health<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"285\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-41-1024x285.png\" alt=\"\" class=\"wp-image-705\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-41-1024x285.png 1024w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-41-300x84.png 300w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-41-768x214.png 768w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-41-1536x428.png 1536w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-41.png 1882w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>We can test our new code by pressing <code>F5<\/code> or the blue play button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"910\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-42-1024x910.png\" alt=\"The Output now shows the different objects that are touched by our character.\" class=\"wp-image-706\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-42-1024x910.png 1024w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-42-300x267.png 300w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-42-768x683.png 768w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-42.png 1456w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>And you can see that the Output never shows the Baseplate.<\/p>\n\n\n\n<p>That&#8217;s because it&#8217;s only detecting objects with a Humanoid, and Baseplates don&#8217;t have Humanoids.<\/p>\n\n\n\n<p>Players&#8217; Characters, however do.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Killing the Player<\/strong><\/h3>\n\n\n\n<p>The last step is to kill the player that touched the part.<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:lua decode:true \" title=\"We can kill the player that touched the kill brick by setting their Health to 0\">local part = script.Parent\npart.Touched:Connect(function(hit)\n  if hit.Parent and hit.Parent:FindFirstChild('Humanoid') then \n    hit.Parent.Humanoid.Health = 0 \n  end\nend)<\/pre><\/div>\n\n\n\n<p>By setting their <code>Humanoid.Health<\/code> to <code>0<\/code>, the player that touched it will die.<\/p>\n\n\n\n<p>Here:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>hit<\/code> is the object that touched the kill brick (like my RightFoot, my RightLower Leg)<\/li>\n\n\n\n<li><code>part<\/code> is our Kill Brick<\/li>\n\n\n\n<li><code>hit.Parent<\/code> is the character <\/li>\n\n\n\n<li><code>hit.Parent.Humanoid<\/code> is the <code>Humanoid<\/code> that exists inside of the character<\/li>\n\n\n\n<li><code>hit.Parent.Humanoid.Health = 0<\/code> is us telling Roblox to set the <code>Health<\/code> of the <code>Humanoid<\/code> to <code>0<\/code>.<\/li>\n<\/ul>\n\n\n\n<p>Try out your game!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"671\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-44-1024x671.png\" alt=\"Our new Roblox kill brick behaves as expected.\" class=\"wp-image-708\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-44-1024x671.png 1024w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-44-300x197.png 300w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-44-768x503.png 768w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-44.png 1236w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Our kill brick works as expected<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What&#8217;s Next?<\/strong><\/h2>\n\n\n\n<p>Great job following along with the tutorial on how to script a kill brick in Roblox!<\/p>\n\n\n\n<p><strong>\ud83d\ude80 Want to learn more Roblox scripting?<\/strong><\/p>\n\n\n\n<p><strong>My book takes you step by step, from knowing nothing to being able to write your own scripts.<\/strong><\/p>\n\n\n\n<p><strong>\ud83d\udc49&nbsp;<\/strong><a href=\"http:\/\/kushaltimsina.com\/book\"><strong>Grab your copy here<\/strong><\/a><\/p>\n\n\n\n<p>The next article that you may be interested in is <a href=\"https:\/\/kushaltimsina.com\/blog\/2025\/04\/04\/how-to-make-a-roblox-game-from-scratch-step-by-step-obby-tutorial\/\">turning this kill brick into a full obby<\/a>.<\/p>\n\n\n\n<p>Or maybe you want to<a href=\"https:\/\/kushaltimsina.com\/blog\/2025\/02\/12\/how-i-got-started-with-roblox-scripting-and-how-you-can-too\/\"> learn how I got started learning Roblox scripting, which you can read by clicking here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, I&#8217;ll teach you how to script a kill brick in Roblox from scratch. What is a Kill Brick? Kill bricks are types of parts in Roblox that will kill any player that touches them. How to Make a Kill Brick in Roblox Studio? If you want to learn how to script a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":708,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[14],"class_list":["post-680","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-roblox-scripting-tutorials","tag-roblox-scripting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Script A Kill Brick in Roblox - Kushal Writes<\/title>\n<meta name=\"description\" content=\"Kill bricks are parts that kill any player that touches them. In this article, I teach you how to script your own kill brick in Roblox.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Script A Kill Brick in Roblox - Kushal Writes\" \/>\n<meta property=\"og:description\" content=\"Kill bricks are parts that kill any player that touches them. In this article, I teach you how to script your own kill brick in Roblox.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/\" \/>\n<meta property=\"og:site_name\" content=\"Kushal Writes\" \/>\n<meta property=\"article:published_time\" content=\"2025-03-07T11:47:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-07T10:01:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-44.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1236\" \/>\n\t<meta property=\"og:image:height\" content=\"810\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"kushal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"kushal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/\"},\"author\":{\"name\":\"kushal\",\"@id\":\"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/9ae64ce30587c804d89b1eef21ba5d2f\"},\"headline\":\"How to Script A Kill Brick in Roblox\",\"datePublished\":\"2025-03-07T11:47:55+00:00\",\"dateModified\":\"2025-04-07T10:01:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/\"},\"wordCount\":1225,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/9ae64ce30587c804d89b1eef21ba5d2f\"},\"image\":{\"@id\":\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-44.png\",\"keywords\":[\"roblox scripting\"],\"articleSection\":[\"Roblox Scripting Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/\",\"url\":\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/\",\"name\":\"How to Script A Kill Brick in Roblox - Kushal Writes\",\"isPartOf\":{\"@id\":\"https:\/\/kushaltimsina.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-44.png\",\"datePublished\":\"2025-03-07T11:47:55+00:00\",\"dateModified\":\"2025-04-07T10:01:52+00:00\",\"description\":\"Kill bricks are parts that kill any player that touches them. In this article, I teach you how to script your own kill brick in Roblox.\",\"breadcrumb\":{\"@id\":\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/#primaryimage\",\"url\":\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-44.png\",\"contentUrl\":\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-44.png\",\"width\":1236,\"height\":810},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kushaltimsina.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Script A Kill Brick in Roblox\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kushaltimsina.com\/blog\/#website\",\"url\":\"https:\/\/kushaltimsina.com\/blog\/\",\"name\":\"Kushal Timsina\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/9ae64ce30587c804d89b1eef21ba5d2f\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kushaltimsina.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/9ae64ce30587c804d89b1eef21ba5d2f\",\"name\":\"kushal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2024\/11\/tempImage75F1Sw-edited.jpg\",\"contentUrl\":\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2024\/11\/tempImage75F1Sw-edited.jpg\",\"width\":1274,\"height\":849,\"caption\":\"kushal\"},\"logo\":{\"@id\":\"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/image\/\"},\"description\":\"Kushal Timsina has been developing Roblox games since 2016, played 40,000,000+ times, teaches Roblox scripting on YouTube to 1,000,000+ views, and is the author of the Beginner's Guide to Roblox Scripting book.\",\"sameAs\":[\"https:\/\/kushaltimsina.com\/blog\"],\"url\":\"https:\/\/kushaltimsina.com\/blog\/author\/kushal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Script A Kill Brick in Roblox - Kushal Writes","description":"Kill bricks are parts that kill any player that touches them. In this article, I teach you how to script your own kill brick in Roblox.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/","og_locale":"en_US","og_type":"article","og_title":"How to Script A Kill Brick in Roblox - Kushal Writes","og_description":"Kill bricks are parts that kill any player that touches them. In this article, I teach you how to script your own kill brick in Roblox.","og_url":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/","og_site_name":"Kushal Writes","article_published_time":"2025-03-07T11:47:55+00:00","article_modified_time":"2025-04-07T10:01:52+00:00","og_image":[{"width":1236,"height":810,"url":"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-44.png","type":"image\/png"}],"author":"kushal","twitter_card":"summary_large_image","twitter_misc":{"Written by":"kushal","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/#article","isPartOf":{"@id":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/"},"author":{"name":"kushal","@id":"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/9ae64ce30587c804d89b1eef21ba5d2f"},"headline":"How to Script A Kill Brick in Roblox","datePublished":"2025-03-07T11:47:55+00:00","dateModified":"2025-04-07T10:01:52+00:00","mainEntityOfPage":{"@id":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/"},"wordCount":1225,"commentCount":0,"publisher":{"@id":"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/9ae64ce30587c804d89b1eef21ba5d2f"},"image":{"@id":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/#primaryimage"},"thumbnailUrl":"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-44.png","keywords":["roblox scripting"],"articleSection":["Roblox Scripting Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/","url":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/","name":"How to Script A Kill Brick in Roblox - Kushal Writes","isPartOf":{"@id":"https:\/\/kushaltimsina.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/#primaryimage"},"image":{"@id":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/#primaryimage"},"thumbnailUrl":"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-44.png","datePublished":"2025-03-07T11:47:55+00:00","dateModified":"2025-04-07T10:01:52+00:00","description":"Kill bricks are parts that kill any player that touches them. In this article, I teach you how to script your own kill brick in Roblox.","breadcrumb":{"@id":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/#primaryimage","url":"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-44.png","contentUrl":"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-44.png","width":1236,"height":810},{"@type":"BreadcrumbList","@id":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/07\/how-to-script-a-kill-brick-in-roblox\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kushaltimsina.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Script A Kill Brick in Roblox"}]},{"@type":"WebSite","@id":"https:\/\/kushaltimsina.com\/blog\/#website","url":"https:\/\/kushaltimsina.com\/blog\/","name":"Kushal Timsina","description":"","publisher":{"@id":"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/9ae64ce30587c804d89b1eef21ba5d2f"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kushaltimsina.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/9ae64ce30587c804d89b1eef21ba5d2f","name":"kushal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2024\/11\/tempImage75F1Sw-edited.jpg","contentUrl":"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2024\/11\/tempImage75F1Sw-edited.jpg","width":1274,"height":849,"caption":"kushal"},"logo":{"@id":"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/image\/"},"description":"Kushal Timsina has been developing Roblox games since 2016, played 40,000,000+ times, teaches Roblox scripting on YouTube to 1,000,000+ views, and is the author of the Beginner's Guide to Roblox Scripting book.","sameAs":["https:\/\/kushaltimsina.com\/blog"],"url":"https:\/\/kushaltimsina.com\/blog\/author\/kushal\/"}]}},"_links":{"self":[{"href":"https:\/\/kushaltimsina.com\/blog\/wp-json\/wp\/v2\/posts\/680","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kushaltimsina.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kushaltimsina.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kushaltimsina.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kushaltimsina.com\/blog\/wp-json\/wp\/v2\/comments?post=680"}],"version-history":[{"count":7,"href":"https:\/\/kushaltimsina.com\/blog\/wp-json\/wp\/v2\/posts\/680\/revisions"}],"predecessor-version":[{"id":1027,"href":"https:\/\/kushaltimsina.com\/blog\/wp-json\/wp\/v2\/posts\/680\/revisions\/1027"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kushaltimsina.com\/blog\/wp-json\/wp\/v2\/media\/708"}],"wp:attachment":[{"href":"https:\/\/kushaltimsina.com\/blog\/wp-json\/wp\/v2\/media?parent=680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kushaltimsina.com\/blog\/wp-json\/wp\/v2\/categories?post=680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kushaltimsina.com\/blog\/wp-json\/wp\/v2\/tags?post=680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}