Advertisement
Alacroy

GUI test #9

Nov 13th, 2019
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.88 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Main = Instance.new("Frame")
  8. local Header = Instance.new("Frame")
  9. local Frame = Instance.new("Frame")
  10. local TextLabel = Instance.new("TextLabel")
  11. local TextButton = Instance.new("TextButton")
  12. local TextButton_2 = Instance.new("TextButton")
  13. local TextButton_3 = Instance.new("TextButton")
  14. local TextButton_4 = Instance.new("TextButton")
  15. local TextButton_5 = Instance.new("TextButton")
  16. local TextButton_6 = Instance.new("TextButton")
  17. local TextButton_7 = Instance.new("TextButton")
  18. local TextButton_8 = Instance.new("TextButton")
  19. local TextButton_9 = Instance.new("TextButton")
  20. local TextButton_10 = Instance.new("TextButton")
  21. local TextButton_11 = Instance.new("TextButton")
  22. local TextButton_12 = Instance.new("TextButton")
  23. local TextButton_13 = Instance.new("TextButton")
  24. local TextButton_14 = Instance.new("TextButton")
  25. local TextButton_15 = Instance.new("TextButton")
  26. local TextLabel_2 = Instance.new("TextLabel")
  27. local Footer = Instance.new("Frame")
  28. local Frame_2 = Instance.new("Frame")
  29. local TextLabel_3 = Instance.new("TextLabel")
  30. local TextLabel_4 = Instance.new("TextLabel")
  31.  
  32. --Properties:
  33.  
  34. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  35.  
  36. Main.Name = "Main"
  37. Main.Parent = ScreenGui
  38. Main.BackgroundColor3 = Color3.new(0.192157, 0.192157, 0.192157)
  39. Main.BorderSizePixel = 0
  40. Main.Position = UDim2.new(0.279197067, 0, 0.309963137, 0)
  41. Main.Selectable = true
  42. Main.Size = UDim2.new(0, 484, 0, 248)
  43.  
  44. Header.Name = "Header"
  45. Header.Parent = Main
  46. Header.BackgroundColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  47. Header.BorderSizePixel = 0
  48. Header.Position = UDim2.new(-0.0247933883, 0, -0.087519303, 0)
  49. Header.Size = UDim2.new(0, 508, 0, 22)
  50.  
  51. Frame.Parent = Header
  52. Frame.BackgroundColor3 = Color3.new(0.278431, 0.278431, 0.278431)
  53. Frame.BorderSizePixel = 0
  54. Frame.Position = UDim2.new(0.10826771, 0, 0.345762759, 0)
  55. Frame.Size = UDim2.new(0, 398, 0, 5)
  56.  
  57. TextLabel.Parent = Main
  58. TextLabel.BackgroundColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  59. TextLabel.BorderSizePixel = 0
  60. TextLabel.Position = UDim2.new(0.111713544, 0, 0.133698463, 0)
  61. TextLabel.Size = UDim2.new(0, 45, 0, 19)
  62. TextLabel.Font = Enum.Font.SourceSansBold
  63. TextLabel.Text = "Melee"
  64. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  65. TextLabel.TextSize = 14
  66.  
  67. TextButton.Parent = Main
  68. TextButton.BackgroundColor3 = Color3.new(1, 0.639216, 0.27451)
  69. TextButton.BorderSizePixel = 0
  70. TextButton.Position = UDim2.new(0.739971042, 0, 0.244955957, 0)
  71. TextButton.Size = UDim2.new(0, 97, 0, 26)
  72. TextButton.Font = Enum.Font.SourceSansBold
  73. TextButton.TextColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  74. TextButton.TextSize = 17
  75.  
  76. TextButton_2.Parent = Main
  77. TextButton_2.BackgroundColor3 = Color3.new(1, 0.639216, 0.27451)
  78. TextButton_2.BorderSizePixel = 0
  79. TextButton_2.Position = UDim2.new(0.739971042, 0, 0.761084974, 0)
  80. TextButton_2.Size = UDim2.new(0, 97, 0, 26)
  81. TextButton_2.Font = Enum.Font.SourceSansBold
  82. TextButton_2.TextColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  83. TextButton_2.TextSize = 17
  84.  
  85. TextButton_3.Parent = Main
  86. TextButton_3.BackgroundColor3 = Color3.new(1, 0.639216, 0.27451)
  87. TextButton_3.BorderSizePixel = 0
  88. TextButton_3.Position = UDim2.new(0.739971042, 0, 0.63205272, 0)
  89. TextButton_3.Size = UDim2.new(0, 97, 0, 26)
  90. TextButton_3.Font = Enum.Font.SourceSansBold
  91. TextButton_3.TextColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  92. TextButton_3.TextSize = 17
  93.  
  94. TextButton_4.Parent = Main
  95. TextButton_4.BackgroundColor3 = Color3.new(1, 0.639216, 0.27451)
  96. TextButton_4.BorderSizePixel = 0
  97. TextButton_4.Position = UDim2.new(0.739971042, 0, 0.503020465, 0)
  98. TextButton_4.Size = UDim2.new(0, 97, 0, 26)
  99. TextButton_4.Font = Enum.Font.SourceSansBold
  100. TextButton_4.TextColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  101. TextButton_4.TextSize = 17
  102.  
  103. TextButton_5.Parent = Main
  104. TextButton_5.BackgroundColor3 = Color3.new(1, 0.639216, 0.27451)
  105. TextButton_5.BorderSizePixel = 0
  106. TextButton_5.Position = UDim2.new(0.739971042, 0, 0.373988211, 0)
  107. TextButton_5.Size = UDim2.new(0, 97, 0, 26)
  108. TextButton_5.Font = Enum.Font.SourceSansBold
  109. TextButton_5.TextColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  110. TextButton_5.TextSize = 17
  111.  
  112. TextButton_6.Parent = Main
  113. TextButton_6.BackgroundColor3 = Color3.new(1, 0.639216, 0.27451)
  114. TextButton_6.BorderSizePixel = 0
  115. TextButton_6.Position = UDim2.new(0.396995842, 0, 0.244955957, 0)
  116. TextButton_6.Size = UDim2.new(0, 97, 0, 26)
  117. TextButton_6.Font = Enum.Font.SourceSansBold
  118. TextButton_6.TextColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  119. TextButton_6.TextSize = 17
  120.  
  121. TextButton_7.Parent = Main
  122. TextButton_7.BackgroundColor3 = Color3.new(1, 0.639216, 0.27451)
  123. TextButton_7.BorderSizePixel = 0
  124. TextButton_7.Position = UDim2.new(0.396995842, 0, 0.761084974, 0)
  125. TextButton_7.Size = UDim2.new(0, 97, 0, 26)
  126. TextButton_7.Font = Enum.Font.SourceSansBold
  127. TextButton_7.TextColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  128. TextButton_7.TextSize = 17
  129.  
  130. TextButton_8.Parent = Main
  131. TextButton_8.BackgroundColor3 = Color3.new(1, 0.639216, 0.27451)
  132. TextButton_8.BorderSizePixel = 0
  133. TextButton_8.Position = UDim2.new(0.396995842, 0, 0.63205272, 0)
  134. TextButton_8.Size = UDim2.new(0, 97, 0, 26)
  135. TextButton_8.Font = Enum.Font.SourceSansBold
  136. TextButton_8.TextColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  137. TextButton_8.TextSize = 17
  138.  
  139. TextButton_9.Parent = Main
  140. TextButton_9.BackgroundColor3 = Color3.new(1, 0.639216, 0.27451)
  141. TextButton_9.BorderSizePixel = 0
  142. TextButton_9.Position = UDim2.new(0.396995842, 0, 0.503020465, 0)
  143. TextButton_9.Size = UDim2.new(0, 97, 0, 26)
  144. TextButton_9.Font = Enum.Font.SourceSansBold
  145. TextButton_9.TextColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  146. TextButton_9.TextSize = 17
  147.  
  148. TextButton_10.Parent = Main
  149. TextButton_10.BackgroundColor3 = Color3.new(1, 0.639216, 0.27451)
  150. TextButton_10.BorderSizePixel = 0
  151. TextButton_10.Position = UDim2.new(0.396995842, 0, 0.373988211, 0)
  152. TextButton_10.Size = UDim2.new(0, 97, 0, 26)
  153. TextButton_10.Font = Enum.Font.SourceSansBold
  154. TextButton_10.TextColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  155. TextButton_10.TextSize = 17
  156.  
  157. TextButton_11.Parent = Main
  158. TextButton_11.BackgroundColor3 = Color3.new(1, 0.639216, 0.27451)
  159. TextButton_11.BorderSizePixel = 0
  160. TextButton_11.Position = UDim2.new(0.0581528805, 0, 0.244955957, 0)
  161. TextButton_11.Size = UDim2.new(0, 97, 0, 26)
  162. TextButton_11.Font = Enum.Font.SourceSansBold
  163. TextButton_11.TextColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  164. TextButton_11.TextSize = 17
  165.  
  166. TextButton_12.Parent = Main
  167. TextButton_12.BackgroundColor3 = Color3.new(1, 0.639216, 0.27451)
  168. TextButton_12.BorderSizePixel = 0
  169. TextButton_12.Position = UDim2.new(0.0581528805, 0, 0.761084974, 0)
  170. TextButton_12.Size = UDim2.new(0, 97, 0, 26)
  171. TextButton_12.Font = Enum.Font.SourceSansBold
  172. TextButton_12.TextColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  173. TextButton_12.TextSize = 17
  174.  
  175. TextButton_13.Parent = Main
  176. TextButton_13.BackgroundColor3 = Color3.new(1, 0.639216, 0.27451)
  177. TextButton_13.BorderSizePixel = 0
  178. TextButton_13.Position = UDim2.new(0.0581528805, 0, 0.63205272, 0)
  179. TextButton_13.Size = UDim2.new(0, 97, 0, 26)
  180. TextButton_13.Font = Enum.Font.SourceSansBold
  181. TextButton_13.TextColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  182. TextButton_13.TextSize = 17
  183.  
  184. TextButton_14.Parent = Main
  185. TextButton_14.BackgroundColor3 = Color3.new(1, 0.639216, 0.27451)
  186. TextButton_14.BorderSizePixel = 0
  187. TextButton_14.Position = UDim2.new(0.0581528805, 0, 0.503020465, 0)
  188. TextButton_14.Size = UDim2.new(0, 97, 0, 26)
  189. TextButton_14.Font = Enum.Font.SourceSansBold
  190. TextButton_14.TextColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  191. TextButton_14.TextSize = 17
  192.  
  193. TextButton_15.Parent = Main
  194. TextButton_15.BackgroundColor3 = Color3.new(1, 0.639216, 0.27451)
  195. TextButton_15.BorderSizePixel = 0
  196. TextButton_15.Position = UDim2.new(0.0581528805, 0, 0.373988211, 0)
  197. TextButton_15.Size = UDim2.new(0, 97, 0, 26)
  198. TextButton_15.Font = Enum.Font.SourceSansBold
  199. TextButton_15.TextColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  200. TextButton_15.TextSize = 17
  201.  
  202. TextLabel_2.Parent = Main
  203. TextLabel_2.BackgroundColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  204. TextLabel_2.BorderSizePixel = 0
  205. TextLabel_2.Position = UDim2.new(0.367225677, 0, -0.172196731, 0)
  206. TextLabel_2.Size = UDim2.new(0, 128, 0, 21)
  207. TextLabel_2.ZIndex = 2
  208. TextLabel_2.Font = Enum.Font.SourceSansBold
  209. TextLabel_2.Text = "Boogib0t"
  210. TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
  211. TextLabel_2.TextSize = 22
  212.  
  213. Footer.Name = "Footer"
  214. Footer.Parent = Main
  215. Footer.BackgroundColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  216. Footer.BorderSizePixel = 0
  217. Footer.Position = UDim2.new(-0.0247933883, 0, 0.997098565, 0)
  218. Footer.Size = UDim2.new(0, 508, 0, 22)
  219.  
  220. Frame_2.Parent = Footer
  221. Frame_2.BackgroundColor3 = Color3.new(0.278431, 0.278431, 0.278431)
  222. Frame_2.BorderSizePixel = 0
  223. Frame_2.Position = UDim2.new(0.10826771, 0, 0.345762759, 0)
  224. Frame_2.Size = UDim2.new(0, 398, 0, 5)
  225.  
  226. TextLabel_3.Parent = Main
  227. TextLabel_3.BackgroundColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  228. TextLabel_3.BorderSizePixel = 0
  229. TextLabel_3.Position = UDim2.new(0.452622652, 0, 0.133698463, 0)
  230. TextLabel_3.Size = UDim2.new(0, 45, 0, 19)
  231. TextLabel_3.Font = Enum.Font.SourceSansBold
  232. TextLabel_3.Text = "Melee"
  233. TextLabel_3.TextColor3 = Color3.new(1, 1, 1)
  234. TextLabel_3.TextSize = 14
  235.  
  236. TextLabel_4.Parent = Main
  237. TextLabel_4.BackgroundColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  238. TextLabel_4.BorderSizePixel = 0
  239. TextLabel_4.Position = UDim2.new(0.793531775, 0, 0.133698463, 0)
  240. TextLabel_4.Size = UDim2.new(0, 45, 0, 19)
  241. TextLabel_4.Font = Enum.Font.SourceSansBold
  242. TextLabel_4.Text = "Melee"
  243. TextLabel_4.TextColor3 = Color3.new(1, 1, 1)
  244. TextLabel_4.TextSize = 14
  245.  
  246. -- Scripts:
  247.  
  248. local function EUEWWM_fake_script() -- Main.Draggability
  249. local script = Instance.new('LocalScript', Main)
  250.  
  251. local UserInputService = game:GetService("UserInputService")
  252.  
  253. local gui = script.Parent
  254.  
  255. local dragging
  256. local dragInput
  257. local dragStart
  258. local startPos
  259.  
  260. local function update(input)
  261. local delta = input.Position - dragStart
  262. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  263. end
  264.  
  265. gui.InputBegan:Connect(function(input)
  266. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  267. dragging = true
  268. dragStart = input.Position
  269. startPos = gui.Position
  270.  
  271. input.Changed:Connect(function()
  272. if input.UserInputState == Enum.UserInputState.End then
  273. dragging = false
  274. end
  275. end)
  276. end
  277. end)
  278.  
  279. gui.InputChanged:Connect(function(input)
  280. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  281. dragInput = input
  282. end
  283. end)
  284.  
  285. UserInputService.InputChanged:Connect(function(input)
  286. if input == dragInput and dragging then
  287. update(input)
  288. end
  289. end)
  290. end
  291. coroutine.wrap(EUEWWM_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement