Hi there,
You are using a server script. Only local scripts can use local player = game.Players.LocalPlayer as this is client-sided. However, don't worry! You seem to be editing a Gui which lines up perfectly with using a local script. Guis together with using localplayer are both client-sided, thus, you should a local script instead. Here's how your script should look like:
In a local script, type out this code. If you are unable to parent this local script to gui that you have placed in starter gui use #1, else, use #2.
#1 Placing this local script separate from the gui.
local player = game.Players.LocalPlayer
local Gui = Player.PlayerGui.Fade
Gui.Enabled = true
#2 Place the local script as the child of the Gui
local player = game.Players.LocalPlayer
local Gui = script.Parent
Gui.Enabled = true
2 comments
Thank you so much for the help. Glad to see this community alive after the removal of the forums
No problem! Don't hesitate to ask a question on Scripting Helpers, everyone's very helpful here!