I am trying to make a fading text appears only in the end of my game so I made a local script inside of the text that would make It appear and fade away so then I disabled It and wrote a code that would enable the local script only when the code runs so then It would appear only in a certain time so I wrote this in my main script (It is in server script service)
local player = game.Players.LocalPlayer local PlayerGui = player.PlayerGui local fadingText = playerGui.Transition.outside local fadingTextScript = fadingText.LocalScript fadingTextScript.Disabled = false
I keep getting the Error "ServerScriptService.MainScript:1474: attempt to Index nil with 'PlayerGui'"
It says it dont work at "local PlayerGui = player.PlayerGui"
I dont know what I do to make the text appears and fade away in a certain time because i am not so good at scripting can anyone help me?

2 comments
So it is a story game so all of the players that are still on the game are alive and finished it so how I make that this script runs for all players and not just for the player that "finished the game"?
You will have to access all the players, make a for loop and use FireClient(player) on them. Here is an example https://dpaste.org/W0Os