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