Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uis = game:GetService("UserInputService")
- cg = game:GetService("CoreGui")
- sg = game:GetService("StarterGui")
- wp = game:GetService("Workspace")
- cmr = wp.Camera
- rs = game:GetService("ReplicatedStorage")
- rsd = game:GetService("RunService").RenderStepped
- lgt = game:GetService("Lighting")
- plrs = game:GetService("Players")
- lplr = plrs.LocalPlayer
- mouse = lplr:GetMouse()
- VirtualUser = game:GetService("VirtualUser")
- if _G.faces == nil then
- _G.faces = {"Back", "Bottom", "Front", "Left", "Right", "Top"}
- end
- function createESP(parent)
- local bgui = Instance.new("BillboardGui", parent.Character.Head)
- bgui.Name = ("EGUI")
- bgui.AlwaysOnTop = true
- bgui.ExtentsOffset = Vector3.new(0, 3, 0)
- bgui.Size = UDim2.new(0, 200, 0, 50)
- local nam = Instance.new("TextLabel", bgui)
- nam.Text = parent.Name
- nam.BackgroundTransparency = 1
- nam.TextSize = 14
- nam.Font = ("Arial")
- nam.TextColor3 = Color3.fromRGB(196, 40, 28)
- nam.Size = UDim2.new(0, 200, 0, 50)
- for _, p in pairs(parent.Character:GetChildren()) do
- if p.Name == ("Head") then
- for _, f in pairs(_G.faces) do
- local m = Instance.new("SurfaceGui", p)
- m.Name = ("EGUI")
- m.Face = f
- m.Active = true
- m.AlwaysOnTop = true
- local mf = Instance.new("Frame", m)
- mf.Size = UDim2.new(1, 0, 1, 0)
- mf.BorderSizePixel = 0
- mf.BackgroundTransparency = 0.5
- mf.BackgroundColor3 = Color3.fromRGB(196, 40, 28)
- end
- end
- end
- end
- function enableESPCode()
- for _, o in pairs(plrs:GetPlayers()) do
- if o.Name ~= lplr.Name then
- o.CharacterAdded:Connect(
- function(characterModel)
- if characterModel:WaitForChild("Head") then
- wait(0.5)
- createESP(o)
- end
- end
- )
- end
- end
- plrs.PlayerAdded:Connect(
- function(newPlayer)
- newPlayer.CharacterAdded:Connect(
- function(characterModel)
- if characterModel:WaitForChild("Head") then
- wait(0.5)
- createESP(newPlayer)
- end
- end
- )
- end
- )
- end
- enableESPCode()
- function espFirst()
- for _, o in pairs(plrs:GetPlayers()) do
- if o.Name ~= lplr.Name then
- spawn(
- function()
- if o.Character:FindFirstChild("Head") then
- wait(0.1)
- createESP(o)
- end
- end
- )
- end
- end
- end
- espFirst()
- lplr.Idled:connect(
- function()
- VirtualUser:CaptureController()
- VirtualUser:ClickButton2(Vector2.new())
- end
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement