Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --NoFog --Remove these if you want fog
- game:GetService("Lighting").FogStart = 99999
- game:GetService("Lighting").FogEnd = 99999
- --Settings
- local settings = {
- HeadSize = Vector3.new(6,6,6), --Expanded Head Size "X,Y,Z"
- EspEnabled = true, -- Set this to false if you dont want ESP
- EspOnlyForPlayers = true, -- True = esp visible only on all PLAYERS except you, false = esp visible on all targets except you.
- EspTeamCheck = true, -- Self explanatory (DOESNT APPLY TO NPC'S)
- TextScaled = false -- Set true if you want the esp make names smaller if player is further away.
- }
- --No need to modify anything from under this unless you know what to change.
- --Base Variables.
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local WSpace = game:GetService("Workspace")
- local RunService = game:GetService("RunService")
- --Give ESP to target.
- local function give_esp(target)
- local name = target.Name
- local bigCock = Instance.new("BillboardGui")
- local sperm = Instance.new("TextLabel")
- bigCock.Parent = target:FindFirstChild("Head")
- bigCock.Name = "ESP"
- bigCock.AlwaysOnTop = true
- bigCock.Size = UDim2.new(0,40,0,40)
- bigCock.StudsOffset = Vector3.new(0,2,0)
- sperm.Parent = bigCock
- sperm.BackgroundColor3 = Color3.fromRGB(255,255,255)
- sperm.BackgroundTransparency = 1
- sperm.Size = UDim2.new(1,0,1,0)
- sperm.Text = name
- sperm.TextColor3 = Color3.fromRGB(255,255,255)
- sperm.TextScaled = settings.TextScaled
- end
- --Give Hitbox to target.
- local function give_hitbox(target)
- if target:FindFirstChild("HumanoidRootPart") and target:FindFirstChild("Head") then
- target.Head.Size = settings.HeadSize
- target.Head.Transparency = 0.6
- end
- end
- --Run this "Updating" part 60 times per second by using Heartbeat.
- RunService.Heartbeat:Connect(function()
- for _,v in pairs(WSpace.Units:GetChildren()) do
- if v:IsA("Model") and v.Name ~= LocalPlayer.Name then
- local isPlayer = Players:FindFirstChild(v.Name)
- if v:FindFirstChild("Head") and v:FindFirstChild("Humanoid").Health ~= 0 then
- --tupsutumppu#3145 was here :)
- if settings.EspEnabled then
- if not v.Head:FindFirstChild("ESP") then
- if settings.EspOnlyForPlayers then
- if settings.EspTeamCheck then
- if isPlayer and LocalPlayer.Team and isPlayer.Team and LocalPlayer.Team ~= isPlayer.Team then
- give_esp(v)
- end
- elseif not settings.EspTeamCheck then
- if isPlayer then give_esp(v) end
- end
- else
- if settings.EspTeamCheck then
- if isPlayer and LocalPlayer.Team and isPlayer.Team and LocalPlayer.Team ~= isPlayer.Team then
- give_esp(v)
- elseif not isPlayer then give_esp(v) end
- elseif not settings.EspTeamCheck then
- give_esp(v)
- end
- end
- end
- end
- if v.Head.Size ~= settings.HeadSize then
- give_hitbox(v) end
- end
- end
- end
- end)
- --Just a quick fix for the Head Collision issue
- task.spawn(function()
- while true do
- for _, v in pairs(WSpace.Units:GetDescendants()) do
- if v.Name == "Head" then
- if v.CanCollide then
- v.CanCollide = false
- v.CanTouch = false
- end
- end
- end
- task.wait(2)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement