Browse
Script Types
Tools
Community


Superbox siege defenseNO KEYSuperbox Siege Defense sends increasingly strong Boxes onto the battlefield, so clearing enemies quickly becomes harder on higher difficulties. This open-source script includes Kill Aura, which automatically attacks hostile Boxes within its effective area instead of making you target each one manually. Faster clearing helps prevent groups of enemies from surrounding your character or breaking through the defense. Since defeated Boxes reward Points and Cash, Kill Aura can also reduce the repetitive work needed to unlock new characters, purchase weapons, and summon extra support for later waves.
1local Players = game:GetService("Players")2local Workspace = game:GetService("Workspace")3local player = Players.LocalPlayer4local playerGui = player:WaitForChild("PlayerGui")56-- CLEANUP OLD GUIS7local oldGui = playerGui:FindFirstChild("PPSAutoMini")8while oldGui do9 oldGui:Destroy()10 oldGui = playerGui:FindFirstChild("PPSAutoMini")11end1213-- GUI SETUP14local gui = Instance.new("ScreenGui")15gui.Name = "PPSAutoMini"16gui.ResetOnSpawn = false1718-- MAIN FRAME19local frame = Instance.new("Frame")20frame.Size = UDim2.new(0, 180, 0, 100)21frame.Position = UDim2.new(0.5, -90, 0.5, -50)22frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)23frame.Active = true24frame.Visible = false25frame.Parent = gui2627local frameCorner = Instance.new("UICorner", frame)28frameCorner.CornerRadius = UDim.new(0, 8)2930-- MODE SELECTION FRAME31local modeFrame = Instance.new("Frame")32modeFrame.Size = UDim2.new(0, 220, 0, 150)33modeFrame.Position = UDim2.new(0.5, -110, 0.5, -75)34modeFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)35modeFrame.Active = true36modeFrame.Parent = gui3738local modeCorner = Instance.new("UICorner", modeFrame)39modeCorner.CornerRadius = UDim.new(0, 8)4041local modeTitle = Instance.new("TextLabel")42modeTitle.Size = UDim2.new(1, 0, 0, 35)43modeTitle.BackgroundTransparency = 144modeTitle.Text = "Select Mode"45modeTitle.TextColor3 = Color3.new(1, 1, 1)46modeTitle.TextScaled = true47modeTitle.Font = Enum.Font.SourceSansBold48modeTitle.Parent = modeFrame4950-- MODE 1 BUTTON51local mode1Btn = Instance.new("TextButton")52mode1Btn.Size = UDim2.new(1, -20, 0, 40)53mode1Btn.Position = UDim2.new(0, 10, 0, 45)54mode1Btn.Text = "Mode 1 (Normal)"55mode1Btn.BackgroundColor3 = Color3.fromRGB(40, 40, 40)56mode1Btn.TextColor3 = Color3.new(1, 1, 1)57mode1Btn.TextScaled = true58mode1Btn.Parent = modeFrame59Instance.new("UICorner", mode1Btn).CornerRadius = UDim.new(0, 6)6061-- MODE 2 BUTTON62local mode2Btn = Instance.new("TextButton")63mode2Btn.Size = UDim2.new(1, -20, 0, 40)64mode2Btn.Position = UDim2.new(0, 10, 0, 95)65mode2Btn.Text = "Mode 2 (Teleport)"66mode2Btn.BackgroundColor3 = Color3.fromRGB(40, 40, 40)67mode2Btn.TextColor3 = Color3.new(1, 1, 1)68mode2Btn.TextScaled = true69mode2Btn.Parent = modeFrame70Instance.new("UICorner", mode2Btn).CornerRadius = UDim.new(0, 6)7172-- TITLE73local title = Instance.new("TextLabel")74title.Size = UDim2.new(1, 0, 0, 25)75title.BackgroundTransparency = 176title.Text = "PPS Controller"77title.TextColor3 = Color3.new(1, 1, 1)78title.TextScaled = true79title.Font = Enum.Font.SourceSansBold80title.Parent = frame8182-- TOGGLE BUTTON83local toggle = Instance.new("TextButton")84toggle.Size = UDim2.new(1, -10, 0, 35)85toggle.Position = UDim2.new(0, 5, 0, 35)86toggle.Text = "OFF"87toggle.BackgroundColor3 = Color3.fromRGB(40, 40, 40)88toggle.TextColor3 = Color3.new(1, 1, 1)89toggle.TextScaled = true90toggle.Parent = frame91Instance.new("UICorner", toggle).CornerRadius = UDim.new(0, 6)9293-- MINIMIZE BUTTON94local minimize = Instance.new("TextButton")95minimize.Size = UDim2.new(0, 25, 0, 25)96minimize.Position = UDim2.new(1, -30, 0, 0)97minimize.Text = "-"98minimize.BackgroundColor3 = Color3.fromRGB(60, 60, 60)99minimize.TextColor3 = Color3.new(1, 1, 1)100minimize.Parent = frame101102-- HIDE BUTTON103local hide = Instance.new("TextButton")104hide.Size = UDim2.new(0, 25, 0, 25)105hide.Position = UDim2.new(1, -60, 0, 0)106hide.Text = "O"107hide.BackgroundColor3 = Color3.fromRGB(60, 60, 60)108hide.TextColor3 = Color3.new(1, 1, 1)109hide.Parent = frame110111-- CIRCLE BUTTON112local circle = Instance.new("TextButton")113circle.Size = UDim2.new(0, 50, 0, 50)114circle.Position = UDim2.new(1, -60, 0.5, -25)115circle.BackgroundColor3 = Color3.fromRGB(25, 25, 25)116circle.Text = "PPS"117circle.TextColor3 = Color3.new(1, 1, 1)118circle.Visible = false119circle.Active = true120circle.Parent = gui121local circleCorner = Instance.new("UICorner", circle)122circleCorner.CornerRadius = UDim.new(1, 0)123124gui.Parent = playerGui125126-- DRAGGABLE SYSTEM127local function makeDraggable(obj)128 local UserInputService = game:GetService("UserInputService")129 local dragging, dragInput, dragStart, startPos130 obj.InputBegan:Connect(function(input)131 if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then132 dragging = true133 dragStart = input.Position134 startPos = obj.Position135 input.Changed:Connect(function()136 if input.UserInputState == Enum.UserInputState.End then dragging = false end137 end)138 end139 end)140 obj.InputChanged:Connect(function(input)141 if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then142 dragInput = input143 end144 end)145 UserInputService.InputChanged:Connect(function(input)146 if input == dragInput and dragging then147 local delta = input.Position - dragStart148 obj.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)149 end150 end)151end152153makeDraggable(frame)154makeDraggable(modeFrame)155makeDraggable(circle)156157-- CONFIG AND STATES158local enabled = false159local minimized = false160local selectedMode = 1 161162-- MODE BUTTON LOGIC163mode1Btn.MouseButton1Click:Connect(function()164 selectedMode = 1165 title.Text = "PPS (Normal)"166 modeFrame.Visible = false167 frame.Visible = true168end)169170mode2Btn.MouseButton1Click:Connect(function()171 selectedMode = 2172 title.Text = "PPS (Teleport)"173 modeFrame.Visible = false174 frame.Visible = true175end)176177-- CONTROLS LOGIC178toggle.MouseButton1Click:Connect(function()179 enabled = not enabled180 toggle.Text = enabled and "ON" or "OFF"181 toggle.BackgroundColor3 = enabled and Color3.fromRGB(46, 117, 89) or Color3.fromRGB(40, 40, 40)182end)183184minimize.MouseButton1Click:Connect(function()185 minimized = not minimized186 frame.Size = minimized and UDim2.new(0, 180, 0, 30) or UDim2.new(0, 180, 0, 100)187 toggle.Visible = not minimized188end)189190hide.MouseButton1Click:Connect(function()191 frame.Visible = false192 circle.Visible = true193end)194195circle.MouseButton1Click:Connect(function()196 frame.Visible = true197 circle.Visible = false198end)199200-- ==========================================201-- PROMPT SYSTEM202-- ==========================================203local prompts = {}204205local function isTargetPrompt(v)206 if v:IsA("ProximityPrompt") then207 local text = ((v.ActionText or "") .. " " .. (v.ObjectText or "")):lower()208 return text:find("close") or text:find("remove") or text:find("revive")209 end210 return false211end212213local function addPrompt(v)214 if isTargetPrompt(v) then215 prompts[v] = true216 end217end218219local function scanWorkspace()220 for _, v in ipairs(Workspace:GetDescendants()) do221 addPrompt(v)222 end223end224225scanWorkspace()226227Workspace.DescendantAdded:Connect(addPrompt)228Workspace.DescendantRemoving:Connect(function(v)229 prompts[v] = nil230end)231232local function getPromptPosition(v)233 local p = v.Parent234 if not p then return nil end235 if p:IsA("Attachment") then236 return p.WorldPosition237 elseif p:IsA("BasePart") or p:IsA("Model") then238 return p:GetPivot().Position239 end240 return nil241end242243-- BACKEND LOOP244local lastScan = 0245task.spawn(function()246 while true do247 task.wait() -- Minimal engine yield248249 if tick() - lastScan > 3 then250 lastScan = tick()251 scanWorkspace()252 end253254 if enabled then255 local character = player.Character256 local rootPart = character and character:FindFirstChild("HumanoidRootPart")257 258 if rootPart then259 for v in pairs(prompts) do260 if v and v.Parent then261 local pos = getPromptPosition(v)262 if pos then263 pcall(function()264 v.MaxActivationDistance = 9999999265 v.RequiresLineOfSight = false266 267 if selectedMode == 2 then268 local currentPos = rootPart.Position269 local direction = (currentPos - pos).Unit270 271 if direction.Magnitude == 0 or tostring(direction) == "NAN" then272 direction = Vector3.new(1, 0, 0)273 else274 direction = Vector3.new(direction.X, 0, direction.Z).Unit275 end276 277 local teleportOffset = pos + (direction * 9) + Vector3.new(0, 2, 0)278 279 rootPart.CFrame = CFrame.new(teleportOffset, pos)280 rootPart.AssemblyLinearVelocity = Vector3.zero281 end282 283 fireproximityprompt(v, 0)284 end) -- Fixed the syntax error here285 end286 else287 prompts[v] = nil288 end289 end290 end291 end292 end293end)by team spelled incorrectly · 1 script · 774 views




Comments
Loading comments…