--// Rayfield local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local Window = Rayfield:CreateWindow({ Name = "ESP Universal HUB", LoadingTitle = "Carregando...", LoadingSubtitle = "by ChatGPT", ConfigurationSaving = { Enabled = true, FolderName = "ESP_HUB", FileName = "config" }, KeySystem = false, }) local ESPTab = Window:CreateTab("ESP", 4483362458) -- Variáveis local ESP_Enabled = false local ESP_Name = false local ESP_Health = false local ESP_Distance = false local ESP_Box = false -- Função ESP function CreateESP(player) if player == game.Players.LocalPlayer then return end local char = player.Character if not char then return end local highlight = Instance.new("Highlight") highlight.FillTransparency = 1 highlight.OutlineColor = Color3.fromRGB(0, 170, 255) highlight.Parent = char local billboard = Instance.new("BillboardGui", char) billboard.Size = UDim2.new(0, 200, 0, 50) billboard.AlwaysOnTop = true local text = Instance.new("TextLabel", billboard) text.Size = UDim2.new(1,0,1,0) text.BackgroundTransparency = 1 text.TextColor3 = Color3.new(1,1,1) text.TextStrokeTransparency = 0 game:GetService("RunService").RenderStepped:Connect(function() if not ESP_Enabled then highlight.Enabled = false billboard.Enabled = false return end highlight.Enabled = ESP_Box billboard.Enabled = true local info = "" if ESP_Name then info = info .. player.Name .. "\n" end if ESP_Health and char:FindFirstChild("Humanoid") then info = info .. "HP: " .. math.floor(char.Humanoid.Health) .. "\n" end if ESP_Distance then local dist = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - char.HumanoidRootPart.Position).Magnitude info = info .. "Dist: " .. math.floor(dist) end text.Text = info end) end -- Aplicar ESP em todos for _, player in pairs(game.Players:GetPlayers()) do CreateESP(player) end game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function() wait(1) CreateESP(player) end) end) -- TOGGLES ESPTab:CreateToggle({ Name = "Ativar ESP", CurrentValue = false, Callback = function(v) ESP_Enabled = v end, }) ESPTab:CreateToggle({ Name = "Mostrar Nome", CurrentValue = false, Callback = function(v) ESP_Name = v end, }) ESPTab:CreateToggle({ Name = "Mostrar Vida", CurrentValue = false, Callback = function(v) ESP_Health = v end, }) ESPTab:CreateToggle({ Name = "Mostrar Distância", CurrentValue = false, Callback = function(v) ESP_Distance = v end, }) ESPTab:CreateToggle({ Name = "ESP Box (Highlight)", CurrentValue = false, Callback = function(v) ESP_Box = v end, }) -- Botão abrir/fechar UI local UIS = game:GetService("UserInputService") UIS.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.RightControl then Rayfield:Toggle() end end)