Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make a change in SurfaceGui visible for all players?

Hello. Maybe the problem is caused by Filtering processes, but I need to assure you that my game has Filtering Disabled.

I have a LocalScript located in a TextBox in Frame in SignGui in StarterGui.

It makes a SurfaceGui on a part suddenly change its text to what is written in the TextButton.

I've simulated a server. The Player who used this TextButton only saw the change of the text in the SurfaceGui.

Here is the script:

local screenTextBox = script.Parent -- Location of Textbox
partTextLabel = screenTextBox.Parent.Parent.Parent.Parent.Backpack.Sign.SignText.SurfaceGui.TextLabel -- Location of text on part

screenTextBox.FocusLost:connect(function(enterPressed)
    if enterPressed then
        partTextLabel.Text = screenTextBox.Text -- Change text
    end
end)

The question is, how do I make this change visible for other players?

I wait for a piece of advice. Thank you.

1 answer

✓ Accepted answer

All games were recently forced to use filtering enabled. https://devforum.roblox.com/t/removal-of-experimental-mode/152807

This is whats causing it to not work. You can learn here how to make your game compatible with filtering enabled. http://robloxdev.com/articles/Converting-From-Experimental-Mode

7 comments

0

Many thanks. But what do I do when it comes to making the change of SurfaceGui visible for other players?

0

I would send a remote event from client to server and then have the server to tell the clients that there was a change.

0

I have also thought that way, but I am a greenhorn when it comes to scripting in Filtering Enabled. How this LocalScript above should be changed and what scripts shall be inserted in server?

0

Thank you. But I still have little to no idea what to do. Do I need to make a RemoteEvent from client to server so the server itself changes the SurfaceGui or maybe the client changes it and it send the message to server? I don't know, to be honest. I wish I did.

0

Well... It's odd to say this, but I have already figured it out, even though RemoteEvent and RemoteFunction were completely new for me just a few hours ago. Thank you for help. :D It seems that I am not a script kiddie after all. :3

0

Your welcome. Good luck on your game or whatever your working on. Lua can be a bit hard at first, but it gets much easier as you progress. :D

This discussion is preserved as it was. New answers, comments, and votes are closed.