I'm certain this is not an easy thing to do; however, I have to ask (as it is very important to the game I'm trying to develop).
Is there any way to get the orientation/rotation of the surface a character is standing on? In short, I have scripts that fire parts straight out of a players torso, but if they are standing on an incline or something, they just go into it rather than upwards/downwards (parallel to the surface). Is there some way to do this? If so, I would greatly appreciate it!
Thanks in advance!

2 comments
-1 for atrocious code
-1 for unreadable code as well