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: Ok, there is a really simple thing that i need to know

Previous Thread :: Next Thread 
mambo99 is not online. mambo99
Joined: 01 Feb 2009
Total Posts: 2701
04 May 2010 08:57 PM
[ Content Deleted ]
Report Abuse
mambo99 is not online. mambo99
Joined: 01 Feb 2009
Total Posts: 2701
04 May 2010 09:10 PM
[ Content Deleted ]
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
04 May 2010 09:12 PM
function onTouch(hit)
h = hit.Parent:findFirstChild("Humanoid") --Finds humanoid that hit it
if h ~= nil then --if h exists then
h.Health = 0 -- Kills player Could also be hit.Parent.Head:Remove()
end
end

script.Parent.Touched:connect(onTouch) --Connection line
Report Abuse
llamasheep is not online. llamasheep
Joined: 26 Aug 2008
Total Posts: 20
04 May 2010 09:32 PM
yeah, if you absolutly want the head to come off, use the "hit.Parent.Head:Remove()" part of the commentary.
Report Abuse
acid1103 is not online. acid1103
Joined: 28 Jul 2009
Total Posts: 1574
04 May 2010 09:35 PM
or if you want it to roll off

h=Instance.new("BodyVelocity")
h.velocity = Vector3.new (0,0,3)
h.Parent = hit.Parent.Head
hit.Parent.Head:BreakJoints()
wait(0.5)h:remove()--LOL The head will roll to the ground XD
Report Abuse
psrj1 is not online. psrj1
Joined: 21 Jun 2009
Total Posts: 287
04 May 2010 09:39 PM
Wouldn't the whole body fall apart anyway.
Report Abuse
ball360 is not online. ball360
Joined: 31 Mar 2009
Total Posts: 1557
04 May 2010 09:40 PM
Ragdolls!
Report Abuse
acid1103 is not online. acid1103
Joined: 28 Jul 2009
Total Posts: 1574
04 May 2010 09:40 PM
XD Yea...
Report Abuse
acid1103 is not online. acid1103
Joined: 28 Jul 2009
Total Posts: 1574
04 May 2010 09:41 PM
^ was @prsj1
Report Abuse
dallaspenguins34 is not online. dallaspenguins34
Joined: 05 Feb 2009
Total Posts: 9300
04 May 2010 10:31 PM
Or, Humaniod.Health=0.

~JONESY~
Report Abuse
mambo99 is not online. mambo99
Joined: 01 Feb 2009
Total Posts: 2701
05 May 2010 03:19 PM
[ Content Deleted ]
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