-- [[ 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 ]] -- Corsa Legends Replica - Test Control Panel -- For your own Roblox game local Players = game:GetService("Players") local RunService = game:GetService("RunService") local player = Players.LocalPlayer -------------------------------------------------- -- SETTINGS -------------------------------------------------- local MAX_SPEED = 1000 local DEFAULT_SPEED = 100 -- Change these to match your car models local CAR_FOLDER = workspace:FindFirstChild("Cars") -- Change this if your checkpoints use a different folder local CHECKPOINT_FOLDER = workspace:FindFirstChild("RaceCheckpoints") -------------------------------------------------- -- GUI -------------------------------------------------- local gui = Instance.new("ScreenGui") gui.Name = "CorsaControl" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 280, 0, 330) frame.Position = UDim2.new(0, 20, 0.5, -165) frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25) frame.BorderSizePixel = 0 frame.Parent = gui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 12) corner.Parent = frame local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 45) title.BackgroundTransparency = 1 title.Text = "CORSA CONTROL" title.TextColor3 = Color3.new(1, 1, 1) title.TextSize = 22 title.Font = Enum.Font.GothamBold title.Parent = frame -------------------------------------------------- -- FIND CURRENT CAR -------------------------------------------------- local function getCar() local character = player.Character if not character then return nil end -- If the player is sitting in a VehicleSeat local humanoid = character:FindFirstChildOfClass("Humanoid") if humanoid and humanoid.SeatPart then local seat = humanoid.SeatPart if seat:IsA("VehicleSeat") then return seat:FindFirstAncestorOfClass("Model") end end -- Fallback: look for a car containing the player if CAR_FOLDER then for _, car in ipairs(CAR_FOLDER:GetChildren()) do if car:IsA("Model") and car.PrimaryPart then local distance = (car.PrimaryPart.Position - character:GetPivot().Position).Magnitude if distance < 20 then return car end end end end return nil end -------------------------------------------------- -- SPEED -------------------------------------------------- local speedLabel = Instance.new("TextLabel") speedLabel.Size = UDim2.new(1, -30, 0, 30) speedLabel.Position = UDim2.new(0, 15, 0, 55) speedLabel.BackgroundTransparency = 1 speedLabel.Text = "Speed: " .. DEFAULT_SPEED speedLabel.TextColor3 = Color3.new(1, 1, 1) speedLabel.TextSize = 17 speedLabel.Font = Enum.Font.Gotham speedLabel.Parent = frame local speedBox = Instance.new("TextBox") speedBox.Size = UDim2.new(1, -30, 0, 40) speedBox.Position = UDim2.new(0, 15, 0, 90) speedBox.BackgroundColor3 = Color3.fromRGB(45, 45, 45) speedBox.TextColor3 = Color3.new(1, 1, 1) speedBox.PlaceholderText = "Enter speed" speedBox.Text = tostring(DEFAULT_SPEED) speedBox.TextSize = 17 speedBox.Font = Enum.Font.Gotham speedBox.ClearTextOnFocus = false speedBox.Parent = frame local speedCorner = Instance.new("UICorner") speedCorner.CornerRadius = UDim.new(0, 8) speedCorner.Parent = speedBox local currentSpeed = DEFAULT_SPEED speedBox.FocusLost:Connect(function() local number = tonumber(speedBox.Text) if number then currentSpeed = math.clamp(number, 0, MAX_SPEED) speedBox.Text = tostring(currentSpeed) speedLabel.Text = "Speed: " .. currentSpeed else speedBox.Text = tostring(currentSpeed) end end) -------------------------------------------------- -- APPLY SPEED -------------------------------------------------- RunService.Heartbeat:Connect(function() local car = getCar() if not car then return end local seat = car:FindFirstChildWhichIsA("VehicleSeat", true) if seat then -- This works for simple prototype cars. -- For a custom chassis, connect currentSpeed -- to your chassis' actual speed variable. seat.MaxSpeed = currentSpeed end end) -------------------------------------------------- -- EMERGENCY STOP -------------------------------------------------- local stopButton = Instance.new("TextButton") stopButton.Size = UDim2.new(1, -30, 0, 45) stopButton.Position = UDim2.new(0, 15, 0, 145) stopButton.BackgroundColor3 = Color3.fromRGB(170, 40, 40) stopButton.Text = "EMERGENCY STOP" stopButton.TextColor3 = Color3.new(1, 1, 1) stopButton.TextSize = 18 stopButton.Font = Enum.Font.GothamBold stopButton.Parent = frame local stopCorner = Instance.new("UICorner") stopCorner.CornerRadius = UDim.new(0, 8) stopCorner.Parent = stopButton stopButton.MouseButton1Click:Connect(function() local car = getCar() if not car then return end for _, object in ipairs(car:GetDescendants()) do if object:IsA("BasePart") then object.AssemblyLinearVelocity = Vector3.zero object.AssemblyAngularVelocity = Vector3.zero end end end) -------------------------------------------------- -- AUTO RACE -------------------------------------------------- local autoRace = false local raceButton = Instance.new("TextButton") raceButton.Size = UDim2.new(1, -30, 0, 45) raceButton.Position = UDim2.new(0, 15, 0, 200) raceButton.BackgroundColor3 = Color3.fromRGB(45, 120, 65) raceButton.Text = "AUTO RACE: OFF" raceButton.TextColor3 = Color3.new(1, 1, 1) raceButton.TextSize = 18 raceButton.Font = Enum.Font.GothamBold raceButton.Parent = frame local raceCorner = Instance.new("UICorner") raceCorner.CornerRadius = UDim.new(0, 8) raceCorner.Parent = raceButton raceButton.MouseButton1Click:Connect(function() autoRace = not autoRace if autoRace then raceButton.Text = "AUTO RACE: ON" else raceButton.Text = "AUTO RACE: OFF" end end) -------------------------------------------------- -- SIMPLE CHECKPOINT FOLLOWER -------------------------------------------------- local function getCheckpoints() if not CHECKPOINT_FOLDER then return {} end local checkpoints = CHECKPOINT_FOLDER:GetChildren() table.sort(checkpoints, function(a, b) return a.Name < b.Name end) return checkpoints end task.spawn(function() while true do task.wait(0.1) if not autoRace then continue end local car = getCar() if not car or not car.PrimaryPart then continue end local checkpoints = getCheckpoints() for _, checkpoint in ipairs(checkpoints) do if not autoRace then break end if checkpoint:IsA("BasePart") then while autoRace and car and car.PrimaryPart do local distance = (car.PrimaryPart.Position - checkpoint.Position).Magnitude if distance < 12 then break end local direction = (checkpoint.Position - car.PrimaryPart.Position).Unit car.PrimaryPart.AssemblyLinearVelocity = direction * currentSpeed task.wait() end end end -- Race completed task.wait(1) end end) -------------------------------------------------- -- CAR SPAWNER -------------------------------------------------- local spawnButton = Instance.new("TextButton") spawnButton.Size = UDim2.new(1, -30, 0, 45) spawnButton.Position = UDim2.new(0, 15, 0, 255) spawnButton.BackgroundColor3 = Color3.fromRGB(50, 90, 150) spawnButton.Text = "SPAWN FIRST CAR" spawnButton.TextColor3 = Color3.new(1, 1, 1) spawnButton.TextSize = 17 spawnButton.Font = Enum.Font.GothamBold spawnButton.Parent = frame local spawnCorner = Instance.new("UICorner") spawnCorner.CornerRadius = UDim.new(0, 8) spawnCorner.Parent = spawnButton spawnButton.MouseButton1Click:Connect(function() if not CAR_FOLDER then warn("Create a folder named 'Cars' in Workspace.") return end local cars = CAR_FOLDER:GetChildren() if #cars == 0 then warn("No cars found in Workspace.Cars.") return end local car = cars[1]:Clone() if player.Character then local spawnPosition = player.Character:GetPivot().Position + player.Character:GetPivot().LookVector * 15 car:PivotTo(CFrame.new(spawnPosition)) car.Parent = workspace end end) -------------------------------------------------- -- INFO -------------------------------------------------- local info = Instance.new("TextLabel") info.Size = UDim2.new(1, -30, 0, 25) info.Position = UDim2.new(0, 15, 1, -30) info.BackgroundTransparency = 1 info.Text = "Prototype control panel" info.TextColor3 = Color3.fromRGB(170, 170, 170) info.TextSize = 12 info.Font = Enum.Font.Gotham info.Parent = frame