In a game I’m scripting, the startergui scripts only affect the single person. Not everyone.
Heres the script:
Code
local textlol = script.Parent.message.Text
script.Parent.BoardOn.MouseButton1Click:Connect(function()
game.workspace.screen.SurfaceGui.load.Visible = true
game.workspace.screen.SurfaceGui.load.yes.Text.Text = "Loading..."
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Text = "HDMI 1 PORT 1"
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = true
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = false
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = true
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = false
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = true
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = false
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = true
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = false
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = true
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = false
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = true
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = false
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = true
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = false
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = true
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = false
wait(0.05)
game.workspace.screen.SurfaceGui.load.Visible = false
game.workspace.screen.SurfaceGui.main.Visible = true
script.Parent.BoardOn.Visible = false
script.Parent.BoardOff.Visible = true
script.Parent.message.Visible = true
script.Parent.SENDMESSAGEE.Visible = true
end)
script.Parent.BoardOff.MouseButton1Click:Connect(function()
game.workspace.screen.SurfaceGui.load.Visible = true
game.workspace.screen.SurfaceGui.load.yes.Text.Text = "Shutting Down..."
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Text = "HDMI 1 PORT 1 DISCONNECTED"
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = true
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = false
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = true
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = false
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = true
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = false
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = true
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = false
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = true
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = false
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = true
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = false
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = true
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = false
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = true
wait(0.05)
game.workspace.screen.SurfaceGui.load.yes.TextLabel.Visible = false
wait(0.05)
game.workspace.screen.SurfaceGui.load.Visible = false
game.workspace.screen.SurfaceGui.main.Visible = false
script.Parent.BoardOn.Visible = true
script.Parent.BoardOff.Visible = false
script.Parent.message.Visible = false
script.Parent.SENDMESSAGEE.Visible = false
end)
script.Parent.SENDMESSAGEE.MouseButton1Click:Connect(function()
game.workspace.screen.SurfaceGui.main.Visible = true
game.workspace.screen.SurfaceGui.load.Visible= false
game.workspace.screen.SurfaceGui.main.yes.text.Text = script.Parent.message.Text
end)
Can I please have help when the send button is clicked, the screen’s text is visible to everyone, not just the person who pressed “Send”.