Help with startergui script

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”.

1 Like

Sorry if I did something wrong here, I’m new to scripting and the dev forum :frowning: .

1 Like

Is the code in a local script or server script?

1 Like

The script is a local script. –

1 Like

Can you send a screenshot of the path?

1 Like

What do you mean by path???

1 Like

Open the explorer, take a screenshot of the screengui’s location and send it in here.

1 Like

Take a screenshot of the screengui’s children.

1 Like

image

1 Like

If your code is in a local script only the affected player can see it. No one else. Did you check if it affects other players?

1 Like

yea, it only affected me not the other studdents

1 Like

That’s right, which means this post is solved.

1 Like

so i just move it all to a “script”

1 Like

If you would move your code to a server script all players are affected.

1 Like

It won’t work in a server script.

1 Like

Ok, thanks for your help! It means alot.

2 Likes

No problem. Have a good day. :slight_smile:

1 Like

how do i close this thread now??

1 Like

You can’t, it’s enough to mark someone as solution and leave the post there. Only staff can close your thread.

2 Likes