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
 

Re: Is this possible...

Previous Thread :: Next Thread 
oscar9999991 is not online. oscar9999991
Joined: 15 Nov 2009
Total Posts: 11373
16 Nov 2014 09:34 AM
To find the surface you hit, with raycasting?
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
16 Nov 2014 09:35 AM
Math :P
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
16 Nov 2014 09:41 AM
I think you can get the surface NormalID
Report Abuse
oscar9999991 is not online. oscar9999991
Joined: 15 Nov 2009
Total Posts: 11373
16 Nov 2014 09:57 AM
How would I do that?
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
16 Nov 2014 09:58 AM
Idk it's probably a method or property
Report Abuse
oscar9999991 is not online. oscar9999991
Joined: 15 Nov 2009
Total Posts: 11373
16 Nov 2014 10:00 AM
I don't see anything :'(
Report Abuse
oscar9999991 is not online. oscar9999991
Joined: 15 Nov 2009
Total Posts: 11373
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 is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
16 Nov 2014 10:08 AM
Isn't it like, TargetSurface.Name or something?
Report Abuse
oscar9999991 is not online. oscar9999991
Joined: 15 Nov 2009
Total Posts: 11373
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
oscar9999991 is not online. oscar9999991
Joined: 15 Nov 2009
Total Posts: 11373
16 Nov 2014 10:30 AM
Figured it out, turns out you didn't need surface after it
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