I have a Gui, my start menu. It pops back up after death. So to solve this problem I made a script to enable the Gui when hey enter the game so when they die it will stay disabled because that's how it started. I confused about why it won't work.
This is the script I put in ServerScriptService and it is spelled correctly. The error is "StartMenu is not a valid member of PlayerGui"
game.Players.PlayerAdded:Connect(function(player)
player.PlayerGui.StartMenu.Enabled = true
end)

6 comments
that should be done from the client not the server
Also if you press GUI and see the properties there is something that says ResetOnSpawn.
clinet?
GUIs are cloned locally
Oh okay thx
Why is all this just in the comments. You think someone would have put it in as an answer