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: Can I detect this?

Previous Thread :: Next Thread 
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
26 Dec 2014 11:37 AM
If a player is touching a side of a part?

Not the part, but only for example the left surface side...
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
26 Dec 2014 11:41 AM
It might be best to make each face an individual part, however you could try to determine which face it is touching based on it's relative position to the part, although I'm not sure if that'd be entirely accurate.
Report Abuse
oxcool1 is not online. oxcool1
Joined: 05 Nov 2009
Total Posts: 15444
26 Dec 2014 11:45 AM
You could do what lordrambo said. Or maybe use raycasting.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
26 Dec 2014 12:00 PM
Lordrambo, that was the obvious thing and I'm not doing that (individual parts)

And how would I use raycasting for this?
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
26 Dec 2014 12:01 PM
Like, I make the origin the part's side position and then make it fire towards a user comming to near it or something like that

not sure how im gonna do it
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
26 Dec 2014 12:21 PM
get the side of the part the part that touched it is closest to

feel free to steal my function for it
http://www.roblox.com/getSurface-item?id=168600454
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