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 |
|