Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.02 KB | None | 0 0
  1. local GUI = Instance.new("ScreenGui")
  2. local OpenBut = Instance.new("TextButton")
  3. local Main = Instance.new("Frame")
  4. local bar1 = Instance.new("Frame")
  5. local bar2 = Instance.new("Frame")
  6. local title = Instance.new("TextLabel")
  7. local XRay = Instance.new("TextButton")
  8. local ESP = Instance.new("TextButton")
  9. local credits = Instance.new("TextLabel")
  10. local CloseBut = Instance.new("TextButton")
  11.  
  12. -- Properties
  13.  
  14. GUI.Name = "GUI"
  15. GUI.Parent = game.CoreGui
  16.  
  17. OpenBut.Name = "OpenBut"
  18. OpenBut.Parent = GUI
  19. OpenBut.BackgroundColor3 = Color3.new(0.0745098, 0, 0.564706)
  20. OpenBut.Position = UDim2.new(0, 0, 0.836177468, 0)
  21. OpenBut.Size = UDim2.new(0, 86, 0, 50)
  22. OpenBut.Font = Enum.Font.SourceSansBold
  23. OpenBut.Text = "Open"
  24. OpenBut.TextColor3 = Color3.new(1, 1, 1)
  25. OpenBut.TextScaled = true
  26. OpenBut.TextSize = 14
  27. OpenBut.TextWrapped = true
  28. OpenBut.MouseButton1Down:connect(function()
  29. OpenBut.Visible = false
  30. Main.Visible = true
  31. end)
  32.  
  33. Main.Name = "Main"
  34. Main.Parent = GUI
  35. Main.BackgroundColor3 = Color3.new(0.0745098, 0, 0.564706)
  36. Main.Position = UDim2.new(0.387452126, 0, 0.234641641, 0)
  37. Main.Size = UDim2.new(0, 235, 0, 311)
  38. Main.Visible = false
  39.  
  40. bar1.Name = "bar1"
  41. bar1.Parent = Main
  42. bar1.BackgroundColor3 = Color3.new(0.164706, 0, 1)
  43. bar1.BorderSizePixel = 0
  44. bar1.Size = UDim2.new(0, 235, 0, 41)
  45.  
  46. bar2.Name = "bar2"
  47. bar2.Parent = Main
  48. bar2.BackgroundColor3 = Color3.new(0.12549, 0, 0.854902)
  49. bar2.BorderSizePixel = 0
  50. bar2.Position = UDim2.new(0, 0, 0.131832793, 0)
  51. bar2.Size = UDim2.new(0, 235, 0, 12)
  52.  
  53. title.Name = "title"
  54. title.Parent = Main
  55. title.BackgroundColor3 = Color3.new(0.164706, 0, 1)
  56. title.BorderSizePixel = 0
  57. title.Size = UDim2.new(0, 187, 0, 35)
  58. title.Font = Enum.Font.SciFi
  59. title.Text = "Phantom Forces GUI"
  60. title.TextColor3 = Color3.new(1, 1, 1)
  61. title.TextScaled = true
  62. title.TextSize = 14
  63. title.TextWrapped = true
  64.  
  65. XRay.Name = "X-Ray"
  66. XRay.Parent = Main
  67. XRay.BackgroundColor3 = Color3.new(0.164706, 0, 1)
  68. XRay.Position = UDim2.new(0.155319154, 0, 0.292604506, 0)
  69. XRay.Size = UDim2.new(0, 161, 0, 50)
  70. XRay.Font = Enum.Font.SourceSans
  71. XRay.Text = "X-Ray (Press E to active/disable)"
  72. XRay.TextColor3 = Color3.new(0, 1, 0.968628)
  73. XRay.TextScaled = true
  74. XRay.TextSize = 14
  75. XRay.TextWrapped = true
  76. XRay.MouseButton1Down:connect(function()
  77. local Move = game.Workspace.Map
  78. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  79. local Players = game:GetService("Players")
  80. local mouse = Players.LocalPlayer:GetMouse()
  81. local a = false
  82.  
  83. mouse.KeyDown:Connect(function(key)
  84. if key == "e" then
  85. if a == false then
  86. Move.Parent = ReplicatedStorage
  87. Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true
  88. a = true
  89. elseif a == true then
  90. Move.Parent = game.Workspace
  91. Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false
  92. a = false
  93. end
  94. end
  95. end)
  96. end)
  97.  
  98. ESP.Name = "ESP"
  99. ESP.Parent = Main
  100. ESP.BackgroundColor3 = Color3.new(0.164706, 0, 1)
  101. ESP.Position = UDim2.new(0.155319154, 0, 0.58199358, 0)
  102. ESP.Size = UDim2.new(0, 161, 0, 50)
  103. ESP.Font = Enum.Font.SourceSans
  104. ESP.Text = "ESP"
  105. ESP.TextColor3 = Color3.new(0, 1, 0.968628)
  106. ESP.TextScaled = true
  107. ESP.TextSize = 14
  108. ESP.TextWrapped = true
  109. ESP.MouseButton1Down:connect(function()
  110. --[[ Objects
  111.  
  112. local SurfaceGui = Instance.new("SurfaceGui")
  113. local Frame = Instance.new("Frame")
  114.  
  115. -- Properties
  116.  
  117. SurfaceGui.Parent = game.Workspace.Part
  118. SurfaceGui.AlwaysOnTop = true
  119. SurfaceGui.Face = Enum.NormalId.Back
  120.  
  121. Frame.Parent = SurfaceGui
  122. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  123. Frame.Size = UDim2.new(1, 0, 1, 0)
  124. ]]--
  125.  
  126.  
  127.  
  128. trans = 0.5
  129. --team1 = BackgroundColor3.new("Cyan")
  130. --team2 = BackgroundColor3.new("Really red")
  131.  
  132. while true do
  133. for i,l in pairs(game:GetService("Players"):GetChildren()) do
  134. print (game:GetService("Players").LocalPlayer.Team)
  135. if l ~= game:GetService("Players").LocalPlayer then
  136. for i,v in pairs(l.Character:GetChildren()) do
  137. if v.ClassName == "MeshPart" or "Part" and v.Name ~= "HumanoidRootPart" then
  138. --
  139. xd = Instance.new("SurfaceGui")
  140. xd.Face = Enum.NormalId.Back
  141. xd.Parent = v
  142. xd.AlwaysOnTop = true
  143. Frame = Instance.new("Frame")
  144. Frame.Parent = xd
  145. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  146. Frame.Size = UDim2.new(1, 0, 1, 0)
  147. Frame.BackgroundTransparency = trans
  148.  
  149. if l.Team ~= game:GetService("Players").LocalPlayer.Team then
  150. Frame.BackgroundColor3 = Color3.new(255,0 ,0)
  151. else Frame.BackgroundColor3 = Color3.new(0, 255, 255)
  152.  
  153. end
  154.  
  155. --
  156.  
  157. xd = Instance.new("SurfaceGui")
  158. xd.Face = Enum.NormalId.Bottom
  159. xd.Parent = v
  160. xd.AlwaysOnTop = true
  161. Frame = Instance.new("Frame")
  162. Frame.Parent = xd
  163. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  164. Frame.Size = UDim2.new(1, 0, 1, 0)
  165. Frame.BackgroundTransparency = trans
  166.  
  167. if l.Team ~= game:GetService("Players").LocalPlayer.Team then
  168. Frame.BackgroundColor3 = Color3.new(255,0 ,0)
  169. else Frame.BackgroundColor3 = Color3.new(0, 255, 255)
  170.  
  171. end
  172.  
  173. --
  174.  
  175. xd = Instance.new("SurfaceGui")
  176. xd.Face = Enum.NormalId.Front
  177. xd.Parent = v
  178. xd.AlwaysOnTop = true
  179. Frame = Instance.new("Frame")
  180. Frame.Parent = xd
  181. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  182. Frame.Size = UDim2.new(1, 0, 1, 0)
  183. Frame.BackgroundTransparency = trans
  184.  
  185. if l.Team ~= game:GetService("Players").LocalPlayer.Team then
  186. Frame.BackgroundColor3 = Color3.new(255,0 ,0)
  187. else Frame.BackgroundColor3 = Color3.new(0, 255, 255)
  188.  
  189. end
  190.  
  191.  
  192. --
  193.  
  194. xd = Instance.new("SurfaceGui")
  195. xd.Face = Enum.NormalId.Left
  196. xd.Parent = v
  197. xd.AlwaysOnTop = true
  198. Frame = Instance.new("Frame")
  199. Frame.Parent = xd
  200. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  201. Frame.Size = UDim2.new(1, 0, 1, 0)
  202. Frame.BackgroundTransparency = trans
  203.  
  204. if l.Team ~= game:GetService("Players").LocalPlayer.Team then
  205. Frame.BackgroundColor3 = Color3.new(255,0 ,0)
  206. else Frame.BackgroundColor3 = Color3.new(0, 255, 255)
  207.  
  208. end
  209. --
  210.  
  211. xd = Instance.new("SurfaceGui")
  212. xd.Face = Enum.NormalId.Right
  213. xd.Parent = v
  214. xd.AlwaysOnTop = true
  215. Frame = Instance.new("Frame")
  216. Frame.Parent = xd
  217. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  218. Frame.Size = UDim2.new(1, 0, 1, 0)
  219. Frame.BackgroundTransparency = trans
  220.  
  221. if l.Team ~= game:GetService("Players").LocalPlayer.Team then
  222. Frame.BackgroundColor3 = Color3.new(255,0 ,0)
  223. else Frame.BackgroundColor3 = Color3.new(0, 255, 255)
  224.  
  225. end
  226. --
  227.  
  228. xd = Instance.new("SurfaceGui")
  229. xd.Face = Enum.NormalId.Top
  230. xd.Parent = v
  231. xd.AlwaysOnTop = true
  232. Frame = Instance.new("Frame")
  233. Frame.Parent = xd
  234. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  235. Frame.Size = UDim2.new(1, 0, 1, 0)
  236. Frame.BackgroundTransparency = trans
  237.  
  238.  
  239. if l.Team ~= game:GetService("Players").LocalPlayer.Team then
  240. Frame.BackgroundColor3 = Color3.new(255,0 ,0)
  241. else Frame.BackgroundColor3 = Color3.new(0, 255, 255)
  242.  
  243. end
  244.  
  245.  
  246. print (v.Name)
  247.  
  248. end
  249. end
  250. end
  251. end
  252.  
  253. wait (5)
  254. for i,v in pairs (game:GetService("Players"):GetChildren()) do
  255. for i,k in pairs(v.Character:GetChildren()) do
  256. for i,l in pairs(k:GetChildren()) do
  257. if l.ClassName == "SurfaceGui" then
  258. l:Remove()
  259. end
  260. end
  261. end
  262. end
  263.  
  264. end
  265. end)
  266.  
  267. credits.Name = "credits"
  268. credits.Parent = Main
  269. credits.BackgroundColor3 = Color3.new(0.0745098, 0, 0.564706)
  270. credits.BorderSizePixel = 0
  271. credits.Position = UDim2.new(0.0340425521, 0, 0.919614136, 0)
  272. credits.Size = UDim2.new(0, 78, 0, 25)
  273. credits.Font = Enum.Font.SourceSansBold
  274. credits.Text = "Made by Synax"
  275. credits.TextColor3 = Color3.new(1, 1, 1)
  276. credits.TextScaled = true
  277. credits.TextSize = 14
  278. credits.TextWrapped = true
  279.  
  280. CloseBut.Name = "CloseBut"
  281. CloseBut.Parent = Main
  282. CloseBut.BackgroundColor3 = Color3.new(0.164706, 0, 1)
  283. CloseBut.BorderSizePixel = 0
  284. CloseBut.Position = UDim2.new(0.795744658, 0, 0.00964630209, 0)
  285. CloseBut.Size = UDim2.new(0, 48, 0, 32)
  286. CloseBut.Font = Enum.Font.SourceSans
  287. CloseBut.Text = "X"
  288. CloseBut.TextColor3 = Color3.new(0, 1, 0.968628)
  289. CloseBut.TextScaled = true
  290. CloseBut.TextSize = 14
  291. CloseBut.TextWrapped = true
  292. CloseBut.MouseButton1Down:connect(function()
  293. Main.Visible = false
  294. OpenBut.Visible = true
  295. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement