Scriptorz5

Giant Survival 2 Gui

May 20th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.48 KB | None | 0 0
  1. local Message = "MagmaV1 have been loaded!"
  2. game:GetService("Workspace")["__RemoteEvents"]["API_CustomMessages"]:FireServer("Message", "All", Message, Color3.new(.9, .8, .1), "ArialBold", 24)
  3.  
  4. -->> Objects <<--
  5.  
  6. local Magma = Instance.new("ScreenGui")
  7. local Holder1 = Instance.new("Frame")
  8. local Holder2 = Instance.new("Frame")
  9. local Main = Instance.new("Frame")
  10. local Bg = Instance.new("Frame")
  11. local Value = Instance.new("TextBox")
  12. local Jail = Instance.new("TextButton")
  13. local Credits = Instance.new("TextButton")
  14. local Smsg = Instance.new("TextButton")
  15. local Arch = Instance.new("TextButton")
  16. local Cmsg = Instance.new("TextButton")
  17. local Xp = Instance.new("TextButton")
  18. local Kill = Instance.new("TextButton")
  19. local Money = Instance.new("TextButton")
  20. local HealUp = Instance.new("TextButton")
  21. local p = game.Players:GetChildren()
  22. -->> Properties <<--
  23.  
  24. Magma.Name = "Magma"
  25. Magma.Parent = game.CoreGui
  26.  
  27. Holder1.Name = "Holder1"
  28. Holder1.Parent = Magma
  29. Holder1.Active = true
  30. Holder1.BackgroundColor3 = Color3.new(1, 0.333333, 0)
  31. Holder1.BorderColor3 = Color3.new(1, 0.333333, 0)
  32. Holder1.Position = UDim2.new(0.266120791, 0, 0.330564797, 0)
  33. Holder1.Size = UDim2.new(0, 324, 0, 12)
  34. Holder1.Draggable = true
  35.  
  36. Holder2.Name = "Holder2"
  37. Holder2.Parent = Holder1
  38. Holder2.Active = true
  39. Holder2.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  40. Holder2.BorderColor3 = Color3.new(1, 0.666667, 0)
  41. Holder2.Position = UDim2.new(-0.00109597515, 0, 1, 0)
  42. Holder2.Size = UDim2.new(0, 324, 0, 6)
  43.  
  44. Main.Name = "Main"
  45. Main.Parent = Holder2
  46. Main.Active = true
  47. Main.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  48. Main.BorderColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  49. Main.Position = UDim2.new(0, 0, 1, 0)
  50. Main.Size = UDim2.new(0, 324, 0, 182)
  51.  
  52. Bg.Name = "Bg"
  53. Bg.Parent = Main
  54. Bg.Active = true
  55. Bg.BackgroundColor3 = Color3.new(0.121569, 0.121569, 0.121569)
  56. Bg.BorderColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  57. Bg.Position = UDim2.new(0.0337159708, 0, 0.0494505502, 0)
  58. Bg.Size = UDim2.new(0, 307, 0, 163)
  59.  
  60. Value.Name = "Value"
  61. Value.Parent = Main
  62. Value.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  63. Value.BorderColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  64. Value.Position = UDim2.new(0.323189586, 0, 0.130226403, 0)
  65. Value.Size = UDim2.new(0, 117, 0, 21)
  66. Value.Font = Enum.Font.SourceSans
  67. Value.Text = "Text/Amount"
  68. Value.TextColor3 = Color3.new(0.752941, 0.764706, 0.752941)
  69. Value.TextSize = 14
  70. Value.TextWrapped = true
  71.  
  72. Jail.Name = "Jail All"
  73. Jail.Parent = Main
  74. Jail.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  75. Jail.BorderColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  76. Jail.Position = UDim2.new(0.0664709508, 0, 0.736279309, 0)
  77. Jail.Size = UDim2.new(0, 90, 0, 29)
  78. Jail.Font = Enum.Font.SourceSans
  79. Jail.Text = "Jail All"
  80. Jail.TextColor3 = Color3.new(0.752941, 0.764706, 0.752941)
  81. Jail.TextSize = 14
  82. Jail.TextStrokeColor3 = Color3.new(0.752941, 0.764706, 0.752941)
  83.  
  84. Credits.Name = "Credits"
  85. Credits.Parent = Main
  86. Credits.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  87. Credits.BorderColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  88. Credits.Position = UDim2.new(0.661585391, 0, 0.736645937, 0)
  89. Credits.Size = UDim2.new(0, 90, 0, 29)
  90. Credits.Font = Enum.Font.SourceSans
  91. Credits.Text = "Credits"
  92. Credits.TextColor3 = Color3.new(0.752941, 0.764706, 0.752941)
  93. Credits.TextSize = 14
  94. Credits.TextStrokeColor3 = Color3.new(0.752941, 0.764706, 0.752941)
  95.  
  96. Smsg.Name = "Smsg"
  97. Smsg.Parent = Main
  98. Smsg.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  99. Smsg.BorderColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  100. Smsg.Position = UDim2.new(0.0685975924, 0, 0.543699503, 0)
  101. Smsg.Size = UDim2.new(0, 90, 0, 29)
  102. Smsg.Font = Enum.Font.SourceSans
  103. Smsg.Text = "Server Message"
  104. Smsg.TextColor3 = Color3.new(0.752941, 0.764706, 0.752941)
  105. Smsg.TextSize = 14
  106. Smsg.TextStrokeColor3 = Color3.new(0.752941, 0.764706, 0.752941)
  107. Smsg.TextWrapped = true
  108.  
  109. Arch.Name = "Arch"
  110. Arch.Parent = Main
  111. Arch.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  112. Arch.BorderColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  113. Arch.Position = UDim2.new(0.36280489, 0, 0.545036614, 0)
  114. Arch.Size = UDim2.new(0, 90, 0, 29)
  115. Arch.Font = Enum.Font.SourceSans
  116. Arch.Text = "Fe_Anchor[CTRL]"
  117. Arch.TextColor3 = Color3.new(0.752941, 0.764706, 0.752941)
  118. Arch.TextSize = 14
  119. Arch.TextStrokeColor3 = Color3.new(0.752941, 0.764706, 0.752941)
  120. Arch.TextWrapped = true
  121.  
  122. Cmsg.Name = "Cmsg"
  123. Cmsg.Parent = Main
  124. Cmsg.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  125. Cmsg.BorderColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  126. Cmsg.Position = UDim2.new(0.660061002, 0, 0.543699503, 0)
  127. Cmsg.Size = UDim2.new(0, 90, 0, 29)
  128. Cmsg.Font = Enum.Font.SourceSans
  129. Cmsg.Text = "Chat message"
  130. Cmsg.TextColor3 = Color3.new(0.752941, 0.764706, 0.752941)
  131. Cmsg.TextSize = 14
  132. Cmsg.TextStrokeColor3 = Color3.new(0.752941, 0.764706, 0.752941)
  133. Cmsg.TextWrapped = true
  134.  
  135. Xp.Name = "Xp"
  136. Xp.Parent = Main
  137. Xp.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  138. Xp.BorderColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  139. Xp.Position = UDim2.new(0.0686352253, 0, 0.345438927, 0)
  140. Xp.Size = UDim2.new(0, 90, 0, 29)
  141. Xp.Font = Enum.Font.SourceSans
  142. Xp.Text = "AddXP"
  143. Xp.TextColor3 = Color3.new(0.752941, 0.764706, 0.752941)
  144. Xp.TextSize = 14
  145. Xp.TextStrokeColor3 = Color3.new(0.752941, 0.764706, 0.752941)
  146. Xp.TextWrapped = true
  147.  
  148. Kill.Name = "Kill"
  149. Kill.Parent = Main
  150. Kill.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  151. Kill.BorderColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  152. Kill.Position = UDim2.new(0.361280501, 0, 0.345438927, 0)
  153. Kill.Size = UDim2.new(0, 90, 0, 29)
  154. Kill.Font = Enum.Font.SourceSans
  155. Kill.Text = "Kill"
  156. Kill.TextColor3 = Color3.new(0.752941, 0.764706, 0.752941)
  157. Kill.TextSize = 14
  158. Kill.TextStrokeColor3 = Color3.new(0.752941, 0.764706, 0.752941)
  159.  
  160. Money.Name = "Money"
  161. Money.Parent = Main
  162. Money.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  163. Money.BorderColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  164. Money.Position = UDim2.new(0.658536613, 0, 0.345805556, 0)
  165. Money.Size = UDim2.new(0, 90, 0, 29)
  166. Money.Font = Enum.Font.SourceSans
  167. Money.Text = "Coins + Jewels"
  168. Money.TextColor3 = Color3.new(0.752941, 0.764706, 0.752941)
  169. Money.TextSize = 14
  170. Money.TextStrokeColor3 = Color3.new(0.752941, 0.764706, 0.752941)
  171.  
  172. HealUp.Name = "HealUp"
  173. HealUp.Parent = Main
  174. HealUp.BackgroundColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  175. HealUp.BorderColor3 = Color3.new(0.231373, 0.231373, 0.231373)
  176. HealUp.Position = UDim2.new(0.364893883, 0, 0.736279309, 0)
  177. HealUp.Size = UDim2.new(0, 90, 0, 29)
  178. HealUp.Font = Enum.Font.SourceSans
  179. HealUp.Text = "Heal Up"
  180. HealUp.TextColor3 = Color3.new(0.752941, 0.764706, 0.752941)
  181. HealUp.TextSize = 14
  182. HealUp.TextStrokeColor3 = Color3.new(0.752941, 0.764706, 0.752941)
  183. -->> Functions <<--
  184.  
  185.  
  186. Kill.MouseButton1Down:Connect(function()
  187. if Value.Text == "all" or Value.Text == "All" then
  188. p = game:GetService("Players"):GetChildren()
  189. for i = 1,#p do
  190. local Pl = {[1] = p[i].Character.Head}
  191. game:GetService("Workspace")["__RemoteEvents"]["API_Giant"]:FireServer("Break", Pl)
  192. end
  193. else
  194. local Pl = {[1] =game:GetService("Players")[Value.Text].Character.Head}
  195. game:GetService("Workspace")["__RemoteEvents"]["API_Giant"]:FireServer("Break", Pl)
  196. end
  197. end)
  198.  
  199. Money.MouseButton1Down:Connect(function()
  200. workspace.__Functions.API_Player_Stats:InvokeServer("SetStat","Jewels", Value.Text)
  201. workspace.__Functions.API_Player_Stats:InvokeServer("SetStat","Coins", Value.Text)
  202. end)
  203.  
  204. Xp.MouseButton1Down:Connect(function()
  205. game:GetService("Workspace")["__RemoteEvents"]["API_XP"]:FireServer("AddEquipped", Value.Text)
  206. end)
  207.  
  208. Smsg.MouseButton1Down:Connect(function()
  209. local Msg = Value.Text
  210. game:GetService("Workspace")["__RemoteEvents"]["API_CustomMessages"]:FireServer("Message", "All", Msg, Color3.new(255, 0, 0), "ArialBold", 24)
  211. end)
  212.  
  213. Cmsg.MouseButton1Down:Connect(function()
  214. local Message = "[" ..game.Players.LocalPlayer.Name .."]" ..": " ..Value.Text
  215. game:GetService("Workspace")["__RemoteEvents"]["API_CustomMessages"]:FireServer("Message", "All", Message, Color3.new(.7, 0, 1), "ArialBold", 24)
  216. end)
  217.  
  218. Arch.MouseButton1Down:Connect(function()
  219. local Mouse = game:GetService("Players").LocalPlayer:GetMouse()
  220. Mouse.Button1Down:connect(function()
  221. if not game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.LeftControl) then return end
  222. if not Mouse.Target then return end
  223. local Pl = {[1] = Mouse.Target}
  224. game:GetService("Workspace")["__RemoteEvents"]["API_Giant"]:FireServer("Break", Pl)
  225. end)
  226. end)
  227.  
  228. Jail.MouseButton1Down:Connect(function()
  229.  
  230. if game:GetService("Workspace")["__MAP"].LobbySpawns.Part ~= nil then
  231. for i = 1,4,1 do --//No better idea :P
  232. local P2 = {[1] = game:GetService("Workspace")["__MAP"].LobbySpawns.Part}
  233. for i = 1,100,1 do
  234. game:GetService("Workspace")["__RemoteEvents"]["API_Giant"]:FireServer("Break", P2)
  235. end
  236. end
  237. end
  238.  
  239. wait(0.2)
  240. for i=1,8 do
  241. wait()
  242. for i = 1,#p do
  243. wait()
  244. p = game.Players:GetChildren()
  245. local Pl = {[1] = p[i].Character.Head}
  246. for i = 1,4 do
  247. for i = 1,400 do
  248. wait(.02)
  249. game:GetService("Workspace")["__RemoteEvents"]["API_Giant"]:FireServer("Break", Pl)
  250. end
  251. wait(1)
  252. end
  253. end
  254. wait(2)
  255. end
  256. end)
  257.  
  258. HealUp.MouseButton1Down:Connect(function()
  259. local Var = "Damage"
  260. local Name = game.Players.LocalPlayer.Name
  261. local Amount = -100
  262. game:GetService("Workspace")["__RemoteEvents"]["API_Hitscan"]:FireServer(Var, Name, Amount)
  263. end)
  264.  
  265. Credits.MouseButton1Down:Connect(function()
  266. print("Magma V1 is made fully by xHexLightz!")
  267. print("Update status: TRUE MagmaV1")
  268. end)
Add Comment
Please, Sign In to add comment