zaniac10
|
  |
| Joined: 18 Aug 2009 |
| Total Posts: 10000 |
|
|
| 13 May 2016 05:08 PM |
while wait(.01) do local parts = script.Parent:GetTouchingParts() if parts.Parent then if parts.Parent:FindFirstChild("Humanoid") then if parts.Parent:FindFirstChild("Face") then if not parts.Parent.Face:FindFirstChild("Gas Mask") then parts.Parent.Humanoid:TakeDamage(1) end end end end end
Am I using GetTouchingParts wrong?
|
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
| |
|
zaniac10
|
  |
| Joined: 18 Aug 2009 |
| Total Posts: 10000 |
|
|
| 13 May 2016 05:17 PM |
care to give me a tutorial with getpartsinregion3?
|
|
|
| Report Abuse |
|
|
|
| 13 May 2016 05:31 PM |
http://wiki.roblox.com/index.php?title=API:Region3
This siggy is copyrighted © |
|
|
| Report Abuse |
|
|
zaniac10
|
  |
| Joined: 18 Aug 2009 |
| Total Posts: 10000 |
|
|
| 13 May 2016 05:31 PM |
Thanks a lot, as if I haven't already looked at it.
|
|
|
| Report Abuse |
|
|
|
| 13 May 2016 05:32 PM |
was that sarcasm?
r+://393244197r+://393244224r+://393244262 |
|
|
| Report Abuse |
|
|
zaniac10
|
  |
| Joined: 18 Aug 2009 |
| Total Posts: 10000 |
|
| |
|
|
| 13 May 2016 05:34 PM |
does this help?
Region3.new( Vector3.new(1, 1, 1), Vector3.new(9, 9, 9) )
r+://393244197r+://393244224r+://393244262 |
|
|
| Report Abuse |
|
|
zaniac10
|
  |
| Joined: 18 Aug 2009 |
| Total Posts: 10000 |
|
|
| 13 May 2016 05:34 PM |
I understand it, I just don't know how to make it tell the exact dimensions of my gas.
|
|
|
| Report Abuse |
|
|
|
| 13 May 2016 05:36 PM |
take the position - the size/2 so position = (3,3,3) size = (1,1,1) region3 = vector3(2.5,2.5,2.5), vector3(3.5,3.5,3.5) i think
r+://393244197r+://393244224r+://393244262 |
|
|
| Report Abuse |
|
|