How to make "E" to sit?

Hello, For my E to sit script it doesn’t seem to work. What did I do wrong? I want to make it, make you sit in a booth.

local part = script.Parent

local gui = part.BillboardGui.TextButton

script.Parent.BillboardGui.TextButton = Enum == “E” do

script.Parent.BillboardGui.TextButton.MouseButton1Click()

print(“Hi”)

end

1 Like

Are you looking for proximity prompt, by any chance?

With the help of the resource above, combine it with the functionality of Seat:Sit(humanoid).

1 Like

Yes. I’ll check that out thank you!