-- SERVICES local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local TweenService = game:GetService("TweenService") -- PLAYER local player = Players.LocalPlayer local camera = workspace.CurrentCamera -- SETTINGS local BOOST_SPEED = 220 local NORMAL_FOV = 70 local SPEED_FOV = 95 -- HITBOX SETTINGS (أكبر شوية) local HITBOX_SIZE = Vector3.new(7.5, 7.5, 7.5) local HITBOX_TRANSPARENCY = 0.6 -- STATES local macroEnabled = true local uiEnabled = true local holdingQ = false local speedConnection local hitboxConnection local gui -- CHARACTER VARS local character local humanoid local rootPart local NORMAL_SPEED = 16 -- MESSAGE local hint = Instance.new("Hint") hint.Parent = workspace ------------------------------------------------ -- CHARACTER SETUP ------------------------------------------------ local function setupCharacter(char) character = char humanoid = character:WaitForChild("Humanoid") rootPart = character:WaitForChild("HumanoidRootPart") NORMAL_SPEED = humanoid.WalkSpeed end player.CharacterAdded:Connect(setupCharacter) if player.Character then setupCharacter(player.Character) end ------------------------------------------------ -- FOV ------------------------------------------------ local function tweenFOV(value) TweenService:Create( camera, TweenInfo.new(0.25, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {FieldOfView = value} ):Play() end ------------------------------------------------ -- SPEED ------------------------------------------------ local function startSpeed() if speedConnection then return end tweenFOV(SPEED_FOV) speedConnection = RunService.RenderStepped:Connect(function() if holdingQ and macroEnabled and uiEnabled and humanoid then humanoid.WalkSpeed = BOOST_SPEED end end) end local function stopSpeed() holdingQ = false if speedConnection then speedConnection:Disconnect() speedConnection = nil end if humanoid then humanoid.WalkSpeed = NORMAL_SPEED end tweenFOV(NORMAL_FOV) end ------------------------------------------------ -- HITBOX SYSTEM (UI ON / OFF) ------------------------------------------------ local function applyHitbox() for _, plr in pairs(Players:GetPlayers()) do if plr ~= player and plr.Character then local hrp = plr.Character:FindFirstChild("HumanoidRootPart") if hrp then hrp.Size = HITBOX_SIZE hrp.Transparency = HITBOX_TRANSPARENCY hrp.CanCollide = false end end end end local function resetHitbox() for _, plr in pairs(Players:GetPlayers()) do if plr ~= player and plr.Character then local hrp = plr.Character:FindFirstChild("HumanoidRootPart") if hrp then hrp.Size = Vector3.new(2, 2, 1) hrp.Transparency = 1 hrp.CanCollide = true end end end end local function startHitbox() if hitboxConnection then return end hitboxConnection = RunService.RenderStepped:Connect(function() if uiEnabled then applyHitbox() end end) end local function stopHitbox() if hitboxConnection then hitboxConnection:Disconnect() hitboxConnection = nil end resetHitbox() end ------------------------------------------------ -- INPUT ------------------------------------------------ UserInputService.InputBegan:Connect(function(input, gpe) if gpe then return end -- SPEED if input.KeyCode == Enum.KeyCode.Q and macroEnabled and uiEnabled then holdingQ = true startSpeed() -- REMOVE SCRIPT elseif input.KeyCode == Enum.KeyCode.X then macroEnabled = false uiEnabled = false stopSpeed() stopHitbox() if gui then gui:Destroy() end hint.Text = "script gone press Z TO GET IT BACK" -- RESTORE SCRIPT elseif input.KeyCode == Enum.KeyCode.Z then if not macroEnabled then macroEnabled = true uiEnabled = true hint.Text = "macro restored" createUI() startHitbox() end end end) UserInputService.InputEnded:Connect(function(input) if input.KeyCode == Enum.KeyCode.Q then stopSpeed() end end) ------------------------------------------------ -- UI ------------------------------------------------ function createUI() gui = Instance.new("ScreenGui") gui.Parent = player.PlayerGui gui.ResetOnSpawn = false local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 200, 0, 120) frame.Position = UDim2.new(0.05, 0, 0.4, 0) frame.BackgroundColor3 = Color3.fromRGB(25,25,25) frame.Active = true frame.Draggable = true frame.Parent = gui Instance.new("UICorner", frame) local title = Instance.new("TextLabel") title.Size = UDim2.new(1,0,0,30) title.BackgroundTransparency = 1 title.Text = "Macro (Speed + Hitbox)" title.TextColor3 = Color3.new(1,1,1) title.Font = Enum.Font.GothamBold title.TextSize = 14 title.Parent = frame local onBtn = Instance.new("TextButton") onBtn.Size = UDim2.new(0.45,0,0,40) onBtn.Position = UDim2.new(0.05,0,0.5,0) onBtn.Text = "ON" onBtn.BackgroundColor3 = Color3.fromRGB(0,180,0) onBtn.TextColor3 = Color3.new(1,1,1) onBtn.Font = Enum.Font.GothamBold onBtn.Parent = frame Instance.new("UICorner", onBtn) local offBtn = Instance.new("TextButton") offBtn.Size = UDim2.new(0.45,0,0,40) offBtn.Position = UDim2.new(0.5,0,0.5,0) offBtn.Text = "OFF" offBtn.BackgroundColor3 = Color3.fromRGB(180,0,0) offBtn.TextColor3 = Color3.new(1,1,1) offBtn.Font = Enum.Font.GothamBold offBtn.Parent = frame Instance.new("UICorner", offBtn) onBtn.MouseButton1Click:Connect(function() uiEnabled = true startHitbox() end) offBtn.MouseButton1Click:Connect(function() uiEnabled = false stopSpeed() stopHitbox() end) end ------------------------------------------------ -- INIT ------------------------------------------------ camera.FieldOfView = NORMAL_FOV hint.Text = "macro loaded" createUI() startHitbox()