local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local LocalPlayer = Players.LocalPlayer local Camera = workspace.CurrentCamera -- State Management local Settings = { Aimbot = false, AutoBlock = false, InfStamina = false, AntiStun = false, SkateControl = false, AimbotSmoothing = 0.5 } -- GUI Creation local ScreenGui = Instance.new("ScreenGui", game:GetService("CoreGui")) local MainFrame = Instance.new("Frame", ScreenGui) MainFrame.Size = UDim2.new(0, 200, 0, 250) MainFrame.Position = UDim2.new(0.5, -100, 0.5, -125) MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) MainFrame.BorderSizePixel = 0 MainFrame.Active = true MainFrame.Draggable = true local Title = Instance.new("TextLabel", MainFrame) Title.Size = UDim2.new(1, 0, 0, 30) Title.Text = "Forsaken Script" Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.BackgroundColor3 = Color3.fromRGB(45, 45, 45) local UIListLayout = Instance.new("UIListLayout", MainFrame) UIListLayout.Padding = UDim.new(0, 5) UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder -- Toggle Helper Function local function CreateToggle(name, key) local Button = Instance.new("TextButton", MainFrame) Button.Size = UDim2.new(1, -10, 0, 30) Button.Text = name .. ": OFF" Button.BackgroundColor3 = Color3.fromRGB(60, 60, 60) Button.TextColor3 = Color3.fromRGB(255, 255, 255) Button.MouseButton1Click:Connect(function() Settings[key] = not Settings[key] Button.Text = name .. ": " .. (Settings[key] and "ON" or "OFF") Button.BackgroundColor3 = Settings[key] and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(60, 60, 60) end) end -- Create Buttons CreateToggle("Aimbot", "Aimbot") CreateToggle("Auto Block", "AutoBlock") CreateToggle("Inf Stamina", "InfStamina") CreateToggle("Anti Stun/Slow", "AntiStun") CreateToggle("Skate Control", "SkateControl")-- Feature Logic local function GetClosestTarget() local closest, dist = nil, math.huge for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then local pos, onScreen = Camera:WorldToViewportPoint(player.Character.HumanoidRootPart.Position) if onScreen then local mousePos = UserInputService:GetMouseLocation() local magnitude = (Vector2.new(pos.X, pos.Y) - mousePos).Magnitude if magnitude < dist then closest = player.Character.HumanoidRootPart dist = magnitude end end end end return closest end RunService.Heartbeat:Connect(function() local char = LocalPlayer.Character if not char then return end local hum = char:FindFirstChildOfClass("Humanoid") local root = char:FindFirstChild("HumanoidRootPart") -- Inf Stamina & Anti Stun if hum then if Settings.InfStamina then local stam = char:FindFirstChild("Stamina") or LocalPlayer:FindFirstChild("Stamina") if stam then stam.Value = 100 end end if Settings.AntiStun then hum.WalkSpeed = 16 if char:FindFirstChild("Stunned") then char.Stunned.Value = false end end end -- Aimbot if Settings.Aimbot and UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton2) then local target = GetClosestTarget() if target then Camera.CFrame = Camera.CFrame:Lerp(CFrame.new(Camera.CFrame.Position, target.Position), Settings.AimbotSmoothing) end end -- Skate Control if Settings.SkateControl and root and UserInputService:IsKeyDown(Enum.KeyCode.W) then root.Velocity = root.CFrame.LookVector * 50 + Vector3.new(0, root.Velocity.Y, 0) end end) -- Auto Block Logic LocalPlayer.CharacterChildAdded:Connect(function(child) if Settings.AutoBlock and child.Name == "AttackHitbox" then local remote = game:GetService("ReplicatedStorage"):FindFirstChild("BlockEvent", true) if remote then remote:FireServer(true) task.wait(0.5) remote:FireServer(false) end end end)