I have TowerDataGui in StarterGui folder that I’m trying to access and enable it through code, I tried first to do this in a module script:
towerDataGui = game.StarterGui.TowerDataGui
This produces no errors but nothing happens on the client’s screen, so I figured I needed to access the gui from the local player so I did this in a module script:
PlayerAdded is weird on the client - maybe because you are using it on your own client… You could use the PlayerAdded event server-side, and use a RemoteEvent to tell that client to update their Gui.
I would suggest using remotes to modify data on the client like the GUI data as it belongs to the client, and thus may not be replicated to the server.