In a function in a ModuleScript, the script should enable a Gui located in the player's PlayerGui. This works fine during a play test, but it doesn't work on a server test. What am I doing wrong?
function BattleScript.EnableGui(player)
player.PlayerGui.BattleGui.Enabled = true
end
Yes, the player in the function is the player that is needed.
Thanks!

5 comments
Can you press F9 in Online Mode to bring up the Dev console and see if there are any errors in the Client Log or Server Log?
All it says is that the Gui I'm trying to edit isn't located in PlayerGui
Is that a LocalScript or regualr Script?
It's in a ModuleScript, but also doesn't work in a regular script?
It needs to be a localscript. You can't access the client from the server.