local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local PlayerGui = LocalPlayer:WaitForChild("PlayerGui") -- Colors local ENEMY_COLOR = Color3.fromRGB(255, 255, 0) local TEAM_COLOR = Color3.fromRGB(0, 255, 255) local HIGHLIGHT_NAME = "Game_Wallhack_Highlight" local wallhackEnabled = true local screenGui = Instance.new("ScreenGui") screenGui.Name = "WallhackGui" screenGui.ResetOnSpawn = false screenGui.Parent = PlayerGui local toggleButton = Instance.new("TextButton") toggleButton.Size = UDim2.new(0, 120, 0, 45) toggleButton.Position = UDim2.new(1, -130, 0.5, -22) toggleButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40) toggleButton.TextColor3 = Color3.new(1, 1, 1) toggleButton.Text = "Wallhack: ON" toggleButton.Font = Enum.Font.GothamBold toggleButton.TextSize = 14 toggleButton.Parent = screenGui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 8) corner.Parent = toggleButton local function applyHighlight(player) if player == LocalPlayer then return end local function setup(character) local highlight = character:FindFirstChild(HIGHLIGHT_NAME) or Instance.new("Highlight") highlight.Name = HIGHLIGHT_NAME highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop highlight.FillTransparency = 0.5 highlight.OutlineTransparency = 0 highlight.Enabled = wallhackEnabled if player.Team ~= nil and player.Team == LocalPlayer.Team then highlight.FillColor = TEAM_COLOR highlight.OutlineColor = TEAM_COLOR else highlight.FillColor = ENEMY_COLOR highlight.OutlineColor = ENEMY_COLOR end highlight.Adornee = character highlight.Parent = character end player.CharacterAdded:Connect(setup) if player.Character then setup(player.Character) end end toggleButton.MouseButton1Click:Connect(function() wallhackEnabled = not wallhackEnabled if wallhackEnabled then toggleButton.Text = "Wallhack: ON" toggleButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40) else toggleButton.Text = "Wallhack: OFF" toggleButton.BackgroundColor3 = Color3.fromRGB(100, 40, 40) end for _, p in pairs(Players:GetPlayers()) do if p.Character then local h = p.Character:FindFirstChild(HIGHLIGHT_NAME) if h then h.Enabled = wallhackEnabled end end end end) for _, player in pairs(Players:GetPlayers()) do applyHighlight(player) end Players.PlayerAdded:Connect(applyHighlight) local function refresh() for _, p in pairs(Players:GetPlayers()) do if p.Character then applyHighlight(p) end end end LocalPlayer:GetPropertyChangedSignal("Team"):Connect(refresh) Players.PlayerAdded:Connect(function(p) p:GetPropertyChangedSignal("Team"):Connect(function() if p.Character then applyHighlight(p) end end) end)