My script does not make the make the TextLabel in the Billboard GUI visible

So this script is supposed to make a textlabel visible above a vehicle that the player is trying to enter but it stops at line 9 and says “Attempt to index nill with Label” how do i fix this issue?

function SitRequest(name, state, input)

  if (state ~= Enum.UserInputState.Begin) then return end

   local player = game.Players.LocalPlayer
   local seat = workspace:FindFirstChild(player.Name.."'s Car").DriveSeat
  if (player.Character and player:DistanceFromCharacter(seat.Position) < 30) then
	  seat:FindFirstChild("EnterGUI").Label.Visible = true
	  seat:Sit(player.Character.Humanoid)
	  --wait(1)
	  --seat.EnterGui.TextLabel.Visible = false
  end

end

game:GetService("ContextActionService"):BindAction(
  "Sit",
  SitRequest,
  false,

  Enum.KeyCode.E,
  Enum.KeyCode.ButtonX
)
1 Like

That means it is unable to find the TextLabel Label. Are you sure you have typed out the path to Label correctly?

im 100% sure because the seat`s route is correct because it works well if i remove that line but then the gui dosent appear.

ok so turns out im dumb, i misspelled the EnterGui to EnterGUI