Local script can't receive remote event

local ItemsInfoRemoteEvent = game.ReplicatedStorage:WaitForChild("ItemsInfoRemoteEvent")
ItemsInfoRemoteEvent:FireClient(player, items, rarities) --I fire this in playerAdded and it fires for sure (I checked with print)
local ItemsInfoRemoteEvent = game.ReplicatedStorage:WaitForChild("ItemsInfoRemoteEvent")
local items, itemRarities = ItemsInfoRemoteEvent.OnClientEvent:Wait()

What is wrong is that the :Wait() stops the code so that must mean that the event didn’t get to the client. The event exists in ReplicatedStorage and the server fires after local script so it should work (I checked this with os.clock(). I have no idea what could be wrong, also I’ve tried restarting the studio but doesn’t fix the issue. If you have any questions, please comment below

so that must mean that the event didn’t get to the client.

Or the server fired the ‘RemoteEvent’ object before the client had a chance to create a connection to the RemoteEvent's ‘OnClientEvent’ event/signal. Add a wait/yield before FireServer is called.

1 Like