Sykotic_Cataclysm

PhantomScript

Feb 1st, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.59 KB | None | 0 0
  1. -- Instances
  2.  
  3. local PhantomForces = Instance.new("ScreenGui")
  4. local MainFrame = Instance.new("Frame")
  5. local ESP = Instance.new("TextButton")
  6. local NameESP = Instance.new("TextButton")
  7. local OutlineESP = Instance.new("TextButton")
  8. local XRay = Instance.new("TextButton")
  9. local FullBright = Instance.new("TextButton")
  10. local NoClip = Instance.new("TextButton")
  11. local CentralCrosshair = Instance.new("TextButton")
  12. local Settings = Instance.new("TextButton")
  13. local ToggleFrame = Instance.new("Frame")
  14. local ToggleGUI = Instance.new("TextButton")
  15. local KillGUI = Instance.new("TextButton")
  16. local SettingsFrame = Instance.new("Frame")
  17. local ESPTranAmount = Instance.new("TextBox")
  18. local XRayTranAmount = Instance.new("TextBox")
  19. local RedAmount = Instance.new("TextBox")
  20. local GreenAmount = Instance.new("TextBox")
  21. local BlueAmount = Instance.new("TextBox")
  22. local SetESPColor = Instance.new("TextButton")
  23. local SetXRayTran = Instance.new("TextButton")
  24. local SetESPTran = Instance.new("TextButton")
  25.  
  26. --Properties
  27.  
  28. PhantomForces.Name = "PhantomForces"
  29. PhantomForces.Parent = game.CoreGui
  30.  
  31. MainFrame.Name = "MainFrame"
  32. MainFrame.Parent = PhantomForces
  33. MainFrame.AnchorPoint = Vector2.new(0, 0.5)
  34. MainFrame.BackgroundColor3 = Color3.new(0, 0, 0)
  35. MainFrame.BackgroundTransparency = 0.5
  36. MainFrame.BorderColor3 = Color3.new(0, 0, 1)
  37. MainFrame.BorderSizePixel = 3
  38. MainFrame.Position = UDim2.new(0.00499999989, 0, 0.5, 0)
  39. MainFrame.Size = UDim2.new(0, 200, 0, 400)
  40.  
  41. ESP.Name = "ESP"
  42. ESP.Parent = MainFrame
  43. ESP.BackgroundColor3 = Color3.new(0, 0, 0)
  44. ESP.BackgroundTransparency = 0.5
  45. ESP.BorderColor3 = Color3.new(0, 0, 1)
  46. ESP.Size = UDim2.new(0, 200, 0, 50)
  47. ESP.Font = Enum.Font.Cartoon
  48. ESP.Text = "Block Player ESP: Off"
  49. ESP.TextColor3 = Color3.new(1, 1, 1)
  50. ESP.TextSize = 20
  51.  
  52. NameESP.Name = "NameESP"
  53. NameESP.Parent = MainFrame
  54. NameESP.BackgroundColor3 = Color3.new(0, 0, 0)
  55. NameESP.BackgroundTransparency = 0.5
  56. NameESP.BorderColor3 = Color3.new(0, 0, 1)
  57. NameESP.Position = UDim2.new(0, 0, 0.125, 0)
  58. NameESP.Size = UDim2.new(0, 200, 0, 50)
  59. NameESP.Font = Enum.Font.Cartoon
  60. NameESP.Text = "Name ESP: Off"
  61. NameESP.TextColor3 = Color3.new(1, 1, 1)
  62. NameESP.TextSize = 20
  63.  
  64. OutlineESP.Name = "OutlineESP"
  65. OutlineESP.Parent = MainFrame
  66. OutlineESP.BackgroundColor3 = Color3.new(0, 0, 0)
  67. OutlineESP.BackgroundTransparency = 0.5
  68. OutlineESP.BorderColor3 = Color3.new(0, 0, 1)
  69. OutlineESP.Position = UDim2.new(0, 0, 0.25, 0)
  70. OutlineESP.Size = UDim2.new(0, 200, 0, 50)
  71. OutlineESP.Font = Enum.Font.Cartoon
  72. OutlineESP.Text = "Player Outline ESP: Off"
  73. OutlineESP.TextColor3 = Color3.new(1, 1, 1)
  74. OutlineESP.TextSize = 20
  75.  
  76. XRay.Name = "XRay"
  77. XRay.Parent = MainFrame
  78. XRay.BackgroundColor3 = Color3.new(0, 0, 0)
  79. XRay.BackgroundTransparency = 0.5
  80. XRay.BorderColor3 = Color3.new(0, 0, 1)
  81. XRay.Position = UDim2.new(0, 0, 0.375, 0)
  82. XRay.Size = UDim2.new(0, 200, 0, 50)
  83. XRay.Font = Enum.Font.Cartoon
  84. XRay.Text = "X-Ray: Off"
  85. XRay.TextColor3 = Color3.new(1, 1, 1)
  86. XRay.TextSize = 20
  87.  
  88. FullBright.Name = "FullBright"
  89. FullBright.Parent = MainFrame
  90. FullBright.BackgroundColor3 = Color3.new(0, 0, 0)
  91. FullBright.BackgroundTransparency = 0.5
  92. FullBright.BorderColor3 = Color3.new(0, 0, 1)
  93. FullBright.Position = UDim2.new(0, 0, 0.5, 0)
  94. FullBright.Size = UDim2.new(0, 200, 0, 50)
  95. FullBright.Font = Enum.Font.Cartoon
  96. FullBright.Text = "Full Brightness: Off"
  97. FullBright.TextColor3 = Color3.new(1, 1, 1)
  98. FullBright.TextSize = 20
  99.  
  100. NoClip.Name = "NoClip"
  101. NoClip.Parent = MainFrame
  102. NoClip.BackgroundColor3 = Color3.new(0, 0, 0)
  103. NoClip.BackgroundTransparency = 0.5
  104. NoClip.BorderColor3 = Color3.new(0, 0, 1)
  105. NoClip.Position = UDim2.new(0, 0, 0.625, 0)
  106. NoClip.Size = UDim2.new(0, 200, 0, 50)
  107. NoClip.Font = Enum.Font.Cartoon
  108. NoClip.Text = "NoClip: Off"
  109. NoClip.TextColor3 = Color3.new(1, 1, 1)
  110. NoClip.TextSize = 20
  111.  
  112. CentralCrosshair.Name = "CentralCrosshair"
  113. CentralCrosshair.Parent = MainFrame
  114. CentralCrosshair.BackgroundColor3 = Color3.new(0, 0, 0)
  115. CentralCrosshair.BackgroundTransparency = 0.5
  116. CentralCrosshair.BorderColor3 = Color3.new(0, 0, 1)
  117. CentralCrosshair.Position = UDim2.new(0, 0, 0.75, 0)
  118. CentralCrosshair.Size = UDim2.new(0, 200, 0, 50)
  119. CentralCrosshair.Font = Enum.Font.Cartoon
  120. CentralCrosshair.Text = "Central Crosshair: Off"
  121. CentralCrosshair.TextColor3 = Color3.new(1, 1, 1)
  122. CentralCrosshair.TextSize = 20
  123.  
  124. Settings.Name = "Settings"
  125. Settings.Parent = MainFrame
  126. Settings.BackgroundColor3 = Color3.new(0, 0, 0)
  127. Settings.BackgroundTransparency = 0.5
  128. Settings.BorderColor3 = Color3.new(0, 0, 1)
  129. Settings.Position = UDim2.new(0, 0, 0.875, 0)
  130. Settings.Size = UDim2.new(0, 200, 0, 50)
  131. Settings.Font = Enum.Font.Cartoon
  132. Settings.Text = "Settings"
  133. Settings.TextColor3 = Color3.new(1, 1, 1)
  134. Settings.TextSize = 20
  135.  
  136. ToggleFrame.Name = "ToggleFrame"
  137. ToggleFrame.Parent = PhantomForces
  138. ToggleFrame.AnchorPoint = Vector2.new(0, 1)
  139. ToggleFrame.BackgroundColor3 = Color3.new(0, 0, 0)
  140. ToggleFrame.BackgroundTransparency = 0.5
  141. ToggleFrame.BorderColor3 = Color3.new(0, 0, 1)
  142. ToggleFrame.BorderSizePixel = 3
  143. ToggleFrame.Position = UDim2.new(0.00499999989, 0, 1, 0)
  144. ToggleFrame.Size = UDim2.new(0, 200, 0, 100)
  145.  
  146. ToggleGUI.Name = "ToggleGUI"
  147. ToggleGUI.Parent = ToggleFrame
  148. ToggleGUI.BackgroundColor3 = Color3.new(0, 0, 0)
  149. ToggleGUI.BackgroundTransparency = 0.5
  150. ToggleGUI.BorderColor3 = Color3.new(0, 0, 1)
  151. ToggleGUI.Size = UDim2.new(0, 200, 0, 50)
  152. ToggleGUI.Font = Enum.Font.Cartoon
  153. ToggleGUI.Text = "Toggle Gui"
  154. ToggleGUI.TextColor3 = Color3.new(1, 1, 1)
  155. ToggleGUI.TextSize = 20
  156.  
  157. KillGUI.Name = "KillGUI"
  158. KillGUI.Parent = ToggleFrame
  159. KillGUI.BackgroundColor3 = Color3.new(0, 0, 0)
  160. KillGUI.BackgroundTransparency = 0.5
  161. KillGUI.BorderColor3 = Color3.new(0, 0, 1)
  162. KillGUI.Position = UDim2.new(0, 0, 0.5, 0)
  163. KillGUI.Size = UDim2.new(0, 200, 0, 50)
  164. KillGUI.Font = Enum.Font.Cartoon
  165. KillGUI.Text = "Kill Gui"
  166. KillGUI.TextColor3 = Color3.new(1, 1, 1)
  167. KillGUI.TextSize = 20
  168.  
  169. SettingsFrame.Name = "SettingsFrame"
  170. SettingsFrame.Active = true
  171. SettingsFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  172. SettingsFrame.Parent = PhantomForces
  173. SettingsFrame.BackgroundColor3 = Color3.new(0, 0, 0)
  174. SettingsFrame.BackgroundTransparency = 0.5
  175. SettingsFrame.BorderColor3 = Color3.new(0, 0, 1)
  176. SettingsFrame.BorderSizePixel = 3
  177. SettingsFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  178. SettingsFrame.Selectable = true
  179. SettingsFrame.Size = UDim2.new(0, 400, 0, 200)
  180. SettingsFrame.Visible = false
  181. SettingsFrame.Draggable = true
  182.  
  183. ESPTranAmount.Name = "ESPTranAmount"
  184. ESPTranAmount.Parent = SettingsFrame
  185. ESPTranAmount.BackgroundColor3 = Color3.new(0, 0, 0)
  186. ESPTranAmount.BackgroundTransparency = 0.5
  187. ESPTranAmount.BorderColor3 = Color3.new(0, 0, 1)
  188. ESPTranAmount.Position = UDim2.new(0.0199999996, 0, 0.300000012, 0)
  189. ESPTranAmount.Size = UDim2.new(0, 180, 0, 30)
  190. ESPTranAmount.Font = Enum.Font.Cartoon
  191. ESPTranAmount.Text = "* Number Between 0 and 1 * "
  192. ESPTranAmount.TextColor3 = Color3.new(1, 1, 1)
  193. ESPTranAmount.TextSize = 14
  194.  
  195. XRayTranAmount.Name = "XRayTranAmount"
  196. XRayTranAmount.Parent = SettingsFrame
  197. XRayTranAmount.BackgroundColor3 = Color3.new(0, 0, 0)
  198. XRayTranAmount.BackgroundTransparency = 0.5
  199. XRayTranAmount.BorderColor3 = Color3.new(0, 0, 1)
  200. XRayTranAmount.Position = UDim2.new(0.519999981, 0, 0.300000012, 0)
  201. XRayTranAmount.Size = UDim2.new(0, 180, 0, 30)
  202. XRayTranAmount.Font = Enum.Font.Cartoon
  203. XRayTranAmount.Text = "* Number Between 0 and 1 * "
  204. XRayTranAmount.TextColor3 = Color3.new(1, 1, 1)
  205. XRayTranAmount.TextSize = 14
  206.  
  207. RedAmount.Name = "RedAmount"
  208. RedAmount.Parent = SettingsFrame
  209. RedAmount.BackgroundColor3 = Color3.new(0, 0, 0)
  210. RedAmount.BackgroundTransparency = 0.5
  211. RedAmount.BorderColor3 = Color3.new(0, 0, 1)
  212. RedAmount.Position = UDim2.new(0.0199999996, 0, 0.800000012, 0)
  213. RedAmount.Size = UDim2.new(0, 120, 0, 30)
  214. RedAmount.Font = Enum.Font.Cartoon
  215. RedAmount.Text = "Red 0 - 255"
  216. RedAmount.TextColor3 = Color3.new(1, 1, 1)
  217. RedAmount.TextSize = 14
  218.  
  219. GreenAmount.Name = "GreenAmount"
  220. GreenAmount.Parent = SettingsFrame
  221. GreenAmount.AnchorPoint = Vector2.new(0.5, 0)
  222. GreenAmount.BackgroundColor3 = Color3.new(0, 0, 0)
  223. GreenAmount.BackgroundTransparency = 0.5
  224. GreenAmount.BorderColor3 = Color3.new(0, 0, 1)
  225. GreenAmount.Position = UDim2.new(0.5, 0, 0.800000012, 0)
  226. GreenAmount.Size = UDim2.new(0, 120, 0, 30)
  227. GreenAmount.Font = Enum.Font.Cartoon
  228. GreenAmount.Text = "Green 0 - 255"
  229. GreenAmount.TextColor3 = Color3.new(1, 1, 1)
  230. GreenAmount.TextSize = 14
  231.  
  232. BlueAmount.Name = "BlueAmount"
  233. BlueAmount.Parent = SettingsFrame
  234. BlueAmount.AnchorPoint = Vector2.new(1, 0)
  235. BlueAmount.BackgroundColor3 = Color3.new(0, 0, 0)
  236. BlueAmount.BackgroundTransparency = 0.5
  237. BlueAmount.BorderColor3 = Color3.new(0, 0, 1)
  238. BlueAmount.Position = UDim2.new(0.980000019, 0, 0.800000012, 0)
  239. BlueAmount.Size = UDim2.new(0, 120, 0, 30)
  240. BlueAmount.Font = Enum.Font.Cartoon
  241. BlueAmount.Text = "Blue 0 - 255"
  242. BlueAmount.TextColor3 = Color3.new(1, 1, 1)
  243. BlueAmount.TextSize = 14
  244.  
  245. SetESPColor.Name = "SetESPColor"
  246. SetESPColor.Parent = SettingsFrame
  247. SetESPColor.BackgroundColor3 = Color3.new(0, 0, 0)
  248. SetESPColor.BackgroundTransparency = 0.5
  249. SetESPColor.BorderColor3 = Color3.new(0, 0, 1)
  250. SetESPColor.Position = UDim2.new(0, 0, 0.5, 0)
  251. SetESPColor.Size = UDim2.new(0, 400, 0, 50)
  252. SetESPColor.Font = Enum.Font.Cartoon
  253. SetESPColor.Text = "Set ESP Color"
  254. SetESPColor.TextColor3 = Color3.new(1, 1, 1)
  255. SetESPColor.TextSize = 20
  256.  
  257. SetXRayTran.Name = "SetXRayTran"
  258. SetXRayTran.Parent = SettingsFrame
  259. SetXRayTran.BackgroundColor3 = Color3.new(0, 0, 0)
  260. SetXRayTran.BackgroundTransparency = 0.5
  261. SetXRayTran.BorderColor3 = Color3.new(0, 0, 1)
  262. SetXRayTran.Position = UDim2.new(0.5, 0, 0, 0)
  263. SetXRayTran.Size = UDim2.new(0, 200, 0, 50)
  264. SetXRayTran.Font = Enum.Font.Cartoon
  265. SetXRayTran.Text = "Set XRay Transparency"
  266. SetXRayTran.TextColor3 = Color3.new(1, 1, 1)
  267. SetXRayTran.TextSize = 20
  268.  
  269. SetESPTran.Name = "SetESPTran"
  270. SetESPTran.Parent = SettingsFrame
  271. SetESPTran.BackgroundColor3 = Color3.new(0, 0, 0)
  272. SetESPTran.BackgroundTransparency = 0.5
  273. SetESPTran.BorderColor3 = Color3.new(0, 0, 1)
  274. SetESPTran.Size = UDim2.new(0, 200, 0, 50)
  275. SetESPTran.Font = Enum.Font.Cartoon
  276. SetESPTran.Text = "Set ESP Transparency"
  277. SetESPTran.TextColor3 = Color3.new(1, 1, 1)
  278. SetESPTran.TextSize = 20
  279.  
  280. --Crosshair
  281.  
  282. local xline = Instance.new("TextLabel", PhantomForces)
  283. xline.Size = UDim2.new(0, 1, 0, 40)
  284. xline.BackgroundColor3 = Color3.new(255, 0, 0)
  285. xline.BorderSizePixel = 0
  286. xline.Text = ""
  287. xline.ZIndex = 10
  288. xline.Visible = false
  289.  
  290. local xline2 = Instance.new("TextLabel", PhantomForces)
  291. xline2.Size = UDim2.new(0, 1, 0, 40)
  292. xline2.BackgroundColor3 = Color3.new(255, 0, 0)
  293. xline2.BorderSizePixel = 0
  294. xline2.Text = ""
  295. xline2.ZIndex = 10
  296. xline2.Visible = false
  297.  
  298. local yline = Instance.new("TextLabel", PhantomForces)
  299. yline.Size = UDim2.new(0, 40, 0, 1)
  300. yline.BackgroundColor3 = Color3.new(255, 0, 0)
  301. yline.BorderSizePixel = 0
  302. yline.Text = ""
  303. yline.ZIndex = 10
  304. yline.Visible = false
  305.  
  306. local yline2 = Instance.new("TextLabel", PhantomForces)
  307. yline2.Size = UDim2.new(0, 40, 0, 1)
  308. yline2.BackgroundColor3 = Color3.new(255, 0, 0)
  309. yline2.BorderSizePixel = 0
  310. yline2.Text = ""
  311. yline2.ZIndex = 10
  312. yline2.Visible = false
  313.  
  314. function GetCamera()
  315. return workspace:FindFirstChildOfClass("Camera")
  316. end
  317.  
  318. local MyCam = GetCamera()
  319. local viewport = MyCam.ViewportSize
  320. local centerx = viewport.X / 2
  321. local centery = viewport.Y / 2
  322.  
  323. xline.Position = UDim2.new(0, centerx, 0, centery - 35)
  324. xline2.Position = UDim2.new(0, centerx, 0, centery - 70)
  325. yline.Position = UDim2.new(0, centerx, 0, centery - 35)
  326. yline2.Position = UDim2.new(0, centerx- 35, 0, centery - 35)
  327.  
  328. -- Settings
  329.  
  330. local red = 255
  331. local green = 0
  332. local blue = 0
  333.  
  334. local ESPColor = Color3.new(red, green, blue)
  335. local ESPTransparency = 0.4
  336.  
  337. local XRayTransparency = 0.6
  338.  
  339. -- Scripts
  340.  
  341. KillGUI.MouseButton1Click:Connect(function()
  342. game.CoreGui.PhantomForces:Destroy()
  343. end)
  344.  
  345. ToggleGUI.MouseButton1Click:Connect(function()
  346. if MainFrame.Visible == true then
  347. MainFrame.Visible = false
  348. elseif MainFrame.Visible == false then
  349. MainFrame.Visible = true
  350. end
  351. end)
  352.  
  353. Settings.MouseButton1Click:Connect(function()
  354. if SettingsFrame.Visible == false then
  355. SettingsFrame.Visible = true
  356. else
  357. SettingsFrame.Visible = false
  358. end
  359. end)
  360.  
  361. SetESPColor.MouseButton1Click:Connect(function()
  362. red = RedAmount.Text
  363. green = GreenAmount.Text
  364. blue = BlueAmount.Text
  365. ESPColor = Color3.new(red, green, blue)
  366. end)
  367.  
  368. SetESPTran.MouseButton1Click:Connect(function()
  369. ESPTransparency = ESPTranAmount.Text
  370. end)
  371.  
  372. SetXRayTran.MouseButton1Click:Connect(function()
  373. XRayTransparency = XRayTranAmount.Text
  374. end)
  375.  
  376. -- Crosshair
  377.  
  378. local crosshairenabled = false
  379.  
  380. CentralCrosshair.MouseButton1Click:Connect(function()
  381. if crosshairenabled == false then
  382. xline.Visible = true
  383. yline.Visible = true
  384. xline2.Visible = true
  385. yline2.Visible = true
  386. crosshairenabled = true
  387. CentralCrosshair.Text = "Central Crosshair: On"
  388. else
  389. xline.Visible = false
  390. yline.Visible = false
  391. xline2.Visible = false
  392. yline2.Visible = false
  393. crosshairenabled = false
  394. CentralCrosshair.Text = "Central Crosshair: Off"
  395. end
  396. end)
  397.  
  398. -- Full Brightness
  399.  
  400. brightenabled = false
  401. local Light = game:GetService("Lighting")
  402. LightingEvent = nil
  403. AmbientBackup = Light.Ambient
  404. ColorShiftBotBackup = Light.ColorShift_Bottom
  405. ColorShiftTopBackup = Light.ColorShift_Top
  406.  
  407. function Lighting()
  408. if brightenabled == true then
  409. Light.Ambient = Color3.new(1, 1, 1)
  410. Light.ColorShift_Bottom = Color3.new(1, 1, 1)
  411. Light.ColorShift_Top = Color3.new(1, 1, 1)
  412. end
  413. end
  414.  
  415. FullBright.MouseButton1Click:connect(function()
  416. brightenabled = not brightenabled
  417. if brightenabled then
  418. if LightingEvent == nil then
  419. LightingEvent = Light.Changed:connect(Lighting)
  420. end
  421. FullBright.Text = "Full Brightness: On"
  422. else
  423. Light.Ambient = AmbientBackup
  424. Light.ColorShift_Bottom = ColorShiftBotBackup
  425. Light.ColorShift_Top = ColorShiftTopBackup
  426. FullBright.Text = "Full Brightness: Off"
  427. end
  428. end)
  429.  
  430. -- Name ESP
  431.  
  432. ESPEnabled = false
  433. ESPLength = 20000
  434.  
  435. local Plrs = game:GetService("Players")
  436. local MyPlr = Plrs.LocalPlayer
  437. local MyChar = MyPlr.Character
  438. local CoreGui = game:GetService("CoreGui")
  439. local Run = game:GetService("RunService")
  440.  
  441. CharAddedEvent = { }
  442.  
  443. Plrs.PlayerAdded:connect(function(plr)
  444. if CharAddedEvent[plr.Name] == nil then
  445. CharAddedEvent[plr.Name] = plr.CharacterAdded:connect(function(char)
  446. if ESPEnabled then
  447. RemoveESP(plr)
  448. CreateESP(plr)
  449. end
  450. end)
  451. end
  452. end)
  453.  
  454. Plrs.PlayerRemoving:connect(function(plr)
  455. if CharAddedEvent[plr.Name] ~= nil then
  456. CharAddedEvent[plr.Name]:Disconnect()
  457. CharAddedEvent[plr.Name] = nil
  458. end
  459. RemoveESP(plr)
  460. end)
  461.  
  462. function CreateESP(plr)
  463. if plr ~= nil then
  464. local GetChar = plr.Character
  465. if not GetChar then return end
  466. local GetHead do
  467. repeat wait() until GetChar:FindFirstChild("Head")
  468. end
  469. GetHead = GetChar.Head
  470.  
  471. local bb = Instance.new("BillboardGui", CoreGui)
  472. bb.Adornee = GetHead
  473. bb.ExtentsOffset = Vector3.new(0, 3, 0)
  474. bb.AlwaysOnTop = true
  475. bb.Size = UDim2.new(0, 10, 0, 10)
  476. bb.StudsOffset = Vector3.new(0, 3, 0)
  477. bb.Name = "ESP_" .. plr.Name
  478.  
  479. local frame = Instance.new("Frame", bb)
  480. frame.ZIndex = 10
  481. frame.BackgroundTransparency = 1
  482. frame.Size = UDim2.new(1, 0, 1, 0)
  483.  
  484. local TxtName = Instance.new("TextLabel", frame)
  485. TxtName.Name = "Names"
  486. TxtName.ZIndex = 10
  487. TxtName.Text = plr.Name
  488. TxtName.BackgroundTransparency = 1
  489. TxtName.Position = UDim2.new(0, 0, 0, -60)
  490. TxtName.Size = UDim2.new(1, 0, 10, 0)
  491. TxtName.Font = "Impact"
  492. TxtName.TextColor3 = ESPColor
  493. TxtName.TextSize = 12
  494. TxtName.TextStrokeTransparency = 0.5
  495.  
  496. local TxtDist = Instance.new("TextLabel", frame)
  497. TxtDist.Name = "Dist"
  498. TxtDist.ZIndex = 10
  499. TxtDist.Text = ""
  500. TxtDist.BackgroundTransparency = 1
  501. TxtDist.Position = UDim2.new(0, 0, 0, -45)
  502. TxtDist.Size = UDim2.new(1, 0, 10, 0)
  503. TxtDist.Font = "Impact"
  504. TxtDist.TextColor3 = ESPColor
  505. TxtDist.TextSize = 12
  506. TxtDist.TextStrokeTransparency = 0.5
  507.  
  508. local TxtHealth = Instance.new("TextLabel", frame)
  509. TxtHealth.Name = "Health"
  510. TxtHealth.ZIndex = 10
  511. TxtHealth.Text = ""
  512. TxtHealth.BackgroundTransparency = 1
  513. TxtHealth.Position = UDim2.new(0, 0, 0, -30)
  514. TxtHealth.Size = UDim2.new(1, 0, 10, 0)
  515. TxtHealth.Font = "Impact"
  516. TxtHealth.TextColor3 = ESPColor
  517. TxtHealth.TextSize = 12
  518. TxtHealth.TextStrokeTransparency = 0.5
  519. end
  520. end
  521.  
  522. function UpdateESP(plr)
  523. local Find = CoreGui:FindFirstChild("ESP_" .. plr.Name)
  524. if Find then
  525. Find.Frame.Dist.TextColor3 = ESPColor
  526. Find.Frame.Health.TextColor3 = ESPColor
  527. local GetChar = plr.Character
  528. if MyChar and GetChar then
  529. local Find2 = MyChar:FindFirstChild("HumanoidRootPart")
  530. local Find3 = GetChar:FindFirstChild("HumanoidRootPart")
  531. local Find4 = GetChar:FindFirstChildOfClass("Humanoid")
  532. if Find2 and Find3 then
  533. local pos = Find3.Position
  534. local Dist = (Find2.Position - pos).magnitude
  535. if Dist > ESPLength then
  536. Find.Frame.Names.Visible = false
  537. Find.Frame.Dist.Visible = false
  538. Find.Frame.Health.Visible = false
  539. Find.Frame.Fist.Visible = false
  540. Find.Frame.Psychic.Visible = false
  541. return
  542. else
  543. Find.Frame.Names.Visible = true
  544. Find.Frame.Dist.Visible = true
  545. Find.Frame.Health.Visible = true
  546. Find.Frame.Fist.Visible = true
  547. Find.Frame.Psychic.Visible = true
  548. end
  549. Find.Frame.Dist.Text = "Distance: " .. string.format("%.0f", Dist)
  550. if Find4 then
  551. Find.Frame.Health.Text = "Health: " .. Find4.Health
  552.  
  553. else
  554. Find.Frame.Health.Text = ""
  555. end
  556. end
  557. end
  558. end
  559. end
  560.  
  561. function RemoveESP(plr)
  562. local ESP = CoreGui:FindFirstChild("ESP_" .. plr.Name)
  563. if ESP then
  564. ESP:Destroy()
  565. end
  566. end
  567.  
  568. Run:BindToRenderStep("UpdateESP", Enum.RenderPriority.Character.Value, function()
  569. for _, v in next, Plrs:GetPlayers() do
  570. UpdateESP(v)
  571. end
  572. end)
  573.  
  574. NameESP.MouseButton1Click:connect(function()
  575. ESPEnabled = not ESPEnabled
  576. if ESPEnabled then
  577. for _, v in next, Plrs:GetPlayers() do
  578. if v ~= MyPlr then
  579. if CharAddedEvent[v.Name] == nil then
  580. CharAddedEvent[v.Name] = v.CharacterAdded:connect(function(Char)
  581. if ESPEnabled then
  582. RemoveESP(v)
  583. CreateESP(v)
  584. end
  585. repeat wait() until Char:FindFirstChild("HumanoidRootPart")
  586. end)
  587. end
  588. RemoveESP(v)
  589. CreateESP(v)
  590. end
  591. end
  592. NameESP.Text = "Name ESP: On"
  593. else
  594. for _, v in next, Plrs:GetPlayers() do
  595. RemoveESP(v)
  596. end
  597. NameESP.Text = "Name ESP: Off"
  598. end
  599. end)
  600.  
  601. -- Block ESP
  602.  
  603. BlockESPEnabled = false
  604. ESPLength = 20000
  605.  
  606. local Plrs = game:GetService("Players")
  607. local MyPlr = Plrs.LocalPlayer
  608. local MyChar = MyPlr.Character
  609. local CoreGui = game:GetService("CoreGui")
  610. local Run = game:GetService("RunService")
  611.  
  612. CharAddedEvent = { }
  613.  
  614. Plrs.PlayerAdded:connect(function(plr)
  615. if CharAddedEvent[plr.Name] == nil then
  616. CharAddedEvent[plr.Name] = plr.CharacterAdded:connect(function(char)
  617. if ESPEnabled then
  618. RemoveBlockESP(plr)
  619. CreateBlockESP(plr)
  620. end
  621. end)
  622. end
  623. end)
  624.  
  625. Plrs.PlayerRemoving:connect(function(plr)
  626. if CharAddedEvent[plr.Name] ~= nil then
  627. CharAddedEvent[plr.Name]:Disconnect()
  628. CharAddedEvent[plr.Name] = nil
  629. end
  630. RemoveBlockESP(plr)
  631. end)
  632.  
  633. function CreateBlockESP(plr)
  634. if plr ~= nil then
  635. local GetChar = plr.Character
  636. if not GetChar then return end
  637. local GetTorso do
  638. repeat wait() until GetChar:FindFirstChild("Torso")
  639. end
  640. GetTorso = GetChar.Torso
  641.  
  642. local bb = Instance.new("BillboardGui", CoreGui)
  643. bb.Adornee = GetTorso
  644. bb.ExtentsOffset = Vector3.new(0, 3, 0)
  645. bb.AlwaysOnTop = true
  646. bb.Size = UDim2.new(4.5,0,6,0)
  647. bb.StudsOffset = Vector3.new(0,-3.5,0)
  648. bb.Name = "BlockESP_" .. plr.Name
  649.  
  650. local frame = Instance.new("Frame", bb)
  651. frame.ZIndex = 10
  652. frame.BorderSizePixel = 0
  653. frame.BackgroundColor3 = ESPColor
  654. frame.BackgroundTransparency = ESPTransparency
  655. frame.Size = UDim2.new(1, 0, 1, 0)
  656. end
  657. end
  658.  
  659. function RemoveBlockESP(plr)
  660. local ESP = CoreGui:FindFirstChild("BlockESP_" .. plr.Name)
  661. if ESP then
  662. ESP:Destroy()
  663. end
  664. end
  665.  
  666. ESP.MouseButton1Click:connect(function()
  667. BlockESPEnabled = not BlockESPEnabled
  668. if BlockESPEnabled then
  669. for _, v in next, Plrs:GetPlayers() do
  670. if v ~= MyPlr then
  671. if CharAddedEvent[v.Name] == nil then
  672. CharAddedEvent[v.Name] = v.CharacterAdded:connect(function(Char)
  673. if BlockESPEnabled then
  674. RemoveBlockESP(v)
  675. CreateBlockESP(v)
  676. end
  677. repeat wait() until Char:FindFirstChild("HumanoidRootPart")
  678. end)
  679. end
  680. RemoveBlockESP(v)
  681. CreateBlockESP(v)
  682. end
  683. end
  684. ESP.Text = "Block Player ESP: On"
  685. else
  686. for _, v in next, Plrs:GetPlayers() do
  687. RemoveBlockESP(v)
  688. end
  689. ESP.Text = "Block Player ESP: Off"
  690. end
  691. end)
  692.  
  693. -- Outline ESP
  694.  
  695. OutlineESPEnabled = false
  696. ESPLength = 20000
  697.  
  698. local Plrs = game:GetService("Players")
  699. local MyPlr = Plrs.LocalPlayer
  700. local MyChar = MyPlr.Character
  701. local CoreGui = game:GetService("CoreGui")
  702. local Run = game:GetService("RunService")
  703.  
  704. CharAddedEvent = { }
  705.  
  706. Plrs.PlayerAdded:connect(function(plr)
  707. if CharAddedEvent[plr.Name] == nil then
  708. CharAddedEvent[plr.Name] = plr.CharacterAdded:connect(function(char)
  709. if OutlineESPEnabled then
  710. RemoveOutlineESP(plr)
  711. CreateOutlineESP(plr)
  712. end
  713. end)
  714. end
  715. end)
  716.  
  717. Plrs.PlayerRemoving:connect(function(plr)
  718. if CharAddedEvent[plr.Name] ~= nil then
  719. CharAddedEvent[plr.Name]:Disconnect()
  720. CharAddedEvent[plr.Name] = nil
  721. end
  722. RemoveOutlineESP(plr)
  723. end)
  724.  
  725. function CreateOutlineESP(plr)
  726. if plr ~= nil then
  727. local GetChar = plr.Character
  728. if not GetChar then
  729. return
  730. end
  731.  
  732. local GetTorso do
  733. repeat wait() until GetChar:FindFirstChild("Torso")
  734. end
  735. GetTorso = GetChar.Torso
  736.  
  737. local GetHead do
  738. repeat wait() until GetChar:FindFirstChild("Head")
  739. end
  740. GetHead = GetChar.Head
  741.  
  742. local GetLeftArm do
  743. repeat wait() until GetChar:FindFirstChild("Left Arm")
  744. end
  745. GetLeftArm = GetChar["Left Arm"]
  746.  
  747. local GetRightArm do
  748. repeat wait() until GetChar:FindFirstChild("Right Arm")
  749. end
  750. GetRightArm = GetChar["Right Arm"]
  751.  
  752. local GetLeftLeg do
  753. repeat wait() until GetChar:FindFirstChild("Left Leg")
  754. end
  755. GetLeftLeg = GetChar["Left Leg"]
  756.  
  757. local GetRightLeg do
  758. repeat wait() until GetChar:FindFirstChild("Right Leg")
  759. end
  760. GetRightLeg = GetChar["Right Leg"]
  761.  
  762. local i=Instance.new("BillboardGui",CoreGui)
  763. i.Adornee=GetHead
  764. i.Active=true
  765. i.AlwaysOnTop=true
  766. i.Size=UDim2.new(1,0,1,0)
  767. i.Name="HeadESP_" .. plr.Name
  768.  
  769. local h=Instance.new("Frame",i)
  770. h.Size=UDim2.new(2,0,1,0)
  771. h.AnchorPoint=Vector2.new(0.25,0)
  772. h.BackgroundColor3=ESPColor
  773. h.BorderSizePixel=0
  774. h.BackgroundTransparency=ESPTransparency
  775.  
  776. local i2=Instance.new("BillboardGui",CoreGui)
  777. i2.Adornee=GetTorso
  778. i2.Active=true
  779. i2.AlwaysOnTop=true
  780. i2.Size=UDim2.new(2,0,2,0)
  781. i2.Name="TorsoESP_" .. plr.Name
  782.  
  783. local t=Instance.new("Frame",i2)
  784. t.Size=UDim2.new(1,0,1,0)
  785. t.AnchorPoint=Vector2.new(0,0)
  786. t.BackgroundColor3=ESPColor
  787. t.BorderSizePixel=0
  788. t.BackgroundTransparency=ESPTransparency
  789.  
  790. local i3=Instance.new("BillboardGui",CoreGui)
  791. i3.Adornee=GetLeftArm
  792. i3.Active=true
  793. i3.AlwaysOnTop=true
  794. i3.Size=UDim2.new(1,0,2,0)
  795. i3.Name="LeftArmESP_" .. plr.Name
  796.  
  797. local la=Instance.new("Frame",i3)
  798. la.Size=UDim2.new(1,0,1,0)
  799. la.AnchorPoint=Vector2.new(0,0)
  800. la.BackgroundColor3=ESPColor
  801. la.BorderSizePixel=0
  802. la.BackgroundTransparency=ESPTransparency
  803.  
  804. local i4=Instance.new("BillboardGui",CoreGui)
  805. i4.Adornee=GetRightArm
  806. i4.Active=true
  807. i4.AlwaysOnTop=true
  808. i4.Size=UDim2.new(1,0,2,0)
  809. i4.Name="RightArmESP_" .. plr.Name
  810.  
  811. local ra=Instance.new("Frame",i4)
  812. ra.Size=UDim2.new(1,0,1,0)
  813. ra.AnchorPoint=Vector2.new(0,0)
  814. ra.BackgroundColor3=ESPColor
  815. ra.BorderSizePixel=0
  816. ra.BackgroundTransparency=ESPTransparency
  817.  
  818. local i5=Instance.new("BillboardGui",CoreGui)
  819. i5.Adornee=GetLeftLeg
  820. i5.Active=true
  821. i5.AlwaysOnTop=true
  822. i5.Size=UDim2.new(1,0,2,0)
  823. i5.Name="LeftLegESP_" .. plr.Name
  824.  
  825. local ll=Instance.new("Frame",i5)
  826. ll.Size=UDim2.new(1,0,1,0)
  827. ll.AnchorPoint=Vector2.new(0,0)
  828. ll.BackgroundColor3=ESPColor
  829. ll.BorderSizePixel=0
  830. ll.BackgroundTransparency=ESPTransparency
  831.  
  832. local i6=Instance.new("BillboardGui",CoreGui)
  833. i6.Adornee=GetRightLeg
  834. i6.Active=true
  835. i6.AlwaysOnTop=true
  836. i6.Size=UDim2.new(1,0,2,0)
  837. i6.Name="RightLegESP_" .. plr.Name
  838.  
  839. local rl=Instance.new("Frame",i6)
  840. rl.Size=UDim2.new(1,0,1,0)
  841. rl.AnchorPoint=Vector2.new(0,0)
  842. rl.BackgroundColor3=ESPColor
  843. rl.BorderSizePixel=0
  844. rl.BackgroundTransparency=ESPTransparency
  845. end
  846. end
  847.  
  848. function RemoveOutlineESP(plr)
  849. local HeadESP = CoreGui:FindFirstChild("HeadESP_" .. plr.Name)
  850. if HeadESP then
  851. HeadESP:Destroy()
  852. end
  853.  
  854. local TorsoESP = CoreGui:FindFirstChild("TorsoESP_" .. plr.Name)
  855. if TorsoESP then
  856. TorsoESP:Destroy()
  857. end
  858.  
  859. local LeftArmESP = CoreGui:FindFirstChild("LeftArmESP_" .. plr.Name)
  860. if LeftArmESP then
  861. LeftArmESP:Destroy()
  862. end
  863.  
  864. local RightArmESP = CoreGui:FindFirstChild("RightArmESP_" .. plr.Name)
  865. if RightArmESP then
  866. RightArmESP:Destroy()
  867. end
  868.  
  869. local LeftLegESP = CoreGui:FindFirstChild("LeftLegESP_" .. plr.Name)
  870. if LeftLegESP then
  871. LeftLegESP:Destroy()
  872. end
  873.  
  874. local RightLegESP = CoreGui:FindFirstChild("RightLegESP_" .. plr.Name)
  875. if RightLegESP then
  876. RightLegESP:Destroy()
  877. end
  878. end
  879.  
  880. OutlineESP.MouseButton1Click:connect(function()
  881. OutlineESPEnabled = not OutlineESPEnabled
  882. if OutlineESPEnabled then
  883. for _, v in next, Plrs:GetPlayers() do
  884. if v ~= MyPlr then
  885. if CharAddedEvent[v.Name] == nil then
  886. CharAddedEvent[v.Name] = v.CharacterAdded:connect(function(Char)
  887. if OutlineESPEnabled then
  888. RemoveOutlineESP(v)
  889. CreateOutlineESP(v)
  890. end
  891. repeat wait() until Char:FindFirstChild("HumanoidRootPart")
  892. end)
  893. end
  894. RemoveOutlineESP(v)
  895. CreateOutlineESP(v)
  896. end
  897. end
  898. OutlineESP.Text = "Outline Player ESP: On"
  899. else
  900. for _, v in next, Plrs:GetPlayers() do
  901. RemoveOutlineESP(v)
  902. end
  903. OutlineESP.Text = "Outline Player ESP: Off"
  904. end
  905. end)
  906.  
  907. -- XRay
  908.  
  909. Xray = false
  910. obj = game.workspace
  911.  
  912. function XrayOn(obj)
  913. for _,v in pairs(obj:GetChildren()) do
  914. if (v:IsA("BasePart")) and not v.Parent:FindFirstChild("Humanoid") then
  915. v.LocalTransparencyModifier = XRayTransparency
  916. end
  917. XrayOn(v)
  918. end
  919. end
  920.  
  921. function XrayOff(obj)
  922. for _,v in pairs(obj:GetChildren()) do
  923. if (v:IsA("BasePart")) and not v.Parent:FindFirstChild("Humanoid") then
  924. v.LocalTransparencyModifier = 0
  925. end XrayOff(v)
  926. end
  927. end
  928.  
  929. XRay.MouseButton1Click:Connect(function()
  930. if Xray == false then
  931. Xray = true
  932. XrayOn(obj)
  933. XRay.Text = "X-Ray: On"
  934. else
  935. Xray = false
  936. XrayOff(obj)
  937. XRay.Text = "X-Ray: Off"
  938. end
  939. end)
  940.  
  941. -- NoClip
  942.  
  943. local Players = game:GetService("Players")
  944. local Plr = Players.LocalPlayer
  945. local Clipon = false
  946.  
  947. NoClip.MouseButton1Click:connect(function()
  948. if NoClip.Text=="NoClip: Off" then
  949. Clipon=true
  950. NoClip.Text="NoClip: On"
  951. Stepped=game:GetService("RunService").Stepped:Connect(function()
  952. if not Clipon==false then
  953. for a,b in pairs(game.Workspace:GetChildren())do
  954. if b.Name==Plr.Name then
  955. for c,d in pairs(game.Workspace[Plr.Name]:GetChildren())do
  956. if d:IsA("BasePart")then
  957. d.CanCollide=false
  958. end
  959. end
  960. end
  961. end
  962. else Stepped:Disconnect()
  963. end
  964. end)
  965. elseif NoClip.Text=="NoClip: On" then Clipon=false
  966. NoClip.Text="NoClip: Off"
  967. end
  968. end)
Add Comment
Please, Sign In to add comment