-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] --[[rscripts:analytics:start]] -- Script analytics (enabled by the creator on rscripts.net). -- Runs in its own thread and cannot affect the script below. task.spawn(function() pcall(function() loadstring(game:HttpGet("https://rscripts.net/api/telemetry/v2/client.lua?s=6b030dfa521530169b16baf7"))() end) end) --[[rscripts:analytics:end]] --================================================== -- CC2 HUB | UPDATED REWORK -- One-Shot RAM | Full Camera Fly -- Combined Movement & Steering --================================================== local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UIS = game:GetService("UserInputService") local Workspace = game:GetService("Workspace") local TeleportService = game:GetService("TeleportService") local HttpService = game:GetService("HttpService") local Player = Players.LocalPlayer local ENV = (getgenv and getgenv()) or _G --================================================== -- CLEANUP --================================================== for _, key in ipairs({ "CC2_CONNECTION", "CC2_CHARACTER_CONNECTION" }) do if ENV[key] then pcall(function() ENV[key]:Disconnect() end) ENV[key] = nil end end if ENV.CC2_WINDOW then pcall(function() ENV.CC2_WINDOW:Destroy() end) ENV.CC2_WINDOW = nil end --================================================== -- RAYFIELD --================================================== local loaded, Rayfield = pcall(function() return loadstring(game:HttpGet("https://sirius.menu/rayfield"))() end) if not loaded or type(Rayfield) ~= "table" or type(Rayfield.CreateWindow) ~= "function" then warn("[CC2 HUB] Rayfield failed: " .. tostring(Rayfield)) return end local success, Window = pcall(function() return Rayfield:CreateWindow({ Name = "CC2 HUB", LoadingTitle = "CC2 HUB", LoadingSubtitle = "Updated Rework", ConfigurationSaving = {Enabled = false}, Discord = {Enabled = false}, KeySystem = false }) end) if not success or not Window then warn("[CC2 HUB] Window error: " .. tostring(Window)) return end ENV.CC2_WINDOW = Window --================================================== -- SETTINGS --================================================== local S = { MaxSpeed = 2000, ReverseSpeed = 80, Acceleration = 50, Braking = 150, Steering = true, SteeringPower = 150, SteeringResponse = 0.8, MaxTurnRate = 2.8, AntiDrift = true, DriftStrength = 12, AntiRollover = true, RolloverAngle = 55, RamSpeed = 700, FlySpeed = 150, FlyResponsiveness = 8, FlyTorque = 1000000, CharacterNoclip = false } --================================================== -- STATE --================================================== local Vehicle local Root local Seat local Attachment local Force local AlignAttachment local Align local FlyEnabled = false local NoclipCache = {} --================================================== -- HELPERS --================================================== local function Notify(title, message) warn("[CC2 HUB] " .. title .. ": " .. tostring(message)) end local function Safe(callback) return function(...) local ok, err = pcall(callback, ...) if not ok then warn("[CC2 HUB ERROR] " .. tostring(err)) end end end local function Alive(object) return object ~= nil and object.Parent ~= nil end local function KeyDown(key) return UIS:IsKeyDown(key) end local function Flat(vector) local result = Vector3.new(vector.X, 0, vector.Z) if result.Magnitude < 0.001 then return nil end return result.Unit end local function GetHumanoid() local character = Player.Character return character and character:FindFirstChildOfClass("Humanoid") end --================================================== -- VEHICLE DETECTION --================================================== local function DetectVehicle() local humanoid = GetHumanoid() if not humanoid or not humanoid.SeatPart then return nil end local seat = humanoid.SeatPart local model = seat:FindFirstAncestorOfClass("Model") if not model then return nil end local root = seat.AssemblyRootPart or model.PrimaryPart or seat return model, root, seat end local function DestroyPhysics() for _, object in ipairs({ Force, Attachment, Align, AlignAttachment }) do if object then pcall(function() object:Destroy() end) end end Force = nil Attachment = nil Align = nil AlignAttachment = nil end local function ResetVehicle() if Force then Force.Force = Vector3.zero end DestroyPhysics() Vehicle = nil Root = nil Seat = nil end local function RefreshVehicle() local model, root, seat = DetectVehicle() if root ~= Root then ResetVehicle() Vehicle = model Root = root Seat = seat FlyEnabled = false else Vehicle = model Seat = seat end return Alive(Root) end --================================================== -- PHYSICS SETUP --================================================== local function SetupPhysics() if not Alive(Root) then return false end if Force and Force.Parent == Root and Align and Align.Parent == Root then return true end DestroyPhysics() Attachment = Instance.new("Attachment") Attachment.Name = "CC2_Attachment" Attachment.Parent = Root Force = Instance.new("VectorForce") Force.Name = "CC2_Force" Force.Attachment0 = Attachment Force.RelativeTo = Enum.ActuatorRelativeTo.World Force.ApplyAtCenterOfMass = true Force.Parent = Root AlignAttachment = Instance.new("Attachment") AlignAttachment.Name = "CC2_AlignAttachment" AlignAttachment.Parent = Root Align = Instance.new("AlignOrientation") Align.Name = "CC2_Align" Align.Attachment0 = AlignAttachment Align.Mode = Enum.OrientationAlignmentMode.OneAttachment Align.Responsiveness = 35 Align.MaxTorque = math.max(10000000, Root.AssemblyMass * 100000) Align.Enabled = false Align.Parent = Root return true end --================================================== -- ONE-SHOT RAM --================================================== local function RamOnce() if not RefreshVehicle() or not SetupPhysics() then Notify("RAM", "Сначала сядь в машину") return end -- Останавливаем полёт, если он был включён FlyEnabled = false if Force then Force.Force = Vector3.zero end if Align then Align.Enabled = false end local forward = Root.CFrame.LookVector local velocity = Root.AssemblyLinearVelocity -- Мгновенно задаём скорость вперёд, -- сохраняя вертикальную составляющую скорости. Root.AssemblyLinearVelocity = Vector3.new( forward.X * S.RamSpeed, velocity.Y, forward.Z * S.RamSpeed ) Notify("RAM", "Разгон до " .. tostring(S.RamSpeed)) end --================================================== -- FULL CAMERA FLY -- ALT = UP | CTRL = DOWN --================================================== local function ToggleFly() if not RefreshVehicle() or not SetupPhysics() then Notify("FLY", "Сначала сядь в машину") return end FlyEnabled = not FlyEnabled if not FlyEnabled then if Force then Force.Force = Vector3.zero end if Align then Align.Enabled = false end end Notify("FLY", FlyEnabled and "Полёт включён" or "Полёт выключен") end local function StopFly() FlyEnabled = false if Force then Force.Force = Vector3.zero end if Align then Align.Enabled = false end end local function UpdateFly() if not Alive(Root) or not SetupPhysics() then FlyEnabled = false return end local camera = Workspace.CurrentCamera if not camera then return end local mass = Root.AssemblyMass local cameraCF = camera.CFrame local moveDirection = Vector3.zero if KeyDown(Enum.KeyCode.W) then moveDirection += cameraCF.LookVector end if KeyDown(Enum.KeyCode.S) then moveDirection -= cameraCF.LookVector end if KeyDown(Enum.KeyCode.D) then moveDirection += cameraCF.RightVector end if KeyDown(Enum.KeyCode.A) then moveDirection -= cameraCF.RightVector end -- ALT = UP if KeyDown(Enum.KeyCode.LeftAlt) or KeyDown(Enum.KeyCode.RightAlt) then moveDirection += Vector3.yAxis end -- CTRL = DOWN if KeyDown(Enum.KeyCode.LeftControl) or KeyDown(Enum.KeyCode.RightControl) then moveDirection -= Vector3.yAxis end if moveDirection.Magnitude > 1 then moveDirection = moveDirection.Unit end local targetVelocity = moveDirection * S.FlySpeed local currentVelocity = Root.AssemblyLinearVelocity local acceleration = (targetVelocity - currentVelocity) * S.FlyResponsiveness -- Gravity compensation acceleration += Vector3.new(0, Workspace.Gravity, 0) Force.Force = acceleration * mass -- Camera orientation local lookDirection = cameraCF.LookVector if lookDirection.Magnitude > 0.001 then Align.CFrame = CFrame.lookAt( Vector3.zero, lookDirection, cameraCF.UpVector ) Align.Responsiveness = S.FlyResponsiveness Align.MaxTorque = S.FlyTorque Align.Enabled = true end end --================================================== -- MOVEMENT + STEERING --================================================== local function UpdateMovement() if not SetupPhysics() then return end if FlyEnabled then return end local velocity = Root.AssemblyLinearVelocity local forward = Root.CFrame.LookVector local right = Root.CFrame.RightVector local mass = Root.AssemblyMass local currentSpeed = velocity:Dot(forward) local throttle = 0 if KeyDown(Enum.KeyCode.W) then throttle = 1 elseif KeyDown(Enum.KeyCode.S) then throttle = currentSpeed > 2 and -2 or -1 end local totalForce = Vector3.zero local acceleration = S.Acceleration * 0.35 if throttle == 1 and currentSpeed < S.MaxSpeed then totalForce += forward * mass * acceleration elseif throttle == -1 and math.abs(currentSpeed) < S.ReverseSpeed then totalForce -= forward * mass * acceleration elseif throttle == -2 then totalForce -= forward * mass * S.Braking end if S.AntiDrift then local sideways = velocity:Dot(right) totalForce -= right * sideways * S.DriftStrength * mass end Force.Force = totalForce -- STEERING if S.Steering then local turn = 0 if KeyDown(Enum.KeyCode.A) then turn = 1 elseif KeyDown(Enum.KeyCode.D) then turn = -1 end if turn ~= 0 then local speedFactor = math.clamp( math.abs(currentSpeed) / 35, 0.25, 1 ) local reverseFactor = currentSpeed < -2 and -1 or 1 local desiredYaw = turn * S.MaxTurnRate * speedFactor * reverseFactor local yawDifference = desiredYaw - Root.AssemblyAngularVelocity.Y Root:ApplyAngularImpulse(Vector3.new( 0, yawDifference * mass * S.SteeringResponse * (S.SteeringPower / 100), 0 )) end end -- ANTI ROLLOVER if S.AntiRollover and Align then local up = Root.CFrame.UpVector local angle = math.deg(math.acos( math.clamp(up:Dot(Vector3.yAxis), -1, 1) )) if angle > S.RolloverAngle then local flatLook = Flat(Root.CFrame.LookVector) if flatLook then Align.CFrame = CFrame.lookAt( Root.Position, Root.Position + flatLook, Vector3.yAxis ) Align.Enabled = true end else Align.Enabled = false end end end --================================================== -- CHARACTER NOCLIP --================================================== local function RestoreNoclip() for part, original in pairs(NoclipCache) do if Alive(part) then part.CanCollide = original end end table.clear(NoclipCache) end local function UpdateNoclip() local character = Player.Character if not character then return end if not S.CharacterNoclip then RestoreNoclip() return end for _, part in ipairs(character:GetDescendants()) do if part:IsA("BasePart") then if NoclipCache[part] == nil then NoclipCache[part] = part.CanCollide end part.CanCollide = false end end end --================================================== -- SERVER --================================================== local function Rejoin() TeleportService:Teleport(game.PlaceId, Player) end local function ServerHop() local ok, err = pcall(function() local url = "https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=Asc&limit=100" local response = game:HttpGet(url) local data = HttpService:JSONDecode(response) local available = {} for _, server in ipairs(data.data or {}) do if server.id ~= game.JobId and server.playing < server.maxPlayers then table.insert(available, server.id) end end if #available == 0 then error("Свободные серверы не найдены") end local chosen = available[math.random(1, #available)] TeleportService:TeleportToPlaceInstance( game.PlaceId, chosen, Player ) end) if not ok then Notify("SERVER HOP", err) end end --================================================== -- UI HELPER --================================================== local function CreateTab(name) local ok, tab = pcall(function() return Window:CreateTab(name, 4483362458) end) if not ok or not tab then error("Tab creation failed: " .. name .. " | " .. tostring(tab)) end return tab end --================================================== -- MOVEMENT TAB --================================================== local MovementTab = CreateTab("Movement") MovementTab:CreateSection("SPEED") MovementTab:CreateSlider({ Name = "Max Speed", Range = {500, 2000}, Increment = 10, CurrentValue = S.MaxSpeed, Callback = Safe(function(v) S.MaxSpeed = v end) }) MovementTab:CreateSlider({ Name = "Reverse Speed", Range = {10, 200}, Increment = 5, CurrentValue = S.ReverseSpeed, Callback = Safe(function(v) S.ReverseSpeed = v end) }) MovementTab:CreateSlider({ Name = "Acceleration", Range = {1, 1000}, Increment = 1, CurrentValue = S.Acceleration, Callback = Safe(function(v) S.Acceleration = v end) }) MovementTab:CreateSlider({ Name = "Braking", Range = {10, 500}, Increment = 5, CurrentValue = S.Braking, Callback = Safe(function(v) S.Braking = v end) }) MovementTab:CreateSection("STEERING & GRIP") MovementTab:CreateToggle({ Name = "Steering Assist", CurrentValue = S.Steering, Callback = Safe(function(v) S.Steering = v end) }) MovementTab:CreateSlider({ Name = "Steering Strength", Range = {10, 1000}, Increment = 5, CurrentValue = S.SteeringPower, Callback = Safe(function(v) S.SteeringPower = v end) }) MovementTab:CreateToggle({ Name = "Anti Drift", CurrentValue = S.AntiDrift, Callback = Safe(function(v) S.AntiDrift = v end) }) MovementTab:CreateSlider({ Name = "Anti Drift Strength", Range = {1, 200}, Increment = 1, CurrentValue = S.DriftStrength, Callback = Safe(function(v) S.DriftStrength = v end) }) MovementTab:CreateToggle({ Name = "Anti Rollover", CurrentValue = S.AntiRollover, Callback = Safe(function(v) S.AntiRollover = v end) }) MovementTab:CreateSlider({ Name = "Rollover Angle", Range = {20, 85}, Increment = 1, CurrentValue = S.RolloverAngle, Callback = Safe(function(v) S.RolloverAngle = v end) }) --================================================== -- RAM TAB --================================================== local RamTab = CreateTab("RAM") RamTab:CreateSection("ONE-SHOT RAM") RamTab:CreateSlider({ Name = "Ram Speed", Range = {50, 1000}, Increment = 10, CurrentValue = S.RamSpeed, Callback = Safe(function(v) S.RamSpeed = v end) }) RamTab:CreateButton({ Name = "RAM ONCE", Callback = Safe(RamOnce) }) --================================================== -- FLY TAB --================================================== local FlyTab = CreateTab("Fly") FlyTab:CreateSection("FLIGHT CONTROL") FlyTab:CreateButton({ Name = "Toggle Fly", Callback = Safe(ToggleFly) }) FlyTab:CreateButton({ Name = "Stop Fly", Callback = Safe(StopFly) }) FlyTab:CreateSlider({ Name = "Speed", Range = {20, 2000}, Increment = 5, CurrentValue = S.FlySpeed, Callback = Safe(function(v) S.FlySpeed = v end) }) FlyTab:CreateSlider({ Name = "Responsiveness", Range = {1, 50}, Increment = 1, CurrentValue = S.FlyResponsiveness, Callback = Safe(function(v) S.FlyResponsiveness = v end) }) FlyTab:CreateSlider({ Name = "Torque", Range = {10000, 5000000}, Increment = 10000, CurrentValue = S.FlyTorque, Callback = Safe(function(v) S.FlyTorque = v end) }) --================================================== -- NOCLIP TAB --================================================== local NoclipTab = CreateTab("NoClip") NoclipTab:CreateToggle({ Name = "Character NoClip", CurrentValue = false, Callback = Safe(function(v) S.CharacterNoclip = v if not v then RestoreNoclip() end end) }) --================================================== -- SERVER TAB --================================================== local ServerTab = CreateTab("Server") ServerTab:CreateButton({ Name = "Rejoin", Callback = Safe(Rejoin) }) ServerTab:CreateButton({ Name = "Server Hop", Callback = Safe(ServerHop) }) --================================================== -- MAIN UPDATE --================================================== local function MainUpdate() UpdateNoclip() if not RefreshVehicle() then FlyEnabled = false DestroyPhysics() return end if FlyEnabled then UpdateFly() else UpdateMovement() end end ENV.CC2_CONNECTION = RunService.Heartbeat:Connect(function() local ok, err = pcall(MainUpdate) if not ok then warn("[CC2 HUB LOOP] " .. tostring(err)) end end) --================================================== -- RESPAWN --================================================== ENV.CC2_CHARACTER_CONNECTION = Player.CharacterAdded:Connect(function() FlyEnabled = false RestoreNoclip() ResetVehicle() task.wait(1) Notify("CC2 HUB", "Character обновлён") end) Notify("CC2 HUB", "Loaded successfully")