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!
Try using a local script if a script is trying to access the client.
Scripts are for servers not GUIs.