If I send data to the client right after PlayerAdded is called, will the client receive it depending on where the LocalScript is placed?

--Server
local Remote = game.ReplicatedStorage.RemoteEvent

game.Players.PlayerAdded:Connect(function(Player)
Remote:FireClient(Player)
end
-- Client
local Remote = game.ReplicatedStorage.RemoteEvent

Remote.OnClientEvent:Connect(function()
print(true)
end

If I send data to the client using a RemoteEvent immediately after PlayerAdded, will the LocalScript receive the data if it’s placed in either `StarterPlayerScripts or ScreenGui? If not, where should the LocalScript be placed to guarantee it receives the remote event?"

1 Like

With the introduction of unreliable remote events, remote events now ensure all signals sent by either the server or client are received, event if a callback has yet to be assigned to OnServerEvent and/or OnClientEvent

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.