Advertisement
Upscalefanatic3

(Roblox) The Apocalypse GUI *Fixing*

Mar 16th, 2020
459
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.82 KB | None | 0 0
  1. for i,v in pairs(game.CoreGui:GetChildren()) do --check
  2. if v.Name == "md882jkd4568" then
  3. v:Destroy()
  4. end
  5. end
  6.  
  7. player = game.Players.LocalPlayer
  8. plr = game.Players.LocalPlayer
  9.  
  10. -- Instances:
  11. md882jkd4568 = Instance.new("ScreenGui")
  12. OpenClose = Instance.new("TextButton")
  13. Top = Instance.new("TextLabel")
  14. Main = Instance.new("Frame")
  15. UIListLayout = Instance.new("UIListLayout")
  16. Minigun = Instance.new("TextButton")
  17. RPG = Instance.new("TextButton")
  18. Teleport = Instance.new("TextButton")
  19. Medkit = Instance.new("TextButton")
  20. Water = Instance.new("TextButton")
  21.  
  22.  
  23. --Properties:
  24. md882jkd4568.Name = "md882jkd4568"
  25. md882jkd4568.Parent = game.CoreGui
  26.  
  27. OpenClose.Name = "Open/Close"
  28. OpenClose.Parent = md882jkd4568
  29. OpenClose.BackgroundColor3 = Color3.new(1, 1, 1)
  30. OpenClose.Position = UDim2.new(0, 0, 0, 300)
  31. OpenClose.Size = UDim2.new(0, 107, 0, 28)
  32. OpenClose.Style = Enum.ButtonStyle.RobloxRoundButton
  33. OpenClose.Font = Enum.Font.SourceSans
  34. OpenClose.Text = "Close"
  35. OpenClose.TextColor3 = Color3.new(0, 0, 0)
  36. OpenClose.TextSize = 14
  37.  
  38. Top.Name = "Top"
  39. Top.Parent = md882jkd4568
  40. Top.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  41. Top.BorderSizePixel = 0
  42. Top.Position = UDim2.new(0, 15, 0, 330)
  43. Top.Size = UDim2.new(0, 192, 0, 39)
  44. Top.ZIndex = 2
  45. Top.Font = Enum.Font.SourceSans
  46. Top.Text = "The Apocalypse"
  47. Top.TextColor3 = Color3.new(1, 1, 1)
  48. Top.TextSize = 22
  49.  
  50. Main.Name = "Main"
  51. Main.Parent = Top
  52. Main.Active = true
  53. Main.BackgroundColor3 = Color3.new(0.24, 0.24, 0.24)
  54. Main.BorderSizePixel = 0
  55. Main.Position = UDim2.new(0, 0, 0, 39)
  56. Main.Size = UDim2.new(0, 192, 0, 290)
  57.  
  58. UIListLayout.Parent = Main
  59. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  60. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  61.  
  62. Minigun.Name = "Minigun"
  63. Minigun.Parent = Main
  64. Minigun.BackgroundColor3 = Color3.new(1, 1, 1)
  65. Minigun.BorderSizePixel = 0
  66. Minigun.Position = UDim2.new(0.105820104, 0, 0.517241359, 0)
  67. Minigun.Size = UDim2.new(0, 165, 0, 30)
  68. Minigun.ZIndex = 2
  69. Minigun.Style = Enum.ButtonStyle.RobloxRoundButton
  70. Minigun.Font = Enum.Font.SourceSans
  71. Minigun.Text = "Minigun"
  72. Minigun.TextColor3 = Color3.new(0, 0, 0)
  73. Minigun.TextSize = 14
  74.  
  75. RPG.Name = "RPG"
  76. RPG.Parent = Main
  77. RPG.BackgroundColor3 = Color3.new(1, 1, 1)
  78. RPG.BorderSizePixel = 0
  79. RPG.Position = UDim2.new(0.105820104, 0, 0.517241359, 0)
  80. RPG.Size = UDim2.new(0, 165, 0, 30)
  81. RPG.ZIndex = 2
  82. RPG.Style = Enum.ButtonStyle.RobloxRoundButton
  83. RPG.Font = Enum.Font.SourceSans
  84. RPG.Text = "RPG"
  85. RPG.TextColor3 = Color3.new(0, 0, 0)
  86. RPG.TextSize = 14
  87.  
  88. Teleport.Name = "Teleport"
  89. Teleport.Parent = Main
  90. Teleport.BackgroundColor3 = Color3.new(1, 1, 1)
  91. Teleport.BorderSizePixel = 0
  92. Teleport.Position = UDim2.new(0.105820104, 0, 0.517241359, 0)
  93. Teleport.Size = UDim2.new(0, 165, 0, 30)
  94. Teleport.ZIndex = 2
  95. Teleport.Style = Enum.ButtonStyle.RobloxRoundButton
  96. Teleport.Font = Enum.Font.SourceSans
  97. Teleport.Text = "Teleport"
  98. Teleport.TextColor3 = Color3.new(0, 0, 0)
  99. Teleport.TextSize = 14
  100.  
  101. Medkit.Name = "Medkit"
  102. Medkit.Parent = Main
  103. Medkit.BackgroundColor3 = Color3.new(1, 1, 1)
  104. Medkit.BorderSizePixel = 0
  105. Medkit.Position = UDim2.new(0.105820104, 0, 0.517241359, 0)
  106. Medkit.Size = UDim2.new(0, 165, 0, 30)
  107. Medkit.ZIndex = 2
  108. Medkit.Style = Enum.ButtonStyle.RobloxRoundButton
  109. Medkit.Font = Enum.Font.SourceSans
  110. Medkit.Text = "Medkit"
  111. Medkit.TextColor3 = Color3.new(0, 0, 0)
  112. Medkit.TextSize = 14
  113.  
  114. Water.Name = "Water"
  115. Water.Parent = Main
  116. Water.BackgroundColor3 = Color3.new(1, 1, 1)
  117. Water.BorderSizePixel = 0
  118. Water.Position = UDim2.new(0.105820104, 0, 0.517241359, 0)
  119. Water.Size = UDim2.new(0, 165, 0, 30)
  120. Water.ZIndex = 2
  121. Water.Style = Enum.ButtonStyle.RobloxRoundButton
  122. Water.Font = Enum.Font.SourceSans
  123. Water.Text = "Water"
  124. Water.TextColor3 = Color3.new(0, 0, 0)
  125. Water.TextSize = 14
  126.  
  127. OpenClose.MouseButton1Click:connect(function()
  128. if OpenClose.Text == "Close" then
  129. --closeall()
  130. Top:TweenPosition(UDim2.new(0, -200, 0, 330),"InOut","Quad",0.5)
  131. repeat wait() until
  132. Top.Position == UDim2.new(0, -200, 0, 330)
  133. OpenClose.Text = "Open" --closing
  134. --secondary.Visible = false
  135. else
  136. Top:TweenPosition(UDim2.new(0, 15, 0, 330),"InOut","Quad",0.5)
  137. repeat wait() until
  138. Top.Position == UDim2.new(0, 15, 0, 330)
  139. --secondary.Visible = true
  140. OpenClose.Text = "Close" --opening
  141. end
  142. end)
  143.  
  144. Minigun.MouseButton1Click:connect(function()
  145. A_1 = game:GetService("Workspace").Items.Ammo
  146. A_2 = game:GetService("ReplicatedStorage").Items.Weapons.Minigun
  147. game:GetService("ReplicatedStorage").Remote.Backpack.PickupEvent:FireServer(A_1, A_2)
  148. wait(1)
  149. A_3 = game.Players.LocalPlayer.Backpack.Minigun
  150. A_4 = "Loaded"
  151. A_5 = 1000000000
  152. game:GetService("ReplicatedStorage").Remote.AmmoEvent:FireServer(A_3, A_4, A_5)
  153. end)
  154.  
  155. RPG.MouseButton1Click:connect(function()
  156. A_1 = game:GetService("Workspace").Items.Ammo
  157. A_2 = game:GetService("ReplicatedStorage").Items.Weapons.RPG
  158. game:GetService("ReplicatedStorage").Remote.Backpack.PickupEvent:FireServer(A_1, A_2)
  159. wait(1)
  160. A_3 = game.Players.LocalPlayer.Backpack.RPG
  161. A_4 = "Loaded"
  162. A_5 = 1000000000
  163. game:GetService("ReplicatedStorage").Remote.AmmoEvent:FireServer(A_3, A_4, A_5)
  164. end)
  165.  
  166. Teleport.MouseButton1Click:connect(function()
  167. mouse = game.Players.LocalPlayer:GetMouse()
  168.  
  169. mouse.KeyDown:connect(function(key)
  170. if key == "c" then
  171. if mouse.Target then
  172.  
  173. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(mouse.Hit.x, mouse.Hit.y + 5, mouse.Hit.z)
  174.  
  175. end
  176. end
  177. end)
  178. end)
  179.  
  180. Medkit.MouseButton1Click:connect(function()
  181. A_1 = game.Players.LocalPlayer.PlayerGui.PerkSelection.Core.Perk.Medkit
  182. game:GetService("ReplicatedStorage").Remote.Backpack.GiveEvent:FireServer(A_1)
  183. end)
  184.  
  185. Water.MouseButton1Click:connect(function()
  186. A_1 = game.Players.LocalPlayer.PlayerGui.PerkSelection.Core.Perk.Water
  187. game:GetService("ReplicatedStorage").Remote.Backpack.GiveEvent:FireServer(A_1)
  188. end)
  189.  
  190. -- Remote Notifications:
  191. --snip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement