Can i Datastore number values like this?
local ds = game:GetService("DataStoreService"):GetDataStore("AWP")
game.Players.PlayerAdded:connect(function(player)
player:WaitForDataReady()
local awp = script.Parent
if ds:GetAsync("Key" .. player.userId) then
awp.Value = ds:GetAsync("Key" .. player.userId)
end
awp.Changed:connect(function(save)
ds:SetAsync("Key" .. player.userId, save)
end)
end)
|