So im using a modulescript in replicatedstorage to store data about squads of players in a table, which needs to be accessed by client and server, and everywhere i’ve seen says that this information should replicate to all clients since its being changed on the server, and yet, I get this when I try to print the tables contents on the client and server.
Heres my serverside script inserting a new team.
game.ReplicatedStorage.TeamUpdate.OnServerEvent:Connect(function(plr)
table.insert(mod.Teams,{plr.Name,1}) -- first is team name, second is playercount
end)
-- printing returns team properly as seen in image
and then im simply printing it on the client, which is a localscript inside StarterGui:
print(mod.Teams) -- returns {}