hello so ummmm i want to achieve trying to make something like tds
how would i make it so datastores save, coins, XP, towers?
i need help. i tried making one. no result, no output
local Players = game:GetService("Players")
local ServerScriptService = game:GetService("ServerScriptService")
local Workspace = game:GetService("Workspace")
local DataStore2 = require(ServerScriptService.DataStore2)
-- Combine every key you use. This will eventually be the default, but for now read the "Gotchas" section to understand why we need this.
DataStore2.Combine("zillyzestycontentsharerwooooooow", "equippedtowersyouloser")
Players.PlayerAdded:Connect(function(player)
local noobiesStore = DataStore2("equippedtowersyouloser", player)
--pain!
local t = noobiesStore:GetTable({
Points = 100, --starting.
XP = 0,
Noobies = {
"Scout"
}
})
for i,v in ipairs(t) do
local val = Instance.new("StringValue",Workspace)
val.Name = i
val.Value = v
print(i)
print(v)
end
end)