9/24/11

The First "1-Script-A-Week"! "Kill Brick" Script!

Hey guys for the first "1-Script-A-Week" I will be telling you how to make a "Kill Brick".
Basically what this does is kill your character (makes your health 0).
These are also known as "Lava Bricks".

1.
Open ROBLOX studio, press "insert", press "object", and then click "Part" and "Ok".
2.
Select the brick in explorer and go to "insert"<"object" and then press "Script"
3.
Copy and paste this code into the script and it should work!

function onTouch(part)
local humanoid = part.Parent:findFirstChild("Humanoid")
if (humanoid ~=nil) then
humanoid.Health = 0
end
end

script.Parent.Touched:connect(onTouch)


After that you might want to anchor it and recolor/resize it to fit your game!
Have fun!

-liama517

19 comments:

piano22 said...

Doesn't tell tell you how to do it really. More says make a brick and put this pre-made script in it. I suggest editing a bit to explain what each part of the script does.

liama517 said...

It's 1-script-a-week not a tutorial, I might have tutorials in the future.

RobloxFox said...

Great.

Unknown said...

I think we should all know this so take your rime and learn the script so you can Find more ways to do more Stuff

Unknown said...

I tihnk you should keep rhe script into your head to find more ways to make this script or add more codes on it! my user is davidhasselhoff99 :)

Unknown said...

I tihnk you should keep rhe script into your head to find more ways to make this script or add more codes on it! my user is davidhasselhoff99 :)

Unknown said...

I think we should all know this so take your rime and learn the script so you can Find more ways to do more Stuff

Anonymous said...

NICE

Anonymous said...

Can you make one that kills everybody in the game?

Unknown said...

Surprised this still works from 2011.

ChillPizzaDude97 said...

I use codeakid for most of the scripting. It teaches you quite a lot in roblox programming. (This is not a paid promotion I promise XD)

Alex said...

liama517, You helped me!

Sadhana said...

Roblox Front Page Games
Roblox Games
Roblox Players

Front Page On Roblox
Roblox Game Naming

Sean Malone said...



Hey guys! If you want a working Roblox hack tool, which gives you unlimited ROBUX and TICKETS, I will share it to you. Me and my friends have been using this for quite some time and I wanna share it to you!


CLICK HERE for THE ROBLOX cheat tool

CLICK HERE for THE ROBLOX cheat tool


Enjoy guys! RoBLOX ROCKS!








Hey guys! If you want a working Roblox hack tool, which gives you unlimited ROBUX and TICKETS, I will share it to you. Me and my friends have been using this for quite some time and I wanna share it to you!


CLICK HERE for THE ROBLOX cheat tool

CLICK HERE for THE ROBLOX cheat tool


Enjoy guys! RoBLOX ROCKS!








Hey guys! If you want a working Roblox hack tool, which gives you unlimited ROBUX and TICKETS, I will share it to you. Me and my friends have been using this for quite some time and I wanna share it to you!


CLICK HERE for THE ROBLOX cheat tool

CLICK HERE for THE ROBLOX cheat tool


Enjoy guys! RoBLOX ROCKS!

Unknown said...

oof

Anonymous said...

hmmmmmmmmm

Unknown said...

works :)

Anonymous said...

How do I make one that kills you when you click?

Barış said...

mardin
mersin
muğla
rize
sakarya
UG3P

Post a Comment