Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local executedTimer = tick()
- repeat task.wait() until game:IsLoaded()
- --[Main Variables]
- local plrs = game["Players"]
- local ws = game["Workspace"]
- local uis = game["UserInputService"]
- local rs = game["RunService"]
- local hs = game["HttpService"]
- local cgui = game["CoreGui"]
- local lighting = game["Lighting"]
- local GuiService = game["GuiService"]
- local repStorage = game["ReplicatedStorage"]
- local plr = plrs.LocalPlayer
- local mouse = plr:GetMouse()
- local camera = ws.CurrentCamera
- local worldToViewportPoint = camera.worldToViewportPoint
- local Drawingnew = Drawing.new
- local Color3new = Color3.new
- local Color3fromRGB = Color3.fromRGB
- local Vector3new = Vector3.new
- local Vector2new = Vector2.new
- local mathhuge = math.huge
- local mathfloor = math.floor
- local mathceil = math.ceil
- local GetGuiInset = GuiService.GetGuiInset
- local Raynew = Ray.new
- --[Setup Table]
- local esp = {
- players = {},
- objects = {},
- otherObjects = {},
- enabled = false,
- teamcheck = false,
- fontsize = 13,
- font = 1,
- settings = {
- name = {enabled = false, outline = false, displaynames = false, color = Color3.fromRGB(255, 255, 255)},
- box = {enabled = false, outline = false, color = Color3.fromRGB(255, 255, 255)},
- healthbar = {enabled = false, outline = false},
- healthtext = {enabled = false, outline = false, color = Color3.fromRGB(255, 255, 255)},
- distance = {enabled = false, outline = false, color = Color3.fromRGB(255, 255, 255)},
- viewangle = {enabled = false, color = Color3.fromRGB(255, 255, 255)},
- }
- }
- local Old_Ammo = {
- ["762x54SAP"] = {
- ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["762x54AP"]:GetAttribute("ProjectileDrop")
- },
- ["9x18AP"] = {
- ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["9x18AP"]:GetAttribute("ProjectileDrop")
- },
- ["762x39AP"] = {
- ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["762x39AP"]:GetAttribute("ProjectileDrop")
- },
- ["9x18Z"] = {
- ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["9x18Z"]:GetAttribute("ProjectileDrop")
- },
- ["762x25Tracer"] = {
- ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["762x25Tracer"]:GetAttribute("ProjectileDrop")
- },
- ["556x45Tracer"] = {
- ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["556x45Tracer"]:GetAttribute("ProjectileDrop")
- },
- ["762x25AP"] = {
- ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["762x25AP"]:GetAttribute("ProjectileDrop")
- },
- ["762x39Tracer"] = {
- ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["762x39Tracer"]:GetAttribute("ProjectileDrop")
- },
- ["762x54Tracer"] = {
- ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["762x54Tracer"]:GetAttribute("ProjectileDrop")
- },
- ["9x19Tracer"] = {
- ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["9x19Tracer"]:GetAttribute("ProjectileDrop")
- },
- ["9x18Tracer"] = {
- ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["9x18Tracer"]:GetAttribute("ProjectileDrop")
- },
- ["9x19AP"] = {
- ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["9x19AP"]:GetAttribute("ProjectileDrop")
- },
- ["556x45AP"] = {
- ["Drop"] = game:GetService("ReplicatedStorage").AmmoTypes["556x45AP"]:GetAttribute("ProjectileDrop")
- }
- }
- --[Load UI]
- loadstring(game:HttpGet("https://raw.githubusercontent.com/DemoExists/Oblivious/main/universal.lua", true))()
- local VisualsTab = library:AddTab("Visuals", 1)
- local AimTab = library:AddTab("Combat", 2)
- local PlayerTab = library:AddTab("Player", 3)
- local ESPColumn = VisualsTab:AddColumn()
- local ESPSection = ESPColumn:AddSection("ESP")
- local SnaplineSection = ESPColumn:AddSection("Snapline")
- local LightColumn = VisualsTab:AddColumn()
- local FOVSection = LightColumn:AddSection("FOV Circle")
- local CrossSection = LightColumn:AddSection("Crosshair")
- local LightSection = LightColumn:AddSection("Lighting")
- local CharColumn = PlayerTab:AddColumn()
- local CharSection = CharColumn:AddSection("Character Modifications")
- local AimColumn = AimTab:AddColumn()
- local Aim2Column = AimTab:AddColumn()
- local AimSection = AimColumn:AddSection("Aim")
- local ModsSection = AimColumn:AddSection("Gun Mods")
- ESPSection:AddToggle({text = "Toggle", flag = "ESP_Toggle", state = false, callback = function(bool)
- esp.enabled = bool
- end})
- ESPSection:AddToggle({text = "Name", flag = "ESP_NameToggle", state = false, callback = function(bool)
- esp.settings.name.enabled = bool
- end}):AddColor({flag = "ESP_NameColor", color = Color3fromRGB(255, 255, 255), callback = function(color)
- esp.settings.name.color = color
- end})
- ESPSection:AddToggle({text = "Box", flag = "ESP_BoxToggle", state = false, callback = function(bool)
- esp.settings.box.enabled = bool
- end}):AddColor({flag = "ESP_BoxColor", color = Color3fromRGB(255, 255, 255), callback = function(color)
- esp.settings.box.color = color
- end})
- ESPSection:AddToggle({text = "Health Bar", flag = "ESP_HealthBarToggle", state = false, callback = function(bool)
- esp.settings.healthbar.enabled = bool
- end})
- ESPSection:AddToggle({text = "Health Text", flag = "ESP_HealthTextToggle", state = false, callback = function(bool)
- esp.settings.healthtext.enabled = bool
- end}):AddColor({flag = "ESP_HealthTextColor", color = Color3fromRGB(255, 255, 255), callback = function(color)
- esp.settings.healthtext.color = color
- end})
- ESPSection:AddToggle({text = "Distance", flag = "ESP_DistanceToggle", state = false, callback = function(bool)
- esp.settings.distance.enabled = bool
- end}):AddColor({flag = "ESP_DistanceColor", color = Color3fromRGB(255, 255, 255), callback = function(color)
- esp.settings.distance.color = color
- end})
- ESPSection:AddToggle({text = "View Angle", flag = "ESP_ViewAngleToggle", state = false, callback = function(bool)
- esp.settings.viewangle.enabled = bool
- end}):AddColor({flag = "ESP_ViewAngleColor", color = Color3fromRGB(255, 255, 255), callback = function(color)
- esp.settings.viewangle.color = color
- end})
- ESPSection:AddDivider("Settings")
- ESPSection:AddToggle({text = "Display Names", flag = "ESP_TeamCheck", state = false, callback = function(bool)
- esp.settings.name.displaynames = bool
- end})
- ESPSection:AddToggle({text = "Outlines", flag = "ESP_Outlines", state = false, callback = function(bool)
- for i,v in pairs(esp.settings) do
- v.outline = bool
- end
- end})
- ESPSection:AddToggle({text = "Team Check", flag = "ESP_TeamCheck", state = false, callback = function(bool)
- esp.teamcheck = bool
- end})
- ESPSection:AddSlider({text = "Font Size", flag = "ESP_FontSize", min = 0, max = 100, value = 13, callback = function(integer)
- esp.fontsize = integer
- end})
- ESPSection:AddList({text = "Font", flag = "ESP_Font", max = 4, values = {"UI", "System", "Plex", "Monospace"}, value = "Plex", callback = function(item)
- if item == "UI" then
- esp.font = 0
- elseif item == "System" then
- esp.font = 1
- elseif item == "Plex" then
- esp.font = 2
- elseif item == "Monospace" then
- esp.font = 3
- end
- end})
- --[DRAW SNAP LINE]
- local Snapline_Line = Drawingnew("Line")
- Snapline_Line.Visible = true
- Snapline_Line.Thickness = 1
- Snapline_Line.Transparency = 1
- Snapline_Line.From = Vector2new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2)
- Snapline_Line.To = Vector2new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2)
- Snapline_Line.Color = Color3fromRGB(255, 255, 255)
- function Snapline_Closest()
- local target = nil
- local maxDist = mathhuge
- for _,v in ipairs(plrs:GetPlayers()) do
- if v ~= plr and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Head") then
- local pos, onScreen = camera:WorldToViewportPoint(v.Character[library.flags["Aim_TargetPart"]].Position)
- if onScreen then
- local dist = (Vector2new(pos.X, pos.Y - GetGuiInset(GuiService).Y) - Vector2new(mouse.X, mouse.Y)).Magnitude
- if dist <= maxDist then
- maxDist = dist
- target = v
- end
- end
- end
- end
- return target
- end
- SnaplineSection:AddToggle({text = "Toggle", flag = "Snapline_Toggle", state = false, callback = function(bool)
- Snapline_Line.Visible = bool
- end}):AddColor({flag = "Snapline_Color", color = Color3fromRGB(255, 255, 255), callback = function(color)
- Snapline_Line.Color = color
- end})
- SnaplineSection:AddSlider({text = "Thickness", flag = "Snapline_Thickness", min = 0.5, max = 5, value = 1, float = 0.1, callback = function(integer)
- Snapline_Line.Thickness = integer
- end})
- SnaplineSection:AddSlider({text = "Transparency", flag = "Snapline_Transparency", min = 0, max = 1, value = 1, float = 0.1, callback = function(integer)
- Snapline_Line.Transparency = integer
- end})
- SnaplineSection:AddList({text = "Snap Part", flag = "Snapline_TargetPart", max = 2, values = {"Head", "HumanoidRootPart"}, value = "Head"})
- --[DRAW FOV CIRCLE]
- local FOVCircle_Circle = Drawingnew("Circle")
- FOVCircle_Circle.Visible = false
- FOVCircle_Circle.Color = Color3fromRGB(255, 255, 255)
- FOVCircle_Circle.Radius = 100
- FOVCircle_Circle.Thickness = 1
- FOVCircle_Circle.Filled = false
- FOVCircle_Circle.Transparency = 1
- FOVCircle_Circle.Position = Vector2new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2)
- FOVSection:AddToggle({text = "FOV Circle", flag = "FOVCircle_Toggle", state = false, callback = function(bool)
- FOVCircle_Circle.Visible = bool
- end}):AddColor({flag = "FOVCircle_Color", color = Color3fromRGB(255, 255, 255), callback = function(color)
- FOVCircle_Circle.Color = color
- end})
- FOVSection:AddDivider("Settings")
- FOVSection:AddToggle({text = "Filled", flag = "FOVCircle_Filled", state = false, callback = function(bool)
- FOVCircle_Circle.Filled = bool
- end})
- FOVSection:AddSlider({text = "Radius", flag = "FOVCircle_Radius", min = 0, max = 750, value = 100, callback = function(integer)
- FOVCircle_Circle.Radius = integer
- end})
- FOVSection:AddSlider({text = "Thickness", flag = "FOVCircle_Thickness", min = 0.5, max = 5, value = 1, float = 0.1, callback = function(integer)
- FOVCircle_Circle.Thickness = integer
- end})
- FOVSection:AddSlider({text = "Transparency", flag = "FOVCircle_Transparency", min = 0, max = 1, value = 1, float = 0.1, callback = function(integer)
- FOVCircle_Circle.Transparency = integer
- end})
- FOVSection:AddSlider({text = "Num Sides", flag = "FOVCircle_NumSides", min = 0, max = 30, value = 0, callback = function(integer)
- FOVCircle_Circle.NumSides = integer
- end})
- --[DRAW CROSSHAIR]
- local Crosshair_Horizontal = Drawingnew("Line")
- Crosshair_Horizontal.Visible = false
- Crosshair_Horizontal.Thickness = 1
- Crosshair_Horizontal.Transparency = 1
- Crosshair_Horizontal.From = Vector2new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2)
- Crosshair_Horizontal.To = Vector2new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2)
- Crosshair_Horizontal.Color = Color3fromRGB(255, 255, 255)
- local Crosshair_Vertical = Drawingnew("Line")
- Crosshair_Vertical.Visible = false
- Crosshair_Vertical.Thickness = 1
- Crosshair_Vertical.Transparency = 1
- Crosshair_Vertical.From = Vector2new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2)
- Crosshair_Vertical.To = Vector2new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2)
- Crosshair_Vertical.Color = Color3fromRGB(255, 255, 255)
- CrossSection:AddToggle({text = "Crosshair", flag = "Crosshair_Toggle", state = false, callback = function(bool)
- Crosshair_Horizontal.Visible = bool
- Crosshair_Vertical.Visible = bool
- end}):AddColor({flag = "Crosshair_Color", color = Color3fromRGB(255, 255, 255), callback = function(color)
- Crosshair_Horizontal.Color = color
- Crosshair_Vertical.Color = color
- end})
- CrossSection:AddDivider("Settings")
- CrossSection:AddSlider({text = "Size", flag = "Crosshair_Size", min = 0, max = 250, value = 10, callback = function(integer)
- Crosshair_Horizontal.From = Vector2new(camera.ViewportSize.X / 2 - integer, camera.ViewportSize.Y / 2)
- Crosshair_Horizontal.To = Vector2new(camera.ViewportSize.X / 2 + integer, camera.ViewportSize.Y / 2)
- Crosshair_Vertical.From = Vector2new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2 - integer)
- Crosshair_Vertical.To = Vector2new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2 + integer)
- end})
- CrossSection:AddSlider({text = "Thickness", flag = "Crosshair_Thickness", min = 0.5, max = 5, value = 1, float = 0.1, callback = function(integer)
- Crosshair_Horizontal.Thickness = integer
- Crosshair_Vertical.Thickness = integer
- end})
- CrossSection:AddSlider({text = "Transparency", flag = "Crosshair_Transparency", min = 0, max = 1, value = 1, float = 0.1, callback = function(integer)
- Crosshair_Horizontal.Transparency = integer
- Crosshair_Vertical.Transparency = integer
- end})
- LightSection:AddToggle({text = "Custom Ambient", flag = "Light_AmbientToggle", state = false, callback = function(bool)
- if bool == true then
- lighting.Ambient = library.flags["Light_AmbientColor"]
- elseif bool == false then
- lighting.Ambient = Color3fromRGB(70, 70, 70)
- end
- end}):AddColor({flag = "Light_AmbientColor", color = Color3fromRGB(255, 255, 255), callback = function(color)
- if library.flags["Light_AmbientToggle"] then
- lighting.Ambient = library.flags["Light_AmbientColor"]
- end
- end})
- LightSection:AddToggle({text = "Global Shadows", flag = "Light_Shadows", state = true, callback = function(bool)
- lighting.GlobalShadows = bool
- end})
- LightSection:AddToggle({text = "Clouds", flag = "Light_Clouds", state = true, callback = function(bool)
- ws.Terrain.Clouds.Enabled = bool
- end})
- LightSection:AddToggle({text = "World Grass", flag = "Light_Grass", state = true, callback = function(bool)
- sethiddenproperty(ws.Terrain, "Decoration", bool)
- end})
- LightSection:AddToggle({text = "Atmosphere", flag = "Light_Atmosphere", state = true, callback = function(bool)
- if not bool then
- lighting.Atmosphere.Density = 0
- else
- lighting.Atmosphere.Density = 0.31999999284744
- end
- end})
- LightSection:AddToggle({text = "Force Time", flag = "Light_ForceTime", state = false}):AddSlider({flag = "Light_Time", float = 0.1, min = 0, max = 24, value = 12})
- AimSection:AddToggle({text = "Toggle", flag = "Aim_BotToggle", state = false}):AddBind({nomouse = false, key = "MouseButton2", mode = "toggle", flag = "Aim_KeyDown"})
- AimSection:AddToggle({text = "Silent", flag = "Aim_SilentToggle", state = false}):AddSlider({flag = "Aim_SilentPrediction", float = 0.1, min = 0.1, max = 20, value = 8})
- AimSection:AddDivider("Settings")
- AimSection:AddToggle({text = "Team Check", flag = "Aim_TeamCheck", state = false})
- AimSection:AddList({text = "Target Part", flag = "Aim_TargetPart", max = 2, values = {"Head", "HumanoidRootPart"}, value = "Head"})
- ModsSection:AddToggle({text = "No Screen Bob", flag = "Mods_NoScreenBob", state = false})
- local springModule = require(repStorage.Modules.spring)
- local oldSpringIndex
- oldSpringIndex = hookfunction(springModule.update, function(...)
- if library.flags["Mods_NoScreenBob"] then
- return;
- end
- return oldSpringIndex(...)
- end)
- function noRecoilToggle()
- local VFX = nil; for i,v in next, getgc(true) do
- if typeof(v) == "table" and rawget(v, "RecoilCamera") then
- VFX = v
- break
- end
- end
- local RecoilCamera = VFX.RecoilCamera;
- VFX.RecoilCamera = function(...)
- if library.flags["Mods_NoRecoil"] then
- return 0
- else
- return RecoilCamera(...)
- end
- end
- end
- ModsSection:AddToggle({text = "No Recoil", flag = "Mods_NoRecoil", state = false, callback = function(bool)
- noRecoilToggle()
- end})
- ModsSection:AddToggle({text = "No Muzzle Flash", flag = "Mods_NoMuzzleFlash", state = false, callback = function(bool)
- for i,v in pairs(repStorage.RangedWeapons:GetChildren()) do
- v:SetAttribute("MuzzleEffect", not bool)
- end
- end})
- ModsSection:AddToggle({text = "No Bullet Drop", state = false, callback = function(bool)
- for i,v in pairs(repStorage.AmmoTypes:GetChildren()) do
- if bool == true then
- v:SetAttribute("ProjectileDrop", 0)
- elseif bool == false then
- v:SetAttribute("ProjectileDrop", Old_Ammo[v.Name]["Drop"])
- end
- end
- end})
- CharSection:AddToggle({text = "Toggle Speed", flag = "Player_SpeedToggle", state = false}):AddSlider({flag = "Player_SpeedValue", min = 0, max = 150, value = originalWs})
- CharSection:AddToggle({text = "Toggle Jump", flag = "Player_JumpToggle", state = false}):AddSlider({flag = "Player_JumpValue", min = 0, max = 500, value = originalJp})
- CharSection:AddToggle({text = "Toggle FOV", flag = "Player_FOVToggle", state = false, callback = function(bool)
- if bool == true then
- camera.FieldOfView = library.flags["Player_FOVValue"]
- elseif bool == false then
- camera.FieldOfView = 70.000004553459
- end
- end}):AddSlider({flag = "Player_FOVValue", min = 0, max = 120, value = 70, callback = function(integer)
- if library.flags["Player_FOVToggle"] then
- camera.FieldOfView = integer
- end
- end})
- CharSection:AddToggle({text = "Infinite Jump", flag = "Player_InfJump", state = false})
- mouse.KeyDown:connect(function(key)
- if library.flags["Player_InfJump"] and key == " " then
- plr.Character.Humanoid:ChangeState(3)
- wait()
- end
- end)
- CharSection:AddDivider()
- CharSection:AddToggle({text = "Disable Drowning", flag = "Player_NoDrown", state = false})
- library:Init();
- library:selectTab(library.tabs[1]);
- --[ESP Init]
- function closestToMouse()
- local target = nil
- local maxDist = mathhuge
- for _,v in ipairs(plrs:GetPlayers()) do
- if v ~= plr and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Head") then
- local pos, onScreen = camera:WorldToViewportPoint(v.Character[library.flags["Aim_TargetPart"]].Position)
- if onScreen then
- local dist = (Vector2new(pos.X, pos.Y - GetGuiInset(GuiService).Y) - Vector2new(mouse.X, mouse.Y)).Magnitude
- if dist <= maxDist then
- if library.flags["FOVCircle_Toggle"] then
- if library.flags["Aim_TeamCheck"] then
- if dist < library.flags["FOVCircle_Radius"] and plr.TeamColor ~= v.TeamColor then
- maxDist = dist
- target = v
- end
- else
- if dist < library.flags["FOVCircle_Radius"] then
- maxDist = dist
- target = v
- end
- end
- else
- if library.flags["Aim_TeamCheck"] then
- if dist <= maxDist and plr.TeamColor ~= v.TeamColor then
- maxDist = dist
- target = v
- end
- else
- if dist <= maxDist then
- maxDist = dist
- target = v
- end
- end
- end
- end
- end
- end
- end
- return target
- end
- esp.NewDrawing = function(type, properties)
- local newD = Drawingnew(type)
- for i,v in next, properties or {} do
- local s,e = pcall(function()
- newD[i] = v
- end)
- if not s then
- warn(e)
- end
- end
- return newD
- end
- esp.HasCharacter = function(v)
- local pass = false
- if v.Character and v.Character:FindFirstChild("Humanoid") and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Head") then
- pass = true
- end
- if s then return pass; end; return pass;
- end
- esp.TeamCheck = function(v)
- local pass = true
- if plr.TeamColor == v.TeamColor then
- pass = false
- end
- if s then return pass; end; return pass;
- end --[true = Same Team | false = Same Teama]
- esp.NewPlayer = function(v)
- esp.players[v] = {
- name = esp.NewDrawing("Text", {Color = Color3fromRGB(255, 255, 255), Outline = true, Center = true, Size = 13, Font = 2}),
- boxOutline = esp.NewDrawing("Square", {Color = Color3fromRGB(0, 0, 0), Thickness = 3}),
- box = esp.NewDrawing("Square", {Color = Color3fromRGB(255, 255, 255), Thickness = 1}),
- healthBarOutline = esp.NewDrawing("Line", {Color = Color3fromRGB(0, 0, 0), Thickness = 3}),
- healthBar = esp.NewDrawing("Line", {Color = Color3fromRGB(255, 255, 255), Thickness = 1}),
- healthText = esp.NewDrawing("Text", {Color = Color3fromRGB(255, 255, 255), Outline = true, Center = true, Size = 13, Font = 2}),
- distance = esp.NewDrawing("Text", {Color = Color3fromRGB(255, 255, 255), Outline = true, Center = true, Size = 13, Font = 2}),
- viewAngle = esp.NewDrawing("Line", {Color = Color3fromRGB(255, 255, 255), Thickness = 1}),
- }
- end
- for _,v in ipairs(plrs:GetPlayers()) do
- esp.NewPlayer(v)
- end
- plrs.PlayerAdded:Connect(esp.NewPlayer)
- --[Silent Aim Vars]
- local Plr_Target
- local Plr_Target_Predicted
- local mainLoop = game:GetService("RunService").RenderStepped:Connect(function()
- for i,v in pairs(esp.players) do
- if not esp.HasCharacter(i) then
- v.name.Visible = false
- v.boxOutline.Visible = false
- v.box.Visible = false
- end
- if esp.HasCharacter(i) then
- local hum = i.Character.Humanoid
- local hrp = i.Character.HumanoidRootPart
- local head = i.Character.Head
- local Vector, onScreen = camera:WorldToViewportPoint(i.Character.HumanoidRootPart.Position)
- local Size = (camera:WorldToViewportPoint(hrp.Position - Vector3new(0, 3, 0)).Y - camera:WorldToViewportPoint(hrp.Position + Vector3new(0, 2.6, 0)).Y) / 2
- local BoxSize = Vector2new(mathfloor(Size * 1.5), mathfloor(Size * 1.9))
- local BoxPos = Vector2new(mathfloor(Vector.X - Size * 1.5 / 2), mathfloor(Vector.Y - Size * 1.6 / 2))
- local BottomOffset = BoxSize.Y + BoxPos.Y + 1
- if onScreen and esp.enabled then
- if esp.settings.name.enabled then
- v.name.Position = Vector2new(BoxSize.X / 2 + BoxPos.X, BoxPos.Y - 16)
- v.name.Outline = esp.settings.name.outline
- v.name.Color = esp.settings.name.color
- v.name.Font = esp.font
- v.name.Size = esp.fontsize
- if esp.settings.name.displaynames then
- v.name.Text = tostring(i.DisplayName)
- else
- v.name.Text = tostring(i.Name)
- end
- v.name.Visible = true
- else
- v.name.Visible = false
- end
- if esp.settings.distance.enabled and hrp and plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
- v.distance.Position = Vector2new(BoxSize.X / 2 + BoxPos.X, BottomOffset)
- v.distance.Outline = esp.settings.distance.outline
- v.distance.Text = "[" .. mathfloor((hrp.Position - plr.Character.HumanoidRootPart.Position).Magnitude) .. "m]"
- v.distance.Color = esp.settings.distance.color
- BottomOffset = BottomOffset + 15
- v.distance.Font = esp.font
- v.distance.Size = esp.fontsize
- v.distance.Visible = true
- else
- v.distance.Visible = false
- end
- if esp.settings.box.enabled then
- v.boxOutline.Size = BoxSize
- v.boxOutline.Position = BoxPos
- v.boxOutline.Visible = esp.settings.box.outline
- v.box.Size = BoxSize
- v.box.Position = BoxPos
- v.box.Color = esp.settings.box.color
- v.box.Visible = true
- else
- v.boxOutline.Visible = false
- v.box.Visible = false
- end
- if esp.settings.healthbar.enabled then
- v.healthBar.From = Vector2new((BoxPos.X - 5), BoxPos.Y + BoxSize.Y)
- v.healthBar.To = Vector2new(v.healthBar.From.X, v.healthBar.From.Y - (hum.Health / hum.MaxHealth) * BoxSize.Y)
- v.healthBar.Color = Color3fromRGB(255 - 255 / (hum["MaxHealth"] / hum["Health"]), 255 / (hum["MaxHealth"] / hum["Health"]), 0)
- v.healthBar.Visible = true
- v.healthBarOutline.From = Vector2new(v.healthBar.From.X, BoxPos.Y + BoxSize.Y + 1)
- v.healthBarOutline.To = Vector2new(v.healthBar.From.X, (v.healthBar.From.Y - 1 * BoxSize.Y) -1)
- v.healthBarOutline.Visible = esp.settings.healthbar.outline
- else
- v.healthBarOutline.Visible = false
- v.healthBar.Visible = false
- end
- if esp.settings.healthtext.enabled then
- v.healthText.Text = tostring(mathfloor((hum.Health / hum.MaxHealth) * 100 + 0.5))
- v.healthText.Position = Vector2new((BoxPos.X - 20), (BoxPos.Y + BoxSize.Y - 1 * BoxSize.Y) -1)
- v.healthText.Color = esp.settings.healthtext.color
- v.healthText.Outline = esp.settings.healthtext.outline
- v.healthText.Font = esp.font
- v.healthText.Size = esp.fontsize
- v.healthText.Visible = true
- else
- v.healthText.Visible = false
- end
- if esp.settings.viewangle.enabled then
- local fromHead = camera:worldToViewportPoint(head.CFrame.p)
- local toPoint = camera:worldToViewportPoint((head.CFrame + (head.CFrame.lookVector * 10)).p)
- v.viewAngle.From = Vector2.new(fromHead.X, fromHead.Y)
- v.viewAngle.To = Vector2.new(toPoint.X, toPoint.Y)
- v.viewAngle.Color = esp.settings.viewangle.color
- v.viewAngle.Visible = true
- end
- if esp.teamcheck then
- if esp.TeamCheck(i) then
- v.name.Visible = esp.settings.name.enabled
- v.box.Visible = esp.settings.box.enabled
- v.healthBar.Visible = esp.settings.healthbar.enabled
- v.healthText.Visible = esp.settings.healthtext.enabled
- v.distance.Visible = esp.settings.distance.enabled
- v.viewAngle.Visible = esp.settings.viewangle.enabled
- if library.flags["ESP_Outlines"] then
- if esp.settings.box.enabled then
- v.boxOutline.Visible = esp.settings.box.outline
- v.boxOutline.Visible = esp.settings.box.outline
- end
- if esp.settings.healthbar.enabled then
- v.healthBarOutline.Visible = esp.settings.healthbar.outline
- end
- end
- else
- v.name.Visible = false
- v.boxOutline.Visible = false
- v.box.Visible = false
- v.healthBarOutline.Visible = false
- v.healthBar.Visible = false
- v.healthText.Visible = false
- v.distance.Visible = false
- v.viewAngle.Visible = false
- end
- end
- else
- v.name.Visible = false
- v.boxOutline.Visible = false
- v.box.Visible = false
- v.healthBarOutline.Visible = false
- v.healthBar.Visible = false
- v.healthText.Visible = false
- v.distance.Visible = false
- v.viewAngle.Visible = false
- end
- else
- v.name.Visible = false
- v.boxOutline.Visible = false
- v.box.Visible = false
- v.healthBarOutline.Visible = false
- v.healthBar.Visible = false
- v.healthText.Visible = false
- v.distance.Visible = false
- v.viewAngle.Visible = false
- end
- end
- if library.flags["Aim_BotToggle"] and not library.flags["Aim_SilentToggle"] then
- if library.flags["Aim_KeyDown"] then
- local targetPlr = closestToMouse()
- if targetPlr ~= nil then
- camera.CFrame = CFrame.new(camera.CFrame.Position, targetPlr.Character[library.flags["Aim_TargetPart"]].Position)
- end
- end
- end
- if library.flags["Snapline_Toggle"] then
- local ClosestPlayer = Snapline_Closest()
- if ClosestPlayer ~= nil and ClosestPlayer.Character and ClosestPlayer.Character:FindFirstChild("HumanoidRootPart") and ClosestPlayer.Character:FindFirstChild("Head") then
- local snapVector, snapOnScreen = camera:worldToViewportPoint(ClosestPlayer.Character[library.flags["Snapline_TargetPart"]].Position)
- if snapOnScreen then
- Snapline_Line.From = Vector2new(uis:GetMouseLocation().X, uis:GetMouseLocation().Y)
- Snapline_Line.To = Vector2new(snapVector.X, snapVector.Y)
- Snapline_Line.Visible = true
- else
- Snapline_Line.Visible = false
- end
- else
- Snapline_Line.Visible = false
- end
- end
- if library.flags["Player_SpeedToggle"] then
- if plr.Character and plr.Character:FindFirstChild("Humanoid") then
- plr.Character.Humanoid.WalkSpeed = library.flags["Player_SpeedValue"]
- end
- end
- if library.flags["Player_JumpToggle"] then
- if plr.Character and plr.Character:FindFirstChild("Humanoid") then
- plr.Character.Humanoid.JumpPower = library.flags["Player_JumpValue"]
- end
- end
- if library.flags["Light_ForceTime"] then
- lighting.ClockTime = library.flags["Light_Time"]
- end
- if library.flags["Light_Atmosphere"] then
- lighting.Atmosphere.Density = 0.31999999284744
- else
- lighting.Atmosphere.Density = 0
- end
- local plrToGet = closestToMouse()
- if plrToGet ~= nil and plrToGet.Character and plrToGet.Character:FindFirstChild("HumanoidRootPart") and plrToGet.Character:FindFirstChild("Head") then
- Plr_Target = plrToGet.Character[library.flags["Aim_TargetPart"]]
- Plr_Target_Predicted = Plr_Target.CFrame.p + Plr_Target.Velocity / library.flags["Aim_SilentPrediction"]
- end
- end)
- --[FOV Function]
- camera:GetPropertyChangedSignal("FieldOfView"):Connect(function()
- if library.flags["Player_FOVToggle"] then
- camera.FieldOfView = library.flags["Player_FOVValue"]
- end
- end)
- --[Security]
- local oldSecNamecall
- oldSecNamecall = hookmetamethod(game, "__namecall", function(self, ...)
- local args = {...}
- if getnamecallmethod() == "FireServer" and tostring(self) == "ErrorLog" then
- return
- end
- if getnamecallmethod() == "FireServer" and tostring(self) == "Drowning" then
- if library.flag["Player_NoDrown"] then
- return
- end
- end
- return oldSecNamecall(self, ...)
- end)
- --[Silent Aim]
- local oldSilent;
- oldSilent = hookmetamethod(game,"__index",function(self,prop)
- local calling = getcallingscript()
- if tostring(self) == "Barrel" and prop == "CFrame" and library.flags["Aim_BotToggle"] and library.flags["Aim_SilentToggle"] then
- return CFrame.new(oldSilent(self,"Position"), Plr_Target_Predicted)
- end
- return oldSilent(self,prop)
- end)
- --[Silent Aim End]
- --[Loaded Timer]
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "Oblivity",
- Text = ("Took %s seconds to load the script\n"):format(math.round((tick() - executedTimer) *10^3) * 10^-3)
- })
Add Comment
Please, Sign In to add comment