I'm making an event that the server sends to the client when an Administrator joins, it runs
sgui:SetCore("SendNotification",{
all the notification stuff goes in here
}
But when testing, every time on the Client side, Player is returning nill
Server:
local remote = game.ReplicatedStorage:WaitForChild("Remote").BROADCAST_ADMIN_JOIN
function fireIfAdmin(tbl, plr)
for i,v in pairs(tbl) do
if plr.Name == v then
remote:FireClient(plr)
end
end
end
function checkAdmin(plr)
local tier4 = {"resupero"}
local trainer = {"AtomicMoosh", "249Grimawesome"}
local developer = {"Skychiild"}
local commander = {"XxExtrapokemonXx"}
local captain = {"Zakekski_YT"}
local queen = {"SinCityCello"}
fireIfAdmin(tier4,plr)
fireIfAdmin(trainer,plr)
fireIfAdmin(developer,plr)
fireIfAdmin(commander,plr)
fireIfAdmin(captain,plr)
fireIfAdmin(queen,plr)
end
game.Players.PlayerAdded:Connect(function(plr)
checkAdmin(plr)
end)
Client:
local remote = game.ReplicatedStorage:WaitForChild("Remote").BROADCAST_ADMIN_JOIN
remote.OnClientEvent:Connect(function(plr)
print(plr.Name)
end)
Did I make an error somewhere in the server script?

1 comment
Passing it twice worked! Thank you!