hello all im trying to make an airport game but i cant get my code to work what im trying to do is when the player sits in the check in seat a GUI pops up where they can type gate number departing time etc and when they press submit it puts the text on the screen behind them here my code for one of the boxes

script.Parent.MouseButton1Down:connect(function()
	
local screenbrick = script.Parent.Parent.Parent.Value.Value.Screen

	local TextBoxObject = whatever

	TextBoxObject.Text = ("test") --> simple	
	
	screenbrick.SurfaceGui.Frame.DepartureTime.Text = script.Parent.Parent.DepartureBox.Text

end)

but when i run the code it just says enter text here on the screen behind me

2 comments

0

'DepartureBox' Where is this named at?

0

Is this a server script or client script? Where is this script located?