-- denied | Realistische Hausverteidigung -- Full version: Auto stuff + Config + Rainbow Star Crosshair local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local Lighting = game:GetService("Lighting") local Camera = workspace.CurrentCamera local LocalPlayer = Players.LocalPlayer local CoreGui = game:GetService("CoreGui") local randomName = "denied_" .. math.random(100000, 999999) local CONFIG_FILE = "denied_haus_config.json" getgenv().denied = { Aimbot = { Enabled = false, FOV = 110, Smooth = 0.42, TeamCheck = true, FOVVisible = true, RainbowFOV = true, }, ESP = { Enabled = true, Box = true, Names = true, TeamCheck = true, MaxDistance = 450, Rainbow = true, Color = Color3.fromRGB(170, 80, 255), }, Crosshair = { Enabled = true, Rainbow = true, Size = 18, Speed = 2.5, }, Misc = { Fullbright = false, NoFog = true, AntiAFK = true, AutoReload = true, AutoDoors = false, AutoClaim = false, }, MenuKey = Enum.KeyCode.RightShift, } -- Config speichern / laden local function saveConfig() local ok, HttpService = pcall(function() return game:GetService("HttpService") end) if not ok then return end pcall(function() writefile(CONFIG_FILE, HttpService:JSONEncode(getgenv().denied)) end) end local function loadConfig() local ok, HttpService = pcall(function() return game:GetService("HttpService") end) if not ok then return end pcall(function() if isfile and isfile(CONFIG_FILE) then local data = HttpService:JSONDecode(readfile(CONFIG_FILE)) for k, v in pairs(data) do if getgenv().denied[k] then for k2, v2 in pairs(v) do getgenv().denied[k][k2] = v2 end end end end end) end loadConfig() -- ================= GUI ================= local gui = Instance.new("ScreenGui") gui.Name = randomName gui.ResetOnSpawn = false gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling pcall(function() gui.Parent = CoreGui end) if not gui.Parent then gui.Parent = LocalPlayer:WaitForChild("PlayerGui") end local main = Instance.new("Frame", gui) main.Size = UDim2.new(0, 500, 0, 360) main.Position = UDim2.new(0.5, -250, 0.5, -180) main.BackgroundColor3 = Color3.fromRGB(28, 18, 42) main.BorderSizePixel = 0 main.Active = true main.Draggable = true Instance.new("UICorner", main).CornerRadius = UDim.new(0, 6) Instance.new("UIStroke", main).Color = Color3.fromRGB(140, 60, 220) Instance.new("UIStroke", main).Thickness = 2 local title = Instance.new("TextLabel", main) title.Size = UDim2.new(1, 0, 0, 28) title.BackgroundColor3 = Color3.fromRGB(45, 25, 70) title.BorderSizePixel = 0 title.Text = " denied | Hausverteidigung" title.TextColor3 = Color3.fromRGB(220, 180, 255) title.Font = Enum.Font.GothamBold title.TextSize = 14 title.TextXAlignment = Enum.TextXAlignment.Left Instance.new("UICorner", title).CornerRadius = UDim.new(0, 6) local tabFrame = Instance.new("Frame", main) tabFrame.Size = UDim2.new(1, -16, 0, 26) tabFrame.Position = UDim2.new(0, 8, 0, 34) tabFrame.BackgroundTransparency = 1 local pages = {} local function makeTab(name, x) local b = Instance.new("TextButton", tabFrame) b.Size = UDim2.new(0, 90, 1, 0) b.Position = UDim2.new(0, x, 0, 0) b.BackgroundColor3 = Color3.fromRGB(55, 30, 85) b.Text = name b.TextColor3 = Color3.fromRGB(210, 180, 255) b.Font = Enum.Font.Gotham b.TextSize = 12 Instance.new("UICorner", b).CornerRadius = UDim.new(0, 4) b.MouseButton1Click:Connect(function() for n, p in pairs(pages) do p.Visible = (n == name) end for _, child in ipairs(tabFrame:GetChildren()) do if child:IsA("TextButton") then child.BackgroundColor3 = child.Text == name and Color3.fromRGB(90, 45, 140) or Color3.fromRGB(55, 30, 85) end end end) end makeTab("Aimbot", 0) makeTab("Visuals", 95) makeTab("Cross", 190) makeTab("Misc", 285) makeTab("Config", 380) local content = Instance.new("Frame", main) content.Size = UDim2.new(1, -16, 1, -68) content.Position = UDim2.new(0, 8, 0, 64) content.BackgroundColor3 = Color3.fromRGB(22, 14, 35) content.BorderSizePixel = 0 Instance.new("UICorner", content).CornerRadius = UDim.new(0, 4) local function createPage(name) local p = Instance.new("ScrollingFrame", content) p.Size = UDim2.new(1, 0, 1, 0) p.BackgroundTransparency = 1 p.ScrollBarThickness = 3 p.ScrollBarImageColor3 = Color3.fromRGB(140, 70, 220) p.Visible = false p.CanvasSize = UDim2.new(0, 0, 0, 320) pages[name] = p return p end local function addToggle(parent, text, y, default, callback) local f = Instance.new("Frame", parent) f.Size = UDim2.new(1, -12, 0, 24) f.Position = UDim2.new(0, 6, 0, y) f.BackgroundTransparency = 1 local l = Instance.new("TextLabel", f) l.Size = UDim2.new(0.7, 0, 1, 0) l.BackgroundTransparency = 1 l.Text = text l.TextColor3 = Color3.fromRGB(210, 190, 255) l.Font = Enum.Font.Gotham l.TextSize = 12 l.TextXAlignment = Enum.TextXAlignment.Left local b = Instance.new("TextButton", f) b.Size = UDim2.new(0, 44, 0, 18) b.Position = UDim2.new(1, -44, 0.5, -9) b.BackgroundColor3 = default and Color3.fromRGB(130, 50, 200) or Color3.fromRGB(50, 30, 70) b.Text = default and "ON" or "OFF" b.TextColor3 = Color3.new(1, 1, 1) b.Font = Enum.Font.GothamBold b.TextSize = 10 Instance.new("UICorner", b).CornerRadius = UDim.new(0, 3) local state = default b.MouseButton1Click:Connect(function() state = not state b.Text = state and "ON" or "OFF" b.BackgroundColor3 = state and Color3.fromRGB(130, 50, 200) or Color3.fromRGB(50, 30, 70) callback(state) end) end local function addSlider(parent, text, y, min, max, default, callback) local f = Instance.new("Frame", parent) f.Size = UDim2.new(1, -12, 0, 36) f.Position = UDim2.new(0, 6, 0, y) f.BackgroundTransparency = 1 local l = Instance.new("TextLabel", f) l.Size = UDim2.new(1, 0, 0, 14) l.BackgroundTransparency = 1 l.Text = text .. ": " .. tostring(default) l.TextColor3 = Color3.fromRGB(210, 190, 255) l.Font = Enum.Font.Gotham l.TextSize = 12 l.TextXAlignment = Enum.TextXAlignment.Left local bar = Instance.new("Frame", f) bar.Size = UDim2.new(1, 0, 0, 6) bar.Position = UDim2.new(0, 0, 0, 20) bar.BackgroundColor3 = Color3.fromRGB(45, 25, 70) Instance.new("UICorner", bar).CornerRadius = UDim.new(0, 3) local fill = Instance.new("Frame", bar) fill.Size = UDim2.new((default - min) / (max - min), 0, 1, 0) fill.BackgroundColor3 = Color3.fromRGB(150, 70, 230) Instance.new("UICorner", fill).CornerRadius = UDim.new(0, 3) local sliding = false bar.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 then sliding = true end end) UserInputService.InputEnded:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 then sliding = false end end) UserInputService.InputChanged:Connect(function(i) if sliding and i.UserInputType == Enum.UserInputType.MouseMovement then local rel = math.clamp((i.Position.X - bar.AbsolutePosition.X) / bar.AbsoluteSize.X, 0, 1) local value = math.floor(min + (max - min) * rel + 0.5) fill.Size = UDim2.new(rel, 0, 1, 0) l.Text = text .. ": " .. tostring(value) callback(value) end end) end local function addButton(parent, text, y, callback) local b = Instance.new("TextButton", parent) b.Size = UDim2.new(1, -12, 0, 28) b.Position = UDim2.new(0, 6, 0, y) b.BackgroundColor3 = Color3.fromRGB(80, 40, 130) b.Text = text b.TextColor3 = Color3.new(1, 1, 1) b.Font = Enum.Font.GothamBold b.TextSize = 12 Instance.new("UICorner", b).CornerRadius = UDim.new(0, 4) b.MouseButton1Click:Connect(callback) end local aimPage = createPage("Aimbot") addToggle(aimPage, "Enabled", 6, getgenv().denied.Aimbot.Enabled, function(v) getgenv().denied.Aimbot.Enabled = v end) addToggle(aimPage, "Team Check", 34, true, function(v) getgenv().denied.Aimbot.TeamCheck = v end) addToggle(aimPage, "FOV Circle", 62, true, function(v) getgenv().denied.Aimbot.FOVVisible = v end) addToggle(aimPage, "Rainbow FOV", 90, true, function(v) getgenv().denied.Aimbot.RainbowFOV = v end) addSlider(aimPage, "FOV", 124, 40, 250, 110, function(v) getgenv().denied.Aimbot.FOV = v end) addSlider(aimPage, "Smooth", 166, 15, 80, 42, function(v) getgenv().denied.Aimbot.Smooth = v / 100 end) local visPage = createPage("Visuals") addToggle(visPage, "ESP Enabled", 6, true, function(v) getgenv().denied.ESP.Enabled = v end) addToggle(visPage, "Box", 34, true, function(v) getgenv().denied.ESP.Box = v end) addToggle(visPage, "Names", 62, true, function(v) getgenv().denied.ESP.Names = v end) addToggle(visPage, "Team Check", 90, true, function(v) getgenv().denied.ESP.TeamCheck = v end) addToggle(visPage, "Rainbow ESP", 118, true, function(v) getgenv().denied.ESP.Rainbow = v end) addSlider(visPage, "Max Distance", 152, 100, 800, 450, function(v) getgenv().denied.ESP.MaxDistance = v end) local crossPage = createPage("Cross") addToggle(crossPage, "Star Crosshair", 6, true, function(v) getgenv().denied.Crosshair.Enabled = v end) addToggle(crossPage, "Rainbow", 34, true, function(v) getgenv().denied.Crosshair.Rainbow = v end) addSlider(crossPage, "Size", 68, 8, 40, 18, function(v) getgenv().denied.Crosshair.Size = v end) addSlider(crossPage, "Spin Speed", 110, 1, 8, 3, function(v) getgenv().denied.Crosshair.Speed = v end) local miscPage = createPage("Misc") addToggle(miscPage, "Fullbright", 6, false, function(v) getgenv().denied.Misc.Fullbright = v end) addToggle(miscPage, "No Fog", 34, true, function(v) getgenv().denied.Misc.NoFog = v end) addToggle(miscPage, "Anti AFK", 62, true, function(v) getgenv().denied.Misc.AntiAFK = v end) addToggle(miscPage, "Auto Reload", 90, true, function(v) getgenv().denied.Misc.AutoReload = v end) addToggle(miscPage, "Auto Doors", 118, false, function(v) getgenv().denied.Misc.AutoDoors = v end) addToggle(miscPage, "Auto Claim Rewards", 146, false, function(v) getgenv().denied.Misc.AutoClaim = v end) local configPage = createPage("Config") addButton(configPage, "Config speichern", 10, function() saveConfig() print("[denied] Config gespeichert") end) addButton(configPage, "Config laden", 48, function() loadConfig() print("[denied] Config geladen") end) pages["Aimbot"].Visible = true UserInputService.InputBegan:Connect(function(input, gp) if gp then return end if input.KeyCode == getgenv().denied.MenuKey then main.Visible = not main.Visible end end) -- ================= FOV + Star Crosshair ================= local fovCircle = Drawing.new("Circle") fovCircle.Thickness = 1.2 fovCircle.NumSides = 48 fovCircle.Filled = false fovCircle.Transparency = 0.5 fovCircle.Visible = true -- 8-point spinning star (like the image) local starLines = {} for i = 1, 8 do local line = Drawing.new("Line") line.Thickness = 1.6 line.Visible = false starLines[i] = line end local hue = 0 local starAngle = 0 -- ================= Helpers ================= local function isAlive(plr) if not plr or plr == LocalPlayer then return false end local char = plr.Character if not char then return false end local hum = char:FindFirstChildOfClass("Humanoid") return hum and hum.Health > 0 and char:FindFirstChild("Head") and char:FindFirstChild("HumanoidRootPart") end local function isEnemy(plr) if not plr or plr == LocalPlayer then return false end if not getgenv().denied.Aimbot.TeamCheck then return true end local myTeam = LocalPlayer.Team if not myTeam then return true end return plr.Team ~= myTeam end local function getClosest() local closest, dist = nil, getgenv().denied.Aimbot.FOV local mouse = UserInputService:GetMouseLocation() for _, plr in ipairs(Players:GetPlayers()) do if isAlive(plr) and isEnemy(plr) then local head = plr.Character.Head local pos, on = Camera:WorldToViewportPoint(head.Position) if on and pos.Z > 0 then local d = (Vector2.new(pos.X, pos.Y) - mouse).Magnitude if d < dist then dist = d closest = head end end end end return closest end local held = false UserInputService.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton2 then held = true end end) UserInputService.InputEnded:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton2 then held = false end end) local VirtualUser = game:GetService("VirtualUser") LocalPlayer.Idled:Connect(function() if getgenv().denied.Misc.AntiAFK then VirtualUser:CaptureController() VirtualUser:ClickButton2(Vector2.new()) end end) -- Auto Reload / Doors / Claim (safe pcall) local lastAuto = 0 RunService.Heartbeat:Connect(function() if tick() - lastAuto < 0.8 then return end lastAuto = tick() pcall(function() if getgenv().denied.Misc.AutoReload then local char = LocalPlayer.Character if char then local tool = char:FindFirstChildOfClass("Tool") if tool then local remote = tool:FindFirstChild("Reload") or tool:FindFirstChildWhichIsA("RemoteEvent") if remote and remote:IsA("RemoteEvent") then remote:FireServer() end end end end end) pcall(function() if getgenv().denied.Misc.AutoDoors then for _, obj in ipairs(workspace:GetDescendants()) do if obj:IsA("ProximityPrompt") and (obj.Name:lower():find("door") or obj.ActionText:lower():find("open") or obj.ActionText:lower():find("tür")) then if obj.MaxActivationDistance > 0 then fireproximityprompt(obj) end end end end end) pcall(function() if getgenv().denied.Misc.AutoClaim then for _, obj in ipairs(workspace:GetDescendants()) do if obj:IsA("ProximityPrompt") and (obj.ActionText:lower():find("claim") or obj.ActionText:lower():find("reward") or obj.ObjectText:lower():find("reward")) then fireproximityprompt(obj) end end end end) end) RunService.RenderStepped:Connect(function(dt) local mouse = UserInputService:GetMouseLocation() hue = (hue + dt * 0.35) % 1 local rainbow = Color3.fromHSV(hue, 1, 1) -- FOV fovCircle.Position = mouse fovCircle.Radius = getgenv().denied.Aimbot.FOV fovCircle.Visible = getgenv().denied.Aimbot.Enabled and getgenv().denied.Aimbot.FOVVisible if getgenv().denied.Aimbot.RainbowFOV then fovCircle.Color = rainbow else fovCircle.Color = Color3.fromRGB(170, 80, 255) end -- Star Crosshair if getgenv().denied.Crosshair.Enabled then starAngle = starAngle + dt * getgenv().denied.Crosshair.Speed local size = getgenv().denied.Crosshair.Size local col = getgenv().denied.Crosshair.Rainbow and rainbow or Color3.fromRGB(170, 80, 255) for i = 1, 8 do local angle = starAngle + (i - 1) * (math.pi / 4) local x2 = mouse.X + math.cos(angle) * size local y2 = mouse.Y + math.sin(angle) * size starLines[i].From = mouse starLines[i].To = Vector2.new(x2, y2) starLines[i].Color = col starLines[i].Visible = true end else for i = 1, 8 do starLines[i].Visible = false end end if getgenv().denied.ESP.Rainbow then getgenv().denied.ESP.Color = rainbow end if getgenv().denied.Misc.Fullbright then Lighting.Brightness = 2 Lighting.ClockTime = 14 Lighting.FogEnd = 1e6 Lighting.GlobalShadows = false end if getgenv().denied.Misc.NoFog then Lighting.FogEnd = 1e6 end if getgenv().denied.Aimbot.Enabled and held then local target = getClosest() if target then local pos = Camera:WorldToViewportPoint(target.Position) local delta = Vector2.new(pos.X, pos.Y) - mouse mousemoverel(delta.X * getgenv().denied.Aimbot.Smooth, delta.Y * getgenv().denied.Aimbot.Smooth) end end end) -- ================= ESP ================= local espFolder = Instance.new("Folder", CoreGui) espFolder.Name = randomName .. "_esp" local boxes = {} local function clearESP(plr) local old = espFolder:FindFirstChild(tostring(plr.UserId)) if old then old:Destroy() end if boxes[plr] then pcall(function() boxes[plr]:Remove() end) boxes[plr] = nil end end local function createESP(plr) clearESP(plr) if not isAlive(plr) or not isEnemy(plr) then return end local char = plr.Character local head = char.Head local holder = Instance.new("Folder", espFolder) holder.Name = tostring(plr.UserId) local hl = Instance.new("Highlight") hl.Adornee = char hl.FillColor = getgenv().denied.ESP.Color hl.OutlineColor = getgenv().denied.ESP.Color hl.FillTransparency = 0.65 hl.OutlineTransparency = 0 hl.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop hl.Parent = holder if getgenv().denied.ESP.Names then local bill = Instance.new("BillboardGui") bill.Adornee = head bill.Size = UDim2.new(0, 120, 0, 28) bill.StudsOffset = Vector3.new(0, 2.3, 0) bill.AlwaysOnTop = true bill.Parent = holder local nameL = Instance.new("TextLabel", bill) nameL.Size = UDim2.new(1, 0, 1, 0) nameL.BackgroundTransparency = 1 nameL.Text = plr.DisplayName or plr.Name nameL.TextColor3 = Color3.fromRGB(220, 180, 255) nameL.TextStrokeTransparency = 0.4 nameL.Font = Enum.Font.GothamBold nameL.TextSize = 12 end if getgenv().denied.ESP.Box then local box = Drawing.new("Square") box.Thickness = 1.2 box.Filled = false box.Color = getgenv().denied.ESP.Color boxes[plr] = box end end RunService.RenderStepped:Connect(function() if not getgenv().denied.ESP.Enabled then for _, c in ipairs(espFolder:GetChildren()) do c:Destroy() end for plr in pairs(boxes) do clearESP(plr) end return end local current = {} for _, plr in ipairs(Players:GetPlayers()) do if not isAlive(plr) or not isEnemy(plr) then clearESP(plr) continue end local root = plr.Character.HumanoidRootPart local head = plr.Character.Head local dist = (root.Position - Camera.CFrame.Position).Magnitude if dist > getgenv().denied.ESP.MaxDistance then clearESP(plr) continue end current[plr] = true if not espFolder:FindFirstChild(tostring(plr.UserId)) then createESP(plr) end local holder = espFolder:FindFirstChild(tostring(plr.UserId)) if holder then local hl = holder:FindFirstChildOfClass("Highlight") if hl then hl.FillColor = getgenv().denied.ESP.Color hl.OutlineColor = getgenv().denied.ESP.Color end end if getgenv().denied.ESP.Box and boxes[plr] then local top = Camera:WorldToViewportPoint(head.Position + Vector3.new(0, 0.9, 0)) local bot = Camera:WorldToViewportPoint(root.Position - Vector3.new(0, 2.2, 0)) if top.Z > 0 and bot.Z > 0 then local h = math.abs(top.Y - bot.Y) local w = h * 0.5 boxes[plr].Size = Vector2.new(w, h) boxes[plr].Position = Vector2.new(top.X - w/2, top.Y) boxes[plr].Color = getgenv().denied.ESP.Color boxes[plr].Visible = true else boxes[plr].Visible = false end end end for plr in pairs(boxes) do if not current[plr] then clearESP(plr) end end end) Players.PlayerRemoving:Connect(clearESP) print("[denied] full – star + rainbow + auto + config")