How can I make this script activate for all seats?

I recently made this LocalScript that hides the toolbar when you sit in a certain seat. How could I change this from one seat, to all seats?

local seat = game.Workspace.Vehicles["Jeep Willis"].Vehicle.DriveSeat
local starterGui = game.StarterGui


seat:GetPropertyChangedSignal("Occupant"):Connect(function(player) 

	if seat.Occupant then
		
		starterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
		
	else
		
		starterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)

	end
end)

Instead, I would just do this if the player’s character is sitting in general Humanoid.Sit. Just make sure to re-enable the backpack when either the Humanoid dies or when the player’s character respawns.

2 Likes