Hello! I would like to do a poll system with DataStore, how can i do it ?
Exemple :
In game :
ā Polls Test - Roblox
Thank You!
Hello! I would like to do a poll system with DataStore, how can i do it ?
Exemple :
In game :
ā Polls Test - Roblox
Thank You!
Iam also looking for this recently, i want the poll system to be saved
In past, I created a feedback module, like the ones of google forum, where I stored all player answers in a global datastore, under one specific key.
Something like:
-- Lets pretend a player named "Jack" with ID "2" sent a vote
GlobalDataStore:UpdateAsync(GLOBAL_DS_KEY, function(oldData)
oldData[2] = {
["Question1"] = ... ,
}
end)
Then, as you access the global datastore in this table, you can get all player data and make percentuals with a for loop and a little bit of maths