----------------------

function findData(UserId)
	local tab = nil
	for i,v in pairs(_G.Jail) do
		if v.UserId == UserId then
			tab = v
		end
	end
	return tab
end
spawn(function()
	while wait(10) do
		for _,plr in pairs(game.Players:GetPlayers()) do
			if not findData(plr.UserId) then
				repeat
					local userData = storage.LoadData(plr.UserId)
					wait(0.5)
					if not userData then  end
				until userData == true
			else
			end
		end
	end
end)
spawn(function()
	while wait(30) do
		for _,plr in pairs(game.Players:GetPlayers()) do
			storage.SaveData(plr.UserId, false)
		end
	end
end)


