I am making a test datastore but I have some issues, I am not sure how to fix em, nor what to stick in their place.
game.Players.PlayerAdded:connect(function(player)
local PDataStore = game:GetService("DataStoreService"):GetDataStore(player.UserID)
PDataStore:SetAsync("Money", 50)
player.PlayerGui.ScreenGui.TextBox.Text = Variant GlobalDataStore:GetAsync(
string "Money"
)
end)
What do I add to the Variant? I don't know what to define it with, Also, my datastore isn't global, its one datastore per person, I also got a blue line uder string "Money"
