I have a GUI at the top of a players screen in my game, but for some reason, the values don't change. I realized that the game was filtering enabled and immediately added a RemoteEvent due to the fact that the script in the GUI was a local script and the main server script was changing it. The script I have to fire the server is below:
game.ServerStorage.Status.Changed:Connect(function() game.ReplicatedStorage.StatusChanging:FireAllClients() end)
This works fine in studio along with the other script, but not in the real game. The script I have to recieve the server event is below (The RemoteEvent is called "StatusChanging"):
game.ReplicatedStorage.StatusChanging.OnClientEvent:Connect(function() script.Parent.Frame.TextLabel.Text = game.ServerStorage.Status.Value end)
I have no prediction for the outcome of this as I have tried everything within my knowledge to get the GUI to show up, but it is quite hard because it does show up in studio. Thanks in advance for helping me solve it.
-Cmgtotalyawesome
LocalScripts cannot access ServerStorage. Try placing Status
in ReplicatedStorage instead.