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
 

For a Kill Script

Previous Thread :: Next Thread 
HowlingBird is not online. HowlingBird
Joined: 24 Aug 2012
Total Posts: 578
04 Dec 2013 07:33 PM
Would it be

local brick = Workspace.Water
function (onTouch)
Humanoid.Health = 0
Report Abuse
HowlingBird is not online. HowlingBird
Joined: 24 Aug 2012
Total Posts: 578
04 Dec 2013 07:36 PM
Anyone?
Report Abuse
Eternalfireeater is not online. Eternalfireeater
Joined: 01 May 2011
Total Posts: 10027
04 Dec 2013 07:36 PM
No....
--
brick = game.Workspace.Water

brick.Touched:connect(function(hit)
if game.Players:FindFirstChild(hit.Parent.Name) then
player = game.Players[hit.Parent.Name]
player.Character:BreakJoints()
end
end)
--

~ℇℸℇℛηαℒℱίℛℇℇαℸℇℛ~
Report Abuse
HowlingBird is not online. HowlingBird
Joined: 24 Aug 2012
Total Posts: 578
04 Dec 2013 07:38 PM
Thanks
Report Abuse
GGGGG14 is not online. GGGGG14
Joined: 29 Jan 2012
Total Posts: 25344
04 Dec 2013 07:40 PM
Make a function
--code
Connect

Put this in the brick:

killBrick = script.Parent

killBrick.Touched:connect(function(hit)
if hit.Parent then
local Humanoid = hit.Parent:findFirstChild("Humanoid")
if Humanoid then
Humanoid.Health = 0
end
end
end)
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