mrfergie
|
  |
| Joined: 25 Mar 2010 |
| Total Posts: 522 |
|
|
| 28 Mar 2015 02:47 PM |
How can I damage a player by 10 points for every second he is within x number of suds of part?
~~ fergalicous ~~ |
|
|
| Report Abuse |
|
|
|
| 28 Mar 2015 02:48 PM |
magnitude http://wiki.roblox.com/index.php?title=Magnitude
those four years of wumbology are really paying off |
|
|
| Report Abuse |
|
|
yobo89
|
  |
| Joined: 05 Jun 2010 |
| Total Posts: 2341 |
|
|
| 28 Mar 2015 02:53 PM |
local magnitude =
if magnitude > x then end |
|
|
| Report Abuse |
|
|
mrfergie
|
  |
| Joined: 25 Mar 2010 |
| Total Posts: 522 |
|
|
| 28 Mar 2015 02:54 PM |
is there a better way to do it than having a script in every player's torso
~~ fergalicous ~~ |
|
|
| Report Abuse |
|
|
|
| 28 Mar 2015 03:08 PM |
| while wait() do if (player.Character.Torso.Position - part.Position).magnitude < 10 then while wait(10) do player.Character.Humanoid:TakeDamage(10) end end end |
|
|
| Report Abuse |
|
|