ItsMeMikeyyy

Roblox Phantom Forces OP gui

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