2AreYouMental110

Prison Life GUI (WIP)

Jul 1st, 2022 (edited)
354
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. getgenv().autocollect = false
  2. getgenv().autocollect2 = false
  3.  
  4. local selectedoption
  5. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
  6. local Window = Library.CreateLib("Prison Life", "Sentinel")
  7.  
  8. local A = Window:NewTab("player")
  9. local A1 = A:NewSection("giver")
  10. local A2 = A:NewSection("single")
  11.  
  12. A1:NewDropdown("Item List", "item list", {"AK-47", "M4A1", "M9", "Remington 870"}, function(value1)
  13.     selectedoption = value1
  14.     print(value1)
  15. end)
  16.  
  17. A1:NewButton("Collect Item", "collect the item", function()
  18.     if selectedoption then
  19.         collect()
  20.     end
  21. end)
  22.  
  23. A1:NewToggle("Auto Collect Item", "collect the item version 2", function(bool)
  24.     getgenv().autocollect = bool
  25.     if selectedoption then
  26.         if bool then
  27.             autocollect()
  28.         end
  29.     end
  30. end)
  31.  
  32. A1:NewButton("Collect All (POLICE/RIOT)", "collect all the items", function()
  33.     local s = game:GetService("Workspace")["Prison_ITEMS"].giver["Remington 870"].ITEMPICKUP
  34.     local s2 = game:GetService("Workspace")["Prison_ITEMS"].giver["AK-47"].ITEMPICKUP
  35.     local s3 = game:GetService("Workspace")["Prison_ITEMS"].giver.M9.ITEMPICKUP
  36.     local s4 = game:GetService("Workspace")["Prison_ITEMS"].giver.M4A1.ITEMPICKUP
  37.     local s5 = game:GetService("Workspace")["Prison_ITEMS"].giver["Riot Shield"].ITEMPICKUP
  38.     local Event = game:GetService("Workspace").Remote.ItemHandler
  39.     Event:InvokeServer(s)
  40.     local s = game:GetService("Workspace")["Prison_ITEMS"].giver["Remington 870"].ITEMPICKUP
  41.     local s2 = game:GetService("Workspace")["Prison_ITEMS"].giver["AK-47"].ITEMPICKUP
  42.     local s3 = game:GetService("Workspace")["Prison_ITEMS"].giver.M9.ITEMPICKUP
  43.     local s4 = game:GetService("Workspace")["Prison_ITEMS"].giver.M4A1.ITEMPICKUP
  44.     local s5 = game:GetService("Workspace")["Prison_ITEMS"].giver["Riot Shield"].ITEMPICKUP
  45.     local Event = game:GetService("Workspace").Remote.ItemHandler
  46.     Event:InvokeServer(s2)
  47.     local s = game:GetService("Workspace")["Prison_ITEMS"].giver["Remington 870"].ITEMPICKUP
  48.     local s2 = game:GetService("Workspace")["Prison_ITEMS"].giver["AK-47"].ITEMPICKUP
  49.     local s3 = game:GetService("Workspace")["Prison_ITEMS"].giver.M9.ITEMPICKUP
  50.     local s4 = game:GetService("Workspace")["Prison_ITEMS"].giver.M4A1.ITEMPICKUP
  51.     local s5 = game:GetService("Workspace")["Prison_ITEMS"].giver["Riot Shield"].ITEMPICKUP
  52.     local Event = game:GetService("Workspace").Remote.ItemHandler
  53.     Event:InvokeServer(s3)
  54.     local s = game:GetService("Workspace")["Prison_ITEMS"].giver["Remington 870"].ITEMPICKUP
  55.     local s2 = game:GetService("Workspace")["Prison_ITEMS"].giver["AK-47"].ITEMPICKUP
  56.     local s3 = game:GetService("Workspace")["Prison_ITEMS"].giver.M9.ITEMPICKUP
  57.     local s4 = game:GetService("Workspace")["Prison_ITEMS"].giver.M4A1.ITEMPICKUP
  58.     local s5 = game:GetService("Workspace")["Prison_ITEMS"].giver["Riot Shield"].ITEMPICKUP
  59.     local Event = game:GetService("Workspace").Remote.ItemHandler
  60.     Event:InvokeServer(s4)
  61.     local s = game:GetService("Workspace")["Prison_ITEMS"].giver["Remington 870"].ITEMPICKUP
  62.     local s2 = game:GetService("Workspace")["Prison_ITEMS"].giver["AK-47"].ITEMPICKUP
  63.     local s3 = game:GetService("Workspace")["Prison_ITEMS"].giver.M9.ITEMPICKUP
  64.     local s4 = game:GetService("Workspace")["Prison_ITEMS"].giver.M4A1.ITEMPICKUP
  65.     local s5 = game:GetService("Workspace")["Prison_ITEMS"].giver["Riot Shield"].ITEMPICKUP
  66.     local Event = game:GetService("Workspace").Remote.ItemHandler
  67.     Event:InvokeServer(s5)
  68. end)
  69.  
  70. A1:NewButton("Collect All (CRIM/INMATES/POLICE)", "collect all the items", function()
  71.     local s = game:GetService("Workspace")["Prison_ITEMS"].giver["Remington 870"].ITEMPICKUP
  72.     local s2 = game:GetService("Workspace")["Prison_ITEMS"].giver["AK-47"].ITEMPICKUP
  73.     local s3 = game:GetService("Workspace")["Prison_ITEMS"].giver.M9.ITEMPICKUP
  74.     local Event = game:GetService("Workspace").Remote.ItemHandler
  75.     Event:InvokeServer(s)
  76.     local s = game:GetService("Workspace")["Prison_ITEMS"].giver["Remington 870"].ITEMPICKUP
  77.     local s2 = game:GetService("Workspace")["Prison_ITEMS"].giver["AK-47"].ITEMPICKUP
  78.     local s3 = game:GetService("Workspace")["Prison_ITEMS"].giver.M9.ITEMPICKUP
  79.     local Event = game:GetService("Workspace").Remote.ItemHandler
  80.     Event:InvokeServer(s2)
  81.     local s = game:GetService("Workspace")["Prison_ITEMS"].giver["Remington 870"].ITEMPICKUP
  82.     local s2 = game:GetService("Workspace")["Prison_ITEMS"].giver["AK-47"].ITEMPICKUP
  83.     local s3 = game:GetService("Workspace")["Prison_ITEMS"].giver.M9.ITEMPICKUP
  84.     local Event = game:GetService("Workspace").Remote.ItemHandler
  85.     Event:InvokeServer(s3)
  86. end)
  87.  
  88. A2:NewDropdown("Item List", "item list", {"Crude Knife", "Hammer", "M9", "Key card"}, function(value1)
  89.     selectedoption = value1
  90.     print(value1)
  91. end)
  92.  
  93. A2:NewButton("Collect Item", "collect the item", function()
  94.     if selectedoption then
  95.         collect2()
  96.     end
  97. end)
  98.  
  99. A2:NewButton("Collect All (CRIM/INMATES)", "collect all the items", function()
  100.     local s = game:GetService("Workspace")["Prison_ITEMS"].single["Crude Knife"].ITEMPICKUP
  101.     local s2 = game:GetService("Workspace")["Prison_ITEMS"].single.Hammer.ITEMPICKUP
  102.     local s3 = game:GetService("Workspace")["Prison_ITEMS"].single.M9.ITEMPICKUP
  103.     local s4 = game:GetService("Workspace")["Prison_ITEMS"].single["Key card"].ITEMPICKUP
  104.     local Event = game:GetService("Workspace").Remote.ItemHandler
  105.     Event:InvokeServer(s)
  106.     local s = game:GetService("Workspace")["Prison_ITEMS"].single["Crude Knife"].ITEMPICKUP
  107.     local s2 = game:GetService("Workspace")["Prison_ITEMS"].single.Hammer.ITEMPICKUP
  108.     local s3 = game:GetService("Workspace")["Prison_ITEMS"].single.M9.ITEMPICKUP
  109.     local s4 = game:GetService("Workspace")["Prison_ITEMS"].single["Key card"].ITEMPICKUP
  110.     local Event = game:GetService("Workspace").Remote.ItemHandler
  111.     Event:InvokeServer(s2)
  112.     if game:GetService("Workspace")["Prison_ITEMS"].single.M9.ITEMPICKUP then
  113.     local s = game:GetService("Workspace")["Prison_ITEMS"].single["Crude Knife"].ITEMPICKUP
  114.     local s2 = game:GetService("Workspace")["Prison_ITEMS"].single.Hammer.ITEMPICKUP
  115.     local s3 = game:GetService("Workspace")["Prison_ITEMS"].single.M9.ITEMPICKUP
  116.     local s4 = game:GetService("Workspace")["Prison_ITEMS"].single["Key card"].ITEMPICKUP
  117.     local Event = game:GetService("Workspace").Remote.ItemHandler
  118.     Event:InvokeServer(s3)
  119.     else print("m9 not found")
  120.     end
  121.     if game:GetService("Workspace")["Prison_ITEMS"].single["Key card"].ITEMPICKUP then
  122.     local s = game:GetService("Workspace")["Prison_ITEMS"].single["Crude Knife"].ITEMPICKUP
  123.     local s2 = game:GetService("Workspace")["Prison_ITEMS"].single.Hammer.ITEMPICKUP
  124.     local s3 = game:GetService("Workspace")["Prison_ITEMS"].single.M9.ITEMPICKUP
  125.     local s4 = game:GetService("Workspace")["Prison_ITEMS"].single["Key card"].ITEMPICKUP
  126.     local Event = game:GetService("Workspace").Remote.ItemHandler
  127.     Event:InvokeServer(s4)
  128.     else print("key card not found")
  129.     end
  130. end)
  131. function autocollect()
  132.     spawn(function()
  133.         while getgenv().autocollect do
  134.             local s = game:GetService("Workspace")["Prison_ITEMS"].giver[selectedoption].ITEMPICKUP
  135.             local Event = game:GetService("Workspace").Remote.ItemHandler
  136.             Event:InvokeServer(s)
  137.             wait()
  138.         end
  139.     end)
  140. end
  141.  
  142. function autocollect2()
  143.     spawn(function()
  144.         while getgenv().autocollect2 do
  145.             local s = game:GetService("Workspace")["Prison_ITEMS"].single[selectedoption].ITEMPICKUP
  146.             local Event = game:GetService("Workspace").Remote.ItemHandler
  147.             Event:InvokeServer(s)
  148.             wait()
  149.         end
  150.     end)
  151. end
  152.  
  153. function collect()
  154.     local cval = game:GetService("Workspace")["Prison_ITEMS"].giver[selectedoption].ITEMPICKUP
  155.     local e = game:GetService("Workspace").Remote.ItemHandler
  156.     e:InvokeServer(cval)
  157.     wait()
  158. end
  159.  
  160. function collect2()
  161.     local cval = game:GetService("Workspace")["Prison_ITEMS"].single[selectedoption].ITEMPICKUP
  162.     local e = game:GetService("Workspace").Remote.ItemHandler
  163.     e:InvokeServer(cval)
  164.     wait()
  165. end
RAW Paste Data Copied