VehicleSeating.AddSeat(DriverSeat,onEnterSeat,onExitSeat)for Z,h in ipairs(AdditionalSeats)do VehicleSeating.AddSeat(h,onEnterSeat,onExitSeat)end local function Z(Z)local h=Z:WaitForChild("\080\108\097\121\101\114\071\117\105")if not h:FindFirstChild("\086\101\104\105\099\108\101\080\114\111\109\112\116\083\099\114\101\101\110\071\117\105")then local Z=Instance.new("\083\099\114\101\101\110\071\117\105")Z.ResetOnSpawn=false Z.Name="\086\101\104\105\099\108\101\080\114\111\109\112\116\083\099\114\101\101\110\071\117\105"Z.Parent=h local S=Scripts.LocalVehiclePromptGui:Clone()S.CarValue.Value=TopModel S.Parent=Z end end Players.PlayerAdded:Connect(Z)for h,S in ipairs(Players:GetPlayers())do Z(S)end

VehicleSeating.AddSeat(DriverSeat, onEnterSeat, onExitSeat)

for _, seat in ipairs(AdditionalSeats) do
	VehicleSeating.AddSeat(seat, onEnterSeat, onExitSeat)
end

local function playerAdded(player)
	local playerGui = player:WaitForChild("PlayerGui")

	if not playerGui:FindFirstChild("VehiclePromptScreenGui") then
		local screenGui = Instance.new("ScreenGui")
		screenGui.ResetOnSpawn = false
		screenGui.Name = "VehiclePromptScreenGui"
		screenGui.Parent = playerGui

		local newLocalVehiclePromptGui = Scripts.LocalVehiclePromptGui:Clone()
		newLocalVehiclePromptGui.CarValue.Value = TopModel
		newLocalVehiclePromptGui.Parent = screenGui
	end
end

Players.PlayerAdded:Connect(playerAdded)

for _, player in ipairs(Players:GetPlayers()) do
	playerAdded(player)
end
