Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Instances
- local PhantomForces = Instance.new("ScreenGui")
- local MainFrame = Instance.new("Frame")
- local ESP = Instance.new("TextButton")
- local NameESP = Instance.new("TextButton")
- local OutlineESP = Instance.new("TextButton")
- local XRay = Instance.new("TextButton")
- local FullBright = Instance.new("TextButton")
- local NoClip = Instance.new("TextButton")
- local CentralCrosshair = Instance.new("TextButton")
- local Settings = Instance.new("TextButton")
- local ToggleFrame = Instance.new("Frame")
- local ToggleGUI = Instance.new("TextButton")
- local KillGUI = Instance.new("TextButton")
- local SettingsFrame = Instance.new("Frame")
- local ESPTranAmount = Instance.new("TextBox")
- local XRayTranAmount = Instance.new("TextBox")
- local RedAmount = Instance.new("TextBox")
- local GreenAmount = Instance.new("TextBox")
- local BlueAmount = Instance.new("TextBox")
- local SetESPColor = Instance.new("TextButton")
- local SetXRayTran = Instance.new("TextButton")
- local SetESPTran = Instance.new("TextButton")
- --Properties
- PhantomForces.Name = "PhantomForces"
- PhantomForces.Parent = game.CoreGui
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = PhantomForces
- MainFrame.AnchorPoint = Vector2.new(0, 0.5)
- MainFrame.BackgroundColor3 = Color3.new(0, 0, 0)
- MainFrame.BackgroundTransparency = 0.5
- MainFrame.BorderColor3 = Color3.new(0, 0, 1)
- MainFrame.BorderSizePixel = 3
- MainFrame.Position = UDim2.new(0.00499999989, 0, 0.5, 0)
- MainFrame.Size = UDim2.new(0, 200, 0, 400)
- ESP.Name = "ESP"
- ESP.Parent = MainFrame
- ESP.BackgroundColor3 = Color3.new(0, 0, 0)
- ESP.BackgroundTransparency = 0.5
- ESP.BorderColor3 = Color3.new(0, 0, 1)
- ESP.Size = UDim2.new(0, 200, 0, 50)
- ESP.Font = Enum.Font.Cartoon
- ESP.Text = "Block Player ESP: Off"
- ESP.TextColor3 = Color3.new(1, 1, 1)
- ESP.TextSize = 20
- NameESP.Name = "NameESP"
- NameESP.Parent = MainFrame
- NameESP.BackgroundColor3 = Color3.new(0, 0, 0)
- NameESP.BackgroundTransparency = 0.5
- NameESP.BorderColor3 = Color3.new(0, 0, 1)
- NameESP.Position = UDim2.new(0, 0, 0.125, 0)
- NameESP.Size = UDim2.new(0, 200, 0, 50)
- NameESP.Font = Enum.Font.Cartoon
- NameESP.Text = "Name ESP: Off"
- NameESP.TextColor3 = Color3.new(1, 1, 1)
- NameESP.TextSize = 20
- OutlineESP.Name = "OutlineESP"
- OutlineESP.Parent = MainFrame
- OutlineESP.BackgroundColor3 = Color3.new(0, 0, 0)
- OutlineESP.BackgroundTransparency = 0.5
- OutlineESP.BorderColor3 = Color3.new(0, 0, 1)
- OutlineESP.Position = UDim2.new(0, 0, 0.25, 0)
- OutlineESP.Size = UDim2.new(0, 200, 0, 50)
- OutlineESP.Font = Enum.Font.Cartoon
- OutlineESP.Text = "Player Outline ESP: Off"
- OutlineESP.TextColor3 = Color3.new(1, 1, 1)
- OutlineESP.TextSize = 20
- XRay.Name = "XRay"
- XRay.Parent = MainFrame
- XRay.BackgroundColor3 = Color3.new(0, 0, 0)
- XRay.BackgroundTransparency = 0.5
- XRay.BorderColor3 = Color3.new(0, 0, 1)
- XRay.Position = UDim2.new(0, 0, 0.375, 0)
- XRay.Size = UDim2.new(0, 200, 0, 50)
- XRay.Font = Enum.Font.Cartoon
- XRay.Text = "X-Ray: Off"
- XRay.TextColor3 = Color3.new(1, 1, 1)
- XRay.TextSize = 20
- FullBright.Name = "FullBright"
- FullBright.Parent = MainFrame
- FullBright.BackgroundColor3 = Color3.new(0, 0, 0)
- FullBright.BackgroundTransparency = 0.5
- FullBright.BorderColor3 = Color3.new(0, 0, 1)
- FullBright.Position = UDim2.new(0, 0, 0.5, 0)
- FullBright.Size = UDim2.new(0, 200, 0, 50)
- FullBright.Font = Enum.Font.Cartoon
- FullBright.Text = "Full Brightness: Off"
- FullBright.TextColor3 = Color3.new(1, 1, 1)
- FullBright.TextSize = 20
- NoClip.Name = "NoClip"
- NoClip.Parent = MainFrame
- NoClip.BackgroundColor3 = Color3.new(0, 0, 0)
- NoClip.BackgroundTransparency = 0.5
- NoClip.BorderColor3 = Color3.new(0, 0, 1)
- NoClip.Position = UDim2.new(0, 0, 0.625, 0)
- NoClip.Size = UDim2.new(0, 200, 0, 50)
- NoClip.Font = Enum.Font.Cartoon
- NoClip.Text = "NoClip: Off"
- NoClip.TextColor3 = Color3.new(1, 1, 1)
- NoClip.TextSize = 20
- CentralCrosshair.Name = "CentralCrosshair"
- CentralCrosshair.Parent = MainFrame
- CentralCrosshair.BackgroundColor3 = Color3.new(0, 0, 0)
- CentralCrosshair.BackgroundTransparency = 0.5
- CentralCrosshair.BorderColor3 = Color3.new(0, 0, 1)
- CentralCrosshair.Position = UDim2.new(0, 0, 0.75, 0)
- CentralCrosshair.Size = UDim2.new(0, 200, 0, 50)
- CentralCrosshair.Font = Enum.Font.Cartoon
- CentralCrosshair.Text = "Central Crosshair: Off"
- CentralCrosshair.TextColor3 = Color3.new(1, 1, 1)
- CentralCrosshair.TextSize = 20
- Settings.Name = "Settings"
- Settings.Parent = MainFrame
- Settings.BackgroundColor3 = Color3.new(0, 0, 0)
- Settings.BackgroundTransparency = 0.5
- Settings.BorderColor3 = Color3.new(0, 0, 1)
- Settings.Position = UDim2.new(0, 0, 0.875, 0)
- Settings.Size = UDim2.new(0, 200, 0, 50)
- Settings.Font = Enum.Font.Cartoon
- Settings.Text = "Settings"
- Settings.TextColor3 = Color3.new(1, 1, 1)
- Settings.TextSize = 20
- ToggleFrame.Name = "ToggleFrame"
- ToggleFrame.Parent = PhantomForces
- ToggleFrame.AnchorPoint = Vector2.new(0, 1)
- ToggleFrame.BackgroundColor3 = Color3.new(0, 0, 0)
- ToggleFrame.BackgroundTransparency = 0.5
- ToggleFrame.BorderColor3 = Color3.new(0, 0, 1)
- ToggleFrame.BorderSizePixel = 3
- ToggleFrame.Position = UDim2.new(0.00499999989, 0, 1, 0)
- ToggleFrame.Size = UDim2.new(0, 200, 0, 100)
- ToggleGUI.Name = "ToggleGUI"
- ToggleGUI.Parent = ToggleFrame
- ToggleGUI.BackgroundColor3 = Color3.new(0, 0, 0)
- ToggleGUI.BackgroundTransparency = 0.5
- ToggleGUI.BorderColor3 = Color3.new(0, 0, 1)
- ToggleGUI.Size = UDim2.new(0, 200, 0, 50)
- ToggleGUI.Font = Enum.Font.Cartoon
- ToggleGUI.Text = "Toggle Gui"
- ToggleGUI.TextColor3 = Color3.new(1, 1, 1)
- ToggleGUI.TextSize = 20
- KillGUI.Name = "KillGUI"
- KillGUI.Parent = ToggleFrame
- KillGUI.BackgroundColor3 = Color3.new(0, 0, 0)
- KillGUI.BackgroundTransparency = 0.5
- KillGUI.BorderColor3 = Color3.new(0, 0, 1)
- KillGUI.Position = UDim2.new(0, 0, 0.5, 0)
- KillGUI.Size = UDim2.new(0, 200, 0, 50)
- KillGUI.Font = Enum.Font.Cartoon
- KillGUI.Text = "Kill Gui"
- KillGUI.TextColor3 = Color3.new(1, 1, 1)
- KillGUI.TextSize = 20
- SettingsFrame.Name = "SettingsFrame"
- SettingsFrame.Active = true
- SettingsFrame.AnchorPoint = Vector2.new(0.5, 0.5)
- SettingsFrame.Parent = PhantomForces
- SettingsFrame.BackgroundColor3 = Color3.new(0, 0, 0)
- SettingsFrame.BackgroundTransparency = 0.5
- SettingsFrame.BorderColor3 = Color3.new(0, 0, 1)
- SettingsFrame.BorderSizePixel = 3
- SettingsFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
- SettingsFrame.Selectable = true
- SettingsFrame.Size = UDim2.new(0, 400, 0, 200)
- SettingsFrame.Visible = false
- SettingsFrame.Draggable = true
- ESPTranAmount.Name = "ESPTranAmount"
- ESPTranAmount.Parent = SettingsFrame
- ESPTranAmount.BackgroundColor3 = Color3.new(0, 0, 0)
- ESPTranAmount.BackgroundTransparency = 0.5
- ESPTranAmount.BorderColor3 = Color3.new(0, 0, 1)
- ESPTranAmount.Position = UDim2.new(0.0199999996, 0, 0.300000012, 0)
- ESPTranAmount.Size = UDim2.new(0, 180, 0, 30)
- ESPTranAmount.Font = Enum.Font.Cartoon
- ESPTranAmount.Text = "* Number Between 0 and 1 * "
- ESPTranAmount.TextColor3 = Color3.new(1, 1, 1)
- ESPTranAmount.TextSize = 14
- XRayTranAmount.Name = "XRayTranAmount"
- XRayTranAmount.Parent = SettingsFrame
- XRayTranAmount.BackgroundColor3 = Color3.new(0, 0, 0)
- XRayTranAmount.BackgroundTransparency = 0.5
- XRayTranAmount.BorderColor3 = Color3.new(0, 0, 1)
- XRayTranAmount.Position = UDim2.new(0.519999981, 0, 0.300000012, 0)
- XRayTranAmount.Size = UDim2.new(0, 180, 0, 30)
- XRayTranAmount.Font = Enum.Font.Cartoon
- XRayTranAmount.Text = "* Number Between 0 and 1 * "
- XRayTranAmount.TextColor3 = Color3.new(1, 1, 1)
- XRayTranAmount.TextSize = 14
- RedAmount.Name = "RedAmount"
- RedAmount.Parent = SettingsFrame
- RedAmount.BackgroundColor3 = Color3.new(0, 0, 0)
- RedAmount.BackgroundTransparency = 0.5
- RedAmount.BorderColor3 = Color3.new(0, 0, 1)
- RedAmount.Position = UDim2.new(0.0199999996, 0, 0.800000012, 0)
- RedAmount.Size = UDim2.new(0, 120, 0, 30)
- RedAmount.Font = Enum.Font.Cartoon
- RedAmount.Text = "Red 0 - 255"
- RedAmount.TextColor3 = Color3.new(1, 1, 1)
- RedAmount.TextSize = 14
- GreenAmount.Name = "GreenAmount"
- GreenAmount.Parent = SettingsFrame
- GreenAmount.AnchorPoint = Vector2.new(0.5, 0)
- GreenAmount.BackgroundColor3 = Color3.new(0, 0, 0)
- GreenAmount.BackgroundTransparency = 0.5
- GreenAmount.BorderColor3 = Color3.new(0, 0, 1)
- GreenAmount.Position = UDim2.new(0.5, 0, 0.800000012, 0)
- GreenAmount.Size = UDim2.new(0, 120, 0, 30)
- GreenAmount.Font = Enum.Font.Cartoon
- GreenAmount.Text = "Green 0 - 255"
- GreenAmount.TextColor3 = Color3.new(1, 1, 1)
- GreenAmount.TextSize = 14
- BlueAmount.Name = "BlueAmount"
- BlueAmount.Parent = SettingsFrame
- BlueAmount.AnchorPoint = Vector2.new(1, 0)
- BlueAmount.BackgroundColor3 = Color3.new(0, 0, 0)
- BlueAmount.BackgroundTransparency = 0.5
- BlueAmount.BorderColor3 = Color3.new(0, 0, 1)
- BlueAmount.Position = UDim2.new(0.980000019, 0, 0.800000012, 0)
- BlueAmount.Size = UDim2.new(0, 120, 0, 30)
- BlueAmount.Font = Enum.Font.Cartoon
- BlueAmount.Text = "Blue 0 - 255"
- BlueAmount.TextColor3 = Color3.new(1, 1, 1)
- BlueAmount.TextSize = 14
- SetESPColor.Name = "SetESPColor"
- SetESPColor.Parent = SettingsFrame
- SetESPColor.BackgroundColor3 = Color3.new(0, 0, 0)
- SetESPColor.BackgroundTransparency = 0.5
- SetESPColor.BorderColor3 = Color3.new(0, 0, 1)
- SetESPColor.Position = UDim2.new(0, 0, 0.5, 0)
- SetESPColor.Size = UDim2.new(0, 400, 0, 50)
- SetESPColor.Font = Enum.Font.Cartoon
- SetESPColor.Text = "Set ESP Color"
- SetESPColor.TextColor3 = Color3.new(1, 1, 1)
- SetESPColor.TextSize = 20
- SetXRayTran.Name = "SetXRayTran"
- SetXRayTran.Parent = SettingsFrame
- SetXRayTran.BackgroundColor3 = Color3.new(0, 0, 0)
- SetXRayTran.BackgroundTransparency = 0.5
- SetXRayTran.BorderColor3 = Color3.new(0, 0, 1)
- SetXRayTran.Position = UDim2.new(0.5, 0, 0, 0)
- SetXRayTran.Size = UDim2.new(0, 200, 0, 50)
- SetXRayTran.Font = Enum.Font.Cartoon
- SetXRayTran.Text = "Set XRay Transparency"
- SetXRayTran.TextColor3 = Color3.new(1, 1, 1)
- SetXRayTran.TextSize = 20
- SetESPTran.Name = "SetESPTran"
- SetESPTran.Parent = SettingsFrame
- SetESPTran.BackgroundColor3 = Color3.new(0, 0, 0)
- SetESPTran.BackgroundTransparency = 0.5
- SetESPTran.BorderColor3 = Color3.new(0, 0, 1)
- SetESPTran.Size = UDim2.new(0, 200, 0, 50)
- SetESPTran.Font = Enum.Font.Cartoon
- SetESPTran.Text = "Set ESP Transparency"
- SetESPTran.TextColor3 = Color3.new(1, 1, 1)
- SetESPTran.TextSize = 20
- --Crosshair
- local xline = Instance.new("TextLabel", PhantomForces)
- xline.Size = UDim2.new(0, 1, 0, 40)
- xline.BackgroundColor3 = Color3.new(255, 0, 0)
- xline.BorderSizePixel = 0
- xline.Text = ""
- xline.ZIndex = 10
- xline.Visible = false
- local xline2 = Instance.new("TextLabel", PhantomForces)
- xline2.Size = UDim2.new(0, 1, 0, 40)
- xline2.BackgroundColor3 = Color3.new(255, 0, 0)
- xline2.BorderSizePixel = 0
- xline2.Text = ""
- xline2.ZIndex = 10
- xline2.Visible = false
- local yline = Instance.new("TextLabel", PhantomForces)
- yline.Size = UDim2.new(0, 40, 0, 1)
- yline.BackgroundColor3 = Color3.new(255, 0, 0)
- yline.BorderSizePixel = 0
- yline.Text = ""
- yline.ZIndex = 10
- yline.Visible = false
- local yline2 = Instance.new("TextLabel", PhantomForces)
- yline2.Size = UDim2.new(0, 40, 0, 1)
- yline2.BackgroundColor3 = Color3.new(255, 0, 0)
- yline2.BorderSizePixel = 0
- yline2.Text = ""
- yline2.ZIndex = 10
- yline2.Visible = false
- function GetCamera()
- return workspace:FindFirstChildOfClass("Camera")
- end
- local MyCam = GetCamera()
- local viewport = MyCam.ViewportSize
- local centerx = viewport.X / 2
- local centery = viewport.Y / 2
- xline.Position = UDim2.new(0, centerx, 0, centery - 35)
- xline2.Position = UDim2.new(0, centerx, 0, centery - 70)
- yline.Position = UDim2.new(0, centerx, 0, centery - 35)
- yline2.Position = UDim2.new(0, centerx- 35, 0, centery - 35)
- -- Settings
- local red = 255
- local green = 0
- local blue = 0
- local ESPColor = Color3.new(red, green, blue)
- local ESPTransparency = 0.4
- local XRayTransparency = 0.6
- -- Scripts
- KillGUI.MouseButton1Click:Connect(function()
- game.CoreGui.PhantomForces:Destroy()
- end)
- ToggleGUI.MouseButton1Click:Connect(function()
- if MainFrame.Visible == true then
- MainFrame.Visible = false
- elseif MainFrame.Visible == false then
- MainFrame.Visible = true
- end
- end)
- Settings.MouseButton1Click:Connect(function()
- if SettingsFrame.Visible == false then
- SettingsFrame.Visible = true
- else
- SettingsFrame.Visible = false
- end
- end)
- SetESPColor.MouseButton1Click:Connect(function()
- red = RedAmount.Text
- green = GreenAmount.Text
- blue = BlueAmount.Text
- ESPColor = Color3.new(red, green, blue)
- end)
- SetESPTran.MouseButton1Click:Connect(function()
- ESPTransparency = ESPTranAmount.Text
- end)
- SetXRayTran.MouseButton1Click:Connect(function()
- XRayTransparency = XRayTranAmount.Text
- end)
- -- Crosshair
- local crosshairenabled = false
- CentralCrosshair.MouseButton1Click:Connect(function()
- if crosshairenabled == false then
- xline.Visible = true
- yline.Visible = true
- xline2.Visible = true
- yline2.Visible = true
- crosshairenabled = true
- CentralCrosshair.Text = "Central Crosshair: On"
- else
- xline.Visible = false
- yline.Visible = false
- xline2.Visible = false
- yline2.Visible = false
- crosshairenabled = false
- CentralCrosshair.Text = "Central Crosshair: Off"
- end
- end)
- -- Full Brightness
- brightenabled = false
- local Light = game:GetService("Lighting")
- LightingEvent = nil
- AmbientBackup = Light.Ambient
- ColorShiftBotBackup = Light.ColorShift_Bottom
- ColorShiftTopBackup = Light.ColorShift_Top
- function Lighting()
- if brightenabled == true then
- Light.Ambient = Color3.new(1, 1, 1)
- Light.ColorShift_Bottom = Color3.new(1, 1, 1)
- Light.ColorShift_Top = Color3.new(1, 1, 1)
- end
- end
- FullBright.MouseButton1Click:connect(function()
- brightenabled = not brightenabled
- if brightenabled then
- if LightingEvent == nil then
- LightingEvent = Light.Changed:connect(Lighting)
- end
- FullBright.Text = "Full Brightness: On"
- else
- Light.Ambient = AmbientBackup
- Light.ColorShift_Bottom = ColorShiftBotBackup
- Light.ColorShift_Top = ColorShiftTopBackup
- FullBright.Text = "Full Brightness: Off"
- end
- end)
- -- Name ESP
- ESPEnabled = false
- ESPLength = 20000
- local Plrs = game:GetService("Players")
- local MyPlr = Plrs.LocalPlayer
- local MyChar = MyPlr.Character
- local CoreGui = game:GetService("CoreGui")
- local Run = game:GetService("RunService")
- CharAddedEvent = { }
- Plrs.PlayerAdded:connect(function(plr)
- if CharAddedEvent[plr.Name] == nil then
- CharAddedEvent[plr.Name] = plr.CharacterAdded:connect(function(char)
- if ESPEnabled then
- RemoveESP(plr)
- CreateESP(plr)
- end
- end)
- end
- end)
- Plrs.PlayerRemoving:connect(function(plr)
- if CharAddedEvent[plr.Name] ~= nil then
- CharAddedEvent[plr.Name]:Disconnect()
- CharAddedEvent[plr.Name] = nil
- end
- RemoveESP(plr)
- end)
- function CreateESP(plr)
- if plr ~= nil then
- local GetChar = plr.Character
- if not GetChar then return end
- local GetHead do
- repeat wait() until GetChar:FindFirstChild("Head")
- end
- GetHead = GetChar.Head
- local bb = Instance.new("BillboardGui", CoreGui)
- bb.Adornee = GetHead
- bb.ExtentsOffset = Vector3.new(0, 3, 0)
- bb.AlwaysOnTop = true
- bb.Size = UDim2.new(0, 10, 0, 10)
- bb.StudsOffset = Vector3.new(0, 3, 0)
- bb.Name = "ESP_" .. plr.Name
- local frame = Instance.new("Frame", bb)
- frame.ZIndex = 10
- frame.BackgroundTransparency = 1
- frame.Size = UDim2.new(1, 0, 1, 0)
- local TxtName = Instance.new("TextLabel", frame)
- TxtName.Name = "Names"
- TxtName.ZIndex = 10
- TxtName.Text = plr.Name
- TxtName.BackgroundTransparency = 1
- TxtName.Position = UDim2.new(0, 0, 0, -60)
- TxtName.Size = UDim2.new(1, 0, 10, 0)
- TxtName.Font = "Impact"
- TxtName.TextColor3 = ESPColor
- TxtName.TextSize = 12
- TxtName.TextStrokeTransparency = 0.5
- local TxtDist = Instance.new("TextLabel", frame)
- TxtDist.Name = "Dist"
- TxtDist.ZIndex = 10
- TxtDist.Text = ""
- TxtDist.BackgroundTransparency = 1
- TxtDist.Position = UDim2.new(0, 0, 0, -45)
- TxtDist.Size = UDim2.new(1, 0, 10, 0)
- TxtDist.Font = "Impact"
- TxtDist.TextColor3 = ESPColor
- TxtDist.TextSize = 12
- TxtDist.TextStrokeTransparency = 0.5
- local TxtHealth = Instance.new("TextLabel", frame)
- TxtHealth.Name = "Health"
- TxtHealth.ZIndex = 10
- TxtHealth.Text = ""
- TxtHealth.BackgroundTransparency = 1
- TxtHealth.Position = UDim2.new(0, 0, 0, -30)
- TxtHealth.Size = UDim2.new(1, 0, 10, 0)
- TxtHealth.Font = "Impact"
- TxtHealth.TextColor3 = ESPColor
- TxtHealth.TextSize = 12
- TxtHealth.TextStrokeTransparency = 0.5
- end
- end
- function UpdateESP(plr)
- local Find = CoreGui:FindFirstChild("ESP_" .. plr.Name)
- if Find then
- Find.Frame.Dist.TextColor3 = ESPColor
- Find.Frame.Health.TextColor3 = ESPColor
- local GetChar = plr.Character
- if MyChar and GetChar then
- local Find2 = MyChar:FindFirstChild("HumanoidRootPart")
- local Find3 = GetChar:FindFirstChild("HumanoidRootPart")
- local Find4 = GetChar:FindFirstChildOfClass("Humanoid")
- if Find2 and Find3 then
- local pos = Find3.Position
- local Dist = (Find2.Position - pos).magnitude
- if Dist > ESPLength then
- Find.Frame.Names.Visible = false
- Find.Frame.Dist.Visible = false
- Find.Frame.Health.Visible = false
- Find.Frame.Fist.Visible = false
- Find.Frame.Psychic.Visible = false
- return
- else
- Find.Frame.Names.Visible = true
- Find.Frame.Dist.Visible = true
- Find.Frame.Health.Visible = true
- Find.Frame.Fist.Visible = true
- Find.Frame.Psychic.Visible = true
- end
- Find.Frame.Dist.Text = "Distance: " .. string.format("%.0f", Dist)
- if Find4 then
- Find.Frame.Health.Text = "Health: " .. Find4.Health
- else
- Find.Frame.Health.Text = ""
- end
- end
- end
- end
- end
- function RemoveESP(plr)
- local ESP = CoreGui:FindFirstChild("ESP_" .. plr.Name)
- if ESP then
- ESP:Destroy()
- end
- end
- Run:BindToRenderStep("UpdateESP", Enum.RenderPriority.Character.Value, function()
- for _, v in next, Plrs:GetPlayers() do
- UpdateESP(v)
- end
- end)
- NameESP.MouseButton1Click:connect(function()
- ESPEnabled = not ESPEnabled
- if ESPEnabled then
- for _, v in next, Plrs:GetPlayers() do
- if v ~= MyPlr then
- if CharAddedEvent[v.Name] == nil then
- CharAddedEvent[v.Name] = v.CharacterAdded:connect(function(Char)
- if ESPEnabled then
- RemoveESP(v)
- CreateESP(v)
- end
- repeat wait() until Char:FindFirstChild("HumanoidRootPart")
- end)
- end
- RemoveESP(v)
- CreateESP(v)
- end
- end
- NameESP.Text = "Name ESP: On"
- else
- for _, v in next, Plrs:GetPlayers() do
- RemoveESP(v)
- end
- NameESP.Text = "Name ESP: Off"
- end
- end)
- -- Block ESP
- BlockESPEnabled = false
- ESPLength = 20000
- local Plrs = game:GetService("Players")
- local MyPlr = Plrs.LocalPlayer
- local MyChar = MyPlr.Character
- local CoreGui = game:GetService("CoreGui")
- local Run = game:GetService("RunService")
- CharAddedEvent = { }
- Plrs.PlayerAdded:connect(function(plr)
- if CharAddedEvent[plr.Name] == nil then
- CharAddedEvent[plr.Name] = plr.CharacterAdded:connect(function(char)
- if ESPEnabled then
- RemoveBlockESP(plr)
- CreateBlockESP(plr)
- end
- end)
- end
- end)
- Plrs.PlayerRemoving:connect(function(plr)
- if CharAddedEvent[plr.Name] ~= nil then
- CharAddedEvent[plr.Name]:Disconnect()
- CharAddedEvent[plr.Name] = nil
- end
- RemoveBlockESP(plr)
- end)
- function CreateBlockESP(plr)
- if plr ~= nil then
- local GetChar = plr.Character
- if not GetChar then return end
- local GetTorso do
- repeat wait() until GetChar:FindFirstChild("Torso")
- end
- GetTorso = GetChar.Torso
- local bb = Instance.new("BillboardGui", CoreGui)
- bb.Adornee = GetTorso
- bb.ExtentsOffset = Vector3.new(0, 3, 0)
- bb.AlwaysOnTop = true
- bb.Size = UDim2.new(4.5,0,6,0)
- bb.StudsOffset = Vector3.new(0,-3.5,0)
- bb.Name = "BlockESP_" .. plr.Name
- local frame = Instance.new("Frame", bb)
- frame.ZIndex = 10
- frame.BorderSizePixel = 0
- frame.BackgroundColor3 = ESPColor
- frame.BackgroundTransparency = ESPTransparency
- frame.Size = UDim2.new(1, 0, 1, 0)
- end
- end
- function RemoveBlockESP(plr)
- local ESP = CoreGui:FindFirstChild("BlockESP_" .. plr.Name)
- if ESP then
- ESP:Destroy()
- end
- end
- ESP.MouseButton1Click:connect(function()
- BlockESPEnabled = not BlockESPEnabled
- if BlockESPEnabled then
- for _, v in next, Plrs:GetPlayers() do
- if v ~= MyPlr then
- if CharAddedEvent[v.Name] == nil then
- CharAddedEvent[v.Name] = v.CharacterAdded:connect(function(Char)
- if BlockESPEnabled then
- RemoveBlockESP(v)
- CreateBlockESP(v)
- end
- repeat wait() until Char:FindFirstChild("HumanoidRootPart")
- end)
- end
- RemoveBlockESP(v)
- CreateBlockESP(v)
- end
- end
- ESP.Text = "Block Player ESP: On"
- else
- for _, v in next, Plrs:GetPlayers() do
- RemoveBlockESP(v)
- end
- ESP.Text = "Block Player ESP: Off"
- end
- end)
- -- Outline ESP
- OutlineESPEnabled = false
- ESPLength = 20000
- local Plrs = game:GetService("Players")
- local MyPlr = Plrs.LocalPlayer
- local MyChar = MyPlr.Character
- local CoreGui = game:GetService("CoreGui")
- local Run = game:GetService("RunService")
- CharAddedEvent = { }
- Plrs.PlayerAdded:connect(function(plr)
- if CharAddedEvent[plr.Name] == nil then
- CharAddedEvent[plr.Name] = plr.CharacterAdded:connect(function(char)
- if OutlineESPEnabled then
- RemoveOutlineESP(plr)
- CreateOutlineESP(plr)
- end
- end)
- end
- end)
- Plrs.PlayerRemoving:connect(function(plr)
- if CharAddedEvent[plr.Name] ~= nil then
- CharAddedEvent[plr.Name]:Disconnect()
- CharAddedEvent[plr.Name] = nil
- end
- RemoveOutlineESP(plr)
- end)
- function CreateOutlineESP(plr)
- if plr ~= nil then
- local GetChar = plr.Character
- if not GetChar then
- return
- end
- local GetTorso do
- repeat wait() until GetChar:FindFirstChild("Torso")
- end
- GetTorso = GetChar.Torso
- local GetHead do
- repeat wait() until GetChar:FindFirstChild("Head")
- end
- GetHead = GetChar.Head
- local GetLeftArm do
- repeat wait() until GetChar:FindFirstChild("Left Arm")
- end
- GetLeftArm = GetChar["Left Arm"]
- local GetRightArm do
- repeat wait() until GetChar:FindFirstChild("Right Arm")
- end
- GetRightArm = GetChar["Right Arm"]
- local GetLeftLeg do
- repeat wait() until GetChar:FindFirstChild("Left Leg")
- end
- GetLeftLeg = GetChar["Left Leg"]
- local GetRightLeg do
- repeat wait() until GetChar:FindFirstChild("Right Leg")
- end
- GetRightLeg = GetChar["Right Leg"]
- local i=Instance.new("BillboardGui",CoreGui)
- i.Adornee=GetHead
- i.Active=true
- i.AlwaysOnTop=true
- i.Size=UDim2.new(1,0,1,0)
- i.Name="HeadESP_" .. plr.Name
- local h=Instance.new("Frame",i)
- h.Size=UDim2.new(2,0,1,0)
- h.AnchorPoint=Vector2.new(0.25,0)
- h.BackgroundColor3=ESPColor
- h.BorderSizePixel=0
- h.BackgroundTransparency=ESPTransparency
- local i2=Instance.new("BillboardGui",CoreGui)
- i2.Adornee=GetTorso
- i2.Active=true
- i2.AlwaysOnTop=true
- i2.Size=UDim2.new(2,0,2,0)
- i2.Name="TorsoESP_" .. plr.Name
- local t=Instance.new("Frame",i2)
- t.Size=UDim2.new(1,0,1,0)
- t.AnchorPoint=Vector2.new(0,0)
- t.BackgroundColor3=ESPColor
- t.BorderSizePixel=0
- t.BackgroundTransparency=ESPTransparency
- local i3=Instance.new("BillboardGui",CoreGui)
- i3.Adornee=GetLeftArm
- i3.Active=true
- i3.AlwaysOnTop=true
- i3.Size=UDim2.new(1,0,2,0)
- i3.Name="LeftArmESP_" .. plr.Name
- local la=Instance.new("Frame",i3)
- la.Size=UDim2.new(1,0,1,0)
- la.AnchorPoint=Vector2.new(0,0)
- la.BackgroundColor3=ESPColor
- la.BorderSizePixel=0
- la.BackgroundTransparency=ESPTransparency
- local i4=Instance.new("BillboardGui",CoreGui)
- i4.Adornee=GetRightArm
- i4.Active=true
- i4.AlwaysOnTop=true
- i4.Size=UDim2.new(1,0,2,0)
- i4.Name="RightArmESP_" .. plr.Name
- local ra=Instance.new("Frame",i4)
- ra.Size=UDim2.new(1,0,1,0)
- ra.AnchorPoint=Vector2.new(0,0)
- ra.BackgroundColor3=ESPColor
- ra.BorderSizePixel=0
- ra.BackgroundTransparency=ESPTransparency
- local i5=Instance.new("BillboardGui",CoreGui)
- i5.Adornee=GetLeftLeg
- i5.Active=true
- i5.AlwaysOnTop=true
- i5.Size=UDim2.new(1,0,2,0)
- i5.Name="LeftLegESP_" .. plr.Name
- local ll=Instance.new("Frame",i5)
- ll.Size=UDim2.new(1,0,1,0)
- ll.AnchorPoint=Vector2.new(0,0)
- ll.BackgroundColor3=ESPColor
- ll.BorderSizePixel=0
- ll.BackgroundTransparency=ESPTransparency
- local i6=Instance.new("BillboardGui",CoreGui)
- i6.Adornee=GetRightLeg
- i6.Active=true
- i6.AlwaysOnTop=true
- i6.Size=UDim2.new(1,0,2,0)
- i6.Name="RightLegESP_" .. plr.Name
- local rl=Instance.new("Frame",i6)
- rl.Size=UDim2.new(1,0,1,0)
- rl.AnchorPoint=Vector2.new(0,0)
- rl.BackgroundColor3=ESPColor
- rl.BorderSizePixel=0
- rl.BackgroundTransparency=ESPTransparency
- end
- end
- function RemoveOutlineESP(plr)
- local HeadESP = CoreGui:FindFirstChild("HeadESP_" .. plr.Name)
- if HeadESP then
- HeadESP:Destroy()
- end
- local TorsoESP = CoreGui:FindFirstChild("TorsoESP_" .. plr.Name)
- if TorsoESP then
- TorsoESP:Destroy()
- end
- local LeftArmESP = CoreGui:FindFirstChild("LeftArmESP_" .. plr.Name)
- if LeftArmESP then
- LeftArmESP:Destroy()
- end
- local RightArmESP = CoreGui:FindFirstChild("RightArmESP_" .. plr.Name)
- if RightArmESP then
- RightArmESP:Destroy()
- end
- local LeftLegESP = CoreGui:FindFirstChild("LeftLegESP_" .. plr.Name)
- if LeftLegESP then
- LeftLegESP:Destroy()
- end
- local RightLegESP = CoreGui:FindFirstChild("RightLegESP_" .. plr.Name)
- if RightLegESP then
- RightLegESP:Destroy()
- end
- end
- OutlineESP.MouseButton1Click:connect(function()
- OutlineESPEnabled = not OutlineESPEnabled
- if OutlineESPEnabled then
- for _, v in next, Plrs:GetPlayers() do
- if v ~= MyPlr then
- if CharAddedEvent[v.Name] == nil then
- CharAddedEvent[v.Name] = v.CharacterAdded:connect(function(Char)
- if OutlineESPEnabled then
- RemoveOutlineESP(v)
- CreateOutlineESP(v)
- end
- repeat wait() until Char:FindFirstChild("HumanoidRootPart")
- end)
- end
- RemoveOutlineESP(v)
- CreateOutlineESP(v)
- end
- end
- OutlineESP.Text = "Outline Player ESP: On"
- else
- for _, v in next, Plrs:GetPlayers() do
- RemoveOutlineESP(v)
- end
- OutlineESP.Text = "Outline Player ESP: Off"
- end
- end)
- -- XRay
- Xray = false
- obj = game.workspace
- function XrayOn(obj)
- for _,v in pairs(obj:GetChildren()) do
- if (v:IsA("BasePart")) and not v.Parent:FindFirstChild("Humanoid") then
- v.LocalTransparencyModifier = XRayTransparency
- end
- XrayOn(v)
- end
- end
- function XrayOff(obj)
- for _,v in pairs(obj:GetChildren()) do
- if (v:IsA("BasePart")) and not v.Parent:FindFirstChild("Humanoid") then
- v.LocalTransparencyModifier = 0
- end XrayOff(v)
- end
- end
- XRay.MouseButton1Click:Connect(function()
- if Xray == false then
- Xray = true
- XrayOn(obj)
- XRay.Text = "X-Ray: On"
- else
- Xray = false
- XrayOff(obj)
- XRay.Text = "X-Ray: Off"
- end
- end)
- -- NoClip
- local Players = game:GetService("Players")
- local Plr = Players.LocalPlayer
- local Clipon = false
- NoClip.MouseButton1Click:connect(function()
- if NoClip.Text=="NoClip: Off" then
- Clipon=true
- NoClip.Text="NoClip: On"
- Stepped=game:GetService("RunService").Stepped:Connect(function()
- if not Clipon==false then
- for a,b in pairs(game.Workspace:GetChildren())do
- if b.Name==Plr.Name then
- for c,d in pairs(game.Workspace[Plr.Name]:GetChildren())do
- if d:IsA("BasePart")then
- d.CanCollide=false
- end
- end
- end
- end
- else Stepped:Disconnect()
- end
- end)
- elseif NoClip.Text=="NoClip: On" then Clipon=false
- NoClip.Text="NoClip: Off"
- end
- end)
Add Comment
Please, Sign In to add comment