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 » Scripting Helpers
Home Search
 

help

Previous Thread :: Next Thread 
VitimanA is not online. VitimanA
Joined: 04 Apr 2008
Total Posts: 869
26 Nov 2011 11:59 AM
is it possible to make a script that tells if a brick is (a certain distance) in front of you? i tried using magnitude but it tells when a brick is around you
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
26 Nov 2011 12:22 PM
while wait(1) do
print(part.CFrame.p-workspace.vitimana.Torso.CFrame.p).magnitude
end
Report Abuse
VitimanA is not online. VitimanA
Joined: 04 Apr 2008
Total Posts: 869
26 Nov 2011 01:30 PM
yeah but that would tell the distance of the around the torso. is it possible to only tell the distance of a brick if it's roughly in front of you?
Report Abuse
eJorge is not online. eJorge
Joined: 09 Jun 2011
Total Posts: 5966
26 Nov 2011 01:57 PM
Raycasting, maybe?
Report Abuse
chao50 is not online. chao50
Joined: 08 Nov 2008
Total Posts: 1058
26 Nov 2011 02:26 PM
Find the bricks position, then subtract from your position. I think that would work with vector3....
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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