generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Place is uncopylocked, easy fix, help needed

Previous Thread :: Next Thread 
SnokeITFO is not online. SnokeITFO
Joined: 02 Sep 2014
Total Posts: 1212
01 Jan 2016 01:56 AM
On studio the GUIs are in perfect position

But in game they're scattered

Can someone fix the GUI positions for me?
Report Abuse
SnokeITFO is not online. SnokeITFO
Joined: 02 Sep 2014
Total Posts: 1212
01 Jan 2016 02:15 AM
B1
Report Abuse
NumerousSpaces is not online. NumerousSpaces
Joined: 25 Dec 2013
Total Posts: 1077
01 Jan 2016 02:17 AM
which game? I will try and fix them.
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
01 Jan 2016 02:24 AM
Get it how you want, run this in command line and save the GUI:

repeat wait() until workspace.CurrentCamera.ViewportSize ~= Vector2.new()
function toScale(instance)
for _,v in pairs(instance:GetChildren()) do
if v:IsA("GuiObject") then
local size = v.Parent:IsA("GuiObject") and v.Parent.AbsoluteSize or workspace.CurrentCamera.ViewportSize
local pos = v.AbsolutePosition - (v.Parent:IsA("GuiObject") and v.Parent.AbsolutePosition or Vector2.new())
v.Size = UDim2.new(v.AbsoluteSize.X/size.X, 0 , v.AbsoluteSize.Y/size.Y)
v.Position = UDim2.new(pos.X/size.X, 0 , pos.Y/size.Y)
end
toScale(v)
end
return
end
toScale(game.StarterGui)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image