Someone can help me? i want to make a data store to save a value in a model, but dont work my script
script:
local DataStoreService = game:GetService("DataStoreService")
local msgstore = DataStoreService:GetDataStore("HouseStore") --Value that saves the message
local success, key = pcall(function()
return msgstore:GetAsync(game.Workspace.House.Owner.Value)
end)
local key = game.Workspace.House.Owner.Value
if success then
print("Success!")
else
msgstore:SetAsync(key, "ohnub")
end
