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: Which Brick Face Was Clicked On.

Previous Thread :: Next Thread 
ChuckXZ is not online. ChuckXZ
Joined: 26 Jan 2012
Total Posts: 2996
17 Jun 2015 11:41 PM
How would I find the face of a brick the user clicked on?
Report Abuse
iSpecializinq is not online. iSpecializinq
Joined: 31 May 2015
Total Posts: 2182
17 Jun 2015 11:51 PM
Perhaps make a custom click surfacegui? Then, make it a module.
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
17 Jun 2015 11:55 PM
raycasting
Report Abuse
ChuckXZ is not online. ChuckXZ
Joined: 26 Jan 2012
Total Posts: 2996
17 Jun 2015 11:56 PM
I could use some example code
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
17 Jun 2015 11:57 PM
Neither of those would be good, use Mouse.TargetSurface
Report Abuse
SpeedySeat is online. SpeedySeat
Joined: 06 Jul 2011
Total Posts: 3048
17 Jun 2015 11:57 PM
repeat wait() until game.Players.LocalPlayer
pl = game.Players.LocalPlayer
repeat wait() until pl:GetMouse()
mouse = pl:GetMouse()
mouse.Button1Down:connect(function()
t=mouse.Target
if not t then return end
f=mouse.TargetFace
-- face was found
end)
Report Abuse
SpeedySeat is online. SpeedySeat
Joined: 06 Jul 2011
Total Posts: 3048
17 Jun 2015 11:57 PM
change TargetFace to TargetSurface. I messed up a bit.
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