--Published on https://ahmedmode.com
--Credits goes to the devs!
--Scripts Below:
--Script
-- Cars vs Trucks — by shuzaru SCRIPT
local plr = game.Players.LocalPlayer
local uis = game:GetService("UserInputService")
local ts = game:GetService("TweenService")
local loadingGui = Instance.new("ScreenGui")
loadingGui.Name = "CVT_Loading"
loadingGui.ResetOnSpawn = false
loadingGui.Parent = plr:WaitForChild("PlayerGui")
local loadFrame = Instance.new("Frame", loadingGui)
loadFrame.Size = UDim2.new(0, 380, 0, 220)
loadFrame.Position = UDim2.new(0.5, -190, 0.5, -110)
loadFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 30)
loadFrame.BorderSizePixel = 0
local loadCorner = Instance.new("UICorner", loadFrame)
loadCorner.CornerRadius = UDim.new(0, 16)
local title = Instance.new("TextLabel", loadFrame)
title.Text = "Cars vs Trucks"
title.Size = UDim2.new(1, 0, 0, 50)
title.Position = UDim2.new(0, 0, 0, 15)
title.BackgroundTransparency = 1
title.TextColor3 = Color3.fromRGB(100, 200, 255)
title.Font = Enum.Font.GothamBold
title.TextSize = 28
local credit = Instance.new("TextLabel", loadFrame)
credit.Text = "Created with support from\nSHUZARU TEAM"
credit.Size = UDim2.new(1, 0, 0, 50)
credit.Position = UDim2.new(0, 0, 0, 70)
credit.BackgroundTransparency = 1
credit.TextColor3 = Color3.fromRGB(180, 180, 180)
credit.Font = Enum.Font.Gotham
credit.TextSize = 18
local loadBtn = Instance.new("TextButton", loadFrame)
loadBtn.Text = "LOAD SCRIPT"
loadBtn.Size = UDim2.new(0, 200, 0, 50)
loadBtn.Position = UDim2.new(0.5, -100, 1, -70)
loadBtn.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
loadBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
loadBtn.Font = Enum.Font.GothamBold
loadBtn.TextSize = 18
loadBtn.BorderSizePixel = 0
local btnCorner = Instance.new("UICorner", loadBtn)
btnCorner.CornerRadius = UDim.new(0, 10)
loadBtn.MouseEnter:Connect(function()
ts:Create(loadBtn, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(0, 200, 255)}):Play()
end)
loadBtn.MouseLeave:Connect(function()
ts:Create(loadBtn, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(0, 170, 255)}):Play()
end)
local mainGui, frame
local function createMainGUI()
mainGui = Instance.new("ScreenGui")
mainGui.Name = "CVT_GUI"
mainGui.ResetOnSpawn = false
mainGui.Parent = plr:WaitForChild("PlayerGui")
frame = Instance.new("Frame", mainGui)
frame.Position = UDim2.new(0.6, 0, 0.25, 0)
frame.Size = UDim2.new(0, 340, 0, 360)
frame.BackgroundColor3 = Color3.fromRGB(25, 25, 35)
frame.BackgroundTransparency = 0.05
frame.BorderSizePixel = 0
frame.Active = true
frame.Draggable = true
local corner = Instance.new("UICorner", frame)
corner.CornerRadius = UDim.new(0, 12)
local titleBar = Instance.new("TextLabel", frame)
titleBar.Text = "Cars vs Trucks - Update 1.1"
titleBar.Size = UDim2.new(1, 0, 0, 45)
titleBar.BackgroundColor3 = Color3.fromRGB(45, 45, 60)
titleBar.TextColor3 = Color3.fromRGB(255, 255, 255)
titleBar.Font = Enum.Font.GothamBold
titleBar.TextSize = 20
local titleCorner = Instance.new("UICorner", titleBar)
titleCorner.CornerRadius = UDim.new(0, 12)
local closeBtn = Instance.new("TextButton", titleBar)
closeBtn.Text = "X"
closeBtn.Size = UDim2.new(0, 30, 0, 30)
closeBtn.Position = UDim2.new(1, -35, 0, 7)
closeBtn.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
closeBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
closeBtn.Font = Enum.Font.GothamBold
closeBtn.TextSize = 18
closeBtn.MouseButton1Click:Connect(function() mainGui:Destroy() end)
local closeCorner = Instance.new("UICorner", closeBtn)
closeCorner.CornerRadius = UDim.new(0, 6)
end
local toggles = { autoCoins = false, autoCrash = false, autoPlat = false }
local currentTarget = nil
local targetEndTime = 0
local switchCooldown = 0
local function isAlive()
return plr.Character and plr.Character:FindFirstChild("Humanoid") and plr.Character.Humanoid.Health > 0
end
local function getVehicle()
if not plr.Character then return nil end
local hum = plr.Character:FindFirstChild("Humanoid")
if hum and hum.SeatPart then
return hum.SeatPart.Parent
end
return nil
end
local function tpToCFrame(cf)
local veh = getVehicle()
if veh and veh.PrimaryPart then
veh:SetPrimaryPartCFrame(cf)
elseif plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
plr.Character.HumanoidRootPart.CFrame = cf
end
end
local function getNearbyEnemies(distance)
local enemies = {}
local myPos = plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") and plr.Character.HumanoidRootPart.Position
if not myPos then return enemies end
for _, p in ipairs(game.Players:GetPlayers()) do
if p ~= plr and p.Team and p.Team.Name == "Trucks" and p.Character and p.Character:FindFirstChild("HumanoidRootPart") then
local root = p.Character.HumanoidRootPart
if (root.Position - myPos).Magnitude <= distance then
table.insert(enemies, root)
end
end
end
return enemies
end
local collectedCoins = {}
local function getRealCoins()
local coins = {}
for _, obj in ipairs(workspace:GetDescendants()) do
if not obj:IsA("BasePart") or not obj.Parent then continue end
if collectedCoins[obj] then continue end
local hasPrompt = obj:FindFirstChildOfClass("ProximityPrompt") or obj:FindFirstChildOfClass("ClickDetector") or obj:FindFirstChild("TouchInterest")
local name = obj.Name:lower()
local isCoin = hasPrompt or name:find("coin") or name:find("money") or name:find("cash")
local isGold = obj.Color.R > 0.9 and obj.Color.G > 0.6 and obj.Color.B < 0.3
if isCoin or isGold then
table.insert(coins, obj)
end
end
return coins
end
local function toggleAutoCoins()
toggles.autoCoins = not toggles.autoCoins
if toggles.autoCoins then
spawn(function()
while toggles.autoCoins and isAlive() do
local myPos = plr.Character.HumanoidRootPart.Position
local coins = getRealCoins()
if #coins == 0 then
task.wait(0.1)
continue
end
table.sort(coins, function(a, b)
return (a.Position - myPos).Magnitude < (b.Position - myPos).Magnitude
end)
local coin = coins[1]
if not coin or not coin.Parent then
task.wait(0.1)
continue
end
local enemies = getNearbyEnemies(30)
local offset = Vector3.new(0, 4, 0)
if #enemies > 0 then
local dirAway = (myPos - enemies[1].Position).unit
offset = dirAway * 12 + Vector3.new(0, 4, 0)
end
collectedCoins[coin] = true
tpToCFrame(coin.CFrame + offset)
task.wait(0.15)
end
collectedCoins = {}
end)
else
collectedCoins = {}
end
end
local function toggleAutoCrash()
toggles.autoCrash = not toggles.autoCrash
if toggles.autoCrash then
spawn(function()
while toggles.autoCrash and isAlive() do
local veh = getVehicle()
if not veh then task.wait(1); continue end
local needNewTarget = not currentTarget
or not currentTarget.Character
or not currentTarget.Character:FindFirstChild("HumanoidRootPart")
or currentTarget.Character.Humanoid.Health <= 0
or tick() > targetEndTime
or tick() > switchCooldown
if needNewTarget and tick() > switchCooldown then
currentTarget = nil
for _, v in ipairs(game.Players:GetPlayers()) do
if v ~= plr and v.Team and v.Team.Name == "Cars"
and v.Character and v.Character:FindFirstChild("HumanoidRootPart")
and v.Character.Humanoid.Health > 0 then
currentTarget = v
targetEndTime = tick() + 5
switchCooldown = tick() + 8
break
end
end
end
if currentTarget and currentTarget.Character and currentTarget.Character:FindFirstChild("HumanoidRootPart") then
local root = currentTarget.Character.HumanoidRootPart
local ahead = root.Position + root.CFrame.LookVector * 12
tpToCFrame(CFrame.new(ahead + Vector3.new(0, 3, 0)))
end
task.wait(0.3)
end
currentTarget = nil
switchCooldown = 0
end)
else
currentTarget = nil
switchCooldown = 0
end
end
local function toggleAutoPlat()
toggles.autoPlat = not toggles.autoPlat
if toggles.autoPlat then
local platName = "SafePlatform_CVT"
local platform = workspace:FindFirstChild(platName)
if not platform then
platform = Instance.new("Part")
platform.Name = platName
platform.Size = Vector3.new(60, 4, 60)
platform.Anchored = true
platform.Position = Vector3.new(0, 600, 0)
platform.Color = Color3.fromRGB(50, 150, 255)
platform.Transparency = 0.7
platform.Parent = workspace
end
spawn(function()
while toggles.autoPlat and isAlive() do
local veh = getVehicle()
if veh then
tpToCFrame(platform.CFrame + Vector3.new(math.random(-20,20), 6, math.random(-20,20)))
end
task.wait(3)
end
end)
end
end
local function createToggleBtn(name, callback, yPos, key)
local btn = Instance.new("TextButton", frame)
btn.Size = UDim2.new(1, -20, 0, 50)
btn.Position = UDim2.new(0, 10, 0, yPos)
btn.BackgroundColor3 = Color3.fromRGB(50, 50, 70)
btn.TextColor3 = Color3.fromRGB(255, 255, 255)
btn.Font = Enum.Font.GothamSemibold
btn.TextSize = 15
btn.BorderSizePixel = 0
local corner = Instance.new("UICorner", btn)
corner.CornerRadius = UDim.new(0, 8)
local function update()
local on = toggles[key]
btn.Text = name .. " [" .. (on and "ON" or "OFF") .. "]"
btn.BackgroundColor3 = on and Color3.fromRGB(0, 180, 0) or Color3.fromRGB(50, 50, 70)
end
btn.MouseButton1Click:Connect(function()
callback()
update()
end)
update()
end
loadBtn.MouseButton1Click:Connect(function()
ts:Create(loadFrame, TweenInfo.new(0.4), {BackgroundTransparency = 1}):Play()
ts:Create(title, TweenInfo.new(0.4), {TextTransparency = 1}):Play()
ts:Create(credit, TweenInfo.new(0.4), {TextTransparency = 1}):Play()
ts:Create(loadBtn, TweenInfo.new(0.4), {BackgroundTransparency = 1, TextTransparency = 1}):Play()
task.wait(0.5)
loadingGui:Destroy()
createMainGUI()
createToggleBtn("Auto Coin Farm (ULTRA FAST)", toggleAutoCoins, 60, "autoCoins")
createToggleBtn("Trucks: Auto Crash (5s + 3s delay)", toggleAutoCrash, 120, "autoCrash")
createToggleBtn("Cars: Auto Platform (in vehicle)", toggleAutoPlat, 180, "autoPlat")
local stopBtn = Instance.new("TextButton", frame)
stopBtn.Text = "STOP ALL"
stopBtn.Size = UDim2.new(1, -20, 0, 50)
stopBtn.Position = UDim2.new(0, 10, 0, 240)
stopBtn.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
stopBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
stopBtn.Font = Enum.Font.GothamBold
stopBtn.TextSize = 16
stopBtn.BorderSizePixel = 0
local sc = Instance.new("UICorner", stopBtn)
sc.CornerRadius = UDim.new(0, 8)
stopBtn.MouseButton1Click:Connect(function()
for k in pairs(toggles) do toggles[k] = false end
currentTarget = nil
switchCooldown = 0
collectedCoins = {}
game.StarterGui:SetCore("SendNotification", {Title="CVT", Text="All functions stopped!", Duration=3})
end)
uis.InputBegan:Connect(function(i, gpe)
if gpe then return end
if i.KeyCode == Enum.KeyCode.Insert then
frame.Visible = not frame.Visible
end
end)
game.StarterGui:SetCore("SendNotification", {
Title = "CVT Script Loaded!",
Text = "Update 1.1 | Coin Farm: ULTRA FAST | SHUZARU TEAM",
Duration = 6
})
end)
Views: 1
