| |
|
|
| 24 Dec 2011 10:13 PM |
Well, you could just make a universal damage function...
GetHumanoid = function(Model) for _, Data in pairs(Model:GetChildren()) do if Data:IsA("Humanoid") then return Data end end return nil end
And just work based off of that.... |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2011 01:15 AM |
........ Could someone translate that o.o i do not know what the heck that means.. |
|
|
| Report Abuse |
|
|
TwoBoo
|
  |
| Joined: 08 Feb 2011 |
| Total Posts: 10790 |
|
|
| 25 Dec 2011 01:19 AM |
@TheNew y u mak everything so complicated??
function bullet(hit) hum = hit.Parent:findFirstChild("Humanoid") if hum ~= then hum:TakeDamage(10) -- Change number for higher/lower damage end end script.Parent.Touched:connect(bullet) |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2011 01:37 AM |
@TwoBoo
What happens if I rename my Humanoid. Oh snap, I am now immune to all ROBLOX weapons, and now this weapon. |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2011 03:31 AM |
| True..but I don't think most people would rename their humanoid ingame |
|
|
| Report Abuse |
|
|
ybmul1380
|
  |
| Joined: 20 Feb 2011 |
| Total Posts: 1514 |
|
|
| 25 Dec 2011 03:40 AM |
Or you could just go through every single script until you see somthinglike: (Hmanoid.-Health(50)) it would look somthing like that |
|
|
| Report Abuse |
|
|