What do I need to type to make a TextLabel show different text? This is my script:
script.Parent.MouseButton1Click:connect(function() game.StarterGui.ScreenGui.OrderCurrent.Text = "Milkshake" print ("itworks") end)
"itworks" gets printed in chat, however, the TextLabel called "OrderCurrent" does not say Milkshake. I am aware I will have to use RemoteEvents, but I want to get this sorted first.
Additionally, I want clicking the TextButton to display the change to the whole server. I am making this for a cafe game and want to make a system where a cashier presses a button (which has an item of food written on it) and the chefs see the order on a TextLabel at the top of their screen. This can be made in a different way, such as a system message in chat, but this method is fine.

1 comment
is it a localscript or a script? and where is it located?