|
| 16 Nov 2014 09:34 AM |
| To find the surface you hit, with raycasting? |
|
|
| Report Abuse |
|
|
| |
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 16 Nov 2014 09:41 AM |
| I think you can get the surface NormalID |
|
|
| Report Abuse |
|
|
| |
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 16 Nov 2014 09:58 AM |
| Idk it's probably a method or property |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 Nov 2014 10:07 AM |
Wait, this doesn't size the part for some reason, there are no errors:
if mouse.TargetSurface == "RightSurface" or mouse.TargetSurface == "LeftSurface" or mouse.TargetSurface == "BackSurface" or mouse.TargetSurface == "FrontSurface" then part.Size = Vector3.new(.5,.5,.2) elseif mouse.TargetSurface == "TopSurface" or mouse.TargetSurface == "BottomSurface" then part.Size = Vector3.new(.5,.2,.5) end |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 16 Nov 2014 10:08 AM |
| Isn't it like, TargetSurface.Name or something? |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2014 10:11 AM |
| I tried it, no errors, still did size the part, I should mention that everything else after that piece of code works fine |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2014 10:30 AM |
| Figured it out, turns out you didn't need surface after it |
|
|
| Report Abuse |
|
|