|
| 30 May 2013 05:06 PM |
so when you left click somewhere a Frame will appear and one point of the frame will be somewhere and the end point will be where the mouse clicked.
Ok, I know how to make it so you left click and Instance and new Frame but I just don't know how to get it to make the size from one point to the point where the mouse clicked. (If it is possible) if so how? |
|
|
| Report Abuse |
|
|
Colonized
|
  |
| Joined: 23 Jul 2011 |
| Total Posts: 160 |
|
|
| 30 May 2013 05:26 PM |
| Make a giant active textbutton and click but you won't be able to place a gui at the mouse position without a tool |
|
|
| Report Abuse |
|
|
Desperian
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 3371 |
|
|
| 30 May 2013 05:34 PM |
@Colon, He could use the ':GetMouse()' method to get the 'PlayerMouse'...
---
http://wiki.roblox.com/index.php/GetMouse --> http://wiki.roblox.com/index.php/RBX.lua.PlayerMouse_(Object) -> http://wiki.roblox.com/index.php/X_(Property) -> http://wiki.roblox.com/index.php/Y_(Property)
|
|
|
| Report Abuse |
|
|
|
| 30 May 2013 05:59 PM |
| I am using the :GetMouse() method but just don't know how to achieve what I need to. I'm on ipad at the moment so ill have to try tomorrow. |
|
|
| Report Abuse |
|
|
|
| 31 May 2013 04:40 AM |
bullet.Size = UDim2.new(0,5,0,mouse.Y)
Works! But it doesn't go from the gun point to the mouse click, well, it does go from the gun point just not the the mouse click.
I've also tried:
bullet.Size = UDim2.new(0,5,0,mouse.X)
Which obviously won't work because it;s in the Y Offset |
|
|
| Report Abuse |
|
|
| |
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 31 May 2013 05:14 AM |
| Sounds like something you should use raytracing for. I'm not sure what you want though. |
|
|
| Report Abuse |
|
|
|
| 31 May 2013 05:15 AM |
| It's a GUI, and I just want it so where you click the Frame GUI will go from one point to where you clicked your mouse. |
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 31 May 2013 05:18 AM |
| Can you use getMouse() on a container? |
|
|
| Report Abuse |
|
|