Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make a gui appear for local player when they sit in a specific seat?

I am trying to make a script that makes a gui appear for the local player who sits in a specificseat. I have no progress currently as I know nothing about seats , this is also my first post so sorry if I have done something wrong I dont know how to do what I said in the title.

I looked at some other scripts on here but they don't cover the gui part and don't explain very well

many thx

thetwerplump

(the seat is inside workspace btw and the gui is in starter gui?)

2 comments

0

This did not work, it errors on line 3

1 answer

This should work

local gui = game.StarterGui.ScreenGui
local char = script.Parent
local h = character:WaitForChild("Humanoid")

function onSeated(seated, seat)
	if  seated then
		gui.Enabled = true
	else
		script.Parent.Enabled = false
	end
end

h.Seated:Connect(seated)

1 comment

0

This will not work.

This discussion is preserved as it was. New answers, comments, and votes are closed.