Advertisement
debanhiescobar171

"Computer Core Script"

Nov 24th, 2024
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.02 KB | None | 0 0
  1. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
  2. local Window = Library.CreateLib("Computer Core - Script", "DarkTheme")
  3.  
  4. -- Main Tab
  5. local MainTab = Window:NewTab("Main")
  6. local MainSection = MainTab:NewSection("ESP Options")
  7.  
  8. -- ESP Functions
  9. local ESP = {
  10.     Players = {},
  11.     Computers = {},
  12.     Enabled = false,
  13.     ComputerEnabled = false
  14. }
  15.  
  16. -- ESP Players
  17. MainSection:NewToggle("Player ESP", "Ver jugadores a través de paredes", function(state)
  18.     ESP.Enabled = state
  19.     if state then
  20.         for _, player in ipairs(game:GetService("Players"):GetPlayers()) do
  21.             if player ~= game:GetService("Players").LocalPlayer then
  22.                 ESP:CreatePlayerESP(player)
  23.             end
  24.         end
  25.     else
  26.         for _, esp in pairs(ESP.Players) do
  27.             if esp.Box then esp.Box:Destroy() end
  28.             if esp.Name then esp.Name:Destroy() end
  29.         end
  30.         ESP.Players = {}
  31.     end
  32. end)
  33.  
  34. -- ESP Computers
  35. MainSection:NewToggle("Computer ESP", "Ver computadoras a través de paredes", function(state)
  36.     ESP.ComputerEnabled = state
  37.     if state then
  38.         for _, computer in ipairs(workspace:GetChildren()) do
  39.             if computer:FindFirstChild("ComputerTrigger") then
  40.                 ESP:CreateComputerESP(computer)
  41.             end
  42.         end
  43.     else
  44.         for _, esp in pairs(ESP.Computers) do
  45.             if esp.Box then esp.Box:Destroy() end
  46.             if esp.Label then esp.Label:Destroy() end
  47.         end
  48.         ESP.Computers = {}
  49.     end
  50. end)
  51.  
  52. -- Voting System
  53. local VotingTab = Window:NewTab("Voting")
  54. local VotingSection = VotingTab:NewSection("Map Control")
  55.  
  56. -- Force Map
  57. VotingSection:NewButton("Force Current Map", "Fuerza el mapa actual", function()
  58.     local args = {
  59.         [1] = 1,
  60.         [2] = true
  61.     }
  62.     game:GetService("ReplicatedStorage").VoteEvent:FireServer(unpack(args))
  63. end)
  64.  
  65. -- Double Vote
  66. VotingSection:NewToggle("Double Vote", "Activa el voto doble", function(state)
  67.     _G.DoubleVote = state
  68.     if state then
  69.         local mt = getrawmetatable(game)
  70.         setreadonly(mt, false)
  71.         local oldNamecall = mt.__namecall
  72.         mt.__namecall = newcclosure(function(self, ...)
  73.             local args = {...}
  74.             local method = getnamecallmethod()
  75.             if method == "FireServer" and self.Name == "VoteEvent" then
  76.                 args[2] = 2
  77.             end
  78.             return oldNamecall(self, unpack(args))
  79.         end)
  80.     end
  81. end)
  82.  
  83. -- Speed Control
  84. local PlayerTab = Window:NewTab("Player")
  85. local PlayerSection = PlayerTab:NewSection("Speed Control")
  86.  
  87. PlayerSection:NewSlider("WalkSpeed", "Cambia tu velocidad", 100, 16, function(s)
  88.     game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = s
  89. end)
  90.  
  91. -- ESP Functions Implementation
  92. function ESP:CreatePlayerESP(player)
  93.     local esp = {}
  94.    
  95.     esp.Box = Drawing.new("Square")
  96.     esp.Box.Thickness = 1
  97.     esp.Box.Color = Color3.fromRGB(255, 0, 0)
  98.     esp.Box.Filled = false
  99.     esp.Box.Transparency = 1
  100.    
  101.     esp.Name = Drawing.new("Text")
  102.     esp.Name.Color = Color3.fromRGB(255, 0, 0)
  103.     esp.Name.Size = 14
  104.     esp.Name.Center = true
  105.     esp.Name.Outline = true
  106.    
  107.     ESP.Players[player] = esp
  108. end
  109.  
  110. function ESP:CreateComputerESP(computer)
  111.     local esp = {}
  112.    
  113.     esp.Box = Drawing.new("Square")
  114.     esp.Box.Thickness = 1
  115.     esp.Box.Color = Color3.fromRGB(0, 255, 0)
  116.     esp.Box.Filled = false
  117.     esp.Box.Transparency = 1
  118.    
  119.     esp.Label = Drawing.new("Text")
  120.     esp.Label.Color = Color3.fromRGB(0, 255, 0)
  121.     esp.Label.Size = 14
  122.     esp.Label.Center = true
  123.     esp.Label.Outline = true
  124.    
  125.     ESP.Computers[computer] = esp
  126. end
  127.  
  128. -- Update ESP
  129. game:GetService("RunService").RenderStepped:Connect(function()
  130.     if ESP.Enabled then
  131.         for player, esp in pairs(ESP.Players) do
  132.             if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  133.                 local pos, onScreen = workspace.CurrentCamera:WorldToViewportPoint(player.Character.HumanoidRootPart.Position)
  134.                 if onScreen then
  135.                     esp.Box.Visible = true
  136.                     esp.Name.Visible = true
  137.                     -- Update ESP positions
  138.                 else
  139.                     esp.Box.Visible = false
  140.                     esp.Name.Visible = false
  141.                 end
  142.             end
  143.         end
  144.     end
  145.    
  146.     if ESP.ComputerEnabled then
  147.         for computer, esp in pairs(ESP.Computers) do
  148.             if computer:FindFirstChild("ComputerTrigger") then
  149.                 local pos, onScreen = workspace.CurrentCamera:WorldToViewportPoint(computer.ComputerTrigger.Position)
  150.                 if onScreen then
  151.                     esp.Box.Visible = true
  152.                     esp.Label.Visible = true
  153.                     -- Update ESP positions
  154.                 else
  155.                     esp.Box.Visible = false
  156.                     esp.Label.Visible = false
  157.                 end
  158.             end
  159.         end
  160.     end
  161. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement