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 |
|
|
|
| 17 Jun 2015 11:51 PM |
| Perhaps make a custom click surfacegui? Then, make it a module. |
|
|
| Report Abuse |
|
|
| |
|
ChuckXZ
|
  |
| Joined: 26 Jan 2012 |
| Total Posts: 2996 |
|
|
| 17 Jun 2015 11:56 PM |
| I could use some example code |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 17 Jun 2015 11:57 PM |
| change TargetFace to TargetSurface. I messed up a bit. |
|
|
| Report Abuse |
|
|