Recently, I have been scripting a text label which will change it text when a value is changed, this works fine in experimental mode, but ever since you now have to code with filtering enabled, I had to tweak the script. During this process, I get a error called "Not A Valid Member Of Player" and " Script 'Players.GreenerAxis.PlayerGui.ApplicationGUI.BackgroundFrame.TopBar.Status.StatsReciever', Line 10" when I am not trying to access the player.

CS = Value CStxt = Textlabel StatusEvent = Remote Event

CS = game.StarterGui.ApplicationGUI.CurrentStatus
CStxt = script.Parent.Parent.Status

game.StarterGui.ApplicationGUI.CurrentStatus.Changed:connect(function(CS)
	game.ReplicatedStorage:WaitForChild("StatusEvent"):FireServer(CS,CStxt)
end)

--- Script two VVV ------

game.ReplicatedStorage.StatusEvent.OnServerEvent:connect(function(CS,CStxt)
	CStxt.Text = CS.Value
end)

Thanks!

3 comments

0

U are changing in starterGui but u can’t because it only gives the Gui and not to change something if u need to change go to game.Players.LocalPlayer.PlayerGui

0

Oh yes, I forgot about that, I will try that! Thanks.

0

SOLVED