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 » Roblox » Suggestions & Ideas
Home Search
 

Add a RadiusLength property for parts/objects

Previous Thread :: Next Thread 
TutorialBlox is not online. TutorialBlox
Joined: 01 Apr 2010
Total Posts: 1586
16 Dec 2013 11:48 PM
First I want to tell you how I thought of this idea and I want to tell you why we need this. I realized that functions can be triggered when you touch a brick when I first started learning. However, I said to myself that it would be cool if we could script functions to trigger if you get within a certain radius a brick or any object.

Basically it causes certain events, functions and methods to be triggered when a player is within a certain radius of a part, object or model (possibly another player).
Report Abuse
toxic69 is not online. toxic69
Joined: 29 Jan 2011
Total Posts: 11787
16 Dec 2013 11:53 PM
I think it you make a cylinder, script it where a humanoid is toughed it does what ever you are trying to get for the effect. You will have the same thing.
Report Abuse
TutorialBlox is not online. TutorialBlox
Joined: 01 Apr 2010
Total Posts: 1586
16 Dec 2013 11:54 PM
Yeah I know, I just wish that could add this...
Report Abuse
toxic69 is not online. toxic69
Joined: 29 Jan 2011
Total Posts: 11787
17 Dec 2013 12:00 AM
There are many features that people wish to be added. It is the question of whether
Is it already able to be done
Is it a WNT
would it help more than hurt.

Personally I don't want more updates to my studio.
They have screwed around with it ssince I joined and it almost got to the point where I couldn't even build anymore.
Report Abuse
Quorum is not online. Quorum
Joined: 25 Oct 2013
Total Posts: 4680
17 Dec 2013 12:06 AM
No support.

Whilst there's not an inbuilt event, you can "whip your own up" using either magnitude or the 'DistanceFromCharacter' method of the player object, along with a loop or similar.
Report Abuse
1518NICENICKEY is not online. 1518NICENICKEY
Joined: 29 Apr 2009
Total Posts: 1136
17 Dec 2013 12:22 AM
2 million loops later..
@Above.
Report Abuse
OKevinO is not online. OKevinO
Joined: 05 May 2010
Total Posts: 1036
17 Dec 2013 12:52 AM
what above comment said... just use magnitude, dont know how to use it?... its simple, look it up!
Report Abuse
TutorialBlox is not online. TutorialBlox
Joined: 01 Apr 2010
Total Posts: 1586
17 Dec 2013 10:45 AM
What about the distance of parts?
Report Abuse
OKevinO is not online. OKevinO
Joined: 05 May 2010
Total Posts: 1036
17 Dec 2013 06:56 PM
char = game.Players.LocalPlayer.Character

distance = (workspace.PARTNAME.Position - char.Torso.Position).magnitude

if distance <= 10 then
print("you are 10 studs away from part")
end

--or use a while loop so it repeats and prints it as long as you are 10 studs in.
Report Abuse
Rasheedkeon789Alt is not online. Rasheedkeon789Alt
Joined: 05 Apr 2013
Total Posts: 373
17 Dec 2013 09:41 PM
Yes that works.

no support. Already scriptable
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » Suggestions & Ideas
   
 
   
  • 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