local datastore = game:GetService("DataStoreService")

game.Players.PlayerRemoving:Connect(function(player)
	local datastore2 = datastore:GetDataStore(player.UserId .. "Dialog2")
	local Dialog = workspace.Dialog
	datastore2:SetAsync("Dialog2", Dialog.Value)
end)


game.Players.PlayerAdded:Connect(function(player)
	local datastore2 = datastore:GetDataStore(player.UserId .. "Dialog2")
	print(datastore2:GetAsync("Dialog2"))
end)