|
| 06 Mar 2015 11:32 AM |
BL.Position = Mouse.Hit.p - UDim2.new(0, 0, 0, BL.Size.Y.Offset/2)
Mouse.Hit didn't work either. I seem to be forgetting everything I've learned. I'm losing my mind. T_T |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
| |
|
| |
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 06 Mar 2015 11:45 AM |
mouse.hit returns the 3D position, you want the 2D position on the screen
BL.Position = UDim2.new(0,mouse.X,0,mouse.Y) - UDim2.new(0, 0, 0, BL.Size.Y.Offset/2) |
|
|
| Report Abuse |
|
|
|
| 06 Mar 2015 11:52 AM |
Mouse.X vs Mouse.Hit.X.
I've never heard of this but judging by the context in which it's used, Mouse.Hit.X returns the X position of Workspace, while Mouse.X returns the X position on the game screen. Is that correct? |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
| |
|
|
| 06 Mar 2015 12:08 PM |
| lol what would I do without you. :P |
|
|
| Report Abuse |
|
|