Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Which way is faster and easier to use for a Notification system?

Okay, Im trying to make a Notification system to it tells them the players a message. So the game is FE and im deciding to make it so it Fires to all clients or making it look through each player.

Example:

for i = 1, #Players do
if Players[i] ~= nil then
if Players[i].PlayerGui:FindFirstChild('GameUI') then
Players[i].PlayerGui.GameNotifaction.GameMessage = 'Hii'
end
end
end

or

Notification:FireAllClients('Hello')

Just wanna know which one is better or faster.

2 answers

✓ Accepted answer

In my opinion, I would use :FireAllClients() due to the fact that it is a built-in function. Thus, it should require less time to execute. And depending on how the :FireAllClients() function is written, it may be more efficient than looping as you do.

Hi! This is my first time answering but I think you should use the Notification:FireAllClients('Hello')

This discussion is preserved as it was. New answers, comments, and votes are closed.