#remote event not being received by client from server when first loading data
1 messages · Page 1 of 1 (latest)
Did you fire the remote?
yes
i have another local script thats recieves it too
that one actually gets it tho
i think
put a print before updateInv and check if the remote itself is even firing
it could be a issue with updateInv
the remote isnt firing?
** You are now Level 4! **
have you tried
repStor:WaitForChild("data").Inventory.OnClientEvent:Connect(function(inv)
updateInv(inv)
print('hai')
end)```
just waiting for the child
ok
making SURE its there
if for some reason that still doesnt work put a debug thing like lua print(repStor:WaitForChild("data").Inventory); repStor:WaitForChild("data").Inventory.OnClientEvent:Connect(function(inv) updateInv(inv) print('hai') end)
wait for child didnt work, lemme print
if the remote itself is there then its an issue no the server
and your simply not firing the remote OR you are firing the remote too early
yeah
thats whats happening
add a wait before it fires for like 5 seconds and jnust make sure thats the issue
before you debug it for a while
wait for the player character
or you can just have a wait timer
its really up to you since theres not an exact function yk
unless im stupid and dont know of one 🤷♂️
you could research stuff like this now that you fixed the issue tho 👍
Try
if not game:IsLoaded() then
game.Loaded:Wait()
end
This waits until game is loaded
ok 👍