Ruinable
|
  |
| Joined: 14 Sep 2014 |
| Total Posts: 8903 |
|
|
| 29 Dec 2014 04:07 PM |
trying to make a GUI move based on the mouses height and width location on a screen.
(Like the UI from Destiny)
#ScriptMasterRace |
|
|
| Report Abuse |
|
|
Ruinable
|
  |
| Joined: 14 Sep 2014 |
| Total Posts: 8903 |
|
| |
|
Moxiii
|
  |
| Joined: 06 Mar 2012 |
| Total Posts: 1198 |
|
|
| 29 Dec 2014 09:39 PM |
local m = game.Players.LocalPlayer:GetMouse() local udim2 = UDim2.new(0,m.X,0,m.Y)
also lol @ that hashtag |
|
|
| Report Abuse |
|
|
|
| 29 Dec 2014 10:37 PM |
with the X Offset and Y Offset
subtract it by half the size of the gui
so if the gui size is UDim2.new(0,50,0,50)
it'd be
gui.Position = UDim2.new(0,m.X-25,0,m.Y-25) |
|
|
| Report Abuse |
|
|