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: hurting a player within x studs

Previous Thread :: Next Thread 
mrfergie is online. 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
memorycode is not online. memorycode
Joined: 24 Sep 2011
Total Posts: 3322
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 is not online. yobo89
Joined: 05 Jun 2010
Total Posts: 2341
28 Mar 2015 02:53 PM
local magnitude =


if magnitude > x then

end
Report Abuse
mrfergie is online. 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
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
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
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