How to get the models of a folder

Hello i want to get the models of a folder so i dont need to script it for every car

heres the code

local uis = game:GetService("UserInputService")
local player = game:GetService("Players").LocalPlayer

local vehicle = workspace.Vehicles.BurnettBlack

local driveseat = vehicle.DriveSeat
local seatFR = vehicle.Body.Seat.SeatFR
local seatRL = vehicle.Body.Seat.SeatRL
local seatRR = vehicle.Body.Seat.SeatRR

uis.InputBegan:Connect(function(input)
	if input.KeyCode == Enum.KeyCode.F then
		if player.Character.Humanoid.Sit == true then
			if driveseat.Occupant or seatRL.Occupant == player.Character.Humanoid then
				print("left")
				player.Character.Humanoid.Sit = false
				wait()
				player.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(-5,0,0)
			end
			if seatFR.Occupant or seatRR.Occupant == player.Character.Humanoid then
				print("right")
				player.Character.Humanoid.Sit = false
				wait()
				player.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(5,0,0)
			end
		end
	end
end)

i tried using vehicle:GetChildren() but it didnt work

Using GetChildren is the correct approach, but I believe you didn’t implement it properly

local uis = game:GetService("UserInputService")
local player = game:GetService("Players").LocalPlayer

uis.InputBegan:Connect(function(input)
	if input.KeyCode == Enum.KeyCode.F then
        for _, Car in pairs(workspace.Vehicles:GetChildren()) do
            if Car:FindFirstChild("DriveSeat") and Car:FindFirstChild("Body") then
                local driveseat = Car.DriveSeat
                local seatFR = Car.Body.Seat.SeatFR
                local seatRL = Car.Body.Seat.SeatRL
                local seatRR = Car.Body.Seat.SeatRR

                if player.Character.Humanoid.Sit == true then
			        if driveseat.Occupant or seatRL.Occupant == player.Character.Humanoid then
			    	print("left")
				    player.Character.Humanoid.Sit = false
				    wait()
			    	player.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(-5,0,0)
			    end

		    	if seatFR.Occupant or seatRR.Occupant == player.Character.Humanoid then
			    	print("right")
			    	player.Character.Humanoid.Sit = false
				    wait()
				    player.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(5,0,0)
                end
			end
		end
	end
end)