Intern33t
|
  |
| Joined: 19 Nov 2010 |
| Total Posts: 1530 |
|
|
| 27 May 2015 01:36 PM |
function offset(Xx, Yy) local x, y local g = Instance.new("ScreenGui") g.Size == UDim2.new(1, 0, 1, 0) x = g.AbsoluteSize.X / Xx y = g.AbsoluteSize.Y / Yy g:Destroy() return {x, y} end
~ᵂʰᵒ ᵃʳᵉ ʸᵒᵘ ᵗᵒᵈᵃʸ﹖~ |
|
|
| Report Abuse |
|
|
|
| 27 May 2015 01:38 PM |
| What the hell. Please stop. |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 27 May 2015 01:40 PM |
| News to OP: http://wiki.roblox.com/index.php?title=API:Class/Camera/ViewportSize |
|
|
| Report Abuse |
|
|
Intern33t
|
  |
| Joined: 19 Nov 2010 |
| Total Posts: 1530 |
|
|
| 27 May 2015 01:41 PM |
i said creative
:o
~ᵂʰᵒ ᵃʳᵉ ʸᵒᵘ ᵗᵒᵈᵃʸ﹖~ |
|
|
| Report Abuse |
|
|
notfruit
|
  |
| Joined: 21 Sep 2012 |
| Total Posts: 1386 |
|
|
| 27 May 2015 01:44 PM |
| ^ I can creatively make a cake out of cardboard and macaroni but that doesn't mean it will be any good. |
|
|
| Report Abuse |
|
|
Intern33t
|
  |
| Joined: 19 Nov 2010 |
| Total Posts: 1530 |
|
|
| 27 May 2015 01:45 PM |
cardboardphiliac?
~ᵂʰᵒ ᵃʳᵉ ʸᵒᵘ ᵗᵒᵈᵃʸ﹖~ |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 27 May 2015 01:48 PM |
this is also creative:
local function calculatetheoffsetfromthegivenscalenumbervaluething(x,y) error("Calculate it yourself") end |
|
|
| Report Abuse |
|
|
|
| 27 May 2015 01:52 PM |
function scaleToOffset(x,y) local mouse = game.Players.LocalPlayer:GetMouse() return {mouse.ViewSizeX * x, mouse.ViewSizeY * y} end |
|
|
| Report Abuse |
|
|
Intern33t
|
  |
| Joined: 19 Nov 2010 |
| Total Posts: 1530 |
|
|
| 27 May 2015 01:53 PM |
the mouse object is deprecated.
(trololololol)
~ᵂʰᵒ ᵃʳᵉ ʸᵒᵘ ᵗᵒᵈᵃʸ﹖~ |
|
|
| Report Abuse |
|
|
| |
|