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: how would i add Damage to a part

Previous Thread :: Next Thread 
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
24 Jan 2016 05:43 PM
that a script has Created??



http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$1,347 Tx446 (づ ゚ ³ ゚)づ
Report Abuse
HuskiesPancake is not online. HuskiesPancake
Joined: 12 Apr 2013
Total Posts: 2623
24 Jan 2016 06:09 PM
im a little rusty but i belive it is

Part.Health = Part.Health - 100


R$ 99999999999999999999999999999999999999999999999999999999


--/function on swag()
Report Abuse
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
25 Jan 2016 05:52 AM
i never knew Parts had hp lmao



http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$1,382 Tx456 (づ ゚ ³ ゚)づ
Report Abuse
Obamaphobe is not online. Obamaphobe
Joined: 19 Oct 2015
Total Posts: 35
25 Jan 2016 06:08 AM
you add a humanoid...



My new main is ParanoidHumanoid |+ ~9k posts | Was dominusawesomus and Funification| you wil cryying when obama take yur computr |
Report Abuse
Moronism is not online. Moronism
Joined: 08 Feb 2010
Total Posts: 451
25 Jan 2016 06:13 AM
Your question is rather vague. How did you add a "Damage" property exactly?

If you used an object such as an IntValue, it is a matter of an expression such as this:

Part.IntValue.Value = Part.IntValue.Value - 1;

Report Abuse
Obamaphobe is not online. Obamaphobe
Joined: 19 Oct 2015
Total Posts: 35
25 Jan 2016 06:21 AM
@Mormonism
No.



My new main is ParanoidHumanoid |+ ~9k posts | Was dominusawesomus and Funification| you wil cryying when obama take yur computr |
Report Abuse
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
25 Jan 2016 06:32 AM
ok

what i meant was

i make function that created a part into the workspace

i wanted it to take damage humanoids like a bullet



http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$1,382 Tx456 (づ ゚ ³ ゚)づ
Report Abuse
DarthStrantax is not online. DarthStrantax
Joined: 31 May 2011
Total Posts: 2610
25 Jan 2016 06:34 AM
dmg=30
part.Touched:connect(function(v)
table.foreach(v.Parent:children(),function(i,v)
if v:IsA'Humanoid' then
v:TakeDamage(math.random(dmg-5,dmg+5))
end
end)
end)
Report Abuse
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
25 Jan 2016 07:05 AM
ty



http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$1,382 Tx456 (づ ゚ ³ ゚)づ
Report Abuse
TheDeaNMaN is not online. TheDeaNMaN
Joined: 11 Aug 2015
Total Posts: 30
25 Jan 2016 07:43 AM
uj
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