I am in the proccess of making a car and I am trying to make it so when a player is seated it disables their toolbar, how can I do this?
My attempt (Doesn’t work):
local seat = script.Parent.Parent
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)