Advertisement
CHARLE5779

Primitive GUI (Updated UI)

May 27th, 2018
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 19.73 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 Head = Instance.new("Frame")
  7. local TP = Instance.new("TextButton")
  8. local TPplayer = Instance.new("TextBox")
  9. local Cmds = Instance.new("Frame")
  10. local FallDamage = Instance.new("TextButton")
  11. local UnlimitedStamina = Instance.new("TextButton")
  12. local CmdsTitle = Instance.new("TextLabel")
  13. local Overhead = Instance.new("Frame")
  14. local Oil = Instance.new("TextButton")
  15. local Gunpowder = Instance.new("TextButton")
  16. local Crystal = Instance.new("TextButton")
  17. local Obsidian = Instance.new("TextButton")
  18. local Electronics = Instance.new("TextButton")
  19. local IronIngot = Instance.new("TextButton")
  20. local Ink = Instance.new("TextButton")
  21. local Polymer = Instance.new("TextButton")
  22. local Coal = Instance.new("TextButton")
  23. local Cloth = Instance.new("TextButton")
  24. local CopperIngot = Instance.new("TextButton")
  25. local MainFrame = Instance.new("Frame")
  26. local Stone = Instance.new("TextButton")
  27. local Wood = Instance.new("TextButton")
  28. local Foliage = Instance.new("TextButton")
  29. local Fiber = Instance.new("TextButton")
  30. local Iron = Instance.new("TextButton")
  31. local Gold = Instance.new("TextButton")
  32. local Credit = Instance.new("TextLabel")
  33. toggle = true
  34. -- Properties
  35.  
  36. haxs.Name = "haxs"
  37. haxs.Parent = game.CoreGui
  38.  
  39. Title.Name = "Title"
  40. Title.Parent = haxs
  41. Title.BackgroundColor3 = Color3.new(0,0,0)
  42. Title.BackgroundTransparency = 0.5
  43. Title.BorderColor3 = Color3.new(0, 0, 0)
  44. Title.BorderSizePixel = 0
  45. Title.Position = UDim2.new(0, 0, 0.8, 0)
  46. Title.Size = UDim2.new(0, 150, 0, 30)
  47.  
  48. TitleText.Name = "TitleText"
  49. TitleText.Parent = Title
  50. TitleText.BackgroundColor3 = Color3.new(255, 255, 255)
  51. TitleText.BackgroundTransparency = 1
  52. TitleText.Position = UDim2.new(0, 0, 0, 0)
  53. TitleText.Size = UDim2.new(0, 150, 0, 30)
  54. TitleText.Font = Enum.Font.Bodoni
  55. TitleText.Text = "Primitive Gui"
  56. TitleText.TextStrokeTransparency = 1
  57. TitleText.TextColor3 = Color3.new(255, 255, 255)
  58. TitleText.TextSize = 25
  59.  
  60. TP.Name = "TP"
  61. TP.Parent = haxs
  62. TP.BackgroundColor3 = Color3.new(0, 0, 0)
  63. TP.BackgroundTransparency = 0.5
  64. TP.BorderSizePixel = 0
  65. TP.Position = UDim2.new(0, 0, 0.8, 35)
  66. TP.Size = UDim2.new(0, 150, 0, 20)
  67. TP.Font = Enum.Font.SourceSansLight
  68. TP.Text = "TELEPORT TO PLAYER"
  69. TP.TextStrokeTransparency = 1
  70. TP.TextColor3 = Color3.new(255, 255, 255)
  71. TP.TextSize = 18
  72.  
  73. TPplayer.Name = "TPplayer"
  74. TPplayer.Parent = haxs
  75. TPplayer.BackgroundColor3 = Color3.new(0, 0, 0)
  76. TPplayer.BackgroundTransparency = 0.5
  77. TPplayer.BorderSizePixel = 0
  78. TPplayer.Position = UDim2.new(0, 6, 0.9, 8)
  79. TPplayer.Size = UDim2.new(0, 138, 0, 20)
  80. TPplayer.Font = Enum.Font.SourceSansLight
  81. TPplayer.Text = "PLAYER"
  82. TPplayer.TextStrokeTransparency = 1
  83. TPplayer.TextColor3 = Color3.new(255, 255, 255)
  84. TPplayer.TextScaled = true
  85.  
  86. Cmds.Name = "Cmds"
  87. Cmds.Parent = Head
  88. Cmds.Active = true
  89. Cmds.BorderSizePixel = 0
  90. Cmds.BackgroundColor3 = Color3.new(0, 0, 0)
  91. Cmds.BackgroundTransparency = 0.5
  92. Cmds.BorderSizePixel = 0
  93. Cmds.Position = UDim2.new(0, 6, 11, -5)
  94. Cmds.Selectable = true
  95. Cmds.Size = UDim2.new(0, 440, 0, 90)
  96.  
  97. CmdsTitle.Name = "CmdsTitle"
  98. CmdsTitle.Parent = Cmds
  99. CmdsTitle.BorderSizePixel = 0
  100. CmdsTitle.BackgroundColor3 = Color3.new(0, 0, 0)
  101. CmdsTitle.BackgroundTransparency = 0
  102. CmdsTitle.Position = UDim2.new(0, 0, 0, 0)
  103. CmdsTitle.Size = UDim2.new(0, 440, 0, 30)
  104. CmdsTitle.Font = Enum.Font.SourceSansLight
  105. CmdsTitle.Text = "Quick commands"
  106. CmdsTitle.TextStrokeTransparency = 1
  107. CmdsTitle.TextColor3 = Color3.new(255, 255, 255)
  108. CmdsTitle.TextSize = 25
  109.  
  110. FallDamage.Name = "FallDamage"
  111. FallDamage.Parent = Cmds
  112. FallDamage.BorderSizePixel = 0
  113. FallDamage.BackgroundTransparency = 0.5
  114. FallDamage.BackgroundColor3 = Color3.new(0, 0, 0)
  115. FallDamage.Position = UDim2.new(0, 13, 0.35, 3)
  116. FallDamage.Size = UDim2.new(0, 414, 0, 23)
  117. FallDamage.Font = Enum.Font.SourceSansLight
  118. FallDamage.Text = "Remove Fall Damage"
  119. FallDamage.TextColor3 = Color3.new(255, 255, 255)
  120. FallDamage.TextSize = 20
  121.  
  122. UnlimitedStamina.Name = "UnlimitedStamina"
  123. UnlimitedStamina.Parent = Cmds
  124. UnlimitedStamina.BorderSizePixel = 0
  125. UnlimitedStamina.BackgroundTransparency = 0.5
  126. UnlimitedStamina.BackgroundColor3 = Color3.new(0, 0, 0)
  127. UnlimitedStamina.Position = UDim2.new(0, 13, 0.35, 30)
  128. UnlimitedStamina.Size = UDim2.new(0, 414, 0, 23)
  129. UnlimitedStamina.Font = Enum.Font.SourceSansLight
  130. UnlimitedStamina.Text = "Unlimited Stamina"
  131. UnlimitedStamina.TextColor3 = Color3.new(255, 255, 255)
  132. UnlimitedStamina.TextSize = 20
  133.  
  134. Head.Name = "Head"
  135. Head.Parent = haxs
  136. Head.Active = true
  137. Head.BackgroundColor3 = Color3.new(0, 0, 0)
  138. Head.BackgroundTransparency = 0.5
  139. Head.BorderSizePixel = 0
  140. Head.Position = UDim2.new(0.5, -225, 0.5, -150)
  141. Head.Selectable = true
  142. Head.Size = UDim2.new(0, 452, 0, 29)
  143.  
  144. Overhead.Name = "Overhead"
  145. Overhead.Parent = Head
  146. Overhead.BorderSizePixel = 0
  147. Overhead.BackgroundColor3 = Color3.new(1, 1, 1)
  148. Overhead.Position = UDim2.new(0.00043797493, 0, 1.00482917, 0)
  149. Overhead.Size = UDim2.new(0, 452, 0, 3)
  150.  
  151. Oil.Name = "Oil"
  152. Oil.Parent = MainFrame
  153. Oil.BackgroundTransparency = 0.5
  154. Oil.BorderSizePixel = 0
  155. Oil.BackgroundColor3 = Color3.new(0, 0, 0)
  156. Oil.Position = UDim2.new(0.516, 0, 0.75, 0)
  157. Oil.Size = UDim2.new(0, 200, 0, 20)
  158. Oil.Font = Enum.Font.SourceSansLight
  159. Oil.Text = "Unlimited Oil"
  160. Oil.TextColor3 = Color3.new(255, 255, 255)
  161. Oil.TextSize = 20
  162.  
  163. Gunpowder.Name = "Gunpowder"
  164. Gunpowder.Parent = MainFrame
  165. Gunpowder.BackgroundTransparency = 0.5
  166. Gunpowder.BorderSizePixel = 0
  167. Gunpowder.BackgroundColor3 = Color3.new(0, 0, 0)
  168. Gunpowder.Position = UDim2.new(0.516, 0, 0.55, 0)
  169. Gunpowder.Size = UDim2.new(0, 200, 0, 20)
  170. Gunpowder.Font = Enum.Font.SourceSansLight
  171. Gunpowder.Text = "Unlimited Gunpowder"
  172. Gunpowder.TextColor3 = Color3.new(255, 255, 255)
  173. Gunpowder.TextSize = 20
  174.  
  175. Crystal.Name = "Crystal"
  176. Crystal.BorderSizePixel = 0
  177. Crystal.Parent = MainFrame
  178. Crystal.BackgroundTransparency = 0.5
  179. Crystal.BackgroundColor3 = Color3.new(0, 0, 0)
  180. Crystal.Position = UDim2.new(0.03, 0, 0.45, 0)
  181. Crystal.Size = UDim2.new(0, 200, 0, 20)
  182. Crystal.Font = Enum.Font.SourceSansLight
  183. Crystal.Text = "Unlimited Crystal"
  184. Crystal.TextColor3 = Color3.new(255, 255, 255)
  185. Crystal.TextSize = 20
  186.  
  187. Obsidian.Name = "Obsidian"
  188. Obsidian.Parent = MainFrame
  189. Obsidian.BackgroundTransparency = 0.5
  190. Obsidian.BorderSizePixel = 0
  191. Obsidian.BackgroundColor3 = Color3.new(0, 0, 0)
  192. Obsidian.Position = UDim2.new(0.03, 0, 0.35, 0)
  193. Obsidian.Size = UDim2.new(0, 200, 0, 20)
  194. Obsidian.Font = Enum.Font.SourceSansLight
  195. Obsidian.Text = "Unlimited Obsidian"
  196. Obsidian.TextColor3 = Color3.new(255, 255, 255)
  197. Obsidian.TextSize = 20
  198.  
  199. Electronics.Name = "Electronics"
  200. Electronics.Parent = MainFrame
  201. Electronics.BorderSizePixel = 0
  202. Electronics.BackgroundTransparency = 0.5
  203. Electronics.BackgroundColor3 = Color3.new(0, 0, 0)
  204. Electronics.Position = UDim2.new(0.03, 0, 0.55, 0)
  205. Electronics.Size = UDim2.new(0, 200, 0, 20)
  206. Electronics.Font = Enum.Font.SourceSansLight
  207. Electronics.Text = "Unlimited Electronics"
  208. Electronics.TextColor3 = Color3.new(255, 255, 255)
  209. Electronics.TextSize = 20
  210.  
  211. IronIngot.Name = "IronIngot"
  212. IronIngot.Parent = MainFrame
  213. IronIngot.BorderSizePixel = 0
  214. IronIngot.BackgroundTransparency = 0.5
  215. IronIngot.BackgroundColor3 = Color3.new(0, 0, 0)
  216. IronIngot.Position = UDim2.new(0.03, 0, 0.75, 0)
  217. IronIngot.Size = UDim2.new(0, 200, 0, 20)
  218. IronIngot.Font = Enum.Font.SourceSansLight
  219. IronIngot.Text = "Unlimited Iron Ingot"
  220. IronIngot.TextColor3 = Color3.new(255, 255, 255)
  221. IronIngot.TextSize = 20
  222.  
  223. Ink.Name = "Ink"
  224. Ink.Parent = MainFrame
  225. Ink.BackgroundTransparency = 0.5
  226. Ink.BorderSizePixel = 0
  227. Ink.BackgroundColor3 = Color3.new(0, 0, 0)
  228. Ink.Position = UDim2.new(0.03, 0, 0.65, 0)
  229. Ink.Size = UDim2.new(0, 200, 0, 20)
  230. Ink.Font = Enum.Font.SourceSansLight
  231. Ink.Text = "Unlimited Ink"
  232. Ink.TextColor3 = Color3.new(255, 255, 255)
  233. Ink.TextSize = 20
  234.  
  235. Polymer.Name = "Polymer"
  236. Polymer.Parent = MainFrame
  237. Polymer.BackgroundTransparency = 0.5
  238. Polymer.BorderSizePixel = 0
  239. Polymer.BackgroundColor3 = Color3.new(0, 0, 0)
  240. Polymer.Position = UDim2.new(0.516, 0, 0.65, 0)
  241. Polymer.Size = UDim2.new(0, 200, 0, 20)
  242. Polymer.Font = Enum.Font.SourceSansLight
  243. Polymer.Text = "Unlimited Polymers"
  244. Polymer.TextColor3 = Color3.new(255, 255, 255)
  245. Polymer.TextSize = 20
  246.  
  247. Coal.Name = "Coal"
  248. Coal.Parent = MainFrame
  249. Coal.BackgroundTransparency = 0.5
  250. Coal.BorderSizePixel = 0
  251. Coal.BackgroundColor3 = Color3.new(0, 0, 0)
  252. Coal.Position = UDim2.new(0.516, 0, 0.45, 0)
  253. Coal.Size = UDim2.new(0, 200, 0, 20)
  254. Coal.Font = Enum.Font.SourceSansLight
  255. Coal.Text = "Unlimited Coal"
  256. Coal.TextColor3 = Color3.new(255, 255, 255)
  257. Coal.TextSize = 20
  258.  
  259. Cloth.Name = "Cloth"
  260. Cloth.Parent = MainFrame
  261. Cloth.BackgroundTransparency = 0.5
  262. Cloth.BorderSizePixel = 0
  263. Cloth.BackgroundColor3 = Color3.new(0, 0, 0)
  264. Cloth.Position = UDim2.new(0.516, 0, 0.35, 0)
  265. Cloth.Size = UDim2.new(0, 200, 0, 20)
  266. Cloth.Font = Enum.Font.SourceSansLight
  267. Cloth.Text = "Unlimited Cloths"
  268. Cloth.TextColor3 = Color3.new(255, 255, 255)
  269. Cloth.TextSize = 20
  270.  
  271. Gold.Name = "Gold"
  272. Gold.Parent = MainFrame
  273. Gold.BackgroundTransparency = 0.5
  274. Gold.BorderSizePixel = 0
  275. Gold.BackgroundColor3 = Color3.new(0, 0, 0)
  276. Gold.Position = UDim2.new(0.03, 0, 0.85, 0)
  277. Gold.Size = UDim2.new(0, 414, 0, 20)
  278. Gold.Font = Enum.Font.SourceSansLight
  279. Gold.Text = "Unlimited Gold"
  280. Gold.TextColor3 = Color3.new(255, 255, 255)
  281. Gold.TextSize = 20
  282.  
  283. MainFrame.Name = "MainFrame"
  284. MainFrame.Parent = Overhead
  285. MainFrame.BackgroundTransparency = 0.4
  286. MainFrame.BackgroundColor3 = Color3.new(0, 0, 0)
  287. MainFrame.BorderColor3 = Color3.new(0, 0, 0)
  288. MainFrame.BorderSizePixel = 0
  289. MainFrame.Position = UDim2.new(0.0130805373, 0, 3.05461407, 0)
  290. MainFrame.Size = UDim2.new(0, 440, 0, 270)
  291.  
  292. Stone.Name = "Stone"
  293. Stone.Parent = MainFrame
  294. Stone.BackgroundTransparency = 0.5
  295. Stone.BorderSizePixel = 0
  296. Stone.BackgroundColor3 = Color3.new(0, 0, 0)
  297. Stone.Position = UDim2.new(0.03, 0, 0.05, 0)
  298. Stone.Size = UDim2.new(0, 200, 0, 20)
  299. Stone.Font = Enum.Font.SourceSansLight
  300. Stone.Text = "Unlimited Stone"
  301. Stone.TextColor3 = Color3.new(255, 255, 255)
  302. Stone.TextSize = 20
  303.  
  304. Wood.Name = "Wood"
  305. Wood.Parent = MainFrame
  306. Wood.BackgroundTransparency = 0.5
  307. Wood.BorderSizePixel = 0
  308. Wood.BackgroundColor3 = Color3.new(0, 0, 0)
  309. Wood.Position = UDim2.new(0.03, 0, 0.15, 0)
  310. Wood.Size = UDim2.new(0, 200, 0, 20)
  311. Wood.Font = Enum.Font.SourceSansLight
  312. Wood.Text = "Unlimited Wood"
  313. Wood.TextColor3 = Color3.new(255, 255, 255)
  314. Wood.TextSize = 20
  315.  
  316. Foliage.Name = "Foliage"
  317. Foliage.Parent = MainFrame
  318. Foliage.BackgroundTransparency = 0.5
  319. Foliage.BorderSizePixel = 0
  320. Foliage.BackgroundColor3 = Color3.new(0, 0, 0)
  321. Foliage.Position = UDim2.new(0.516, 0, 0.15, 0)
  322. Foliage.Size = UDim2.new(0, 200, 0, 20)
  323. Foliage.Font = Enum.Font.SourceSansLight
  324. Foliage.Text = "Unlimited Foliage"
  325. Foliage.TextColor3 = Color3.new(255, 255, 255)
  326. Foliage.TextSize = 20
  327.  
  328. Fiber.Name = "Fiber"
  329. Fiber.Parent = MainFrame
  330. Fiber.BackgroundTransparency = 0.5
  331. Fiber.BorderSizePixel = 0
  332. Fiber.BackgroundColor3 = Color3.new(0, 0, 0)
  333. Fiber.Position = UDim2.new(0.516, 0, 0.05, 0)
  334. Fiber.Size = UDim2.new(0, 200, 0, 20)
  335. Fiber.Font = Enum.Font.SourceSansLight
  336. Fiber.Text = "Unlimited Fiber"
  337. Fiber.TextColor3 = Color3.new(255, 255, 255)
  338. Fiber.TextSize = 20
  339.  
  340. Iron.Name = "Iron"
  341. Iron.Parent = MainFrame
  342. Iron.BackgroundTransparency = 0.5
  343. Iron.BorderSizePixel = 0
  344. Iron.BackgroundColor3 = Color3.new(0, 0, 0)
  345. Iron.Position = UDim2.new(0.03, 0, 0.25, 0)
  346. Iron.Size = UDim2.new(0, 200, 0, 20)
  347. Iron.Font = Enum.Font.SourceSansLight
  348. Iron.Text = "Unlimited Iron"
  349. Iron.TextColor3 = Color3.new(255, 255, 255)
  350. Iron.TextSize = 20
  351.  
  352. CopperIngot.Name = "CopperIngot"
  353. CopperIngot.Parent = MainFrame
  354. CopperIngot.BackgroundTransparency = 0.5
  355. CopperIngot.BorderSizePixel = 0
  356. CopperIngot.BackgroundColor3 = Color3.new(0, 0, 0)
  357. CopperIngot.Position = UDim2.new(0.516, 0, 0.25, 0)
  358. CopperIngot.Size = UDim2.new(0, 200, 0, 20)
  359. CopperIngot.Font = Enum.Font.SourceSansLight
  360. CopperIngot.Text = "Unlimited Copper Ingot"
  361. CopperIngot.TextColor3 = Color3.new(255, 255, 255)
  362. CopperIngot.TextSize = 20
  363.  
  364. Credit.Name = "Credit"
  365. Credit.Parent = Head
  366. Credit.BackgroundColor3 = Color3.new(255, 255, 255)
  367. Credit.BackgroundTransparency = 1
  368. Credit.BorderSizePixel = 0
  369. Credit.Position = UDim2.new(0.269911498, 0, 0, 0)
  370. Credit.Size = UDim2.new(0, 219, 0, 29)
  371. Credit.Font = Enum.Font.SourceSansLight
  372. Credit.Text = "Made by : Manveet (Mark#7477), Z to toggle on/off"
  373. Credit.TextColor3 = Color3.new(255, 255, 255)
  374. Credit.TextSize = 20
  375.  
  376. Wood.MouseButton1Down:connect(function()
  377.     local A_1 = "Materials"
  378.     local A_2 = "Wood"
  379.     local A_3 = 9999
  380.     local plr = game.Players.LocalPlayer.Character
  381.     local Event = plr.ItemHandler.Server.Drop
  382.     Event:FireServer(A_1, A_2, A_3)
  383. end)
  384.  
  385. Stone.MouseButton1Down:connect(function()
  386.     local A_1 = "Materials"
  387.     local A_2 = "Stone"
  388.     local A_3 = 9999
  389.     local plr = game.Players.LocalPlayer.Character
  390.     local Event = plr.ItemHandler.Server.Drop
  391.     Event:FireServer(A_1, A_2, A_3)
  392. end)
  393.  
  394. Fiber.MouseButton1Down:connect(function()
  395.     local A_1 = "Materials"
  396.     local A_2 = "Fiber"
  397.     local A_3 = 9999
  398.     local plr = game.Players.LocalPlayer.Character
  399.     local Event = plr.ItemHandler.Server.Drop
  400.     Event:FireServer(A_1, A_2, A_3)
  401. end)
  402.  
  403. Foliage.MouseButton1Down:connect(function()
  404.     local A_1 = "Materials"
  405.     local A_2 = "Foliage"
  406.     local A_3 = 9999
  407.     local plr = game.Players.LocalPlayer.Character
  408.     local Event = plr.ItemHandler.Server.Drop
  409.     Event:FireServer(A_1, A_2, A_3)
  410. end)
  411.  
  412. Iron.MouseButton1Down:connect(function()
  413.     local A_1 = "Materials"
  414.     local A_2 = "Iron"
  415.     local A_3 = 9999
  416.     local plr = game.Players.LocalPlayer.Character
  417.     local Event = plr.ItemHandler.Server.Drop
  418.     Event:FireServer(A_1, A_2, A_3)
  419. end)
  420.  
  421. CopperIngot.MouseButton1Down:connect(function()
  422.     local A_1 = "Materials"
  423.     local A_2 = "Copper Ingot"
  424.     local A_3 = 9999
  425.     local plr = game.Players.LocalPlayer.Character
  426.     local Event = plr.ItemHandler.Server.Drop
  427.     Event:FireServer(A_1, A_2, A_3)
  428. end)
  429.  
  430. Ink.MouseButton1Down:connect(function()
  431.     local A_1 = "Materials"
  432.     local A_2 = "Ink"
  433.     local A_3 = 9999
  434.     local plr = game.Players.LocalPlayer.Character
  435.     local Event = plr.ItemHandler.Server.Drop
  436.     Event:FireServer(A_1, A_2, A_3)
  437. end)
  438.  
  439. Cloth.MouseButton1Down:connect(function()
  440.     local A_1 = "Materials"
  441.     local A_2 = "Cloth"
  442.     local A_3 = 9999
  443.     local plr = game.Players.LocalPlayer.Character
  444.     local Event = plr.ItemHandler.Server.Drop
  445.     Event:FireServer(A_1, A_2, A_3)
  446. end)
  447.  
  448. IronIngot.MouseButton1Down:connect(function()
  449.     local A_1 = "Materials"
  450.     local A_2 = "Iron Ingot"
  451.     local A_3 = 9999
  452.     local plr = game.Players.LocalPlayer.Character
  453.     local Event = plr.ItemHandler.Server.Drop
  454.     Event:FireServer(A_1, A_2, A_3)
  455. end)
  456.  
  457. Coal.MouseButton1Down:connect(function()
  458.     local A_1 = "Materials"
  459.     local A_2 = "Coal"
  460.     local A_3 = 9999
  461.     local plr = game.Players.LocalPlayer.Character
  462.     local Event = plr.ItemHandler.Server.Drop
  463.     Event:FireServer(A_1, A_2, A_3)
  464. end)
  465.  
  466. Polymer.MouseButton1Down:connect(function()
  467.     local A_1 = "Materials"
  468.     local A_2 = "Polymer"
  469.     local A_3 = 9999
  470.     local plr = game.Players.LocalPlayer.Character
  471.     local Event = plr.ItemHandler.Server.Drop
  472.     Event:FireServer(A_1, A_2, A_3)
  473. end)
  474.  
  475. TP.MouseButton1Down:connect(function()
  476.     local char = game.Players:FindFirstChild(TPplayer.Text).Character
  477.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new( char.HumanoidRootPart.Position.X, char.HumanoidRootPart.Position.Y, char.HumanoidRootPart.Position.Z)
  478. end)
  479.  
  480. Gold.MouseButton1Down:connect(function()
  481.     local A_1 = "Materials"
  482.     local A_2 = "Gold"
  483.     local A_3 = 9999
  484.     local plr = game.Players.LocalPlayer.Character
  485.     local Event = plr.ItemHandler.Server.Drop
  486.     Event:FireServer(A_1, A_2, A_3)
  487. end)
  488.  
  489. Obsidian.MouseButton1Down:connect(function()
  490.     local A_1 = "Materials"
  491.     local A_2 = "Obsidian"
  492.     local A_3 = 9999
  493.     local plr = game.Players.LocalPlayer.Character
  494.     local Event = plr.ItemHandler.Server.Drop
  495.     Event:FireServer(A_1, A_2, A_3)
  496. end)
  497.  
  498. Oil.MouseButton1Down:connect(function()
  499.     local A_1 = "Materials"
  500.     local A_2 = "Oil"
  501.     local A_3 = 9999
  502.     local plr = game.Players.LocalPlayer.Character
  503.     local Event = plr.ItemHandler.Server.Drop
  504.     Event:FireServer(A_1, A_2, A_3)
  505. end)
  506.  
  507. FallDamage.MouseButton1Down:connect(function()
  508.     game.Players.LocalPlayer.Character.FallDamage:Destroy()
  509. end)
  510.  
  511. UnlimitedStamina.MouseButton1Down:connect(function()
  512.     game.Players.LocalPlayer.Character.SprintScript:Destroy()
  513.     wait(1)
  514. local userInputService = game:GetService("UserInputService")
  515. local player = game.Players.LocalPlayer
  516. local modStat = game.Workspace.Events.ModifyStat
  517. local character = player.Character
  518. local humanoid = character.Humanoid
  519. local stats = character.Stats
  520. local camera = game.Workspace.CurrentCamera
  521. local sprintSound = game.Workspace.Events.AddSound:InvokeServer("SprintSound", "rbxassetid://225453554", 0.1, 1, true, character.HumanoidRootPart)
  522. local sprinting = stats.Sprinting
  523. function sprint()
  524.     while wait(0.5) do
  525.         if sprinting.Value then
  526.             modStat:FireServer(player, "Stamina", 0)
  527.             if stats.Stamina.Value < 0 or humanoid.MoveDirection == Vector3.new(0, 0, 0) then
  528.                 onInputEnded({
  529.                     UserInputType = Enum.UserInputType.Keyboard,
  530.                     KeyCode = Enum.KeyCode.LeftShift
  531.                 })
  532.             end
  533.         end
  534.     end
  535. end
  536. function onJump(active)
  537.     if active and stats.Stamina.Value > 9 then
  538.         modStat:FireServer(player, "Stamina", 0)
  539.     elseif active then
  540.         humanoid.JumpPower = 0
  541.         spawn(function()
  542.             while wait(1) do
  543.                 if stats.Stamina.Value > 9 then
  544.                     humanoid.JumpPower = 50
  545.                     break
  546.                 end
  547.             end
  548.         end)
  549.     end
  550. end
  551. function onInput(input, onGui)
  552.     if input.UserInputType == Enum.UserInputType.Keyboard and not onGui and input.KeyCode == Enum.KeyCode.LeftShift and not sprinting.Value and stats.Stamina.Value > 9 and humanoid.MoveDirection ~= Vector3.new(0, 0, 0) then
  553.         sprinting.Value = true
  554.         for i = 1, 10 do
  555.             wait()
  556.             camera.FieldOfView = camera.FieldOfView + 1
  557.         end
  558.         sprintSound:Play()
  559.     end
  560. end
  561. function onInputEnded(input)
  562.     if input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode == Enum.KeyCode.LeftShift and sprinting.Value then
  563.         sprinting.Value = false
  564.         for i = 1, 10 do
  565.             wait()
  566.             camera.FieldOfView = camera.FieldOfView - 1
  567.         end
  568.         sprintSound:Stop()
  569.     end
  570. end
  571. spawn(sprint)
  572. userInputService.InputBegan:Connect(onInput)
  573. userInputService.InputEnded:Connect(onInputEnded)
  574. humanoid.Jumping:Connect(onJump)
  575. end)
  576.  
  577. Electronics.MouseButton1Down:connect(function()
  578.     local A_1 = "Materials"
  579.     local A_2 = "Electronics"
  580.     local A_3 = 9999
  581.     local plr = game.Players.LocalPlayer.Character
  582.     local Event = plr.ItemHandler.Server.Drop
  583.     Event:FireServer(A_1, A_2, A_3)
  584. end)
  585.  
  586. Gunpowder.MouseButton1Down:connect(function()
  587.     local A_1 = "Materials"
  588.     local A_2 = "Gunpowder"
  589.     local A_3 = 9999
  590.     local plr = game.Players.LocalPlayer.Character
  591.     local Event = plr.ItemHandler.Server.Drop
  592.     Event:FireServer(A_1, A_2, A_3)
  593. end)
  594.  
  595. Crystal.MouseButton1Down:connect(function()
  596.     local A_1 = "Materials"
  597.     local A_2 = "Crystal"
  598.     local A_3 = 9999
  599.     local plr = game.Players.LocalPlayer.Character
  600.     local Event = plr.ItemHandler.Server.Drop
  601.     Event:FireServer(A_1, A_2, A_3)
  602. end)
  603.  
  604. function onKeyPress(actionName, userInputState, inputObject)
  605.     if userInputState == Enum.UserInputState.Begin then
  606.         print("Z was pressed")
  607.         if toggle == false then
  608.              toggle = true
  609.             wait(.5)
  610.             Head.Visible = true
  611.             Head:TweenPosition(UDim2.new(0.5,-225,0.5,-150))
  612.         else
  613.             toggle = false
  614.             wait(.5)
  615.             Head:TweenPosition(UDim2.new(Head.Position) + UDim2.new(Head.Position.X,3,0))
  616.             wait(1)
  617.             Head.Position = UDim2.new(-1,0,0.5,-150)
  618.             Head.Visible = false
  619.         end
  620.     end
  621. end
  622. game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.Z)
  623.  
  624. spawn(function()
  625.     while wait() do
  626.         Overhead.BackgroundColor3 = Color3.fromHSV(tick() * 55 % 255/255, 1, 1)
  627.     end
  628. end)
  629.  
  630. Head.Draggable = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement