Hello, I am currently making a game where a user can post a slide, and other users can see it in different servers. I need help with saving it in a datastore so other users can see it.
I am confused what the key should be, should it be the UserId, and if so, how would I be able to access every post posted by every users that have created a post?
local DataStoreService = game:GetService('DataStoreService')
local Players = game:GetService('Players')
local PostStoreTesting = DataStoreService:GetDataStore("PostStoreTesting")
local Posts = {}
Players.PlayerAdded:Connect(function()
local succ,err = pcall(function()
local GetPosts = PostStoreTesting:GetAsync()
end)
end)