generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: I need help on brick killing script

Previous Thread :: Next Thread 
MMOfficial is not online. MMOfficial
Joined: 20 May 2013
Total Posts: 276
29 Dec 2013 06:49 PM
-------> script: script.Parent.humanoid if it steps
then
healthbar = 10
end

dosen't work








Help me please
Report Abuse
iLoveFoodandSleep is not online. iLoveFoodandSleep
Joined: 07 Jul 2013
Total Posts: 636
29 Dec 2013 06:50 PM
Go to scripting helpers and post this.
Report Abuse
ElmoOMG is not online. ElmoOMG
Joined: 09 Nov 2009
Total Posts: 4643
29 Dec 2013 06:50 PM
1. go 2 free models

2. look for free model script

3. front page game
Report Abuse
MMOfficial is not online. MMOfficial
Joined: 20 May 2013
Total Posts: 276
29 Dec 2013 06:53 PM
Really I DON'T LIKE FREE MODELS!!!
Report Abuse
FriendlyLOLpwnzr is not online. FriendlyLOLpwnzr
Joined: 12 Sep 2011
Total Posts: 9320
29 Dec 2013 06:54 PM
This is the saddest attempt of making a kill brick.

If you nee dhelp, go look up how to make a kill brick on YouTube.
Report Abuse
Wanwoodex is not online. Wanwoodex
Joined: 30 Dec 2012
Total Posts: 1334
29 Dec 2013 06:55 PM
of course it doesn't work learn to script!
Report Abuse
YouForgotToLockDoor is not online. YouForgotToLockDoor
Joined: 19 Aug 2011
Total Posts: 4324
29 Dec 2013 06:56 PM
... I have no comment for this.
Report Abuse
DarkVoidKid is not online. DarkVoidKid
Joined: 29 Jul 2011
Total Posts: 3527
29 Dec 2013 06:58 PM
function onTouched(hit)
if hit.Parent == nil then return end
hum = hit.Parent:FindFirstChild("Humanoid")
if hum ~- nil then
hum.Haelth = 0
end
end

script.Parent.Touched:connect(onTouched)
Report Abuse
Takendoors is not online. Takendoors
Joined: 17 Dec 2009
Total Posts: 1797
29 Dec 2013 06:59 PM
Change the health to 0.
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
29 Dec 2013 07:00 PM
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent:BreakJoints()
end
end)
Report Abuse
Gortezio is not online. Gortezio
Joined: 07 Feb 2013
Total Posts: 4744
29 Dec 2013 07:00 PM
function onTouched(hit)
if hit.Parent == nil then return end
humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid ~- nil then
humanoid.Health = 10
end
end

script.Parent.Touched:connect(onTouched)
Report Abuse
DarkVoidKid is not online. DarkVoidKid
Joined: 29 Jul 2011
Total Posts: 3527
29 Dec 2013 07:02 PM
I meant to say "Health" on line 5.
Report Abuse
PiggyJingles is not online. PiggyJingles
Joined: 13 Jan 2009
Total Posts: 2472
29 Dec 2013 07:30 PM
oky let m fx tis:

ef part is tuched den mayk guy hav lowr hp
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
29 Dec 2013 07:34 PM
script.Parent.Touched:connect(function(DatPart)
_ = DatPart.Parent:FindFirstChild("Humanoid") and DatPart.Parent:BreakJoints()
end)
Report Abuse
katieprice111 is not online. katieprice111
Joined: 06 Feb 2012
Total Posts: 350
29 Dec 2013 07:44 PM
function onTouched(part) --Function named OnTouched connected to this part
local h = part.Parent:findFirstChild("Humanoid") --Finds the first child of Part named Humanoid in a variable "h"
if h = nil then --If h is nil then
h.Health = 0 -- set h's health to 0
end
end
script.Parent.Touched:connect(onTouched) --Connects the Touched property to function onTouched
Some code I got from one of my old videos i made LOLOLOL
Report Abuse
katieprice111 is not online. katieprice111
Joined: 06 Feb 2012
Total Posts: 350
29 Dec 2013 07:45 PM
I just added the notes, the video text didnt have it xD
Report Abuse
FreeScriptMaker is not online. FreeScriptMaker
Joined: 29 Nov 2013
Total Posts: 2275
29 Dec 2013 07:51 PM
script.Parent.Touched:connect(function(hit)
hit.Parent:BreakJoints()
end)
Report Abuse
BriefFartman12 is not online. BriefFartman12
Joined: 28 May 2010
Total Posts: 72
31 Dec 2013 04:59 AM
I would recommend actually learning to script.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image