When i added a remote event it still does not fire to the server

Hi,

Why does this not reference the client?

local(Starter Player Scripts)

--Colors for difficulties--
local difficulties = {
	Freebie = Color3.fromRGB();
	Easy = Color3.fromRGB();
	Intermediate = Color3.fromRGB();
	Hard = Color3.fromRGB();
	Intense = Color3.fromRGB();
	JustOverallPainful = Color3.fromRGB();
	KIRBO = Color3.fromRGB();
}
--Remote Event--
local Replicated = game:GetService("ReplicatedStorage")
local Event = Replicated:WaitForChild("RemoteEvent")
--Parts--
local Part = game.Workspace.Folder.Part
local PartName = Part.Name
--Player--
local playerName = game.Players.LocalPlayer.Name
--function--
Event.OnClientEvent:Connect(function(Player)
	game.StarterGui:SetCore("ChatMakeSystemMessage", {
		Text = "[BadgeNotification]"..playerName.." Got "..PartName.."!";
		Color = difficulties["Freebie"];
		Font = Enum.Font.SourceSansBold;
		TextSize = 18;
	})
end)

Server(Workspace)

local Replicated = game:GetService("ReplicatedStorage")
local Event = Replicated:WaitForChild("RemoteEvent")

game.Players.PlayerAdded:Connect(function(Player)
	Event:FireClient(Player)
end)

Use :FireAllClients(plr.Name) in the script to make a server message and replace plrName in the local script with Player

It’s possible that you’re firing the event before the client has been able to bind the event to a function. Why are you even using a RemoteEvent for this when you can just run that bit of code as soon as the client joins?

it does not work. It still fires to just the client.

should i add a players added to the server script?