Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Updating Money GUI in filtering enabled?

I'm still very new to filtering enabled, and what I'm trying to do is repeatedly update a GUI with a money value that's on the server side. This is what I have, but it only works in studio, and not in game.

This is in the server script service

game.ReplicatedStorage.MoneyEvent.OnServerEvent:connect(function(player)
	player.PlayerGui.MoneyGui.TextBox.Text = ("Money:" .. player.Money.Value)
end)

and this is in the gui

while true do
	game.ReplicatedStorage.MoneyEvent:FireServer()
	wait(1)
end

Sorry if both of these scripts are terrible, I'm just now learning how to use FE. Any and all help is appreciated. :)

1 answer

✓ Accepted answer

You CAN'T access PlayerGui on the server. Keep client sided elements on the client.

This discussion is preserved as it was. New answers, comments, and votes are closed.