I have a script to open and close curtains and then realised the GUI wont update for other player's with the GUI, is there any way to update all player's GUIs if someone opens the curtains and closes them? The GUI format is like this:
CurtainControls (Screen GUI)
Collapse(TextButton)
Main(Script)
Curtains(TextButton)
Main(Script)
My script is below how would I make this update to other player's GUIs aswell but not all players get the GUI it is given to certain players through another script.
Open = false
DB = false
script.Parent.MouseButton1Click:connect(function()
if Open == false and DB == false then
DB = true
game.Workspace.Part.Open.Disabled = false
script.Parent.Text = "Opening..."
for i = 1,250 do
wait(.00001)
end
game.Workspace.Part.Open.Disabled = true
Open = true
script.Parent.Text = "Opened"
wait(1)
script.Parent.Text = "Close Curtains"
DB = false
elseif Open == true and DB == false then
DB = true
game.Workspace.Part.Close.Disabled = false
script.Parent.Text = "Closing..."
for i = 1,250 do
wait(.00001)
end
game.Workspace.Part.Close.Disabled = true
Open = false
script.Parent.Text = "Closed"
wait(1)
script.Parent.Text = "Open Curtains"
DB = false
end
end)
