local RunService = game:GetService('RunService')
-- Game Services
local NotificationManager = require(script.NotificationManager)
local TimerManager = require(script.TimerManager)
-- Local Variables
local Events = game.ReplicatedStorage.Events
local DisplayIntermission = Events.DisplayIntermission
local Camera = game.Workspace.CurrentCamera
local Player = game.Players.LocalPlayer
local ScreenGui = script.ScreenGui
local InIntermission = false
-- Initialization
game.StarterGui.ResetPlayerGuiOnSpawn = false
ScreenGui.Parent = Player.PlayerGui
It states when I open the console: scripts 'Players.thecoolminecartYT.PlayerScripts.Displayscripts', line22
When I use the dev edition(Roblox Studio) there is no error whatsoever

2 comments
Is it a local script?
You can't access PlayerScripts or PlayerGUI directly with a server script. Instead, use a RemoteEvent or RemoteFunction in the player's backpack to let a localscript know to make the changes.