Advertisement
iiFlamez

Untitled

May 13th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.76 KB | None | 0 0
  1.  
  2. -- Objects
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Drag = Instance.new("ImageLabel")
  5. local GUI = Instance.new("TextLabel")
  6. local Magic = Instance.new("Frame")
  7. local Main = Instance.new("ImageLabel")
  8. local Functions = Instance.new("ScrollingFrame")
  9. local Test = Instance.new("ImageButton")
  10. local Text = Instance.new("TextLabel")
  11. local Frame = Instance.new("Frame")
  12. local Teleport = Instance.new("ScrollingFrame")
  13. local SearchBar = Instance.new("ImageLabel")
  14. local ImageLabel = Instance.new("ImageLabel")
  15. local TextBox = Instance.new("TextBox")
  16. local Test_2 = Instance.new("ImageButton")
  17. local Text_2 = Instance.new("TextLabel")
  18. local Input = Instance.new("ImageLabel")
  19. local Input_2 = Instance.new("TextBox")
  20. local Settings = Instance.new("ScrollingFrame")
  21. local Test_3 = Instance.new("ImageButton")
  22. local Text_3 = Instance.new("TextLabel")
  23. local Button = Instance.new("ImageButton")
  24. local Text_4 = Instance.new("TextLabel")
  25. local Cover = Instance.new("Frame")
  26. local Functions_2 = Instance.new("TextButton")
  27. local Line = Instance.new("Frame")
  28. local Teleport_2 = Instance.new("TextButton")
  29. local AnotaHline = Instance.new("ImageLabel")
  30. local Settings_2 = Instance.new("TextButton")
  31. _G.gui = ScreenGui
  32. -- Properties
  33. ScreenGui.Parent = game.CoreGui
  34. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  35. Drag.Name = "Drag"
  36. Drag.Parent = ScreenGui
  37. Drag.BackgroundTransparency = 1
  38. Drag.BorderSizePixel = 0
  39. Drag.LayoutOrder = 4
  40. Drag.Position = UDim2.new(0.5, -182, 0, 150)
  41. Drag.Size = UDim2.new(0, 364, 0, 38)
  42. Drag.ZIndex = 6
  43. Drag.Image = "rbxassetid://1307995459"
  44. Drag.ImageColor3 = Color3.new(0.184314, 0.184314, 0.184314)
  45. Drag.ScaleType = Enum.ScaleType.Slice
  46. Drag.SliceCenter = Rect.new(2, 2, 254, 254)
  47. GUI.Name = "GUI"
  48. GUI.Parent = Drag
  49. GUI.BackgroundColor3 = Color3.new(1, 1, 1)
  50. GUI.BackgroundTransparency = 1
  51. GUI.Position = UDim2.new(0.00129200867, 0, 0, 0)
  52. GUI.Size = UDim2.new(0, 97, 0, 38)
  53. GUI.ZIndex = 2
  54. GUI.Font = Enum.Font.SourceSansLight
  55. GUI.Text = "Gopnik's GUI"
  56. GUI.TextColor3 = Color3.new(1, 1, 1)
  57. GUI.TextSize = 20
  58. Magic.Name = "Magic"
  59. Magic.Parent = Drag
  60. Magic.BackgroundColor3 = Color3.new(1, 1, 1)
  61. Magic.BackgroundTransparency = 1
  62. Magic.BorderSizePixel = 0
  63. Magic.ClipsDescendants = true
  64. Magic.Position = UDim2.new(0.00129200867, 0, 0.900000334, 0)
  65. Magic.Size = UDim2.new(0, 394, 0, 291)
  66. Magic.ZIndex = 10
  67. Main.Name = "Main"
  68. Main.Parent = Magic
  69. Main.BackgroundTransparency = 1
  70. Main.BorderSizePixel = 0
  71. Main.Position = UDim2.new(0, 0, 0.0280000009, 0)
  72. Main.Size = UDim2.new(0, 395, 0, 263)
  73. Main.ZIndex = 2
  74. Main.Image = "rbxassetid://1307995459"
  75. Main.ImageColor3 = Color3.new(0.239216, 0.239216, 0.239216)
  76. Main.ScaleType = Enum.ScaleType.Slice
  77. Main.SliceCenter = Rect.new(2, 2, 254, 254)
  78. Functions.Name = "Functions"
  79. Functions.Parent = Main
  80. Functions.BackgroundColor3 = Color3.new(1, 1, 1)
  81. Functions.BackgroundTransparency = 1
  82. Functions.BorderSizePixel = 0
  83. Functions.Position = UDim2.new(0.0201005023, 0, 0.0304182507, 0)
  84. Functions.Size = UDim2.new(0, 378, 0, 244)
  85. Functions.ZIndex = 5
  86. Test.Name = "Test"
  87. Test.Parent = Functions
  88. Test.BackgroundColor3 = Color3.new(1, 1, 1)
  89. Test.BackgroundTransparency = 1
  90. Test.ClipsDescendants = true
  91. Test.Position = UDim2.new(-0.000125523657, 0, 0.125475287, 0)
  92. Test.Size = UDim2.new(0, 352, 0, 25)
  93. Test.Visible = false
  94. Test.ZIndex = 35
  95. Test.Image = "rbxassetid://1307995459"
  96. Test.ImageColor3 = Color3.new(0.184314, 0.184314, 0.184314)
  97. Test.ScaleType = Enum.ScaleType.Slice
  98. Test.SliceCenter = Rect.new(2, 2, 254, 254)
  99. Text.Name = "Text"
  100. Text.Parent = Test
  101. Text.BackgroundColor3 = Color3.new(1, 1, 1)
  102. Text.BackgroundTransparency = 1
  103. Text.Position = UDim2.new(0.0381787829, 0, 0.0562194809, 0)
  104. Text.Size = UDim2.new(0, 335, 0, 25)
  105. Text.Font = Enum.Font.SourceSansLight
  106. Text.Text = "Anti-stun"
  107. Text.TextColor3 = Color3.new(1, 1, 1)
  108. Text.TextSize = 22
  109. Frame.Parent = Test
  110. Frame.BackgroundColor3 = Color3.new(0.898039, 0, 0)
  111. Frame.BorderSizePixel = 0
  112. Frame.Position = UDim2.new(-0.00727576017, 0, 0, 0)
  113. Frame.Size = UDim2.new(0, 6, 0, 25)
  114. Frame.ZIndex = 11
  115. Teleport.Name = "Teleport"
  116. Teleport.Parent = Main
  117. Teleport.BackgroundColor3 = Color3.new(1, 1, 1)
  118. Teleport.BackgroundTransparency = 1
  119. Teleport.BorderSizePixel = 0
  120. Teleport.Position = UDim2.new(0.0201005023, 0, 0.0304182507, 0)
  121. Teleport.Size = UDim2.new(0, 378, 0, 244)
  122. Teleport.Visible = false
  123. Teleport.ZIndex = 5
  124. SearchBar.Name = "SearchBar"
  125. SearchBar.Parent = Teleport
  126. SearchBar.BackgroundTransparency = 1
  127. SearchBar.BorderSizePixel = 0
  128. SearchBar.Position = UDim2.new(-0.00400000019, 0, -0.001, 0)
  129. SearchBar.Size = UDim2.new(0, 354, 0, 25)
  130. SearchBar.ZIndex = 5
  131. SearchBar.Image = "rbxassetid://1307995459"
  132. SearchBar.ImageColor3 = Color3.new(0.184314, 0.184314, 0.184314)
  133. SearchBar.ScaleType = Enum.ScaleType.Slice
  134. SearchBar.SliceCenter = Rect.new(2, 2, 254, 254)
  135. ImageLabel.Parent = SearchBar
  136. ImageLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  137. ImageLabel.BackgroundTransparency = 1
  138. ImageLabel.Position = UDim2.new(0.0209999997, 0, 0.159999996, 0)
  139. ImageLabel.Size = UDim2.new(0, 17, 0, 17)
  140. ImageLabel.ZIndex = 5
  141. ImageLabel.Image = "rbxassetid://395920720"
  142. TextBox.Parent = SearchBar
  143. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  144. TextBox.BackgroundTransparency = 1
  145. TextBox.Position = UDim2.new(0.0870786533, 0, 0, 0)
  146. TextBox.Size = UDim2.new(0, 324, 0, 25)
  147. TextBox.ZIndex = 5
  148. TextBox.Font = Enum.Font.SourceSansLight
  149. TextBox.PlaceholderColor3 = Color3.new(0.631373, 0.631373, 0.631373)
  150. TextBox.PlaceholderText = "Looking for something......?"
  151. TextBox.Text = ""
  152. TextBox.TextColor3 = Color3.new(1, 1, 1)
  153. TextBox.TextSize = 22
  154. TextBox.TextWrapped = true
  155. TextBox.TextXAlignment = Enum.TextXAlignment.Left
  156. Test_2.Name = "Test"
  157. Test_2.Parent = Teleport
  158. Test_2.BackgroundColor3 = Color3.new(1, 1, 1)
  159. Test_2.BackgroundTransparency = 1
  160. Test_2.Position = UDim2.new(-0.00541652879, 0, 0.0665399209, 0)
  161. Test_2.Size = UDim2.new(0, 250, 0, 25)
  162. Test_2.Visible = false
  163. Test_2.ZIndex = 5
  164. Test_2.Image = "rbxassetid://1307995459"
  165. Test_2.ImageColor3 = Color3.new(0.184314, 0.184314, 0.184314)
  166. Test_2.ScaleType = Enum.ScaleType.Slice
  167. Test_2.SliceCenter = Rect.new(2, 2, 254, 254)
  168. Text_2.Name = "Text"
  169. Text_2.Parent = Test_2
  170. Text_2.BackgroundColor3 = Color3.new(1, 1, 1)
  171. Text_2.BackgroundTransparency = 1
  172. Text_2.Size = UDim2.new(0, 250, 0, 25)
  173. Text_2.Font = Enum.Font.SourceSansLight
  174. Text_2.Text = "Anti-stun"
  175. Text_2.TextColor3 = Color3.new(1, 1, 1)
  176. Text_2.TextSize = 22
  177. Input.Name = "Input"
  178. Input.Parent = Test_2
  179. Input.BackgroundTransparency = 1
  180. Input.BorderSizePixel = 0
  181. Input.Position = UDim2.new(1.02417481, 0, 0, 0)
  182. Input.Size = UDim2.new(0, 98, 0, 25)
  183. Input.Image = "rbxassetid://1307995459"
  184. Input.ImageColor3 = Color3.new(0.184314, 0.184314, 0.184314)
  185. Input.ScaleType = Enum.ScaleType.Slice
  186. Input.SliceCenter = Rect.new(2, 2, 254, 254)
  187. Input_2.Name = "Input"
  188. Input_2.Parent = Input
  189. Input_2.BackgroundColor3 = Color3.new(1, 1, 1)
  190. Input_2.BackgroundTransparency = 1
  191. Input_2.Size = UDim2.new(0, 98, 0, 25)
  192. Input_2.ZIndex = 2
  193. Input_2.ClearTextOnFocus = false
  194. Input_2.Font = Enum.Font.SourceSansLight
  195. Input_2.PlaceholderColor3 = Color3.new(0.631373, 0.631373, 0.631373)
  196. Input_2.PlaceholderText = "Input"
  197. Input_2.Text = ""
  198. Input_2.TextColor3 = Color3.new(1, 1, 1)
  199. Input_2.TextScaled = true
  200. Input_2.TextSize = 20
  201. Input_2.TextWrapped = true
  202. Settings.Name = "Settings"
  203. Settings.Parent = Main
  204. Settings.BackgroundColor3 = Color3.new(1, 1, 1)
  205. Settings.BackgroundTransparency = 1
  206. Settings.BorderSizePixel = 0
  207. Settings.ClipsDescendants = false
  208. Settings.Position = UDim2.new(0.0201005023, 0, 0.0304182507, 0)
  209. Settings.Size = UDim2.new(0, 378, 0, 244)
  210. Settings.Visible = false
  211. Settings.ZIndex = 5
  212. Test_3.Name = "Test"
  213. Test_3.Parent = Settings
  214. Test_3.BackgroundColor3 = Color3.new(1, 1, 1)
  215. Test_3.BackgroundTransparency = 1
  216. Test_3.ClipsDescendants = true
  217. Test_3.Position = UDim2.new(-0.00541652879, 0, 0.184410647, 0)
  218. Test_3.Size = UDim2.new(0, 354, 0, 25)
  219. Test_3.Visible = false
  220. Test_3.ZIndex = 13
  221. Test_3.Image = "rbxassetid://1307995459"
  222. Test_3.ImageColor3 = Color3.new(0.184314, 0.184314, 0.184314)
  223. Test_3.ScaleType = Enum.ScaleType.Slice
  224. Test_3.SliceCenter = Rect.new(2, 2, 254, 254)
  225. Text_3.Name = "Text"
  226. Text_3.Parent = Test_3
  227. Text_3.BackgroundColor3 = Color3.new(1, 1, 1)
  228. Text_3.BackgroundTransparency = 1
  229. Text_3.Position = UDim2.new(0.0381787755, 0, 0, 0)
  230. Text_3.Size = UDim2.new(0, 342, 0, 25)
  231. Text_3.Font = Enum.Font.SourceSansLight
  232. Text_3.Text = "Anti-stun"
  233. Text_3.TextColor3 = Color3.new(1, 1, 1)
  234. Text_3.TextSize = 22
  235. Button.Name = "Button"
  236. Button.Parent = Drag
  237. Button.BackgroundColor3 = Color3.new(1, 1, 1)
  238. Button.BackgroundTransparency = 1
  239. Button.ClipsDescendants = true
  240. Button.Position = UDim2.new(0.980736196, 0, 0, 0)
  241. Button.Size = UDim2.new(0, 40, 0, 38)
  242. Button.Image = "rbxassetid://1307995459"
  243. Button.ImageColor3 = Color3.new(0.666667, 0.145098, 0.0980392)
  244. Button.ScaleType = Enum.ScaleType.Slice
  245. Button.SliceCenter = Rect.new(2, 2, 254, 254)
  246. Text_4.Name = "Text"
  247. Text_4.Parent = Button
  248. Text_4.BackgroundColor3 = Color3.new(1, 1, 1)
  249. Text_4.BackgroundTransparency = 1
  250. Text_4.Position = UDim2.new(0.0933006257, 0, 0, 0)
  251. Text_4.Size = UDim2.new(0, 35, 0, 38)
  252. Text_4.Font = Enum.Font.SourceSansLight
  253. Text_4.Text = "−"
  254. Text_4.TextColor3 = Color3.new(1, 1, 1)
  255. Text_4.TextSize = 60
  256. Cover.Name = "Cover"
  257. Cover.Parent = Drag
  258. Cover.BackgroundColor3 = Color3.new(0.184314, 0.184314, 0.184314)
  259. Cover.BorderSizePixel = 0
  260. Cover.Position = UDim2.new(0.980000019, 0, 0, 0)
  261. Cover.Size = UDim2.new(0, 4, 0, 38)
  262. Functions_2.Name = "Functions"
  263. Functions_2.Parent = Drag
  264. Functions_2.BackgroundColor3 = Color3.new(0, 0, 0)
  265. Functions_2.BackgroundTransparency = 1
  266. Functions_2.BorderSizePixel = 0
  267. Functions_2.Position = UDim2.new(0.27179122, 0, 0, 0)
  268. Functions_2.Size = UDim2.new(0, 91, 0, 38)
  269. Functions_2.ZIndex = 10
  270. Functions_2.Font = Enum.Font.SourceSansLight
  271. Functions_2.Text = "Functions"
  272. Functions_2.TextColor3 = Color3.new(1, 1, 1)
  273. Functions_2.TextSize = 20
  274. Line.Name = "Line"
  275. Line.Parent = Drag
  276. Line.BackgroundColor3 = Color3.new(1, 1, 1)
  277. Line.BorderSizePixel = 0
  278. Line.Size = UDim2.new(0, 98, 0, 3)
  279. Line.ZIndex = 30
  280. Teleport_2.Name = "Teleport"
  281. Teleport_2.Parent = Drag
  282. Teleport_2.BackgroundColor3 = Color3.new(0, 0, 0)
  283. Teleport_2.BackgroundTransparency = 1
  284. Teleport_2.BorderSizePixel = 0
  285. Teleport_2.Position = UDim2.new(0.526909053, 0, 0, 0)
  286. Teleport_2.Size = UDim2.new(0, 84, 0, 38)
  287. Teleport_2.ZIndex = 10
  288. Teleport_2.Font = Enum.Font.SourceSansLight
  289. Teleport_2.Text = "Teleport"
  290. Teleport_2.TextColor3 = Color3.new(1, 1, 1)
  291. Teleport_2.TextSize = 20
  292. AnotaHline.Name = "AnotaHline"
  293. AnotaHline.Parent = Drag
  294. AnotaHline.BackgroundTransparency = 1
  295. AnotaHline.BorderSizePixel = 0
  296. AnotaHline.Position = UDim2.new(0.269230753, 0, 0.0789473653, 0)
  297. AnotaHline.Size = UDim2.new(0, 1, 0, 32)
  298. AnotaHline.ZIndex = 30
  299. AnotaHline.Image = "rbxassetid://1307995459"
  300. AnotaHline.ScaleType = Enum.ScaleType.Slice
  301. AnotaHline.SliceCenter = Rect.new(2, 2, 254, 254)
  302. Settings_2.Name = "Settings"
  303. Settings_2.Parent = Drag
  304. Settings_2.BackgroundColor3 = Color3.new(0, 0, 0)
  305. Settings_2.BackgroundTransparency = 1
  306. Settings_2.BorderSizePixel = 0
  307. Settings_2.Position = UDim2.new(0.761533797, 0, 0, 0)
  308. Settings_2.Size = UDim2.new(0, 83, 0, 38)
  309. Settings_2.ZIndex = 10
  310. Settings_2.Font = Enum.Font.SourceSansLight
  311. Settings_2.Text = "Settings"
  312. Settings_2.TextColor3 = Color3.new(1, 1, 1)
  313. Settings_2.TextSize = 20
  314. -- Scripts
  315. _G.searchbar = SearchBar
  316. local plr = game:GetService('Players').LocalPlayer
  317. local gui = _G.gui
  318. local drag, main = gui.Drag, gui.Drag.Magic.Main
  319. local toggles, settingz = main.Functions, main.Teleport
  320. local closebutton, tog, others, line = drag.Button, drag.Functions, drag.Teleport, drag.Line
  321. local orig, toggl, perma, setting = main.Position, main.Functions.Test:Clone(), main.Settings.Test:Clone(), main.Teleport.Test:Clone()
  322. local page, oldpage = "Functions", "Functions"
  323. local cooldown, oldz, newz, original = false, tog.Position.X.Scale, nil, UDim2.new(.02, 0, .03, 0)
  324. local settins = main.Settings
  325. line.Position = tog.Position + UDim2.new(0, 0, 0, 33)
  326. line.Size = UDim2.new(0, tog.Size.X.Offset, 0, 3)
  327. main.Functions.Test:Destroy()
  328. main.Settings.Test:Destroy()
  329. main.Teleport.Test:Destroy()
  330. toggl.Visible = true
  331. perma.Visible = true
  332. setting.Visible = true
  333. _G.toggles = toggles
  334. _G.settingz = settingz
  335. _G.perma = perma
  336. _G.toggl = toggl
  337. _G.setting = setting
  338. _G.actualsettings = settins
  339. _G.searchbar = SearchBar
  340. for _, a in pairs(main:children()) do
  341. if a.Name ~= page then
  342. a.Visible = true
  343. a.Position = original + UDim2.new(4, 0, 0, 0)
  344. end
  345. end
  346. --[ MAKE IT DRAGGABLE ]--
  347. drag.Active = true
  348. drag.Draggable = true
  349. --[ FUNCTIONS ]--
  350. local switch = function(old, new)
  351. local direction = "Left"
  352. if newz > oldz then
  353. direction = "Right"
  354. elseif newz < oldz then
  355. direction = "Left"
  356. end
  357. if direction == "Left" then
  358. old:TweenPosition(original - UDim2.new(0, 400, 0, 0), "Out", "Quad", 0.6)
  359. new.Position = original + UDim2.new(0, 400, 0, 0)
  360. new:TweenPosition(original, "Out", "Quad", 0.6)
  361. end
  362. if direction == "Right" then
  363. old:TweenPosition(original + UDim2.new(0, 400, 0, 0), "Out", "Quad", 0.6)
  364. new.Position = original - UDim2.new(0, 400, 0, 0)
  365. new:TweenPosition(original, "Out", "Quad", 0.6)
  366. end
  367. end
  368. local getbuttons = function(frame)
  369. local cnt = 0
  370. for _, a in pairs(frame:children()) do
  371. if a:IsA'ImageButton' or a.Name == "SearchBar" then
  372. cnt = cnt + 1
  373. end
  374. end
  375. return cnt
  376. end
  377. local tween = function(length, reverse, object, value)
  378. local tween = game:GetService'TweenService':Create(object, TweenInfo.new(length, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0), {
  379. ImageColor3 = value
  380. })
  381. if reverse then
  382. tween:Play()
  383. else
  384. return tween
  385. end
  386. end
  387. _G.newbtn = function(frame, typ, nam)
  388. if nam ~= nil and getbuttons(frame) ~= nil then
  389. local new = typ:Clone()
  390. local pos = UDim2.new(.0010, 0, 0, (getbuttons(frame) * (new.Size.Y.Offset - 5)) + (getbuttons(frame) * 10))
  391. local changecol = new
  392. new.Parent = frame
  393. new.Position = pos
  394. new.Text.Text = nam
  395. new.Name = nam
  396. if new:FindFirstChild'Input' ~= nil then
  397. changecol = new.Input
  398. end
  399. if changecol == new then
  400. changecol.MouseButton1Click:connect(function()
  401. tween(0.075, true, changecol, Color3.fromRGB(70, 70, 70))
  402. wait(.075)
  403. tween(0.075, true, changecol, Color3.fromRGB(47, 47, 47))
  404. end)
  405. end
  406. changecol.MouseEnter:connect(function()
  407. tween(0.25, true, changecol, Color3.fromRGB(36, 36, 36))
  408. end)
  409. changecol.MouseLeave:connect(function()
  410. tween(0.25, true, changecol, Color3.fromRGB(47, 47, 47))
  411. end)
  412. if new ~= nil and frame ~= nil and getbuttons(frame) ~= nil then
  413. if new.Position.Y.Offset + new.Size.Y.Offset > frame.AbsoluteSize.Y then
  414. frame.CanvasSize = UDim2.new(0, 0, 0, (getbuttons(frame) * new.Size.Y.Offset) + (5 * getbuttons(frame)))
  415. else
  416. frame.CanvasSize = UDim2.new(0, 0, 0, 0)
  417. end
  418. end
  419. return new
  420. end
  421. end
  422. --[ GUI ]--
  423. for _, a in pairs(drag:children()) do
  424. if a:IsA'TextButton' then
  425. a.MouseButton1Click:connect(function()
  426. if page ~= a.Text and not cooldown then
  427. cooldown = true
  428. page = a.Text
  429. line:TweenSizeAndPosition(UDim2.new(0, a.Size.X.Offset, 0, 3), a.Position + UDim2.new(0, 0, 0, 33), "Out", "Quad", 0.6, false)
  430. newz = drag[page].Position.X.Scale
  431. oldz = drag[oldpage].Position.X.Scale
  432. switch(main[oldpage], main[page])
  433. oldpage = page
  434. wait(.61)
  435. cooldown = false
  436. end
  437. end)
  438. end
  439. end
  440. closebutton.MouseButton1Click:connect(function()
  441. if closebutton.Text.Text == "+" then
  442. main:TweenPosition(orig, "Out", "Quad", 1, true)
  443. elseif closebutton.Text.Text == "−" then
  444. main:TweenPosition(orig - UDim2.new(0, 0, 0, 290), "Out", "Quad", 1, true)
  445. end
  446. closebutton.Text.Text = ((closebutton.Text.Text == "+" and "−") or (closebutton.Text.Text == "−" and "+"))
  447. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement