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

"Not A Valid Member Of Player," When I Am Not Accessing The Player?

Asked by 5 years ago

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!

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 MaxDev_BE 55 — 5y
0
Oh yes, I forgot about that, I will try that! Thanks. Nikkasfied 43 — 5y
0
SOLVED User#17685 0 — 5y

Answer this question