Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Storing data that is accesable between server and client?

Asked by 5 years ago
Edited 5 years ago

Essentially what needs to happen is when a player joins he gets an "Inventory" object created for him:

inventories = {}
game.Players.PlayerAdded:Connect(function(player)
    inventories[player.Name] = inventory:new()
end

I need the "inventories" array to be able to be accessed between server an client.

Ive tried using modules and I dont want to use a bunch of bindable/remote events for this.

How do I do this?

0
Use remote functions so they can request information that is theirs. That is probably the best solution for now. Even if you do not want to use remotes User#24403 69 — 5y
0
I agree with the above. User#26586 0 — 5y

Answer this question