--- DataStore

local DataStore = game:GetService("DataStoreService")
local SpawnPoint1 = DataStore:GetDataStore("SpawnPoint")

game.Players.PlayerAdded:connect(function(Plr)
	local Data = Instance.new("Folder")
	Data.Name = "Stats"
	Data.Parent = Plr
	--- SpawnPoint
	local SpawnPoint = Instance.new("StringValue", Data)
	SpawnPoint.Name = "SpawnPoint"
	SpawnPoint.Value = "One"
    --- DataStore1
    SpawnPoint.Value = SpawnPoint1:GetAsync(Plr.UserId) or SpawnPoint.Value
    SpawnPoint1:SetAsync(Plr.UserId, SpawnPoint.Value)
    SpawnPoint.Changed:connect(function()
    SpawnPoint1:SetAsync(Plr.UserId, SpawnPoint.Value)
    end)
end)
	