Advertisement
puilt9y

puilt9y project slayers auto spin gui

Jul 18th, 2022
10,640
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. -- Library & Managers:
  2. local Library = loadstring(game:HttpGet('https://raw.githubusercontent.com/RegularVynixu/UI-Libraries/main/Vynixius/Source.lua'))()
  3.  
  4. local Theme = {
  5. Accent = Color3.fromRGB(0, 255, 0),
  6. TopbarColor = Color3.fromRGB(20, 20, 20),
  7. SidebarColor = Color3.fromRGB(15, 15, 15),
  8. BackgroundColor = Color3.fromRGB(10, 10, 10),
  9. SectionColor = Color3.fromRGB(20, 20, 20),
  10. TextColor = Color3.fromRGB(255, 255, 255),
  11. }
  12.  
  13. local Window = Library:AddWindow({
  14. title = {'Project Slayers', 'Helper'},
  15. theme = Theme,
  16. key = Enum.KeyCode.RightAlt
  17. })
  18.  
  19. local settings = {
  20. clan = {
  21. selected_clan = '',
  22. auto_spin = false
  23. }
  24. }
  25.  
  26. -- Auto Spin:
  27. local Clans_Module_Script = require(game:GetService("ReplicatedStorage").Modules.Global["Random_Clan_Picker"])
  28.  
  29. local All_Clans = {}
  30. local Clans = {
  31. ["Common"] = {},
  32. ["UnCommon"] = {},
  33. ["Rare"] = {},
  34. ["Legendary"] = {},
  35. ["Mythic"] = {},
  36. ["Supreme"] = {}
  37. }
  38.  
  39. for i, _ in next, Clans do
  40. for j,k in next, Clans_Module_Script do
  41. if j == i then
  42. for _, v2 in next, k do
  43. table.insert(Clans[i], v2)
  44. end
  45. end
  46. end
  47. end
  48.  
  49. for _, v in next, Clans do
  50. for _, v2 in next, v do
  51. table.insert(All_Clans, v2)
  52. end
  53. end
  54.  
  55. -- Menu
  56. local ClanModTab = Window:AddTab('Clan Mods') do
  57. local section = ClanModTab:AddSection('Spinning') do
  58. section:AddDropdown("All Clans", All_Clans, "Common", function(x)
  59. settings.clan.selected_clan = x
  60. end)
  61.  
  62. section:AddToggle('Auto Spin', 'Test', function(state)
  63. settings.clan.auto_spin = state
  64. end)
  65. end
  66. end
  67.  
  68. local client = game:GetService("Players").LocalPlayer
  69.  
  70. task.spawn(function()
  71. while task.wait(0.3) do
  72. if settings.clan.auto_spin then
  73. if not string.find(client.PlayerGui.Customization.Spin.Holder.TextLabel.Text, settings.clan.selected_clan) then
  74. for _, variable in next, getconnections(client:FindFirstChild("PlayerGui"):FindFirstChild("Customization"):FindFirstChild("Spin"):FindFirstChild("Spin").MouseButton1Down) do
  75. variable.Function()
  76. end
  77. end
  78. end
  79. end
  80. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement