Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Open source
- Made by !vcsk0#1516
- Credits to me
- Credits to the Owner Who Made The ESP Script
- --]]
- local CoreGui = game:GetService("StarterGui")
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local LocalPlayer = Players.LocalPlayer
- local function isNumber(str)
- if tonumber(str) ~= nil or str == 'inf' then
- return true
- end
- end
- --// Environment Variables
- getgenv().HitboxSize = 15
- getgenv().HitboxTransparency = 0.9
- getgenv().HitboxStatus = false
- getgenv().TeamCheck = false
- --// Defer loading these until character is available
- pcall(function()
- getgenv().Walkspeed = LocalPlayer.Character.Humanoid.WalkSpeed
- getgenv().Jumppower = LocalPlayer.Character.Humanoid.JumpPower
- end)
- getgenv().TPSpeed = 3
- getgenv().TPWalk = false
- --// UI
- local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/Vcsk/UI-Library/main/Source/MyUILib(Unamed).lua"))();
- local Window = Library:Create("Hitbox Expander")
- local ToggleGui = Instance.new("ScreenGui")
- local Toggle = Instance.new("TextButton")
- ToggleGui.Name = "ToggleGui_HE"
- ToggleGui.Parent = game.CoreGui
- Toggle.Name = "Toggle"
- Toggle.Parent = ToggleGui
- Toggle.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
- Toggle.BackgroundTransparency = 0.660
- Toggle.Position = UDim2.new(0, 0, 0.454706937, 0)
- Toggle.Size = UDim2.new(0.0650164187, 0, 0.0888099447, 0)
- Toggle.Font = Enum.Font.SourceSans
- Toggle.Text = "Toggle"
- Toggle.TextScaled = true
- Toggle.TextColor3 = Color3.fromRGB(40, 40, 40)
- Toggle.TextSize = 24.000
- Toggle.TextXAlignment = Enum.TextXAlignment.Left
- Toggle.Active = true
- Toggle.Draggable = true
- Toggle.MouseButton1Click:connect(function()
- Library:ToggleUI()
- end)
- local HomeTab = Window:Tab("Home","rbxassetid://10888331510")
- local PlayerTab = Window:Tab("Players","rbxassetid://12296135476")
- local VisualTab = Window:Tab("Visuals","rbxassetid://12308581351")
- HomeTab:InfoLabel("only works on some games!")
- HomeTab:Section("Settings")
- HomeTab:TextBox("Hitbox Size", function(value)
- if isNumber(value) then
- getgenv().HitboxSize = tonumber(value)
- end
- end)
- HomeTab:TextBox("Hitbox Transparency", function(number)
- if isNumber(number) then
- getgenv().HitboxTransparency = tonumber(number)
- end
- end)
- HomeTab:Section("Main")
- --// A função do Toggle agora apenas muda o estado. O loop principal cuida do resto.
- HomeTab:Toggle("Status: ", function(state)
- getgenv().HitboxStatus = state
- end)
- HomeTab:Toggle("Team Check", function(state)
- getgenv().TeamCheck = state
- end)
- --[[
- ========================================================================================
- // //
- // *** INÍCIO DA CORREÇÃO PRINCIPAL *** //
- // //
- ========================================================================================
- Este loop único e centralizado gerencia a aplicação e remoção da hitbox para todos os jogadores.
- Ele roda a cada frame, garantindo que novos jogadores ou jogadores que renascem
- sejam afetados imediatamente, sem criar múltiplos loops e causar lag.
- ]]
- RunService.RenderStepped:Connect(function()
- for _, player in ipairs(Players:GetPlayers()) do
- if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
- local hrp = player.Character.HumanoidRootPart
- -- Decide se a hitbox deve ser aplicada neste jogador
- local shouldApplyHitbox = false
- if getgenv().HitboxStatus then
- if getgenv().TeamCheck then
- -- Se o TeamCheck está ativo, aplica apenas se o time for diferente
- if LocalPlayer.Team ~= player.Team then
- shouldApplyHitbox = true
- end
- else
- -- Se o TeamCheck está inativo, aplica para todos
- shouldApplyHitbox = true
- end
- end
- -- Aplica ou reseta a hitbox com base na decisão acima
- if shouldApplyHitbox then
- -- Aplica a hitbox expandida
- pcall(function()
- hrp.Size = Vector3.new(getgenv().HitboxSize, getgenv().HitboxSize, getgenv().HitboxSize)
- hrp.Transparency = getgenv().HitboxTransparency
- hrp.BrickColor = BrickColor.new("Really black")
- hrp.Material = Enum.Material.Neon
- hrp.CanCollide = false
- end)
- else
- -- Reseta a hitbox para o padrão
- pcall(function()
- hrp.Size = Vector3.new(2, 2, 1)
- hrp.Transparency = 1
- hrp.BrickColor = BrickColor.new("Medium stone grey")
- hrp.Material = Enum.Material.Plastic
- hrp.CanCollide = false -- Mantendo como no script original
- end)
- end
- end
- end
- end)
- --[[
- ========================================================================================
- // //
- // *** FIM DA CORREÇÃO PRINCIPAL *** //
- // //
- ========================================================================================
- ]]
- HomeTab:Keybind("Toggle UI", Enum.KeyCode.F, function()
- Library:ToggleUI()
- end)
- PlayerTab:TextBox("WalkSpeed", function(value)
- if isNumber(value) then
- getgenv().Walkspeed = tonumber(value)
- pcall(function()
- LocalPlayer.Character.Humanoid.WalkSpeed = tonumber(value)
- end)
- end
- end)
- PlayerTab:Toggle("Loop WalkSpeed", function(state)
- getgenv().loopW = state
- RunService.Heartbeat:Connect(function()
- if getgenv().loopW == true then
- pcall(function()
- LocalPlayer.Character.Humanoid.WalkSpeed = getgenv().Walkspeed
- end)
- end
- end)
- end)
- PlayerTab:TextBox("JumpPower", function(value)
- if isNumber(value) then
- getgenv().Jumppower = tonumber(value)
- pcall(function()
- LocalPlayer.Character.Humanoid.JumpPower = tonumber(value)
- end)
- end
- end)
- PlayerTab:Toggle("Loop JumpPower", function(state)
- getgenv().loopJ = state
- RunService.Heartbeat:Connect(function()
- if getgenv().loopJ == true then
- pcall(function()
- LocalPlayer.Character.Humanoid.JumpPower = getgenv().Jumppower
- end)
- end
- end)
- end)
- PlayerTab:TextBox("TP Speed", function(value)
- if isNumber(value) then
- getgenv().TPSpeed = tonumber(value)
- end
- end)
- PlayerTab:Toggle("TP Walk", function(s)
- getgenv().TPWalk = s
- if not s then return end -- Para o loop se o toggle for desativado
- task.spawn(function()
- while getgenv().TPWalk and task.wait() do
- pcall(function()
- local chr = LocalPlayer.Character
- local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
- if hum and hum.MoveDirection.Magnitude > 0 then
- local speed = getgenv().TPSpeed or 3
- chr:TranslateBy(hum.MoveDirection * speed)
- end
- end)
- end
- end)
- end)
- PlayerTab:Slider("Fov", game.Workspace.CurrentCamera.FieldOfView,120, function(v)
- game.Workspace.CurrentCamera.FieldOfView = v
- end)
- PlayerTab:Toggle("Noclip", function(s)
- getgenv().Noclip = s
- game:GetService("RunService").Heartbeat:Connect(function()
- if getgenv().Noclip == true then
- pcall(function()
- for _, part in ipairs(LocalPlayer.Character:GetDescendants()) do
- if part:IsA("BasePart") then
- part.CanCollide = false
- end
- end
- end)
- end
- end)
- end)
- PlayerTab:Toggle("Infinite Jump", function(s)
- getgenv().InfJ = s
- game:GetService("UserInputService").JumpRequest:connect(function()
- if getgenv().InfJ == true then
- pcall(function()
- LocalPlayer.Character:FindFirstChildOfClass('Humanoid'):ChangeState("Jumping")
- end)
- end
- end)
- end)
- PlayerTab:Button("Rejoin", function()
- game:GetService("TeleportService"):Teleport(game.PlaceId, LocalPlayer)
- end)
- VisualTab:InfoLabel("Wait 3-10 seconds")
- VisualTab:Toggle("Character Highlight", function(state)
- getgenv().enabled = state --Toggle on/off
- getgenv().filluseteamcolor = true --Toggle fill color using player team color on/off
- getgenv().outlineuseteamcolor = true --Toggle outline color using player team color on/off
- getgenv().fillcolor = Color3.new(0, 0, 0) --Change fill color, no need to edit if using team color
- getgenv().outlinecolor = Color3.new(1, 1, 1) --Change outline color, no need to edit if using team color
- getgenv().filltrans = 0.5 --Change fill transparency
- getgenv().outlinetrans = 0.5 --Change outline transparency
- loadstring(game:HttpGet("https://raw.githubusercontent.com/Vcsk/RobloxScripts/main/Highlight-ESP.lua"))()
- end)
- if game.PlaceId == 3082002798 then
- local GamesTab = Window:Tab("Games","rbxassetid://15426471035")
- GamesTab:InfoLabel("Game: "..game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Name)
- GamesTab:Button("No Cooldown", function()
- for i, v in pairs(game:GetService('ReplicatedStorage')['Shared_Modules'].Tools:GetDescendants()) do
- if v:IsA('ModuleScript') then
- local Module = require(v)
- Module.DEBOUNCE = 0
- end
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment