Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local Drag = Instance.new("ImageLabel")
- local GUI = Instance.new("TextLabel")
- local Magic = Instance.new("Frame")
- local Main = Instance.new("ImageLabel")
- local Functions = Instance.new("ScrollingFrame")
- local Test = Instance.new("ImageButton")
- local Text = Instance.new("TextLabel")
- local Frame = Instance.new("Frame")
- local Teleport = Instance.new("ScrollingFrame")
- local SearchBar = Instance.new("ImageLabel")
- local ImageLabel = Instance.new("ImageLabel")
- local TextBox = Instance.new("TextBox")
- local Test_2 = Instance.new("ImageButton")
- local Text_2 = Instance.new("TextLabel")
- local Input = Instance.new("ImageLabel")
- local Input_2 = Instance.new("TextBox")
- local Settings = Instance.new("ScrollingFrame")
- local Test_3 = Instance.new("ImageButton")
- local Text_3 = Instance.new("TextLabel")
- local Button = Instance.new("ImageButton")
- local Text_4 = Instance.new("TextLabel")
- local Cover = Instance.new("Frame")
- local Functions_2 = Instance.new("TextButton")
- local Line = Instance.new("Frame")
- local Teleport_2 = Instance.new("TextButton")
- local AnotaHline = Instance.new("ImageLabel")
- local Settings_2 = Instance.new("TextButton")
- _G.gui = ScreenGui
- -- Properties
- ScreenGui.Parent = game.CoreGui
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Drag.Name = "Drag"
- Drag.Parent = ScreenGui
- Drag.BackgroundTransparency = 1
- Drag.BorderSizePixel = 0
- Drag.LayoutOrder = 4
- Drag.Position = UDim2.new(0.5, -182, 0, 150)
- Drag.Size = UDim2.new(0, 364, 0, 38)
- Drag.ZIndex = 6
- Drag.Image = "rbxassetid://1307995459"
- Drag.ImageColor3 = Color3.new(0.184314, 0.184314, 0.184314)
- Drag.ScaleType = Enum.ScaleType.Slice
- Drag.SliceCenter = Rect.new(2, 2, 254, 254)
- GUI.Name = "GUI"
- GUI.Parent = Drag
- GUI.BackgroundColor3 = Color3.new(1, 1, 1)
- GUI.BackgroundTransparency = 1
- GUI.Position = UDim2.new(0.00129200867, 0, 0, 0)
- GUI.Size = UDim2.new(0, 97, 0, 38)
- GUI.ZIndex = 2
- GUI.Font = Enum.Font.SourceSansLight
- GUI.Text = "Gopnik's GUI"
- GUI.TextColor3 = Color3.new(1, 1, 1)
- GUI.TextSize = 20
- Magic.Name = "Magic"
- Magic.Parent = Drag
- Magic.BackgroundColor3 = Color3.new(1, 1, 1)
- Magic.BackgroundTransparency = 1
- Magic.BorderSizePixel = 0
- Magic.ClipsDescendants = true
- Magic.Position = UDim2.new(0.00129200867, 0, 0.900000334, 0)
- Magic.Size = UDim2.new(0, 394, 0, 291)
- Magic.ZIndex = 10
- Main.Name = "Main"
- Main.Parent = Magic
- Main.BackgroundTransparency = 1
- Main.BorderSizePixel = 0
- Main.Position = UDim2.new(0, 0, 0.0280000009, 0)
- Main.Size = UDim2.new(0, 395, 0, 263)
- Main.ZIndex = 2
- Main.Image = "rbxassetid://1307995459"
- Main.ImageColor3 = Color3.new(0.239216, 0.239216, 0.239216)
- Main.ScaleType = Enum.ScaleType.Slice
- Main.SliceCenter = Rect.new(2, 2, 254, 254)
- Functions.Name = "Functions"
- Functions.Parent = Main
- Functions.BackgroundColor3 = Color3.new(1, 1, 1)
- Functions.BackgroundTransparency = 1
- Functions.BorderSizePixel = 0
- Functions.Position = UDim2.new(0.0201005023, 0, 0.0304182507, 0)
- Functions.Size = UDim2.new(0, 378, 0, 244)
- Functions.ZIndex = 5
- Test.Name = "Test"
- Test.Parent = Functions
- Test.BackgroundColor3 = Color3.new(1, 1, 1)
- Test.BackgroundTransparency = 1
- Test.ClipsDescendants = true
- Test.Position = UDim2.new(-0.000125523657, 0, 0.125475287, 0)
- Test.Size = UDim2.new(0, 352, 0, 25)
- Test.Visible = false
- Test.ZIndex = 35
- Test.Image = "rbxassetid://1307995459"
- Test.ImageColor3 = Color3.new(0.184314, 0.184314, 0.184314)
- Test.ScaleType = Enum.ScaleType.Slice
- Test.SliceCenter = Rect.new(2, 2, 254, 254)
- Text.Name = "Text"
- Text.Parent = Test
- Text.BackgroundColor3 = Color3.new(1, 1, 1)
- Text.BackgroundTransparency = 1
- Text.Position = UDim2.new(0.0381787829, 0, 0.0562194809, 0)
- Text.Size = UDim2.new(0, 335, 0, 25)
- Text.Font = Enum.Font.SourceSansLight
- Text.Text = "Anti-stun"
- Text.TextColor3 = Color3.new(1, 1, 1)
- Text.TextSize = 22
- Frame.Parent = Test
- Frame.BackgroundColor3 = Color3.new(0.898039, 0, 0)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(-0.00727576017, 0, 0, 0)
- Frame.Size = UDim2.new(0, 6, 0, 25)
- Frame.ZIndex = 11
- Teleport.Name = "Teleport"
- Teleport.Parent = Main
- Teleport.BackgroundColor3 = Color3.new(1, 1, 1)
- Teleport.BackgroundTransparency = 1
- Teleport.BorderSizePixel = 0
- Teleport.Position = UDim2.new(0.0201005023, 0, 0.0304182507, 0)
- Teleport.Size = UDim2.new(0, 378, 0, 244)
- Teleport.Visible = false
- Teleport.ZIndex = 5
- SearchBar.Name = "SearchBar"
- SearchBar.Parent = Teleport
- SearchBar.BackgroundTransparency = 1
- SearchBar.BorderSizePixel = 0
- SearchBar.Position = UDim2.new(-0.00400000019, 0, -0.001, 0)
- SearchBar.Size = UDim2.new(0, 354, 0, 25)
- SearchBar.ZIndex = 5
- SearchBar.Image = "rbxassetid://1307995459"
- SearchBar.ImageColor3 = Color3.new(0.184314, 0.184314, 0.184314)
- SearchBar.ScaleType = Enum.ScaleType.Slice
- SearchBar.SliceCenter = Rect.new(2, 2, 254, 254)
- ImageLabel.Parent = SearchBar
- ImageLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel.BackgroundTransparency = 1
- ImageLabel.Position = UDim2.new(0.0209999997, 0, 0.159999996, 0)
- ImageLabel.Size = UDim2.new(0, 17, 0, 17)
- ImageLabel.ZIndex = 5
- ImageLabel.Image = "rbxassetid://395920720"
- TextBox.Parent = SearchBar
- TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
- TextBox.BackgroundTransparency = 1
- TextBox.Position = UDim2.new(0.0870786533, 0, 0, 0)
- TextBox.Size = UDim2.new(0, 324, 0, 25)
- TextBox.ZIndex = 5
- TextBox.Font = Enum.Font.SourceSansLight
- TextBox.PlaceholderColor3 = Color3.new(0.631373, 0.631373, 0.631373)
- TextBox.PlaceholderText = "Looking for something......?"
- TextBox.Text = ""
- TextBox.TextColor3 = Color3.new(1, 1, 1)
- TextBox.TextSize = 22
- TextBox.TextWrapped = true
- TextBox.TextXAlignment = Enum.TextXAlignment.Left
- Test_2.Name = "Test"
- Test_2.Parent = Teleport
- Test_2.BackgroundColor3 = Color3.new(1, 1, 1)
- Test_2.BackgroundTransparency = 1
- Test_2.Position = UDim2.new(-0.00541652879, 0, 0.0665399209, 0)
- Test_2.Size = UDim2.new(0, 250, 0, 25)
- Test_2.Visible = false
- Test_2.ZIndex = 5
- Test_2.Image = "rbxassetid://1307995459"
- Test_2.ImageColor3 = Color3.new(0.184314, 0.184314, 0.184314)
- Test_2.ScaleType = Enum.ScaleType.Slice
- Test_2.SliceCenter = Rect.new(2, 2, 254, 254)
- Text_2.Name = "Text"
- Text_2.Parent = Test_2
- Text_2.BackgroundColor3 = Color3.new(1, 1, 1)
- Text_2.BackgroundTransparency = 1
- Text_2.Size = UDim2.new(0, 250, 0, 25)
- Text_2.Font = Enum.Font.SourceSansLight
- Text_2.Text = "Anti-stun"
- Text_2.TextColor3 = Color3.new(1, 1, 1)
- Text_2.TextSize = 22
- Input.Name = "Input"
- Input.Parent = Test_2
- Input.BackgroundTransparency = 1
- Input.BorderSizePixel = 0
- Input.Position = UDim2.new(1.02417481, 0, 0, 0)
- Input.Size = UDim2.new(0, 98, 0, 25)
- Input.Image = "rbxassetid://1307995459"
- Input.ImageColor3 = Color3.new(0.184314, 0.184314, 0.184314)
- Input.ScaleType = Enum.ScaleType.Slice
- Input.SliceCenter = Rect.new(2, 2, 254, 254)
- Input_2.Name = "Input"
- Input_2.Parent = Input
- Input_2.BackgroundColor3 = Color3.new(1, 1, 1)
- Input_2.BackgroundTransparency = 1
- Input_2.Size = UDim2.new(0, 98, 0, 25)
- Input_2.ZIndex = 2
- Input_2.ClearTextOnFocus = false
- Input_2.Font = Enum.Font.SourceSansLight
- Input_2.PlaceholderColor3 = Color3.new(0.631373, 0.631373, 0.631373)
- Input_2.PlaceholderText = "Input"
- Input_2.Text = ""
- Input_2.TextColor3 = Color3.new(1, 1, 1)
- Input_2.TextScaled = true
- Input_2.TextSize = 20
- Input_2.TextWrapped = true
- Settings.Name = "Settings"
- Settings.Parent = Main
- Settings.BackgroundColor3 = Color3.new(1, 1, 1)
- Settings.BackgroundTransparency = 1
- Settings.BorderSizePixel = 0
- Settings.ClipsDescendants = false
- Settings.Position = UDim2.new(0.0201005023, 0, 0.0304182507, 0)
- Settings.Size = UDim2.new(0, 378, 0, 244)
- Settings.Visible = false
- Settings.ZIndex = 5
- Test_3.Name = "Test"
- Test_3.Parent = Settings
- Test_3.BackgroundColor3 = Color3.new(1, 1, 1)
- Test_3.BackgroundTransparency = 1
- Test_3.ClipsDescendants = true
- Test_3.Position = UDim2.new(-0.00541652879, 0, 0.184410647, 0)
- Test_3.Size = UDim2.new(0, 354, 0, 25)
- Test_3.Visible = false
- Test_3.ZIndex = 13
- Test_3.Image = "rbxassetid://1307995459"
- Test_3.ImageColor3 = Color3.new(0.184314, 0.184314, 0.184314)
- Test_3.ScaleType = Enum.ScaleType.Slice
- Test_3.SliceCenter = Rect.new(2, 2, 254, 254)
- Text_3.Name = "Text"
- Text_3.Parent = Test_3
- Text_3.BackgroundColor3 = Color3.new(1, 1, 1)
- Text_3.BackgroundTransparency = 1
- Text_3.Position = UDim2.new(0.0381787755, 0, 0, 0)
- Text_3.Size = UDim2.new(0, 342, 0, 25)
- Text_3.Font = Enum.Font.SourceSansLight
- Text_3.Text = "Anti-stun"
- Text_3.TextColor3 = Color3.new(1, 1, 1)
- Text_3.TextSize = 22
- Button.Name = "Button"
- Button.Parent = Drag
- Button.BackgroundColor3 = Color3.new(1, 1, 1)
- Button.BackgroundTransparency = 1
- Button.ClipsDescendants = true
- Button.Position = UDim2.new(0.980736196, 0, 0, 0)
- Button.Size = UDim2.new(0, 40, 0, 38)
- Button.Image = "rbxassetid://1307995459"
- Button.ImageColor3 = Color3.new(0.666667, 0.145098, 0.0980392)
- Button.ScaleType = Enum.ScaleType.Slice
- Button.SliceCenter = Rect.new(2, 2, 254, 254)
- Text_4.Name = "Text"
- Text_4.Parent = Button
- Text_4.BackgroundColor3 = Color3.new(1, 1, 1)
- Text_4.BackgroundTransparency = 1
- Text_4.Position = UDim2.new(0.0933006257, 0, 0, 0)
- Text_4.Size = UDim2.new(0, 35, 0, 38)
- Text_4.Font = Enum.Font.SourceSansLight
- Text_4.Text = "−"
- Text_4.TextColor3 = Color3.new(1, 1, 1)
- Text_4.TextSize = 60
- Cover.Name = "Cover"
- Cover.Parent = Drag
- Cover.BackgroundColor3 = Color3.new(0.184314, 0.184314, 0.184314)
- Cover.BorderSizePixel = 0
- Cover.Position = UDim2.new(0.980000019, 0, 0, 0)
- Cover.Size = UDim2.new(0, 4, 0, 38)
- Functions_2.Name = "Functions"
- Functions_2.Parent = Drag
- Functions_2.BackgroundColor3 = Color3.new(0, 0, 0)
- Functions_2.BackgroundTransparency = 1
- Functions_2.BorderSizePixel = 0
- Functions_2.Position = UDim2.new(0.27179122, 0, 0, 0)
- Functions_2.Size = UDim2.new(0, 91, 0, 38)
- Functions_2.ZIndex = 10
- Functions_2.Font = Enum.Font.SourceSansLight
- Functions_2.Text = "Functions"
- Functions_2.TextColor3 = Color3.new(1, 1, 1)
- Functions_2.TextSize = 20
- Line.Name = "Line"
- Line.Parent = Drag
- Line.BackgroundColor3 = Color3.new(1, 1, 1)
- Line.BorderSizePixel = 0
- Line.Size = UDim2.new(0, 98, 0, 3)
- Line.ZIndex = 30
- Teleport_2.Name = "Teleport"
- Teleport_2.Parent = Drag
- Teleport_2.BackgroundColor3 = Color3.new(0, 0, 0)
- Teleport_2.BackgroundTransparency = 1
- Teleport_2.BorderSizePixel = 0
- Teleport_2.Position = UDim2.new(0.526909053, 0, 0, 0)
- Teleport_2.Size = UDim2.new(0, 84, 0, 38)
- Teleport_2.ZIndex = 10
- Teleport_2.Font = Enum.Font.SourceSansLight
- Teleport_2.Text = "Teleport"
- Teleport_2.TextColor3 = Color3.new(1, 1, 1)
- Teleport_2.TextSize = 20
- AnotaHline.Name = "AnotaHline"
- AnotaHline.Parent = Drag
- AnotaHline.BackgroundTransparency = 1
- AnotaHline.BorderSizePixel = 0
- AnotaHline.Position = UDim2.new(0.269230753, 0, 0.0789473653, 0)
- AnotaHline.Size = UDim2.new(0, 1, 0, 32)
- AnotaHline.ZIndex = 30
- AnotaHline.Image = "rbxassetid://1307995459"
- AnotaHline.ScaleType = Enum.ScaleType.Slice
- AnotaHline.SliceCenter = Rect.new(2, 2, 254, 254)
- Settings_2.Name = "Settings"
- Settings_2.Parent = Drag
- Settings_2.BackgroundColor3 = Color3.new(0, 0, 0)
- Settings_2.BackgroundTransparency = 1
- Settings_2.BorderSizePixel = 0
- Settings_2.Position = UDim2.new(0.761533797, 0, 0, 0)
- Settings_2.Size = UDim2.new(0, 83, 0, 38)
- Settings_2.ZIndex = 10
- Settings_2.Font = Enum.Font.SourceSansLight
- Settings_2.Text = "Settings"
- Settings_2.TextColor3 = Color3.new(1, 1, 1)
- Settings_2.TextSize = 20
- -- Scripts
- _G.searchbar = SearchBar
- local plr = game:GetService('Players').LocalPlayer
- local gui = _G.gui
- local drag, main = gui.Drag, gui.Drag.Magic.Main
- local toggles, settingz = main.Functions, main.Teleport
- local closebutton, tog, others, line = drag.Button, drag.Functions, drag.Teleport, drag.Line
- local orig, toggl, perma, setting = main.Position, main.Functions.Test:Clone(), main.Settings.Test:Clone(), main.Teleport.Test:Clone()
- local page, oldpage = "Functions", "Functions"
- local cooldown, oldz, newz, original = false, tog.Position.X.Scale, nil, UDim2.new(.02, 0, .03, 0)
- local settins = main.Settings
- line.Position = tog.Position + UDim2.new(0, 0, 0, 33)
- line.Size = UDim2.new(0, tog.Size.X.Offset, 0, 3)
- main.Functions.Test:Destroy()
- main.Settings.Test:Destroy()
- main.Teleport.Test:Destroy()
- toggl.Visible = true
- perma.Visible = true
- setting.Visible = true
- _G.toggles = toggles
- _G.settingz = settingz
- _G.perma = perma
- _G.toggl = toggl
- _G.setting = setting
- _G.actualsettings = settins
- _G.searchbar = SearchBar
- for _, a in pairs(main:children()) do
- if a.Name ~= page then
- a.Visible = true
- a.Position = original + UDim2.new(4, 0, 0, 0)
- end
- end
- --[ MAKE IT DRAGGABLE ]--
- drag.Active = true
- drag.Draggable = true
- --[ FUNCTIONS ]--
- local switch = function(old, new)
- local direction = "Left"
- if newz > oldz then
- direction = "Right"
- elseif newz < oldz then
- direction = "Left"
- end
- if direction == "Left" then
- old:TweenPosition(original - UDim2.new(0, 400, 0, 0), "Out", "Quad", 0.6)
- new.Position = original + UDim2.new(0, 400, 0, 0)
- new:TweenPosition(original, "Out", "Quad", 0.6)
- end
- if direction == "Right" then
- old:TweenPosition(original + UDim2.new(0, 400, 0, 0), "Out", "Quad", 0.6)
- new.Position = original - UDim2.new(0, 400, 0, 0)
- new:TweenPosition(original, "Out", "Quad", 0.6)
- end
- end
- local getbuttons = function(frame)
- local cnt = 0
- for _, a in pairs(frame:children()) do
- if a:IsA'ImageButton' or a.Name == "SearchBar" then
- cnt = cnt + 1
- end
- end
- return cnt
- end
- local tween = function(length, reverse, object, value)
- local tween = game:GetService'TweenService':Create(object, TweenInfo.new(length, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0), {
- ImageColor3 = value
- })
- if reverse then
- tween:Play()
- else
- return tween
- end
- end
- _G.newbtn = function(frame, typ, nam)
- if nam ~= nil and getbuttons(frame) ~= nil then
- local new = typ:Clone()
- local pos = UDim2.new(.0010, 0, 0, (getbuttons(frame) * (new.Size.Y.Offset - 5)) + (getbuttons(frame) * 10))
- local changecol = new
- new.Parent = frame
- new.Position = pos
- new.Text.Text = nam
- new.Name = nam
- if new:FindFirstChild'Input' ~= nil then
- changecol = new.Input
- end
- if changecol == new then
- changecol.MouseButton1Click:connect(function()
- tween(0.075, true, changecol, Color3.fromRGB(70, 70, 70))
- wait(.075)
- tween(0.075, true, changecol, Color3.fromRGB(47, 47, 47))
- end)
- end
- changecol.MouseEnter:connect(function()
- tween(0.25, true, changecol, Color3.fromRGB(36, 36, 36))
- end)
- changecol.MouseLeave:connect(function()
- tween(0.25, true, changecol, Color3.fromRGB(47, 47, 47))
- end)
- if new ~= nil and frame ~= nil and getbuttons(frame) ~= nil then
- if new.Position.Y.Offset + new.Size.Y.Offset > frame.AbsoluteSize.Y then
- frame.CanvasSize = UDim2.new(0, 0, 0, (getbuttons(frame) * new.Size.Y.Offset) + (5 * getbuttons(frame)))
- else
- frame.CanvasSize = UDim2.new(0, 0, 0, 0)
- end
- end
- return new
- end
- end
- --[ GUI ]--
- for _, a in pairs(drag:children()) do
- if a:IsA'TextButton' then
- a.MouseButton1Click:connect(function()
- if page ~= a.Text and not cooldown then
- cooldown = true
- page = a.Text
- line:TweenSizeAndPosition(UDim2.new(0, a.Size.X.Offset, 0, 3), a.Position + UDim2.new(0, 0, 0, 33), "Out", "Quad", 0.6, false)
- newz = drag[page].Position.X.Scale
- oldz = drag[oldpage].Position.X.Scale
- switch(main[oldpage], main[page])
- oldpage = page
- wait(.61)
- cooldown = false
- end
- end)
- end
- end
- closebutton.MouseButton1Click:connect(function()
- if closebutton.Text.Text == "+" then
- main:TweenPosition(orig, "Out", "Quad", 1, true)
- elseif closebutton.Text.Text == "−" then
- main:TweenPosition(orig - UDim2.new(0, 0, 0, 290), "Out", "Quad", 1, true)
- end
- closebutton.Text.Text = ((closebutton.Text.Text == "+" and "−") or (closebutton.Text.Text == "−" and "+"))
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement