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
 

How would i make it so when a player touches a brick he dies

Previous Thread :: Next Thread 
acoo250 is not online. acoo250
Joined: 31 Dec 2012
Total Posts: 407
08 Feb 2017 11:15 PM
Halp
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
08 Feb 2017 11:16 PM
http://wiki.roblox.com/index.php?title=RBXScriptSignal
Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
08 Feb 2017 11:29 PM
Let me clarify:
http://wiki.roblox.com/index.php?title=API:Class/Humanoid/Touched
Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
08 Feb 2017 11:30 PM
Nvm wrong event
Just take Wunder's.
Report Abuse
TheCaptainTeach is online. TheCaptainTeach
Joined: 11 Jul 2015
Total Posts: 3846
08 Feb 2017 11:31 PM
You're going to want to make the brick change the players HP to "0".
hp = 0
Report Abuse
Roblok1 is online. Roblok1
Joined: 27 Jul 2011
Total Posts: 2019
08 Feb 2017 11:31 PM
dang guys, just spoonfeed the noob the answers. you know they need that. here:

script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild'Humanoid' then hit.Parent:BreakJoints() end
end)

put this inside of a script, inside of a brick


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