Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function onCompleteAppFired(player)
- print("submit pressed")
- local keep = game:GetService('DataStoreService'):GetDataStore('keep'):GetAsync('table')
- local Q1A = workspace.info.answers.Q1A
- local Q2A = workspace.info.answers.Q2A
- local Q3A = workspace.info.answers.Q3A
- local Q4A = workspace.info.answers.Q4A
- local Q5A = workspace.info.answers.Q5A
- keep[player.UserId] = {
- ["Q1A"] = Q1A.Value,
- ["Q2A"] = Q2A.Value,
- ["Q3A"] = Q3A.Value,
- ["Q4A"] = Q4A.Value,
- ["Q5A"] = Q5A.Value
- }
- DataStoreService:GetDataStore('keep'):SetAsync('table',keep)
- -----------------------
- local keep = game:GetService('DataStoreService'):GetDataStore('keep'):GetAsync('table') --reload for test
- print(keep[player.UserId]["Q1A"])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement