Sorry for disturbing everyone again, but i read the developer tutorial on how to use remote events and I am making a game that has a script and a localscript. I want to fire a remote event that runs the localscript (server - client), however after intense researching I still do not know how to make a server - client script. Can anyone explain to me and please provide examples? , i have some questions in the provided script below too! Thanks!
Heres a code on the developer site
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local remoteEvent = ReplicatedStorage:WaitForChild("RemoteEventTest")
local function onPlayerAdded(player) -- what does this player thing do??
-- Fire the remote event
remoteEvent:FireClient(player) -- whats 'player' its not mentioned in the script
end
Players.PlayerAdded:Connect(onPlayerAdded)
-- what is PlayerAdded?
I also need an in general explanation of server - client and server - all clients and how to use them thanks so much!

3 comments
The PlayerAdded event has a parameter which is the player that just joined the game
https://developer.roblox.com/en-us/api-reference/event/Players/PlayerAdded
Thanks, so is the playeradded optional?