function getcar()
local plrname = game.Players.LocalPlayer.Name
for i, v in pairs(workspace.CivCars:GetDescendants()) do
if v:IsA("Model") and v:FindFirstChild("Owner") then
if v.Owner.Value == plrname then
return v
end
end
end
end
local lastDupeTime = 0
local Rayfield = loadstring(game:HttpGet("https://[Log in to view URL]"))()
local Window = Rayfield:CreateWindow({
Name = "Trunk Dupe",
LoadingTitle = "Loading...",
LoadingSubtitle = "by You",
ConfigurationSaving = {
Enabled = false
},
Discord = {
Enabled = false
},
KeySystem = false
})
local Tab = Window:CreateTab("Main", 4483362458)
Tab:CreateButton({
Name = "Dupe Tools (Trunk)",
Callback = function()
Rayfield:Notify({
Title = "Cooldown Notice",
Content = "Remember: There is a cooldown of 30 seconds",
Duration = 3
})
local currentTime = tick()
if currentTime - lastDupeTime < 30 then
Rayfield:Notify({
Title = "Wait!",
Content = "Cooldown not finished yet!",
Duration = 3
})
return
end
lastDupeTime = currentTime
game:GetService("RunService").RenderStepped:Connect(function()
for _, gui in pairs(game.Players.LocalPlayer.PlayerGui:GetChildren()) do
if gui:IsA("ScreenGui") then
for _, obj in pairs(gui:GetDescendants()) do
if obj:IsA("TextLabel") or obj:IsA("TextButton") then
local text = obj.Text:gsub("%s+", " "):lower()
if text:match("can't access safe!") then
obj:Destroy()
end
end
end
end
end
end)
local ReplicatedStorage = cloneref(game:GetService("ReplicatedStorage"))
local Players = cloneref(game:GetService("Players"))
local InventoryRemote = ReplicatedStorage:WaitForChild("Inventory")
local BackpackRemote = ReplicatedStorage:WaitForChild("BackpackRemote")
local TrunkStorage = ReplicatedStorage:WaitForChild("TrunkStorage")
local function GetCharacter()
return Players.LocalPlayer and Players.LocalPlayer.Character
end
local character = GetCharacter()
if character and character:FindFirstChildOfClass("Tool") then
local gunTool = character:FindFirstChildOfClass("Tool")
local gunName = gunTool.Name
local humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid then humanoid:UnequipTools() end
local car = getcar()
if not car or not car:FindFirstChild("Body") or not car.Body:FindFirstChild("TrunckStorage") then
return Rayfield:Notify({
Title = "Error",
Content = "No Car or Trunk found",
Duration = 5
})
end
local hrp = character:FindFirstChild("HumanoidRootPart")
if hrp then
hrp.CFrame = car.Body.TrunckStorage.CFrame + Vector3.new(2, 0, 0)
end
task.wait(0.5)
task.spawn(function()
BackpackRemote:InvokeServer("Store", gunName)
end)
task.spawn(function()
TrunkStorage:FireServer("Store", gunName)
end)
task.wait(0.5)
task.spawn(function()
InventoryRemote:FireServer("Change", gunName, "Backpack", nil)
end)
task.wait(1.5)
BackpackRemote:InvokeServer("Grab", gunName)
task.wait(0.5)
else
Rayfield:Notify({
Title = "Tool Not Found",
Content = "You must equip a Tool before duping",
Duration = 5
})
end
end
})
To embed this project on your website, copy the following code and paste it into your website's HTML: