local DataStoreService = game:GetService("DataStoreService")
local MyDataStore = DataStoreService:GetDataStore("HaveBreathing")
game.Players.PlayerAdded:Connect(function(player)
local havebre = Instance.new("Folder")
havebre.Name = "havebre"
havebre.Parent = player
local HaveBreathing = Instance.new("IntValue")
HaveBreathing.Name = "HaveBreathing"
HaveBreathing.Parent = havebre
end)
game.Players.PlayerRemoving:Connect(function(player)
MyDataStore:SetAsync(player.UserId, player.havebre.HaveBreathing.Value)
end)
dont save why
