Print and workspace are disagreeing on GUI values

  1. I want to update GUI through a function in a local script fired by a remote event
  2. code seems like it should work but doesn’t (?) print() outputs what I would expect my changed values to be but workspace in both server and client windows disagrees??
  3. I’ve tried printing the text and image values of the text label and image label respectively
    annoyingly the code seems to work when the event is fired from one script and doesn’t from another but both events fire as the print() always runs
local plrs = game:GetService("Players")
game.ReplicatedStorage.RemoteEvents.BombCommunication.OnClientEvent:Connect(function(output,targetedplr)
	script.Parent.TextLabel.Text = output
	script.Parent.ImageLabel.Image = targetedplr:FindFirstChild("Headshot").Value
	print(script.Parent.TextLabel.Text, script.Parent.ImageLabel.Image)
	
end)

printed values:
image
workspace values in the client window (which is also what’s visible) but is the same in the server:

Barely understood this, still might be wrong but.
Your issue here is that the server prints something different to the client?

Or is your issue something to do with the event here?

Sorry for the wording :sweat_smile: the game prints the properties of text and image labels that dont match with the game explorer (regardless of client or server)

the function should set the properties of 2 text and image labels but doesn’t set those properties. And the other issue is that the print command says that the game has set the properties when it hasn’t

Never mind but thanks for your response. The problem was another script was killing the player milliseconds after the GUI was set. I’m very sorry for bothering anyone :sweat_smile:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.