So I have this points script and it gives me this error every time i try it : 22:22:07.007 - user_33666287 is not a valid member of GlobalDataStore 22:22:07.008 - Script 'Players.Player.PlayerGui.CoinGui.LocalScript', Line 3 Code:
local player = game:GetService("Players").LocalPlayer
repeat wait() until player
local points = game:GetService("DataStoreService"):GetDataStore("Points")["user_"..player.userId]
local username = "user_"..player.userId
local text = script.Parent.TextLabel
if GlobalDataStore:GetAsync(username) == 0 or nil then
DataStore:UpdateAsync(username, function(add)
newValue = 50
end)
end
if username == "user_33666287" then
points = 100000
end
text.Changed:connect(function()
text.Text = "Coins : ".. points
end)
