Having Problems With Script

Just a Simple Question Tried to Script Something From ServerScriptService to Player Gui

Heres is my Script
local players = game:GetService(“Players”)
local player = players.LocalPlayer
local Gui = player.PlayerGui

Edit:This is not my whole Script only needed to access to playergui

What is Wrong with this script

LocalPlayer is a local argument(i think) than can only be done on the client to get the play itself. ServerScriptService doesnt have a local player because it is the server. If you want to change the players gui, you can either access it from the game perspective.

local plrGUi = game.Players.Player1.PlayerGUI
--or
for i,v in pairs(Players:GetPlayers()) do
local plrGUi = v.PlayerGUI
end

or you can use remote events to fire the client for the client to change itself.

Thanks for That Sorry But can i ask another Question?
I need to do Player.Character for Script it is saying problem when i type

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:wait()

:wait() is deprecated, use :Wait().

LocalPlayer is only accessible on the client-side, not the server.
Use a localscript.

Ok i am making Toh Timer and i think i need to make it on Server Script

You need to have a reference to the player then, one way is to get the player through the .PlayerAdded event:

game:GetService('Players').PlayerAdded:Connect(function(Player)
-- 'Player' is the player instance that joined the game.
print(Player)
end)

Only you can use LocalPlayer in localscripts