#sending an array through server to client, client gets an empty table
1 messages · Page 1 of 1 (latest)
in the second screenshot, what the client printed was the argument that it got
EnableMapVoteGUI.OnClientEvent:Connect(function(MapsChosen)
MapVote.Enabled = true
print(MapsChosen)
end)```
show more code such as contents of MapsChosen
Most likely pulling the maps from ServerStorage or another non-replicating container
Desert
Snowy
Snowy are instances not accessible to the client
mhm
its firstly placed into an array on the server script
local MapsChosen = {}```
does that still not work?
place them into replicatedstorage
no cus
arrays cant hold entire instances
they hold references to instance
say u want somethinf behind a wall, someone else can go through that wall
you only see a wall u dont see the thing behind the wall
get it?
thats how client’s are
ooohhh
they cant see the serverside at all, so cant hold references to objects inside them or even the servers properties
alright alright
👍