Respawn Jeep if not occupied for a certain period of time

Hello. I’ve been working on an obby recently that contained usage of those jeeps. I’d like to make it so an unoccupied car respawns after 60 seconds of time. Can anybody help?

Here’s the model link: https://create.roblox.com/marketplace/asset/5322460997/Infinite-Jeep-Spawner
Thank you.

You can put a script in the jeep looks like this :

local Jeep = --INITIALIZE YOUR JEEP MODEL
local Seat = --INITIALIZE YOUR SEAT
local Time = 0

while wait(1) do
    if Seat.Occupant = nil and Time ~= 60 then
        Time += 1
    elseif  Seat.Occupant then
        Time = 0
    elseif Time = 60 then
        local RespawnJeep = Jeep:Clone()
        RespawnJeep.Parent = workspace
        RespawnJeep.Position = --THE CAR SPAWNER POSITION
        Jeep:Destroy()
    end
end

Have a nice day !

3 Likes

I had to edit some parts in the script so it works successfully in the obby but it works! Thanks!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.