|
| 08 Oct 2012 04:55 PM |
The TAS SN1 is always right! To make a killing block Script, put a script in a block, and type this.
1. function onTouch(part) 2. local humanoid = part.Parent:findFirstChild("Humanoid") 3. if (humanoid ~= nil) then-- if a humanoid exists, then 4. humanoid.Health = 0-- Damage the humanoid 5. end 6. end 7. 8. script.Parent.Touched:connect(onTouch)
And if you're in build mode, you'll have to save and leave, and when you come back on, touch it, and you will hear an "Ouugghhh" sound effect. If you're in edit mode, save and leave, come back on, build or play, and you will hear an "Ouugghhh" sound effect.
Congrats! You just made a script!
Thnx! Trevor |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2012 04:59 PM |
| >Workspace.Part.Script.1: unexpected symbol near 'onTouch' |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2012 05:04 PM |
script.Parent.Touched:connect(function(hit) if hit.Parent:findFirstChild("Humanoid") then hit.Parent.Humanoid.Health = 0 end end) |
|
|
| Report Abuse |
|
|
| |
|
|
| 08 Oct 2012 05:44 PM |
| No, black's script is better. You do a useless if statement.. |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2012 05:45 PM |
Nevermind about the if statement...
But do this:
humanoid.MaxHealth = nil -- (Better way of killing) |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2012 05:47 PM |
| @op, No yours is really bad an inefficient, blackboy's script is way better. |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2012 05:49 PM |
| I understand you might think this helpful, but it would take less effort for someone to look at a script in a free model. |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2012 05:50 PM |
| Or infeact, just use a free model. |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2012 06:02 PM |
@op "my script is better"
I found this EXACT script in a free model seeing if you do it better. The tags are worded exactly the same, with the same punctuation. http://www.roblox.com/Killing-Lava-Brick-FREE-item?id=9569681
|
|
|
| Report Abuse |
|
|
|
| 08 Oct 2012 06:03 PM |
@dog, typical stupid OBC op
~I'm a prosperous superhero!~ |
|
|
| Report Abuse |
|
|
corto713
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 962 |
|
|
| 08 Oct 2012 06:05 PM |
| @dog, lol nice you just owned this wanna be scripter XD |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2012 06:09 PM |
OP's description:
"Hey Everyone! You can call me Trev! Stop calling me a girl cuz' I'm not a girl! I'm a boy!"
Wut
"Stop calling me a girl cuz' I'm not a girl! I'm a boy!"
What.
"I'm a boy!"
"I'm a boy!"
"I'm a boy!" |
|
|
| Report Abuse |
|
|