Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
- local Window = Library.CreateLib("Computer Core - Script", "DarkTheme")
- -- Main Tab
- local MainTab = Window:NewTab("Main")
- local MainSection = MainTab:NewSection("ESP Options")
- -- ESP Functions
- local ESP = {
- Players = {},
- Computers = {},
- Enabled = false,
- ComputerEnabled = false
- }
- -- ESP Players
- MainSection:NewToggle("Player ESP", "Ver jugadores a través de paredes", function(state)
- ESP.Enabled = state
- if state then
- for _, player in ipairs(game:GetService("Players"):GetPlayers()) do
- if player ~= game:GetService("Players").LocalPlayer then
- ESP:CreatePlayerESP(player)
- end
- end
- else
- for _, esp in pairs(ESP.Players) do
- if esp.Box then esp.Box:Destroy() end
- if esp.Name then esp.Name:Destroy() end
- end
- ESP.Players = {}
- end
- end)
- -- ESP Computers
- MainSection:NewToggle("Computer ESP", "Ver computadoras a través de paredes", function(state)
- ESP.ComputerEnabled = state
- if state then
- for _, computer in ipairs(workspace:GetChildren()) do
- if computer:FindFirstChild("ComputerTrigger") then
- ESP:CreateComputerESP(computer)
- end
- end
- else
- for _, esp in pairs(ESP.Computers) do
- if esp.Box then esp.Box:Destroy() end
- if esp.Label then esp.Label:Destroy() end
- end
- ESP.Computers = {}
- end
- end)
- -- Voting System
- local VotingTab = Window:NewTab("Voting")
- local VotingSection = VotingTab:NewSection("Map Control")
- -- Force Map
- VotingSection:NewButton("Force Current Map", "Fuerza el mapa actual", function()
- local args = {
- [1] = 1,
- [2] = true
- }
- game:GetService("ReplicatedStorage").VoteEvent:FireServer(unpack(args))
- end)
- -- Double Vote
- VotingSection:NewToggle("Double Vote", "Activa el voto doble", function(state)
- _G.DoubleVote = state
- if state then
- local mt = getrawmetatable(game)
- setreadonly(mt, false)
- local oldNamecall = mt.__namecall
- mt.__namecall = newcclosure(function(self, ...)
- local args = {...}
- local method = getnamecallmethod()
- if method == "FireServer" and self.Name == "VoteEvent" then
- args[2] = 2
- end
- return oldNamecall(self, unpack(args))
- end)
- end
- end)
- -- Speed Control
- local PlayerTab = Window:NewTab("Player")
- local PlayerSection = PlayerTab:NewSection("Speed Control")
- PlayerSection:NewSlider("WalkSpeed", "Cambia tu velocidad", 100, 16, function(s)
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = s
- end)
- -- ESP Functions Implementation
- function ESP:CreatePlayerESP(player)
- local esp = {}
- esp.Box = Drawing.new("Square")
- esp.Box.Thickness = 1
- esp.Box.Color = Color3.fromRGB(255, 0, 0)
- esp.Box.Filled = false
- esp.Box.Transparency = 1
- esp.Name = Drawing.new("Text")
- esp.Name.Color = Color3.fromRGB(255, 0, 0)
- esp.Name.Size = 14
- esp.Name.Center = true
- esp.Name.Outline = true
- ESP.Players[player] = esp
- end
- function ESP:CreateComputerESP(computer)
- local esp = {}
- esp.Box = Drawing.new("Square")
- esp.Box.Thickness = 1
- esp.Box.Color = Color3.fromRGB(0, 255, 0)
- esp.Box.Filled = false
- esp.Box.Transparency = 1
- esp.Label = Drawing.new("Text")
- esp.Label.Color = Color3.fromRGB(0, 255, 0)
- esp.Label.Size = 14
- esp.Label.Center = true
- esp.Label.Outline = true
- ESP.Computers[computer] = esp
- end
- -- Update ESP
- game:GetService("RunService").RenderStepped:Connect(function()
- if ESP.Enabled then
- for player, esp in pairs(ESP.Players) do
- if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
- local pos, onScreen = workspace.CurrentCamera:WorldToViewportPoint(player.Character.HumanoidRootPart.Position)
- if onScreen then
- esp.Box.Visible = true
- esp.Name.Visible = true
- -- Update ESP positions
- else
- esp.Box.Visible = false
- esp.Name.Visible = false
- end
- end
- end
- end
- if ESP.ComputerEnabled then
- for computer, esp in pairs(ESP.Computers) do
- if computer:FindFirstChild("ComputerTrigger") then
- local pos, onScreen = workspace.CurrentCamera:WorldToViewportPoint(computer.ComputerTrigger.Position)
- if onScreen then
- esp.Box.Visible = true
- esp.Label.Visible = true
- -- Update ESP positions
- else
- esp.Box.Visible = false
- esp.Label.Visible = false
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement