Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Made by Plus gaming
- Also I'm looking at you, Redacted
- ]]
- -- Services:
- local TS = game:GetService("TweenService")
- -- Variables:
- local plr = game.Players.LocalPlayer
- local ESPTarget = {}
- local Type = "Specific"
- local EnabledType = "Specific"
- local Enabled = false
- local TweenService = {}
- local ESP = {}
- -- Functions:
- function ESP:CreateESPOnBasePart(BasePart)
- local Folder
- if BasePart:IsA("BasePart") then
- Folder = Instance.new('Folder')
- Folder.Name = BasePart.Name.. " ESP"
- for i = 1,6 do
- local SurfaceGui = Instance.new("SurfaceGui", Folder)
- if i == 1 then
- SurfaceGui.Face = Enum.NormalId.Back
- SurfaceGui.Name = (BasePart.Name.. "'s Back ESP")
- elseif i == 2 then
- SurfaceGui.Face = Enum.NormalId.Front
- SurfaceGui.Name = (BasePart.Name.. "'s Front ESP")
- elseif i == 3 then
- SurfaceGui.Face = Enum.NormalId.Right
- SurfaceGui.Name = (BasePart.Name.. "'s Right ESP")
- elseif i == 4 then
- SurfaceGui.Face = Enum.NormalId.Left
- SurfaceGui.Name = (BasePart.Name.. "'s Left ESP")
- elseif i == 5 then
- SurfaceGui.Face = Enum.NormalId.Top
- SurfaceGui.Name = (BasePart.Name.. "'s Top ESP")
- elseif i == 6 then
- SurfaceGui.Face = Enum.NormalId.Bottom
- SurfaceGui.Name = (BasePart.Name.. "'s Bottom ESP")
- end
- SurfaceGui.Adornee = BasePart
- SurfaceGui.AlwaysOnTop = true
- local Frame = Instance.new("Frame", SurfaceGui)
- Frame.Size = UDim2.new(1,0,1,0)
- Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame.BorderSizePixel = 0
- Frame.Transparency = 0.5
- end
- end
- return Folder
- end
- function TweenService:CreateLinear(Seconds)
- return TweenInfo.new(Seconds, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0)
- end
- local function Draggable(GuiObject)
- local plr = game.Players.LocalPlayer
- local m = plr:GetMouse()
- if GuiObject:IsA("GuiButton") then
- local LastX = m.X
- local LastY = m.Y
- local Clicked = false
- GuiObject.MouseButton1Down:Connect(function()
- Clicked = true
- LastX = m.X
- LastY = m.Y
- end)
- m.Move:Connect(function()
- if Clicked then
- if (m.X ~= LastX) or (m.Y ~= LastY) then
- GuiObject.Position = UDim2.new(GuiObject.Position.X.Scale,GuiObject.Position.X.Offset - (LastX - m.X),GuiObject.Position.Y.Scale,GuiObject.Position.Y.Offset - (LastY - m.Y))
- LastX = m.X
- LastY = m.Y
- end
- end
- end)
- GuiObject.MouseButton1Up:Connect(function()
- Clicked = false
- end)
- elseif GuiObject:IsA("GuiBase") then
- local LastX = m.X
- local LastY = m.Y
- local Clicked = false
- m.Button1Down:Connect(function()
- local MinPos = GuiObject.AbsolutePosition
- local MaxPos = Vector2.new(GuiObject.AbsolutePosition.X + (GuiObject.AbsoluteSize.X), GuiObject.AbsolutePosition.Y + (GuiObject.AbsoluteSize.Y))
- if (m.X >= MinPos.X) and (m.Y >= MinPos.Y) and (m.X <= MaxPos.X) and (m.Y <= MaxPos.Y) then
- Clicked = true
- LastX = m.X
- LastY = m.Y
- end
- end)
- m.Move:Connect(function()
- if Clicked then
- if (m.X ~= LastX) or (m.Y ~= LastY) then
- GuiObject.Position = UDim2.new(GuiObject.Position.X.Scale,GuiObject.Position.X.Offset - (LastX - m.X),GuiObject.Position.Y.Scale,GuiObject.Position.Y.Offset - (LastY - m.Y))
- LastX = m.X
- LastY = m.Y
- end
- end
- end)
- m.Button1Up:Connect(function()
- Clicked = false
- end)
- end
- end
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Main = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local NameFrame = Instance.new("Frame")
- local S = Instance.new("TextLabel")
- local P = Instance.new("TextLabel")
- local E = Instance.new("TextLabel")
- local Inside = Instance.new("Frame")
- local Deco = Instance.new("Folder")
- local Circle1 = Instance.new("Frame")
- local UICorner_2 = Instance.new("UICorner")
- local Circle2 = Instance.new("Frame")
- local UICorner_3 = Instance.new("UICorner")
- local BottomBar = Instance.new("Frame")
- local PartName = Instance.new("TextBox")
- local UICorner_4 = Instance.new("UICorner")
- local PartType = Instance.new("TextButton")
- local UICorner_5 = Instance.new("UICorner")
- local Execute = Instance.new("TextButton")
- local UICorner_6 = Instance.new("UICorner")
- local Stop = Instance.new("TextButton")
- local UICorner_7 = Instance.new("UICorner")
- local Exit = Instance.new("TextButton")
- local Close = Instance.new("TextButton")
- local ESPFolder = Instance.new("Folder", game.Workspace.CurrentCamera)
- --Properties:
- ScreenGui.Name = "ESP"
- ScreenGui.Parent = game.CoreGui
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- ScreenGui.ResetOnSpawn = false
- Main.Name = "Main"
- Main.Parent = ScreenGui
- Main.AnchorPoint = Vector2.new(0.5, 0.5)
- Main.BackgroundColor3 = Color3.fromRGB(67, 67, 67)
- Main.Position = UDim2.new(0.5, 0, 0.5, 0)
- Main.Size = UDim2.new(0.275000006, 0, 0.0500000007, 0)
- Draggable(Main,0.2)
- UICorner.CornerRadius = UDim.new(0, 12)
- UICorner.Parent = Main
- NameFrame.Name = "NameFrame"
- NameFrame.Parent = Main
- NameFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- NameFrame.BackgroundTransparency = 1.000
- NameFrame.Size = UDim2.new(0.100000001, 0, 1, 0)
- S.Name = "S"
- S.Parent = NameFrame
- S.AnchorPoint = Vector2.new(0.5, 0.5)
- S.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- S.BackgroundTransparency = 1.000
- S.Position = UDim2.new(0.5, 0, 0.5, 0)
- S.Size = UDim2.new(0.5, 0, 0.5, 0)
- S.Font = Enum.Font.GothamBold
- S.Text = "S"
- S.TextColor3 = Color3.fromRGB(255, 255, 0)
- S.TextScaled = true
- S.TextSize = 14.000
- S.TextWrapped = true
- P.Name = "P"
- P.Parent = NameFrame
- P.AnchorPoint = Vector2.new(1, 1)
- P.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- P.BackgroundTransparency = 1.000
- P.Position = UDim2.new(1, 0, 1, 0)
- P.Size = UDim2.new(0.5, 0, 0.5, 0)
- P.Font = Enum.Font.GothamBold
- P.Text = "P"
- P.TextColor3 = Color3.fromRGB(0, 255, 0)
- P.TextScaled = true
- P.TextSize = 14.000
- P.TextWrapped = true
- --[[spawn(function()
- while true do
- wait(0.25)
- local Tween = TS:Create(P, TweenService:CreateLinear(0.5), {Position = UDim2.new(0,0,1,0); AnchorPoint = Vector2.new(0,1)})
- Tween:Play()
- Tween.Completed:Wait()
- wait(0.25)
- local Tween = TS:Create(P, TweenService:CreateLinear(0.5), {Position = UDim2.new(0,0,0,0); AnchorPoint = Vector2.new(0,0)})
- Tween:Play()
- Tween.Completed:Wait()
- wait(0.25)
- local Tween = TS:Create(P, TweenService:CreateLinear(0.5), {Position = UDim2.new(1,0,0,0); AnchorPoint = Vector2.new(1,0)})
- Tween:Play()
- Tween.Completed:Wait()
- wait(0.25)
- local Tween = TS:Create(P, TweenService:CreateLinear(0.5), {Position = UDim2.new(1,0,1,0); AnchorPoint = Vector2.new(1,1)})
- Tween:Play()
- Tween.Completed:Wait()
- end
- end)]]
- E.Name = "E"
- E.Parent = NameFrame
- E.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- E.BackgroundTransparency = 1.000
- E.Size = UDim2.new(0.5, 0, 0.5, 0)
- E.Font = Enum.Font.GothamBold
- E.Text = "E"
- E.TextColor3 = Color3.fromRGB(255, 0, 0)
- E.TextScaled = true
- E.TextSize = 14.000
- E.TextWrapped = true
- --[[spawn(function()
- while true do
- wait(0.25)
- local Tween = TS:Create(E, TweenService:CreateLinear(0.5), {Position = UDim2.new(1,0,0,0); AnchorPoint = Vector2.new(1,0)})
- Tween:Play()
- Tween.Completed:Wait()
- wait(0.25)
- local Tween = TS:Create(E, TweenService:CreateLinear(0.5), {Position = UDim2.new(1,0,1,0); AnchorPoint = Vector2.new(1,1)})
- Tween:Play()
- Tween.Completed:Wait()
- wait(0.25)
- local Tween = TS:Create(E, TweenService:CreateLinear(0.5), {Position = UDim2.new(0,0,1,0); AnchorPoint = Vector2.new(0,1)})
- Tween:Play()
- Tween.Completed:Wait()
- wait(0.25)
- local Tween = TS:Create(E, TweenService:CreateLinear(0.5), {Position = UDim2.new(0,0,0,0); AnchorPoint = Vector2.new(0,0)})
- Tween:Play()
- Tween.Completed:Wait()
- end
- end)]]
- ESPFolder.Name = "ESP"
- Inside.Name = "Inside"
- Inside.Parent = Main
- Inside.AnchorPoint = Vector2.new(0.5, 0)
- Inside.BackgroundColor3 = Color3.fromRGB(71, 71, 71)
- Inside.BorderSizePixel = 0
- Inside.Position = UDim2.new(0.5, 0, 1, 0)
- Inside.Size = UDim2.new(0.949999988, 0, 7, 0)
- Deco.Name = "Deco"
- Deco.Parent = Inside
- Circle1.Name = "Circle1"
- Circle1.Parent = Deco
- Circle1.AnchorPoint = Vector2.new(0, 0.5)
- Circle1.BackgroundColor3 = Color3.fromRGB(71, 71, 71)
- Circle1.BorderSizePixel = 0
- Circle1.Position = UDim2.new(0, 0, 1, 0)
- Circle1.Size = UDim2.new(0.135000005, 0, 0.174999997, 0)
- UICorner_2.CornerRadius = UDim.new(1, 0)
- UICorner_2.Parent = Circle1
- Circle2.Name = "Circle2"
- Circle2.Parent = Deco
- Circle2.AnchorPoint = Vector2.new(1, 0.5)
- Circle2.BackgroundColor3 = Color3.fromRGB(71, 71, 71)
- Circle2.BorderSizePixel = 0
- Circle2.Position = UDim2.new(1, 0, 1, 0)
- Circle2.Size = UDim2.new(0.135221019, 0, 0.175284833, 0)
- UICorner_3.CornerRadius = UDim.new(1, 0)
- UICorner_3.Parent = Circle2
- BottomBar.Name = "BottomBar"
- BottomBar.Parent = Deco
- BottomBar.AnchorPoint = Vector2.new(0.5, 0.5)
- BottomBar.BackgroundColor3 = Color3.fromRGB(71, 71, 71)
- BottomBar.BorderSizePixel = 0
- BottomBar.Position = UDim2.new(0.5, 0, 1, 0)
- BottomBar.Size = UDim2.new(0.850000024, 0, 0.174999997, 0)
- PartName.Name = "PartName"
- PartName.Parent = Inside
- PartName.AnchorPoint = Vector2.new(0.5, 0)
- PartName.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- PartName.BorderSizePixel = 0
- PartName.Position = UDim2.new(0.5, 0, 0.100000001, 0)
- PartName.Size = UDim2.new(0.75, 0, 0.150000006, 0)
- PartName.ClearTextOnFocus = false
- PartName.Font = Enum.Font.SourceSans
- PartName.PlaceholderColor3 = Color3.fromRGB(255, 255, 255)
- PartName.PlaceholderText = "Part name here"
- PartName.Text = ""
- PartName.TextColor3 = Color3.fromRGB(255, 255, 255)
- PartName.TextScaled = true
- PartName.TextSize = 14.000
- PartName.TextWrapped = true
- UICorner_4.Parent = PartName
- PartType.Name = "PartType"
- PartType.Parent = Inside
- PartType.AnchorPoint = Vector2.new(0.5, 0)
- PartType.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- PartType.BorderSizePixel = 0
- PartType.Position = UDim2.new(0.5, 0, 0.300000012, 0)
- PartType.Size = UDim2.new(0.75, 0, 0.150000006, 0)
- PartType.Font = Enum.Font.SourceSans
- PartType.Text = "Type: Specific name"
- PartType.TextColor3 = Color3.fromRGB(255, 255, 255)
- PartType.TextScaled = true
- PartType.TextSize = 14.000
- PartType.TextWrapped = true
- PartType.MouseButton1Click:Connect(function()
- if Type == "Specific" then
- Type = "Match"
- PartType.Text = "Type: Match"
- PartName.TextEditable = true
- PartName.TextColor3 = Color3.fromRGB(255, 255, 255)
- elseif Type == "Match" then
- Type = "Humanoids"
- PartType.Text = "Type: All humanoids"
- PartName.TextEditable = false
- PartName.TextColor3 = Color3.fromRGB(111, 111, 111)
- elseif Type == "Humanoids" then
- Type = "Specific"
- PartType.Text = "Type: Specific name"
- PartName.TextEditable = true
- PartName.TextColor3 = Color3.fromRGB(255, 255, 255)
- end
- end)
- UICorner_5.Parent = PartType
- Execute.Name = "Execute"
- Execute.Parent = Inside
- Execute.AnchorPoint = Vector2.new(0.5, 0)
- Execute.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Execute.BorderSizePixel = 0
- Execute.Position = UDim2.new(0.5, 0, 0.5, 0)
- Execute.Size = UDim2.new(0.75, 0, 0.150000006, 0)
- Execute.Font = Enum.Font.SourceSans
- Execute.Text = "Enable ESP"
- Execute.TextColor3 = Color3.fromRGB(255, 255, 255)
- Execute.TextScaled = true
- Execute.TextSize = 14.000
- Execute.TextWrapped = true
- Execute.MouseButton1Click:Connect(function()
- Enabled = true
- EnabledType = Type
- if Type == "Specific" then
- for i, v in pairs(game.Workspace:GetDescendants()) do
- if v.Name == PartName.Text then
- table.insert(ESPTarget, v)
- local Folder = ESP:CreateESPOnBasePart(v)
- if Folder then
- Folder.Parent = ESPFolder
- end
- end
- end
- elseif Type == "Match" then
- for i, v in pairs(game.Workspace:GetDescendants()) do
- if string.match(v.Name, PartName.Text) then
- table.insert(ESPTarget, v)
- local Folder = ESP:CreateESPOnBasePart(v)
- if Folder then
- Folder.Parent = ESPFolder
- end
- end
- end
- elseif Type == "Humanoids" then
- for i, v in pairs(game.Workspace:GetDescendants()) do
- if v:IsA("Humanoid") then
- if v.Parent ~= game.Players.LocalPlayer.Character then
- for i, v2 in pairs(v.Parent:GetChildren()) do
- table.insert(ESPTarget, v2)
- local Folder = ESP:CreateESPOnBasePart(v2)
- if Folder then
- Folder.Parent = ESPFolder
- end
- end
- end
- end
- end
- end
- end)
- game.Workspace.DescendantAdded:Connect(function(v)
- if Enabled then
- local CanDo = true
- for i, v2 in pairs(ESPTarget) do
- if v2 == v then
- CanDo = false
- end
- end
- if CanDo then
- if EnabledType == "Specific" then
- if v.Name == PartName.Text then
- local Folder = ESP:CreateESPOnBasePart(v)
- if Folder then
- Folder.Parent = ESPFolder
- end
- end
- elseif EnabledType == "Match" then
- if string.match(v.Name, PartName.Text) then
- local Folder = ESP:CreateESPOnBasePart(v)
- if Folder then
- Folder.Parent = ESPFolder
- end
- end
- elseif EnabledType == "Humanoids" then
- wait()
- if v.Parent ~= game.Players.LocalPlayer.Character then
- if v:IsA("Humanoid") then
- for i, v2 in pairs(v.Parent:GetChildren()) do
- local Folder = ESP:CreateESPOnBasePart(v2)
- if Folder then
- Folder.Parent = ESPFolder
- end
- end
- end
- end
- end
- end
- end
- end)
- UICorner_6.Parent = Execute
- Stop.Name = "Stop"
- Stop.Parent = Inside
- Stop.AnchorPoint = Vector2.new(0.5, 0)
- Stop.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Stop.BorderSizePixel = 0
- Stop.Position = UDim2.new(0.5, 0, 0.699999988, 0)
- Stop.Size = UDim2.new(0.75, 0, 0.150000006, 0)
- Stop.Font = Enum.Font.SourceSans
- Stop.Text = "Disable ESP"
- Stop.TextColor3 = Color3.fromRGB(255, 255, 255)
- Stop.TextScaled = true
- Stop.TextSize = 14.000
- Stop.TextWrapped = true
- Stop.MouseButton1Click:Connect(function()
- Enabled = false
- for i, v in pairs(ESPFolder:GetChildren()) do
- v:Destroy()
- end
- end)
- UICorner_7.Parent = Stop
- Exit.Name = "Exit"
- Exit.Parent = Main
- Exit.AnchorPoint = Vector2.new(1, 0)
- Exit.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Exit.BackgroundTransparency = 1.000
- Exit.Position = UDim2.new(1, 0, 0, 0)
- Exit.Size = UDim2.new(0.0500000007, 0, 1, 0)
- Exit.Font = Enum.Font.SourceSans
- Exit.Text = "X"
- Exit.TextColor3 = Color3.fromRGB(255, 0, 0)
- Exit.TextScaled = true
- Exit.TextSize = 14.000
- Exit.TextWrapped = true
- Exit.MouseButton1Click:Connect(function()
- ScreenGui:Destroy()
- end)
- local CloseLastTween1 = nil
- local CloseLastTween2 = nil
- local Closed = false
- Close.Name = "Close"
- Close.Parent = Main
- Close.AnchorPoint = Vector2.new(1, 0)
- Close.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Close.BackgroundTransparency = 1.000
- Close.Position = UDim2.new(0.949999988, 0, 0, 0)
- Close.Rotation = 180.000
- Close.Size = UDim2.new(0.0500000007, 0, 1, 0)
- Close.Font = Enum.Font.SourceSans
- Close.Text = "V"
- Close.TextColor3 = Color3.fromRGB(84, 84, 84)
- Close.TextScaled = true
- Close.TextSize = 14.000
- Close.TextWrapped = true
- Close.MouseButton1Click:Connect(function()
- if Closed then
- Closed = false
- if CloseLastTween1 ~= nil then
- CloseLastTween1:Cancel()
- CloseLastTween1 = nil
- end
- if CloseLastTween2 ~= nil then
- CloseLastTween2:Cancel()
- CloseLastTween2 = nil
- end
- CloseLastTween1 = TS:Create(Close, TweenService:CreateLinear(0.3), {Rotation = 180})
- CloseLastTween1:Play()
- CloseLastTween2 = TS:Create(Inside, TweenService:CreateLinear(0.5), {Size = UDim2.new(0.95, 0, 7, 0)})
- CloseLastTween2:Play()
- else
- Closed = true
- if CloseLastTween1 ~= nil then
- CloseLastTween1:Cancel()
- CloseLastTween1 = nil
- end
- if CloseLastTween2 ~= nil then
- CloseLastTween2:Cancel()
- CloseLastTween2 = nil
- end
- CloseLastTween1 = TS:Create(Close, TweenService:CreateLinear(0.3), {Rotation = 0})
- CloseLastTween1:Play()
- CloseLastTween2 = TS:Create(Inside, TweenService:CreateLinear(0.5), {Size = UDim2.new(0.95, 0, 0, 0)})
- CloseLastTween2:Play()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement