zombieslayerwtf

MOTG gui [Leaked]

May 4th, 2018
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.35 KB | None | 0 0
  1. -- Objects
  2.  
  3. local MoTG = Instance.new("ScreenGui")
  4. local Run = Instance.new("TextButton")
  5. local Page1 = Instance.new("Frame")
  6. local setamount = Instance.new("TextBox")
  7. local spawnitem = Instance.new("TextButton")
  8. local spawnanimal = Instance.new("TextButton")
  9. local setspeed = Instance.new("TextButton")
  10. local killanimals = Instance.new("TextButton")
  11. local destroyitem = Instance.new("TextButton")
  12. local printitems = Instance.new("TextButton")
  13. local printanimals = Instance.new("TextButton")
  14. local choptree = Instance.new("TextButton")
  15. local Pg2 = Instance.new("TextButton")
  16. local setitem = Instance.new("TextBox")
  17. local Page2 = Instance.new("Frame")
  18. local setplay = Instance.new("TextBox")
  19. local globval = Instance.new("TextBox")
  20. local Pg1 = Instance.new("TextButton")
  21. local tooltext = Instance.new("TextBox")
  22. local gamepas = Instance.new("TextButton")
  23.  
  24. -- Properties
  25.  
  26. MoTG.Name = "MoTG"
  27. MoTG.Parent = game.CoreGui
  28.  
  29. Run.Name = "Run"
  30. Run.Parent = MoTG
  31. Run.BackgroundColor3 = Color3.new(0.290196, 0.741176, 0.67451)
  32. Run.BorderColor3 = Color3.new(0, 0, 0)
  33. Run.BorderSizePixel = 0
  34. Run.Position = UDim2.new(0, 0, 0, 400)
  35. Run.Size = UDim2.new(0, 20, 0, 20)
  36. Run.ZIndex = 10
  37. Run.Font = Enum.Font.SourceSansLight
  38. Run.FontSize = Enum.FontSize.Size18
  39. Run.Text = ">"
  40. Run.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196)
  41.  
  42. Page1.Name = "Page1"
  43. Page1.Parent = MoTG
  44. Page1.Active = true
  45. Page1.BackgroundColor3 = Color3.new(0.290196, 0.741176, 0.67451)
  46. Page1.BorderSizePixel = 0
  47. Page1.Draggable = true
  48. Page1.Position = UDim2.new(0, -200, 0, 100)
  49. Page1.Size = UDim2.new(0, 200, 0, 300)
  50. Page1.ZIndex = 7
  51.  
  52. setamount.Name = "setamount"
  53. setamount.Parent = Page1
  54. setamount.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078)
  55. setamount.BackgroundTransparency = 0.30000001192093
  56. setamount.BorderColor3 = Color3.new(0.968628, 0.717647, 0.2)
  57. setamount.Position = UDim2.new(0, 15, 0, 45)
  58. setamount.Size = UDim2.new(0, 175, 0, 20)
  59. setamount.ZIndex = 10
  60. setamount.Font = Enum.Font.SourceSansLight
  61. setamount.FontSize = Enum.FontSize.Size14
  62. setamount.Text = "Amount"
  63. setamount.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196)
  64.  
  65. spawnitem.Name = "spawnitem"
  66. spawnitem.Parent = Page1
  67. spawnitem.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078)
  68. spawnitem.BackgroundTransparency = 0.30000001192093
  69. spawnitem.BorderSizePixel = 0
  70. spawnitem.Position = UDim2.new(0, 40, 0, 75)
  71. spawnitem.Size = UDim2.new(0, 125, 0, 20)
  72. spawnitem.ZIndex = 10
  73. spawnitem.Font = Enum.Font.SourceSansLight
  74. spawnitem.FontSize = Enum.FontSize.Size14
  75. spawnitem.Text = "Spawn Item"
  76. spawnitem.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196)
  77.  
  78. spawnanimal.Name = "spawnanimal"
  79. spawnanimal.Parent = Page1
  80. spawnanimal.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078)
  81. spawnanimal.BackgroundTransparency = 0.30000001192093
  82. spawnanimal.BorderSizePixel = 0
  83. spawnanimal.Position = UDim2.new(0, 40, 0, 100)
  84. spawnanimal.Size = UDim2.new(0, 125, 0, 20)
  85. spawnanimal.ZIndex = 10
  86. spawnanimal.Font = Enum.Font.SourceSansLight
  87. spawnanimal.FontSize = Enum.FontSize.Size14
  88. spawnanimal.Text = "Spawn Animal"
  89. spawnanimal.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196)
  90.  
  91. setspeed.Name = "setspeed"
  92. setspeed.Parent = Page1
  93. setspeed.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078)
  94. setspeed.BackgroundTransparency = 0.30000001192093
  95. setspeed.BorderSizePixel = 0
  96. setspeed.Position = UDim2.new(0, 40, 0, 125)
  97. setspeed.Size = UDim2.new(0, 125, 0, 20)
  98. setspeed.ZIndex = 10
  99. setspeed.Font = Enum.Font.SourceSansLight
  100. setspeed.FontSize = Enum.FontSize.Size14
  101. setspeed.Text = "Set Walkspeed"
  102. setspeed.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196)
  103.  
  104. killanimals.Name = "killanimals"
  105. killanimals.Parent = Page1
  106. killanimals.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078)
  107. killanimals.BackgroundTransparency = 0.30000001192093
  108. killanimals.BorderSizePixel = 0
  109. killanimals.Position = UDim2.new(0, 40, 0, 150)
  110. killanimals.Size = UDim2.new(0, 125, 0, 20)
  111. killanimals.ZIndex = 10
  112. killanimals.Font = Enum.Font.SourceSansLight
  113. killanimals.FontSize = Enum.FontSize.Size14
  114. killanimals.Text = "Kill All Named Animals"
  115. killanimals.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196)
  116.  
  117. destroyitem.Name = "destroyitem"
  118. destroyitem.Parent = Page1
  119. destroyitem.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078)
  120. destroyitem.BackgroundTransparency = 0.30000001192093
  121. destroyitem.BorderSizePixel = 0
  122. destroyitem.Position = UDim2.new(0, 40, 0, 175)
  123. destroyitem.Size = UDim2.new(0, 125, 0, 20)
  124. destroyitem.ZIndex = 10
  125. destroyitem.Font = Enum.Font.SourceSansLight
  126. destroyitem.FontSize = Enum.FontSize.Size14
  127. destroyitem.Text = "Destroy Named Items"
  128. destroyitem.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196)
  129.  
  130. printitems.Name = "printitems"
  131. printitems.Parent = Page1
  132. printitems.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078)
  133. printitems.BackgroundTransparency = 0.30000001192093
  134. printitems.BorderSizePixel = 0
  135. printitems.Position = UDim2.new(0, 40, 0, 200)
  136. printitems.Size = UDim2.new(0, 125, 0, 20)
  137. printitems.ZIndex = 10
  138. printitems.Font = Enum.Font.SourceSansLight
  139. printitems.FontSize = Enum.FontSize.Size14
  140. printitems.Text = "Print Item Names (F9)"
  141. printitems.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196)
  142.  
  143. printanimals.Name = "printanimals"
  144. printanimals.Parent = Page1
  145. printanimals.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078)
  146. printanimals.BackgroundTransparency = 0.30000001192093
  147. printanimals.BorderSizePixel = 0
  148. printanimals.Position = UDim2.new(0, 40, 0, 225)
  149. printanimals.Size = UDim2.new(0, 125, 0, 20)
  150. printanimals.ZIndex = 10
  151. printanimals.Font = Enum.Font.SourceSansLight
  152. printanimals.FontSize = Enum.FontSize.Size14
  153. printanimals.Text = "Print Animal Names (F9)"
  154. printanimals.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196)
  155.  
  156. choptree.Name = "choptree"
  157. choptree.Parent = Page1
  158. choptree.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078)
  159. choptree.BackgroundTransparency = 0.30000001192093
  160. choptree.BorderSizePixel = 0
  161. choptree.Position = UDim2.new(0, 40, 0, 250)
  162. choptree.Size = UDim2.new(0, 125, 0, 20)
  163. choptree.ZIndex = 10
  164. choptree.Font = Enum.Font.SourceSansLight
  165. choptree.FontSize = Enum.FontSize.Size14
  166. choptree.Text = "Chop Named Trees"
  167. choptree.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196)
  168.  
  169. Pg2.Name = "Pg2"
  170. Pg2.Parent = Page1
  171. Pg2.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078)
  172. Pg2.BackgroundTransparency = 0.30000001192093
  173. Pg2.BorderColor3 = Color3.new(0, 0, 0)
  174. Pg2.BorderSizePixel = 0
  175. Pg2.Position = UDim2.new(0, 175, 0, 275)
  176. Pg2.Size = UDim2.new(0, 20, 0, 20)
  177. Pg2.ZIndex = 10
  178. Pg2.Font = Enum.Font.SourceSansLight
  179. Pg2.FontSize = Enum.FontSize.Size18
  180. Pg2.Text = ">"
  181. Pg2.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196)
  182.  
  183. setitem.Name = "setitem"
  184. setitem.Parent = Page1
  185. setitem.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078)
  186. setitem.BackgroundTransparency = 0.30000001192093
  187. setitem.BorderColor3 = Color3.new(0.968628, 0.717647, 0.2)
  188. setitem.Position = UDim2.new(0, 5, 0, 10)
  189. setitem.Size = UDim2.new(0, 190, 0, 30)
  190. setitem.ZIndex = 10
  191. setitem.Font = Enum.Font.SourceSansLight
  192. setitem.FontSize = Enum.FontSize.Size18
  193. setitem.Text = "Item"
  194. setitem.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196)
  195.  
  196. Page2.Name = "Page2"
  197. Page2.Parent = MoTG
  198. Page2.Active = true
  199. Page2.BackgroundColor3 = Color3.new(0.290196, 0.741176, 0.67451)
  200. Page2.BorderSizePixel = 0
  201. Page2.Draggable = true
  202. Page2.Position = UDim2.new(0, -200, 0, 100)
  203. Page2.Size = UDim2.new(0, 200, 0, 300)
  204. Page2.ZIndex = 7
  205.  
  206. setplay.Name = "setplay"
  207. setplay.Parent = Page2
  208. setplay.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078)
  209. setplay.BackgroundTransparency = 0.30000001192093
  210. setplay.BorderColor3 = Color3.new(0.968628, 0.717647, 0.2)
  211. setplay.Position = UDim2.new(0, 5, 0, 10)
  212. setplay.Size = UDim2.new(0, 190, 0, 30)
  213. setplay.ZIndex = 10
  214. setplay.Font = Enum.Font.SourceSansLight
  215. setplay.FontSize = Enum.FontSize.Size18
  216. setplay.Text = "Player"
  217. setplay.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196)
  218.  
  219. globval.Name = "globval"
  220. globval.Parent = Page2
  221. globval.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078)
  222. globval.BackgroundTransparency = 0.30000001192093
  223. globval.BorderColor3 = Color3.new(0.968628, 0.717647, 0.2)
  224. globval.Position = UDim2.new(0, 15, 0, 45)
  225. globval.Size = UDim2.new(0, 175, 0, 20)
  226. globval.ZIndex = 10
  227. globval.Font = Enum.Font.SourceSansLight
  228. globval.FontSize = Enum.FontSize.Size14
  229. globval.Text = "Global Value"
  230. globval.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196)
  231.  
  232. Pg1.Name = "Pg1"
  233. Pg1.Parent = Page2
  234. Pg1.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078)
  235. Pg1.BackgroundTransparency = 0.30000001192093
  236. Pg1.BorderColor3 = Color3.new(0, 0, 0)
  237. Pg1.BorderSizePixel = 0
  238. Pg1.Position = UDim2.new(0, 5, 0, 275)
  239. Pg1.Size = UDim2.new(0, 20, 0, 20)
  240. Pg1.ZIndex = 10
  241. Pg1.Font = Enum.Font.SourceSansLight
  242. Pg1.FontSize = Enum.FontSize.Size18
  243. Pg1.Text = "<"
  244. Pg1.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196)
  245.  
  246. tooltext.Name = "tooltext"
  247. tooltext.Parent = Page2
  248. tooltext.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078)
  249. tooltext.BackgroundTransparency = 0.30000001192093
  250. tooltext.BorderSizePixel = 0
  251. tooltext.Position = UDim2.new(0, 40, 0, 75)
  252. tooltext.Size = UDim2.new(0, 125, 0, 20)
  253. tooltext.ZIndex = 10
  254. tooltext.Font = Enum.Font.SourceSansLight
  255. tooltext.FontSize = Enum.FontSize.Size14
  256. tooltext.Text = "Tool"
  257. tooltext.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196)
  258.  
  259. gamepas.Name = "gamepas"
  260. gamepas.Parent = Page2
  261. gamepas.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078)
  262. gamepas.BackgroundTransparency = 0.30000001192093
  263. gamepas.BorderSizePixel = 0
  264. gamepas.Position = UDim2.new(0, 40, 0, 100)
  265. gamepas.Size = UDim2.new(0, 125, 0, 20)
  266. gamepas.ZIndex = 10
  267. gamepas.Font = Enum.Font.SourceSansLight
  268. gamepas.FontSize = Enum.FontSize.Size14
  269. gamepas.Text = "OP THE TOOL"
  270. gamepas.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196)
  271.  
  272. --[[END OF GUI CREATION]]
  273.  
  274. local opened = false
  275. local disablebuttons = false
  276. local player33 = ""
  277. local gloval33 = 0
  278. local page = 1
  279.  
  280. local rs = game:GetService("RunService").RenderStepped
  281. LerpProperty = function(obj,prop,start,finish,time)
  282. local t = tick()
  283. obj[prop] = start
  284. while true do
  285. rs:wait() -- using RenderStepped cuz smooth lookin'
  286. local p = (tick()-t)/time -- progressed time in %
  287. if p >= 1 then break end -- more than 'time' seconds passed
  288. -- can transform p to math.sin or some other lerp:
  289. p = p * p * (3 - 2*p)
  290. -- stole that formula from some site on google (link below code)
  291. obj[prop] = start:Lerp(finish,p)
  292. end
  293. obj[prop] = finish
  294. end
  295.  
  296. spawntheitem = function()
  297. for i = 1, gloval do
  298. rs:wait()
  299. game.ReplicatedStorage.Resources.Remotes.MakeItem:FireServer(player33, game.Players.LocalPlayer.Character.UpperTorso.Position + Vector3.new(0, 3, 0))
  300. end
  301. end
  302.  
  303. spawncreature = function()
  304. for i = 1, gloval do
  305. rs:wait()
  306. game.ReplicatedStorage.Resources.Remotes.MakeAnimal:FireServer(player33, game.Players.LocalPlayer.Character.UpperTorso.Position + Vector3.new(0, 2, 0))
  307. end
  308. end
  309.  
  310. gofast = function()
  311. game.ReplicatedStorage.Resources.Remotes.SetWalkspeed:FireServer(tonumber(gloval))
  312. end
  313.  
  314. killanimal = function()
  315. for _, v in pairs (workspace.Animals:GetChildren()) do
  316. if player33 == "all" then
  317. game.ReplicatedStorage.Resources.Remotes.DamageAnimal:FireServer(v, 20000)
  318. elseif player33 ~= "all" and v.Name == player33 then
  319. game.ReplicatedStorage.Resources.Remotes.DamageAnimal:FireServer(v, 20000)
  320. end
  321. end
  322. end
  323.  
  324. destroyit = function()
  325. for _, v in pairs (workspace.Items:GetChildren()) do
  326. if player33 == "all" then
  327. game.ReplicatedStorage.Resources.Remotes.DestroyItem:FireServer(v)
  328. elseif v.Name == player33 then
  329. game.ReplicatedStorage.Resources.Remotes.DestroyItem:FireServer(v)
  330. end
  331. end
  332. end
  333.  
  334. printitem = function()
  335. for i, v in pairs (game.ReplicatedStorage.Resources.Items:GetChildren()) do
  336. print("["..i.."] ", v.Name)
  337. end
  338. end
  339.  
  340. printanimal = function()
  341. for i, v in pairs (game.ReplicatedStorage.Resources.Animals:GetChildren()) do
  342. print("["..i.."] ", v.Name)
  343. end
  344. end
  345.  
  346. choptrees = function()
  347. for _, v in pairs (workspace.Plants:GetChildren()) do
  348. if player33 == "all" then
  349. game.ReplicatedStorage.Resources.Remotes.ChopTree:FireServer(v)
  350. elseif v.Name == player33 then
  351. game.ReplicatedStorage.Resources.Remotes.ChopTree:FireServer(v)
  352. end
  353. end
  354. end
  355.  
  356. openclose = function()
  357. if opened == false and disablebuttons == false then
  358. if page == 1 then
  359. disablebuttons = true
  360. LerpProperty(Page1, "Position", Page1.Position, UDim2.new(0, 500, 0, 100), 0.5)
  361. Run.Text = "<"
  362. opened = true
  363. disablebuttons = false
  364. elseif page == 2 then
  365. disablebuttons = true
  366. LerpProperty(Page2, "Position", Page2.Position, UDim2.new(0, 500, 0, 100), 0.5)
  367. Run.Text = "<"
  368. opened = true
  369. disablebuttons = false
  370. end
  371. elseif opened == true and disablebuttons == false then
  372. if page == 1 then
  373. disablebuttons = true
  374. LerpProperty(Page1, "Position", Page1.Position, UDim2.new(0, -200, 0, 100), 0.5)
  375. Run.Text = ">"
  376. opened = false
  377. disablebuttons = false
  378. elseif page == 2 then
  379. disablebuttons = true
  380. LerpProperty(Page2, "Position", Page2.Position, UDim2.new(0, -200, 0, 100), 0.5)
  381. Run.Text = ">"
  382. opened = false
  383. disablebuttons = false
  384. end
  385. end
  386. end
  387.  
  388. switchpage = function()
  389. if page == 1 and disablebuttons == false then
  390. disablebuttons = true
  391. LerpProperty(Page1, "Position", Page1.Position, UDim2.new(0, -200, 0, 100), 0.25)
  392. wait(1/3)
  393. LerpProperty(Page2, "Position", Page2.Position, UDim2.new(0, 500, 0, 100), 0.25)
  394. page = 2
  395. disablebuttons = false
  396. elseif page == 2 and disablebuttons == false then
  397. disablebuttons = true
  398. LerpProperty(Page2, "Position", Page2.Position, UDim2.new(0, -200, 0, 100), 0.25)
  399. wait(1/3)
  400. LerpProperty(Page1, "Position", Page1.Position, UDim2.new(0, 500, 0, 100), 0.25)
  401. page = 1
  402. disablebuttons = false
  403. end
  404. end
  405.  
  406. connected = function(location, functionz)
  407. location.MouseButton1Down:connect(functionz)
  408. end
  409.  
  410. coroutine.resume(coroutine.create(function()
  411. while true do
  412. rs:wait()
  413. if page == 1 then
  414. player33 = setitem.Text
  415. gloval = setamount.Text
  416. elseif page == 2 then
  417. player33 = setitem.Text
  418. gloval = setamount.Text
  419. end
  420. end
  421. end))
  422.  
  423. connected(Pg1, switchpage)
  424. connected(Pg2, switchpage)
  425. connected(Run, openclose)
  426. connected(spawnitem, spawntheitem)
  427. connected(spawnanimal, spawncreature)
  428. connected(setspeed, gofast)
  429. connected(killanimals, killanimal)
  430. connected(destroyitem, destroyit)
  431. connected(printitems, printitem)
  432. connected(printanimals, printanimal)
  433. connected(choptree, choptrees)
Add Comment
Please, Sign In to add comment