Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 6 years ago

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

Log in to vote
0
Answered by
Dog2puppy 168
6 years ago

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

0
Many thanks. But what do I do when it comes to making the change of SurfaceGui visible for other players? MatiWielun 35 — 6y
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. Dog2puppy 168 — 6y
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? MatiWielun 35 — 6y
View all comments (3 more)
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. MatiWielun 35 — 6y
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 MatiWielun 35 — 6y
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 Dog2puppy 168 — 6y
Ad

Answer this question