PDF download Download Article PDF download Download Article

Kill blocks are parts you can create as where a person steps on it, the user will die or lose a specific amount of health. On Roblox, it's very possible! To create a good game, you have to and should know the basics of Lua, and this article will teach you who to make a kill script, and hopefully improve your overall knowledge! So if you're interested in making a block kill a user when they touch it, read on!

Part 1
Part 1 of 3:

Installing Roblox Studio

PDF download Download Article

If you already have Roblox Studio installed, feel free to skip this section.

  1. Head to the Create tab (www.roblox.com/Create). You need to download Roblox Studio if you don't have it installed. Roblox Studio is the platform to create a game on Roblox, where all the games are created.
    • Roblox Studio is currently only available on Windows and Mac. You can download Roblox Studio on a Chromebook, but you will need Linux. Please note that Linux devices (excluding Chromebooks), mobile devices, consoles, etc. will not work and are not compatible.
  2. It should be the very large button in the middle of the screen.
    Advertisement
  3. This is the installation package.
    • On Chrome, click the bottom box and the bottom of your screen. It will automatically open. If you closed it, you can use Ctrl+J to check the download.
    • On Microsoft Edge, it will prompt you when it's done downloading.
  4. A blue Roblox (Roblox Studio), will open up. It will tell you that it's installing. Depending on your network connection, the download time may vary, but it should be quick!
    • After it's complete, it might close, but don't worry. That's part of the process. When it closes, a new menu will open afterward!
  5. After the installation menu closes, a new window will open up shortly. You'll see a log in menu.
    • In the Username box, fill in your Roblox username.
    • In the Password box, fill in your Roblox password corresponding to your account.
  6. In there, select any template you want!
    • Your template isn't too important, depending on what exactly you want your game to be like.
  7. It might take some time!
  8. Advertisement
Part 2
Part 2 of 3:

Setting Up Your Blocks

PDF download Download Article
  1. It should be located on the top menu. A "model" is a combined object of parts, but you only need a part to make a kill block.
  2. Click Part under the model tab. There should be a drop-down button once you click on it. Select the type of block you want to use.
    • It doesn't matter about the shape of the model. It all can be used as a kill block!
  3. The Explorer menu is the menu on the right side of your screen. Your part should be automatically named "Part." Find your part and click on it.
    • Remember to only click on it once.
  4. It should be "Part +". Click on the +.
  5. It should look like a blue scroll.

    Warning! Remember to click Script, not Local Script or Module Script.

  6. Advertisement
Part 3
Part 3 of 3:

Scripting

PDF download Download Article
  1. local trapPart = script.Parent
    local function onPartTouch(otherPart)
    	local partParent = otherPart.Parent
    	local humanoid = partParent:FindFirstChild("Humanoid")
    	if humanoid then
    		humanoid.Health = 0
    	end
    end
    trapPart.Touched:Connect(onPartTouch)
    
  2. There should be a "X" button below your top menu. Remember, only close script! Your script will save automatically.
  3. In the Test tab on your top menu, click the blue Play. Touch the block and you'll notice that you died!
  4. Advertisement

Community Q&A

Search
Add New Question
  • Question
    Can you keep removing a certain amount of health or does it always have to kill you immediately?
    Alex
    Alex
    Top Answerer
    In the line humanoid.Health = 0, you can change the 0 to match whatever health you want the player to be when they touch the block.
  • Question
    How do I get rid of the kill brick?
    Eetu
    Eetu
    Community Answer
    RIght click then press Ctrl+x or the cut button, or from the explorer by clicking to the part and doing the same.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Tips


Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

You Might Also Like

Make a Model in Roblox Studio Create Models in Roblox Studio
Use Roblox StudioThe Complete Beginners Guide to Using Roblox Studio
Roblox Display Names Ideas150+ Funny, Cool, & Creative Roblox Display Name Ideas
Get Robux for Your Roblox Account Get Robux for Your Roblox Account
Give Someone Robux Give Someone Robux: 4 Easy Methods & Workarounds
Play Roblox on a School ChromebookHow To Download and Play Roblox on a School Chromebook
Legendary Sword DealerComplete Guide to Finding the Blox Fruits Legendary Sword Dealer
Contact RobloxContact Roblox
Get Voice Chat on Roblox4 Simple Ways to Get Chat with Voice on Roblox
Flower Locations in Blox FruitsRed, Blue, and Yellow Flowers: Where & How to Find Them in Blox Fruits
Get Soul Guitar Blox FruitsSimple Ways to Get the Soul Guitar in Blox Fruits
Dough Fruit Get, Awaken, and Use the Dough Fruit in Blox Fruits: Pro Guide
Get V4Blox Fruits: Complete Guide to Unlocking and Maximizing Race V4
Roblox Error Code 2797 Simple Ways to Fix Roblox Disconnect Error Code 279
Advertisement

About This Article

AW
Co-authored by:
Alex Wang
Roblox Player and Scripter
This article was co-authored by Alex Wang, a trusted member of wikiHow's volunteer community. Alex is an avid Roblox player who has been playing, creating, and scripting on Roblox and Roblox Studio since 2017. He is proficient in the Lua programming language and understands how the systems and servers work. He has worked alongside several groups and collaboration projects to help create Roblox games. This article has been viewed 59,034 times.
28 votes - 82%
Co-authors: 7
Updated: November 30, 2023
Views: 59,034
Categories: Roblox
Thanks to all authors for creating a page that has been read 59,034 times.

Reader Success Stories

  • Luke B.

    Luke B.

    Jun 14, 2023

    "It worked and that's all I can say. Very simple explanation."
Share your story

Did this article help you?

Advertisement