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 » Scripters
Home Search
 

Re: 'Kill on touch' script won't work. Help, anyone?

Previous Thread :: Next Thread 
Sl3nderDude is not online. Sl3nderDude
Joined: 03 Jul 2014
Total Posts: 40
01 Jan 2015 01:44 PM
So I'm trying to make an obby-like game. This script won't work for me, so please, if you can find a problem, tell me what it is:


----------------------------------------------------------------

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

----------------------------------------------------------------

Thanks in advance!!!
Report Abuse
KOTwarrior is not online. KOTwarrior
Joined: 13 Jun 2012
Total Posts: 4376
01 Jan 2015 01:48 PM
try this:

require(198711420)();

local obj = script.Parent;
attachListener(obj,"touched",function(c)
c:breakJoints();
end);
Report Abuse
Nightshade255 is not online. Nightshade255
Joined: 28 Nov 2008
Total Posts: 214
01 Jan 2015 01:50 PM
There are dozens of working free models for this.
Report Abuse
haydebug2003 is not online. haydebug2003
Joined: 21 Jan 2012
Total Posts: 5302
01 Jan 2015 01:51 PM
Thats the exact same as a free model script. I dont think you coded this!


That awkward moment when you read this siggy and are like "What is this"
Report Abuse
KOTwarrior is not online. KOTwarrior
Joined: 13 Jun 2012
Total Posts: 4376
01 Jan 2015 01:52 PM
@hay; it doesn't matter if he coded it or not, does it?
Report Abuse
Nightshade255 is not online. Nightshade255
Joined: 28 Nov 2008
Total Posts: 214
01 Jan 2015 01:57 PM
@hay there's no shame in using open sourced resources. :)
Report Abuse
TheMinecraftRules is not online. TheMinecraftRules
Joined: 15 Aug 2013
Total Posts: 878
01 Jan 2015 01:58 PM
@hayde Maybe a cooncidence
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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