function findData(W)local m=nil for O,q in pairs(_G.Jail)do if q.UserId==W then m=q end end return m end spawn(function()while wait(10)do for W,m in pairs(game.Players:GetPlayers())do if not findData(m.UserId)then repeat local W=storage.LoadData(m.UserId)wait(.5)if not W then end until W==true else end end end end)spawn(function()while wait(30)do for W,m in pairs(game.Players:GetPlayers())do storage.SaveData(m.UserId,false)end end end)

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)


