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 » Club Houses » ROBLOX Talk
Home Search
 

Re: GUI positioning and resizing plugin

Previous Thread :: Next Thread 
qaz32152 is not online. qaz32152
Joined: 21 Jul 2006
Total Posts: 6920
03 Apr 2012 12:29 AM
Go to studio -> Tools -> Open Plugin Folder -> (Create a new folder) -> (create a new text file) -> (copy and paste this script into the text file and save-as a '.lua' file. Make sure file type is set to all) -> DONE

*note: I know this probably isn't efficient coding, NOU*

1. Click 'Open' to open the GUI
2. Select all GUI objects you want to modify. This can move and resize multiple objects
3. Enter an offset and scale value into the textboxes(defaults are shown)
4. Use arrows and '+'/'-' buttons to edit objects
5. Click 'Close' to close the GUI and to restore the GUI if it glitches or bugs for what ever reason.

local PM = PluginManager()
local P = PM:CreatePlugin()
local T = P:CreateToolbar("GUIchange")
local B = T:CreateButton("Open", "Open", "")
open = false
B.Click:connect(function()
if open == false then
open = true
local core = game:GetService("CoreGui")
local gui = Instance.new("ScreenGui",core)
gui.Name = "GUIchange"
local frame = Instance.new("Frame",gui)
frame.Size = UDim2.new(0, 155, 0, 290)
frame.Position = UDim2.new(0, 0, 0.2, 0)
frame.Style = "RobloxRound"
local seo = Instance.new("TextButton",frame)
seo.Size = UDim2.new(0, 30, 0, 20)
seo.Position = UDim2.new(0, 110, 0, 250)
seo.Style = "RobloxButton"
seo.TextColor3 = Color3.new(221/255,221/255,221/255)
seo.Text = "Enter"
local peo = Instance.new("TextButton",frame)
peo.Size = UDim2.new(0, 30, 0, 20)
peo.Position = UDim2.new(0, 110, 0, 120)
peo.Style = "RobloxButton"
peo.TextColor3 = Color3.new(221/255,221/255,221/255)
peo.Text = "Enter"
local ses = Instance.new("TextButton",frame)
ses.Size = UDim2.new(0, 30, 0, 20)
ses.Position = UDim2.new(0, 110, 0, 225)
ses.Style = "RobloxButton"
ses.TextColor3 = Color3.new(221/255,221/255,221/255)
ses.Text = "Enter"
local pes = Instance.new("TextButton",frame)
pes.Size = UDim2.new(0, 30, 0, 20)
pes.Position = UDim2.new(0, 110, 0, 95)
pes.Style = "RobloxButton"
pes.TextColor3 = Color3.new(221/255,221/255,221/255)
pes.Text = "Enter"
local xm = Instance.new("ImageButton",frame)
xm.Size = UDim2.new(0, 20, 0, 20)
xm.Position = UDim2.new(0, 85, 0, 175)
xm.Image = "http://www.roblox.com/asset/?id=13890090"
xm.BackgroundColor3 = Color3.new(221/255,221/255,221/255)
xm.BackgroundTransparency = .9
local ym = Instance.new("ImageButton",frame)
ym.Size = UDim2.new(0, 20, 0, 20)
ym.Position = UDim2.new(0, 85, 0, 200)
ym.Image = "http://www.roblox.com/asset/?id=13890090"
ym.BackgroundColor3 = Color3.new(221/255,221/255,221/255)
ym.BackgroundTransparency = .9
local yp = Instance.new("ImageButton",frame)
yp.Size = UDim2.new(0, 20, 0, 20)
yp.Position = UDim2.new(0, 50, 0, 200)
yp.Image = "http://www.roblox.com/asset/?id=13890082"
yp.BackgroundColor3 = Color3.new(221/255,221/255,221/255)
yp.BackgroundTransparency = .9
local r = Instance.new("ImageButton",frame)
r.Size = UDim2.new(0, 20, 0, 20)
r.Position = UDim2.new(0, 80, 0, 45)
r.Image = "http://www.roblox.com/asset/?id=44198267"
r.BackgroundColor3 = Color3.new(221/255,221/255,221/255)
r.BackgroundTransparency = .9
local d = Instance.new("ImageButton",frame)
d.Size = UDim2.new(0, 20, 0, 20)
d.Position = UDim2.new(0, 60, 0, 65)
d.Image = "http://www.roblox.com/asset/?id=63436032"
d.BackgroundColor3 = Color3.new(221/255,221/255,221/255)
d.BackgroundTransparency = .9
local l = Instance.new("ImageButton",frame)
l.Size = UDim2.new(0, 20, 0, 20)
l.Position = UDim2.new(0, 40, 0, 45)
l.Image = "http://www.roblox.com/asset/?id=44198293"
l.BackgroundColor3 = Color3.new(221/255,221/255,221/255)
l.BackgroundTransparency = .9
local u = Instance.new("ImageButton",frame)
u.Size = UDim2.new(0, 20, 0, 20)
u.Position = UDim2.new(0, 60, 0, 25)
u.Image = "http://www.roblox.com/asset/?id=38186614"
u.BackgroundColor3 = Color3.new(221/255,221/255,221/255)
u.BackgroundTransparency = .9
local xp = Instance.new("ImageButton",frame)
xp.Size = UDim2.new(0, 20, 0, 20)
xp.Position = UDim2.new(0, 50, 0, 175)
xp.Image = "http://www.roblox.com/asset/?id=13890082"
xp.BackgroundColor3 = Color3.new(221/255,221/255,221/255)
xp.BackgroundTransparency = .9
local sio = Instance.new("TextBox",frame)
sio.Size = UDim2.new(0, 60, 0, 20)
sio.Position = UDim2.new(0, 45, 0, 250)
sio.BackgroundColor3 = Color3.new(221/255,221/255,221/255)
sio.Text = "1"
local pis = Instance.new("TextBox",frame)
pis.Size = UDim2.new(0, 60, 0, 20)
pis.Position = UDim2.new(0, 45, 0, 95)
pis.BackgroundColor3 = Color3.new(221/255,221/255,221/255)
pis.Text = "0.01"
local pio = Instance.new("TextBox",frame)
pio.Size = UDim2.new(0, 60, 0, 20)
pio.Position = UDim2.new(0, 45, 0, 120)
pio.BackgroundColor3 = Color3.new(221/255,221/255,221/255)
pio.Text = "0"
local sis = Instance.new("TextBox",frame)
sis.Size = UDim2.new(0, 60, 0, 20)
sis.Position = UDim2.new(0, 45, 0, 225)
sis.BackgroundColor3 = Color3.new(221/255,221/255,221/255)
sis.Text = "0"
local po = Instance.new("TextLabel",frame)
po.Size = UDim2.new(0, 40, 0, 20)
po.Position = UDim2.new(0, 0, 0, 120)
po.BackgroundColor3 = Color3.new(221/255,221/255,221/255)
po.Text = "Offset:"
local ps = Instance.new("TextLabel",frame)
ps.Size = UDim2.new(0, 40, 0, 20)
ps.Position = UDim2.new(0, 0, 0, 95)
ps.BackgroundColor3 = Color3.new(221/255,221/255,221/255)
ps.Text = "Scale:"
local position = Instance.new("TextLabel",frame)
position.Size = UDim2.new(0, 140, 0, 20)
position.Position = UDim2.new(0, 0, 0, 0)
position.Text = "POSITION"
position.TextColor3 = Color3.new(221/255,221/255,221/255)
position.BackgroundColor3 = Color3.new(0,0,0)
local so = Instance.new("TextLabel",frame)
so.Size = UDim2.new(0, 40, 0, 20)
so.Position = UDim2.new(0, 0, 0, 250)
so.BackgroundColor3 = Color3.new(221/255,221/255,221/255)
so.Text = "Offset:"
local ss = Instance.new("TextLabel",frame)
ss.Size = UDim2.new(0, 40, 0, 20)
ss.Position = UDim2.new(0, 0, 0, 225)
ss.BackgroundColor3 = Color3.new(221/255,221/255,221/255)
ss.Text = "Scale:"
local size = Instance.new("TextLabel",frame)
size.Size = UDim2.new(0, 140, 0, 20)
size.Position = UDim2.new(0, 0, 0, 150)
size.Text = "Size"
size.TextColor3 = Color3.new(221/255,221/255,221/255)
size.BackgroundColor3 = Color3.new(0,0,0)
local x = Instance.new("TextLabel",frame)
x.Size = UDim2.new(0, 40, 0, 20)
x.Position = UDim2.new(0, 0, 0, 175)
x.BackgroundColor3 = Color3.new(221/255,221/255,221/255)
x.Text = "X-axis:"
local y = Instance.new("TextLabel",frame)
y.Size = UDim2.new(0, 40, 0, 20)
y.Position = UDim2.new(0, 0, 0, 200)
y.BackgroundColor3 = Color3.new(221/255,221/255,221/255)
y.Text = "Y-axis:"
local offset1 = 0
local scale1 = .001
local offset2 = 1
local scale2 = 0
d.MouseButton1Click:connect(function()
for i,o in pairs (game.Selection:Get()) do
if o.ClassName == "Frame" or o.ClassName == "ImageButton" or o.ClassName == "ImageLabel" or o.ClassName == "TextBox" or o.ClassName == "TextButton" or o.ClassName == "TextLabel" then
o.Position = o.Position + UDim2.new(0, 0, scale1, offset1)
end
end
end)
l.MouseButton1Click:connect(function()
for i,o in pairs (game.Selection:Get()) do
if o.ClassName == "Frame" or o.ClassName == "ImageButton" or o.ClassName == "ImageLabel" or o.ClassName == "TextBox" or o.ClassName == "TextButton" or o.ClassName == "TextLabel" then
o.Position = o.Position - UDim2.new(scale1, offset1, 0, 0)
end
end
end)
r.MouseButton1Click:connect(function()
for i,o in pairs (game.Selection:Get()) do
if o.ClassName == "Frame" or o.ClassName == "ImageButton" or o.ClassName == "ImageLabel" or o.ClassName == "TextBox" or o.ClassName == "TextButton" or o.ClassName == "TextLabel" then
o.Position = o.Position + UDim2.new(scale1, offset1, 0, 0)
end
end
end)
u.MouseButton1Click:connect(function()
for i,o in pairs (game.Selection:Get()) do
if o.ClassName == "Frame" or o.ClassName == "ImageButton" or o.ClassName == "ImageLabel" or o.ClassName == "TextBox" or o.ClassName == "TextButton" or o.ClassName == "TextLabel" then
o.Position = o.Position - UDim2.new(0, 0, scale1, offset1)
end
end
end)
xm.MouseButton1Click:connect(function()
for i,o in pairs (game.Selection:Get()) do
if o.ClassName == "Frame" or o.ClassName == "ImageButton" or o.ClassName == "ImageLabel" or o.ClassName == "TextBox" or o.ClassName == "TextButton" or o.ClassName == "TextLabel" then
o.Size = o.Size - UDim2.new(scale2, offset2, 0, 0)
end
end
end)
xp.MouseButton1Click:connect(function()
for i,o in pairs (game.Selection:Get()) do
if o.ClassName == "Frame" or o.ClassName == "ImageButton" or o.ClassName == "ImageLabel" or o.ClassName == "TextBox" or o.ClassName == "TextButton" or o.ClassName == "TextLabel" then
o.Size = o.Size + UDim2.new(scale2, offset2, 0, 0)
end
end
end)
ym.MouseButton1Click:connect(function()
for i,o in pairs (game.Selection:Get()) do
if o.ClassName == "Frame" or o.ClassName == "ImageButton" or o.ClassName == "ImageLabel" or o.ClassName == "TextBox" or o.ClassName == "TextButton" or o.ClassName == "TextLabel" then
o.Size = o.Size - UDim2.new(0, 0, scale2, offset2)
end
end
end)
yp.MouseButton1Click:connect(function()
for i,o in pairs (game.Selection:Get()) do
if o.ClassName == "Frame" or o.ClassName == "ImageButton" or o.ClassName == "ImageLabel" or o.ClassName == "TextBox" or o.ClassName == "TextButton" or o.ClassName == "TextLabel" then
o.Size = o.Size + UDim2.new(0, 0, scale2, offset2)
end
end
end)
peo.MouseButton1Click:connect(function() offset1 = tonumber(pio.Text) end)
pes.MouseButton1Click:connect(function() scale1 = tonumber(pis.Text) end)
seo.MouseButton1Click:connect(function() offset2 = tonumber(sio.Text) end)
ses.MouseButton1Click:connect(function() scale2 = tonumber(sis.Text) end)
end
end)
local C = T:CreateButton("Close", "Close", "")
C.Click:connect(function()
if open == true then
for i,v in pairs(game:GetService("CoreGui"):GetChildren()) do
if v.Name == "GUIchange" then
v:Remove()
open = false
end
end
end
end)
Report Abuse
qaz32152 is not online. qaz32152
Joined: 21 Jul 2006
Total Posts: 6920
03 Apr 2012 09:16 AM
inb4spamthreadsabouthax
Report Abuse
ROBLOX4233 is not online. ROBLOX4233
Joined: 16 Nov 2008
Total Posts: 960
03 Apr 2012 09:17 AM
Very nice.
Report Abuse
qaz32152 is not online. qaz32152
Joined: 21 Jul 2006
Total Posts: 6920
03 Apr 2012 09:23 AM
Thanks :)
Report Abuse
qaz32152 is not online. qaz32152
Joined: 21 Jul 2006
Total Posts: 6920
03 Apr 2012 10:06 AM
If anyone has issues let me know.
Report Abuse
YODI40 is not online. YODI40
Joined: 28 Oct 2011
Total Posts: 36
03 Apr 2012 10:09 AM
Interesting, but what I need is a CFrame plug-in. You have one?
Report Abuse
qaz32152 is not online. qaz32152
Joined: 21 Jul 2006
Total Posts: 6920
03 Apr 2012 10:34 AM
Yes actually. I didn't make it but it is widely used.

You MAY need to get Anaminus Cmdutil model though

local wrapperConfig = {
ButtonText = "Load CmdUtl"; --Blank for Image and Tooltip Only
TooltipText = "Load CmdUtl";
ButtonImage = "";
CmdUtlAssetId = 59450487;
}

local PManager = PluginManager()
local plugin = PManager:CreatePlugin()
local TBar = plugin:CreateToolbar("Test")
local LoadButton = TBar:CreateButton(wrapperConfig.ButtonText, wrapperConfig.TooltipText, wrapperConfig.ButtonImage)

local InsertService = game:GetService("InsertService")

CmdUtlPlugins = {
-- add asset IDs or script locations here;
56563025; -- Circles by Anaminus
57403500; -- Advanced Circles by matchlighter
57428586; -- Execute scripts by matchlighter
}

--Configuration for CmdUtl 3.0.0

CmdUtlConfig = {
button_font = Enum.Font.Legacy;
button_font_size = Enum.FontSize.Size10;
button_size_x = 80;
button_size_y = 20;
control_size = 16;
desc_padding = 40;
desc_width_max = 300;
menu_auto_collapse = true;
menu_indent = 16;
plugin_safe_mode = false;
shortcut_keys_enabled = true;
tool_menu_length = 8;
tool_sounds_enabled = true;
tween_panel_enabled = true;
tween_speed = 0.25;
}

CmdUtlShortcuts = {
["Move.Axis"] = "r";
["Move.AxisSnap"] = "";
["Move.First"] = "t";
["Move.FirstSnap"] = "";
["Move.Object"] = "y";
["Rotate.Object"] = "f";
["Rotate.ObjectSnap"] = "";
["Rotate.Pivot"] = "g";
["Rotate.PivotSnap"] = "";
["Rotate.Group"] = "h";
["Resize.Object"] = "v";
["Resize.ObjectSnap"] = "";
["Resize.Center"] = "b";
["Weld.Join"] = "";
["Weld.Break"] = "";
["Scale.Scale"] = "";
["Other.Delete"] = "-";
["Other.Slope"] = "";
["Other.Midpoint"] = "";
["Control.Expand"] = "q";
["Control.Help"] = "?";
["Control.Close"] = "";
}

LoadButton.Click:connect(function ()
local asset = InsertService:LoadAsset(wrapperConfig.CmdUtlAssetId)
if asset then
local children= asset:GetChildren()
local script = asset:findFirstChild("CmdUtl.lua") --children[1]
Spawn(function ()
local func = loadstring(script.Source)
local fenv = getfenv(func)
fenv.plugins = CmdUtlPlugins
fenv.config = CmdUtlConfig
fenv.shortcuts = CmdUtlShortcuts
func()
end)
else
assert(false, "Failed to load CmdUtl asset.")
end
end)
Report Abuse
qaz32152 is not online. qaz32152
Joined: 21 Jul 2006
Total Posts: 6920
03 Apr 2012 10:36 AM
This SHOULD be the model

http://www.roblox.com/CmdUtl-Command-Utility-v3-0-0-item?id=56988233
Report Abuse
qaz32152 is not online. qaz32152
Joined: 21 Jul 2006
Total Posts: 6920
03 Apr 2012 04:07 PM
bump
Report Abuse
qaz32152 is not online. qaz32152
Joined: 21 Jul 2006
Total Posts: 6920
03 Apr 2012 04:13 PM
This fell faster than an object being exerted 9.87x10^24 pascals
Report Abuse
Sam1 is not online. Sam1
Joined: 18 Jan 2007
Total Posts: 839
03 Apr 2012 04:16 PM
This is nice, useful too. Thanks.
Report Abuse
qaz32152 is not online. qaz32152
Joined: 21 Jul 2006
Total Posts: 6920
03 Apr 2012 04:33 PM
No problem
Report Abuse
qaz32152 is not online. qaz32152
Joined: 21 Jul 2006
Total Posts: 6920
03 Apr 2012 04:42 PM
umg

sthu about jared and actually contribute to something useful.

You are all too much jelly of him, it is sad.
Report Abuse
qaz32152 is not online. qaz32152
Joined: 21 Jul 2006
Total Posts: 6920
03 Apr 2012 10:09 PM
-- CUT/COPY/PASTE --

Enables you to cut/copy/paste any amount of objects. More useful than the normal method as you can paste objects in multiple objects at once! Also, you can keep coping things and it will not override what you have already copied. Just click 'Clear' to clear the clipboard/table.

local PM = PluginManager()
local P = PM:CreatePlugin()
local T = P:CreateToolbar("ccp")
items = {}
local B = T:CreateButton("Cut", "Cut", "")
B.Click:connect(function()
for i,o in pairs (game.Selection:Get()) do
if o ~= nil then
table.insert (items,o)
o:Remove()
end
end
end)
local B2 = T:CreateButton("Copy", "Copy", "")
B2.Click:connect(function()
for i,o in pairs (game.Selection:Get()) do
if o ~= nil then
table.insert (items,o)
end
end
end)
local B3 = T:CreateButton("Paste", "Paste", "")
B3.Click:connect(function()
for i,o in pairs (game.Selection:Get()) do
if o ~= nil then
for t,f in pairs (items) do
if f ~= nil then
f:Clone().Parent = o
end
end
end
end
end)
local B4 = T:CreateButton("Clear", "Clear", "")
B4.Click:connect(function()
items = {}
end)
Report Abuse
qaz32152 is not online. qaz32152
Joined: 21 Jul 2006
Total Posts: 6920
04 Apr 2012 02:55 PM
I made the cut/copy/paste plugin. It is more useful than it actually sounds.
Report Abuse
sharpshootervive is not online. sharpshootervive
Joined: 15 Feb 2009
Total Posts: 5390
04 Apr 2012 02:56 PM
Hax. There you go.
Report Abuse
qaz32152 is not online. qaz32152
Joined: 21 Jul 2006
Total Posts: 6920
04 Apr 2012 02:57 PM
oh, that hax thing was when people were posting about april 1st hax
Report Abuse
crayon24 is not online. crayon24
Joined: 25 Dec 2009
Total Posts: 26329
04 Apr 2012 02:58 PM
wat
Report Abuse
qaz32152 is not online. qaz32152
Joined: 21 Jul 2006
Total Posts: 6920
04 Apr 2012 03:01 PM
@ crayon

This is a plugin that makes a GUI that moves and resizes other GUIs with ease

Very useful if you are like me and suck at make GUIs
Report Abuse
qaz32152 is not online. qaz32152
Joined: 21 Jul 2006
Total Posts: 6920
04 Apr 2012 08:19 PM
Android bump up awesomeness
Report Abuse
winpo1 is not online. winpo1
Joined: 14 Mar 2009
Total Posts: 28569
04 Apr 2012 08:20 PM
Taking4Later
Report Abuse
ROBLOX4233 is not online. ROBLOX4233
Joined: 16 Nov 2008
Total Posts: 960
23 Nov 2013 04:56 AM
Extremely Useful, BUMP :D
Report Abuse
Perci1 is not online. Perci1
Joined: 24 Jan 2011
Total Posts: 1027
28 Dec 2013 09:02 AM
This will speed up my GUI making by 999999999999999999999999999%. Thanks!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » ROBLOX Talk
   
 
   
  • 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