Advertisement
Guest User

Primilitive GUI (Updated UI)

a guest
May 27th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 14.57 KB | None | 0 0
  1. -- Objects
  2.  
  3. local haxs = Instance.new("ScreenGui")
  4. local Title = Instance.new("Frame")
  5. local TitleText = Instance.new("TextLabel")
  6. local Open = Instance.new("TextButton")
  7. local Head = Instance.new("Frame")
  8. local Overhead = Instance.new("Frame")
  9. local Oil = Instance.new("TextButton")
  10. local Gunpowder = Instance.new("TextButton")
  11. local Crystal = Instance.new("TextButton")
  12. local Obsidian = Instance.new("TextButton")
  13. local Electronics = Instance.new("TextButton")
  14. local IronIngot = Instance.new("TextButton")
  15. local Ink = Instance.new("TextButton")
  16. local Polymer = Instance.new("TextButton")
  17. local Coal = Instance.new("TextButton")
  18. local Cloth = Instance.new("TextButton")
  19. local CopperIngot = Instance.new("TextButton")
  20. local MainFrame = Instance.new("Frame")
  21. local Stone = Instance.new("TextButton")
  22. local Wood = Instance.new("TextButton")
  23. local Foliage = Instance.new("TextButton")
  24. local Fiber = Instance.new("TextButton")
  25. local Iron = Instance.new("TextButton")
  26. local Gold = Instance.new("TextButton")
  27. local Close = Instance.new("TextButton")
  28. local Credit = Instance.new("TextLabel")
  29.  
  30. -- Properties
  31.  
  32. haxs.Name = "haxs"
  33. haxs.Parent = game.Players.LocalPlayer.PlayerGui
  34.  
  35. Title.Name = "Title"
  36. Title.Parent = haxs
  37. Title.BackgroundColor3 = Color3.new(0,0,0)
  38. Title.BackgroundTransparency = 0.5
  39. Title.BorderColor3 = Color3.new(0, 0, 0)
  40. Title.BorderSizePixel = 0
  41. Title.Position = UDim2.new(0, 0, 0.8, 0)
  42. Title.Size = UDim2.new(0, 150, 0, 30)
  43.  
  44. TitleText.Name = "TitleText"
  45. TitleText.Parent = Title
  46. TitleText.BackgroundColor3 = Color3.new(255, 255, 255)
  47. TitleText.BackgroundTransparency = 1
  48. TitleText.Position = UDim2.new(0, 0, 0, 0)
  49. TitleText.Size = UDim2.new(0, 150, 0, 30)
  50. TitleText.Font = Enum.Font.Bodoni
  51. TitleText.Text = "Primitive Gui"
  52. TitleText.TextStrokeTransparency = 1
  53. TitleText.TextColor3 = Color3.new(255, 255, 255)
  54. TitleText.TextSize = 25
  55.  
  56. Open.Name = "Open"
  57. Open.Parent = haxs
  58. Open.BackgroundColor3 = Color3.new(0, 0, 0)
  59. Open.BorderColor3 = Color3.new(0, 0, 0)
  60. Open.BackgroundTransparency = 0.5
  61. Open.BorderSizePixel = 0
  62. Open.Position = UDim2.new(0, 0, 0.87, 0)
  63. Open.Size = UDim2.new(0, 150, 0, 30)
  64. Open.Visible = false
  65. Open.Font = Enum.Font.Bodoni
  66. Open.Text = "Open GUI"
  67. Open.TextColor3 = Color3.new(255, 255, 255)
  68. Open.TextSize = 25
  69.  
  70. Head.Name = "Head"
  71. Head.Parent = haxs
  72. Head.Active = true
  73. Head.BackgroundColor3 = Color3.new(0, 0, 0)
  74. Head.BackgroundTransparency = 0.5
  75. Head.BorderSizePixel = 0
  76. Head.Position = UDim2.new(0.5, -225, 0.5, -150)
  77. Head.Selectable = true
  78. Head.Size = UDim2.new(0, 452, 0, 29)
  79.  
  80. Overhead.Name = "Overhead"
  81. Overhead.Parent = Head
  82. Overhead.BorderSizePixel = 0
  83. Overhead.BackgroundColor3 = Color3.new(1, 1, 1)
  84. Overhead.Position = UDim2.new(0.00043797493, 0, 1.00482917, 0)
  85. Overhead.Size = UDim2.new(0, 452, 0, 3)
  86.  
  87. Oil.Name = "Oil"
  88. Oil.Parent = MainFrame
  89. Oil.BackgroundTransparency = 0.5
  90. Oil.BackgroundColor3 = Color3.new(0, 0, 0)
  91. Oil.Position = UDim2.new(0.516, 0, 0.75, 0)
  92. Oil.Size = UDim2.new(0, 200, 0, 20)
  93. Oil.Font = Enum.Font.SourceSansLight
  94. Oil.Text = "Unlimited Oil"
  95. Oil.TextColor3 = Color3.new(255, 255, 255)
  96. Oil.TextSize = 20
  97.  
  98. Gunpowder.Name = "Gunpowder"
  99. Gunpowder.Parent = MainFrame
  100. Gunpowder.BackgroundTransparency = 0.5
  101. Gunpowder.BackgroundColor3 = Color3.new(0, 0, 0)
  102. Gunpowder.Position = UDim2.new(0.516, 0, 0.55, 0)
  103. Gunpowder.Size = UDim2.new(0, 200, 0, 20)
  104. Gunpowder.Font = Enum.Font.SourceSansLight
  105. Gunpowder.Text = "Unlimited Gunpowder"
  106. Gunpowder.TextColor3 = Color3.new(255, 255, 255)
  107. Gunpowder.TextSize = 20
  108.  
  109. Crystal.Name = "Crystal"
  110. Crystal.Parent = MainFrame
  111. Crystal.BackgroundTransparency = 0.5
  112. Crystal.BackgroundColor3 = Color3.new(0, 0, 0)
  113. Crystal.Position = UDim2.new(0.03, 0, 0.45, 0)
  114. Crystal.Size = UDim2.new(0, 200, 0, 20)
  115. Crystal.Font = Enum.Font.SourceSansLight
  116. Crystal.Text = "Unlimited Crystal"
  117. Crystal.TextColor3 = Color3.new(255, 255, 255)
  118. Crystal.TextSize = 20
  119.  
  120. Obsidian.Name = "Obsidian"
  121. Obsidian.Parent = MainFrame
  122. Obsidian.BackgroundTransparency = 0.5
  123. Obsidian.BackgroundColor3 = Color3.new(0, 0, 0)
  124. Obsidian.Position = UDim2.new(0.03, 0, 0.35, 0)
  125. Obsidian.Size = UDim2.new(0, 200, 0, 20)
  126. Obsidian.Font = Enum.Font.SourceSansLight
  127. Obsidian.Text = "Unlimited Obsidian"
  128. Obsidian.TextColor3 = Color3.new(255, 255, 255)
  129. Obsidian.TextSize = 20
  130.  
  131. Electronics.Name = "Electronics"
  132. Electronics.Parent = MainFrame
  133. Electronics.BackgroundTransparency = 0.5
  134. Electronics.BackgroundColor3 = Color3.new(0, 0, 0)
  135. Electronics.Position = UDim2.new(0.03, 0, 0.55, 0)
  136. Electronics.Size = UDim2.new(0, 200, 0, 20)
  137. Electronics.Font = Enum.Font.SourceSansLight
  138. Electronics.Text = "Unlimited Electronics"
  139. Electronics.TextColor3 = Color3.new(255, 255, 255)
  140. Electronics.TextSize = 20
  141.  
  142. IronIngot.Name = "IronIngot"
  143. IronIngot.Parent = MainFrame
  144. IronIngot.BackgroundTransparency = 0.5
  145. IronIngot.BackgroundColor3 = Color3.new(0, 0, 0)
  146. IronIngot.Position = UDim2.new(0.03, 0, 0.75, 0)
  147. IronIngot.Size = UDim2.new(0, 200, 0, 20)
  148. IronIngot.Font = Enum.Font.SourceSansLight
  149. IronIngot.Text = "Unlimited Iron Ingot"
  150. IronIngot.TextColor3 = Color3.new(255, 255, 255)
  151. IronIngot.TextSize = 20
  152.  
  153. Ink.Name = "Ink"
  154. Ink.Parent = MainFrame
  155. Ink.BackgroundTransparency = 0.5
  156. Ink.BackgroundColor3 = Color3.new(0, 0, 0)
  157. Ink.Position = UDim2.new(0.03, 0, 0.65, 0)
  158. Ink.Size = UDim2.new(0, 200, 0, 20)
  159. Ink.Font = Enum.Font.SourceSansLight
  160. Ink.Text = "Unlimited Ink"
  161. Ink.TextColor3 = Color3.new(255, 255, 255)
  162. Ink.TextSize = 20
  163.  
  164. Polymer.Name = "Polymer"
  165. Polymer.Parent = MainFrame
  166. Polymer.BackgroundTransparency = 0.5
  167. Polymer.BackgroundColor3 = Color3.new(0, 0, 0)
  168. Polymer.Position = UDim2.new(0.516, 0, 0.65, 0)
  169. Polymer.Size = UDim2.new(0, 200, 0, 20)
  170. Polymer.Font = Enum.Font.SourceSansLight
  171. Polymer.Text = "Unlimited Polymers"
  172. Polymer.TextColor3 = Color3.new(255, 255, 255)
  173. Polymer.TextSize = 20
  174.  
  175. Coal.Name = "Coal"
  176. Coal.Parent = MainFrame
  177. Coal.BackgroundTransparency = 0.5
  178. Coal.BackgroundColor3 = Color3.new(0, 0, 0)
  179. Coal.Position = UDim2.new(0.516, 0, 0.45, 0)
  180. Coal.Size = UDim2.new(0, 200, 0, 20)
  181. Coal.Font = Enum.Font.SourceSansLight
  182. Coal.Text = "Unlimited Coal"
  183. Coal.TextColor3 = Color3.new(255, 255, 255)
  184. Coal.TextSize = 20
  185.  
  186. Cloth.Name = "Cloth"
  187. Cloth.Parent = MainFrame
  188. Cloth.BackgroundTransparency = 0.5
  189. Cloth.BackgroundColor3 = Color3.new(0, 0, 0)
  190. Cloth.Position = UDim2.new(0.516, 0, 0.35, 0)
  191. Cloth.Size = UDim2.new(0, 200, 0, 20)
  192. Cloth.Font = Enum.Font.SourceSansLight
  193. Cloth.Text = "Unlimited Cloths"
  194. Cloth.TextColor3 = Color3.new(255, 255, 255)
  195. Cloth.TextSize = 20
  196.  
  197. Gold.Name = "Gold"
  198. Gold.Parent = MainFrame
  199. Gold.BackgroundTransparency = 0.5
  200. Gold.BackgroundColor3 = Color3.new(0, 0, 0)
  201. Gold.Position = UDim2.new(0.03, 0, 0.85, 0)
  202. Gold.Size = UDim2.new(0, 414, 0, 20)
  203. Gold.Font = Enum.Font.SourceSansLight
  204. Gold.Text = "Unlimited Gold"
  205. Gold.TextColor3 = Color3.new(255, 255, 255)
  206. Gold.TextSize = 20
  207.  
  208. MainFrame.Name = "MainFrame"
  209. MainFrame.Parent = Overhead
  210. MainFrame.BackgroundTransparency = 0.4
  211. MainFrame.BackgroundColor3 = Color3.new(0, 0, 0)
  212. MainFrame.BorderColor3 = Color3.new(0, 0, 0)
  213. MainFrame.BorderSizePixel = 0
  214. MainFrame.Position = UDim2.new(0.0130805373, 0, 3.05461407, 0)
  215. MainFrame.Size = UDim2.new(0, 440, 0, 270)
  216.  
  217. Stone.Name = "Stone"
  218. Stone.Parent = MainFrame
  219. Stone.BackgroundTransparency = 0.5
  220. Stone.BackgroundColor3 = Color3.new(0, 0, 0)
  221. Stone.Position = UDim2.new(0.03, 0, 0.05, 0)
  222. Stone.Size = UDim2.new(0, 200, 0, 20)
  223. Stone.Font = Enum.Font.SourceSansLight
  224. Stone.Text = "Unlimited Stone"
  225. Stone.TextColor3 = Color3.new(255, 255, 255)
  226. Stone.TextSize = 20
  227.  
  228. Wood.Name = "Wood"
  229. Wood.Parent = MainFrame
  230. Wood.BackgroundTransparency = 0.5
  231. Wood.BackgroundColor3 = Color3.new(0, 0, 0)
  232. Wood.Position = UDim2.new(0.03, 0, 0.15, 0)
  233. Wood.Size = UDim2.new(0, 200, 0, 20)
  234. Wood.Font = Enum.Font.SourceSansLight
  235. Wood.Text = "Unlimited Wood"
  236. Wood.TextColor3 = Color3.new(255, 255, 255)
  237. Wood.TextSize = 20
  238.  
  239. Foliage.Name = "Foliage"
  240. Foliage.Parent = MainFrame
  241. Foliage.BackgroundTransparency = 0.5
  242. Foliage.BackgroundColor3 = Color3.new(0, 0, 0)
  243. Foliage.Position = UDim2.new(0.516, 0, 0.15, 0)
  244. Foliage.Size = UDim2.new(0, 200, 0, 20)
  245. Foliage.Font = Enum.Font.SourceSansLight
  246. Foliage.Text = "Unlimited Foliage"
  247. Foliage.TextColor3 = Color3.new(255, 255, 255)
  248. Foliage.TextSize = 20
  249.  
  250. Fiber.Name = "Fiber"
  251. Fiber.Parent = MainFrame
  252. Fiber.BackgroundTransparency = 0.5
  253. Fiber.BackgroundColor3 = Color3.new(0, 0, 0)
  254. Fiber.Position = UDim2.new(0.516, 0, 0.05, 0)
  255. Fiber.Size = UDim2.new(0, 200, 0, 20)
  256. Fiber.Font = Enum.Font.SourceSansLight
  257. Fiber.Text = "Unlimited Fiber"
  258. Fiber.TextColor3 = Color3.new(255, 255, 255)
  259. Fiber.TextSize = 20
  260.  
  261. Iron.Name = "Iron"
  262. Iron.Parent = MainFrame
  263. Iron.BackgroundTransparency = 0.5
  264. Iron.BackgroundColor3 = Color3.new(0, 0, 0)
  265. Iron.Position = UDim2.new(0.03, 0, 0.25, 0)
  266. Iron.Size = UDim2.new(0, 200, 0, 20)
  267. Iron.Font = Enum.Font.SourceSansLight
  268. Iron.Text = "Unlimited Iron"
  269. Iron.TextColor3 = Color3.new(255, 255, 255)
  270. Iron.TextSize = 20
  271.  
  272. CopperIngot.Name = "CopperIngot"
  273. CopperIngot.Parent = MainFrame
  274. CopperIngot.BackgroundTransparency = 0.5
  275. CopperIngot.BackgroundColor3 = Color3.new(0, 0, 0)
  276. CopperIngot.Position = UDim2.new(0.516, 0, 0.25, 0)
  277. CopperIngot.Size = UDim2.new(0, 200, 0, 20)
  278. CopperIngot.Font = Enum.Font.SourceSansLight
  279. CopperIngot.Text = "Unlimited Copper Ingot"
  280. CopperIngot.TextColor3 = Color3.new(255, 255, 255)
  281. CopperIngot.TextSize = 20
  282.  
  283. Close.Name = "Close"
  284. Close.Parent = MainFrame
  285. Close.BackgroundColor3 = Color3.new(0, 0, 0)
  286. Close.Position = UDim2.new(0, 0, 0.95, 0)
  287. Close.BorderSizePixel = 0
  288. Close.Size = UDim2.new(0, 440, 0, 23)
  289. Close.Font = Enum.Font.SourceSansLight
  290. Close.Text = "CLOSE"
  291. Close.TextColor3 = Color3.new(255, 255, 255)
  292. Close.TextSize = 20
  293.  
  294. Credit.Name = "Credit"
  295. Credit.Parent = Head
  296. Credit.BackgroundColor3 = Color3.new(255, 255, 255)
  297. Credit.BackgroundTransparency = 1
  298. Credit.BorderSizePixel = 1
  299. Credit.Position = UDim2.new(0.269911498, 0, 0, 0)
  300. Credit.Size = UDim2.new(0, 219, 0, 29)
  301. Credit.Font = Enum.Font.SourceSansLight
  302. Credit.Text = "Made by : Manveet (Mark#7477)"
  303. Credit.TextColor3 = Color3.new(255, 255, 255)
  304. Credit.TextSize = 20
  305.  
  306. Wood.MouseButton1Down:connect(function()
  307.     local A_1 = "Materials"
  308.     local A_2 = "Wood"
  309.     local A_3 = 9999
  310.     local plr = game.Players.LocalPlayer.Character
  311.     local Event = plr.ItemHandler.Server.Drop
  312.     Event:FireServer(A_1, A_2, A_3)
  313. end)
  314.  
  315. Stone.MouseButton1Down:connect(function()
  316.     local A_1 = "Materials"
  317.     local A_2 = "Stone"
  318.     local A_3 = 9999
  319.     local plr = game.Players.LocalPlayer.Character
  320.     local Event = plr.ItemHandler.Server.Drop
  321.     Event:FireServer(A_1, A_2, A_3)
  322. end)
  323.  
  324. Fiber.MouseButton1Down:connect(function()
  325.     local A_1 = "Materials"
  326.     local A_2 = "Fiber"
  327.     local A_3 = 9999
  328.     local plr = game.Players.LocalPlayer.Character
  329.     local Event = plr.ItemHandler.Server.Drop
  330.     Event:FireServer(A_1, A_2, A_3)
  331. end)
  332.  
  333. Foliage.MouseButton1Down:connect(function()
  334.     local A_1 = "Materials"
  335.     local A_2 = "Foliage"
  336.     local A_3 = 9999
  337.     local plr = game.Players.LocalPlayer.Character
  338.     local Event = plr.ItemHandler.Server.Drop
  339.     Event:FireServer(A_1, A_2, A_3)
  340. end)
  341.  
  342. Iron.MouseButton1Down:connect(function()
  343.     local A_1 = "Materials"
  344.     local A_2 = "Iron"
  345.     local A_3 = 9999
  346.     local plr = game.Players.LocalPlayer.Character
  347.     local Event = plr.ItemHandler.Server.Drop
  348.     Event:FireServer(A_1, A_2, A_3)
  349. end)
  350.  
  351. CopperIngot.MouseButton1Down:connect(function()
  352.     local A_1 = "Materials"
  353.     local A_2 = "Copper Ingot"
  354.     local A_3 = 9999
  355.     local plr = game.Players.LocalPlayer.Character
  356.     local Event = plr.ItemHandler.Server.Drop
  357.     Event:FireServer(A_1, A_2, A_3)
  358. end)
  359.  
  360. Ink.MouseButton1Down:connect(function()
  361.     local A_1 = "Materials"
  362.     local A_2 = "Ink"
  363.     local A_3 = 9999
  364.     local plr = game.Players.LocalPlayer.Character
  365.     local Event = plr.ItemHandler.Server.Drop
  366.     Event:FireServer(A_1, A_2, A_3)
  367. end)
  368.  
  369. Cloth.MouseButton1Down:connect(function()
  370.     local A_1 = "Materials"
  371.     local A_2 = "Cloth"
  372.     local A_3 = 9999
  373.     local plr = game.Players.LocalPlayer.Character
  374.     local Event = plr.ItemHandler.Server.Drop
  375.     Event:FireServer(A_1, A_2, A_3)
  376. end)
  377.  
  378. IronIngot.MouseButton1Down:connect(function()
  379.     local A_1 = "Materials"
  380.     local A_2 = "Iron Ingot"
  381.     local A_3 = 9999
  382.     local plr = game.Players.LocalPlayer.Character
  383.     local Event = plr.ItemHandler.Server.Drop
  384.     Event:FireServer(A_1, A_2, A_3)
  385. end)
  386.  
  387. Coal.MouseButton1Down:connect(function()
  388.     local A_1 = "Materials"
  389.     local A_2 = "Coal"
  390.     local A_3 = 9999
  391.     local plr = game.Players.LocalPlayer.Character
  392.     local Event = plr.ItemHandler.Server.Drop
  393.     Event:FireServer(A_1, A_2, A_3)
  394. end)
  395.  
  396. Polymer.MouseButton1Down:connect(function()
  397.     local A_1 = "Materials"
  398.     local A_2 = "Polymer"
  399.     local A_3 = 9999
  400.     local plr = game.Players.LocalPlayer.Character
  401.     local Event = plr.ItemHandler.Server.Drop
  402.     Event:FireServer(A_1, A_2, A_3)
  403. end)
  404.  
  405. Gold.MouseButton1Down:connect(function()
  406.     local A_1 = "Materials"
  407.     local A_2 = "Gold"
  408.     local A_3 = 9999
  409.     local plr = game.Players.LocalPlayer.Character
  410.     local Event = plr.ItemHandler.Server.Drop
  411.     Event:FireServer(A_1, A_2, A_3)
  412. end)
  413.  
  414. Obsidian.MouseButton1Down:connect(function()
  415.     local A_1 = "Materials"
  416.     local A_2 = "Obsidian"
  417.     local A_3 = 9999
  418.     local plr = game.Players.LocalPlayer.Character
  419.     local Event = plr.ItemHandler.Server.Drop
  420.     Event:FireServer(A_1, A_2, A_3)
  421. end)
  422.  
  423. Oil.MouseButton1Down:connect(function()
  424.     local A_1 = "Materials"
  425.     local A_2 = "Oil"
  426.     local A_3 = 9999
  427.     local plr = game.Players.LocalPlayer.Character
  428.     local Event = plr.ItemHandler.Server.Drop
  429.     Event:FireServer(A_1, A_2, A_3)
  430. end)
  431.  
  432. Electronics.MouseButton1Down:connect(function()
  433.     local A_1 = "Materials"
  434.     local A_2 = "Electronics"
  435.     local A_3 = 9999
  436.     local plr = game.Players.LocalPlayer.Character
  437.     local Event = plr.ItemHandler.Server.Drop
  438.     Event:FireServer(A_1, A_2, A_3)
  439. end)
  440.  
  441. Gunpowder.MouseButton1Down:connect(function()
  442.     local A_1 = "Materials"
  443.     local A_2 = "Gunpowder"
  444.     local A_3 = 9999
  445.     local plr = game.Players.LocalPlayer.Character
  446.     local Event = plr.ItemHandler.Server.Drop
  447.     Event:FireServer(A_1, A_2, A_3)
  448. end)
  449.  
  450. Crystal.MouseButton1Down:connect(function()
  451.     local A_1 = "Materials"
  452.     local A_2 = "Crystal"
  453.     local A_3 = 9999
  454.     local plr = game.Players.LocalPlayer.Character
  455.     local Event = plr.ItemHandler.Server.Drop
  456.     Event:FireServer(A_1, A_2, A_3)
  457. end)
  458.  
  459. Close.MouseButton1Down:connect(function()
  460.     wait(.5)
  461.     Head:TweenPosition(UDim2.new(Head.Position) + UDim2.new(Head.Position.X,3,0))
  462.     wait(1)
  463.     Head.Position = UDim2.new(0.5,-225,0.5,-150)
  464.     Head.Visible = false
  465.     Open.Visible = true
  466. end)
  467.  
  468. Open.MouseButton1Down:connect(function()
  469.     Open.Visible = false
  470.     Head.Visible = true
  471. end)
  472.  
  473. spawn(function()
  474.     while wait() do
  475.         Overhead.BackgroundColor3 = Color3.fromHSV(tick() * 55 % 255/255, 1, 1)
  476.     end
  477. end)
  478.  
  479. Head.Draggable = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement