Advertisement
KenshiOfficial

Get any style u want haikyuu legends

Feb 3rd, 2025 (edited)
4,187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.48 KB | None | 0 0
  1. -- Create GUI
  2. local ScreenGui = Instance.new("ScreenGui")
  3. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  4.  
  5. local MainFrame = Instance.new("Frame")
  6. MainFrame.Size = UDim2.new(0, 250, 0, 300) -- Smaller size
  7. MainFrame.Position = UDim2.new(0.5, -125, 0.5, -150)
  8. MainFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  9. MainFrame.Active = true
  10. MainFrame.Draggable = true -- Enables dragging
  11. MainFrame.Parent = ScreenGui
  12.  
  13. -- Credit Label
  14. local CreditLabel = Instance.new("TextLabel")
  15. CreditLabel.Size = UDim2.new(1, 0, 0, 20)
  16. CreditLabel.Position = UDim2.new(0, 0, 0, 0)
  17. CreditLabel.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  18. CreditLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  19. CreditLabel.Text = "Made by @elnanocruz2"
  20. CreditLabel.Font = Enum.Font.SourceSansBold
  21. CreditLabel.TextSize = 14
  22. CreditLabel.Parent = MainFrame
  23.  
  24. -- Create Scroll Frame (PC & Mobile Compatible)
  25. local ScrollFrame = Instance.new("ScrollingFrame")
  26. ScrollFrame.Size = UDim2.new(1, 0, 1, -60) -- Adjusted to fit credit label
  27. ScrollFrame.Position = UDim2.new(0, 0, 0, 40)
  28. ScrollFrame.CanvasSize = UDim2.new(0, 0, 2, 0) -- Bigger canvas for scrolling
  29. ScrollFrame.ScrollBarThickness = 5
  30. ScrollFrame.BackgroundTransparency = 1
  31. ScrollFrame.Parent = MainFrame
  32.  
  33. local UIListLayout = Instance.new("UIListLayout")
  34. UIListLayout.Parent = ScrollFrame
  35. UIListLayout.Padding = UDim.new(0, 5)
  36.  
  37. -- Create Drag Bar
  38. local DragBar = Instance.new("TextLabel")
  39. DragBar.Size = UDim2.new(1, 0, 0, 30)
  40. DragBar.Position = UDim2.new(0, 0, 0, 20) -- Adjusted for credit label
  41. DragBar.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  42. DragBar.TextColor3 = Color3.fromRGB(255, 255, 255)
  43. DragBar.Text = "Drag Me"
  44. DragBar.Parent = MainFrame
  45.  
  46. -- Drag functionality
  47. local UIS = game:GetService("UserInputService")
  48. local dragging, dragInput, dragStart, startPos
  49.  
  50. DragBar.InputBegan:Connect(function(input)
  51. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  52. dragging = true
  53. dragStart = input.Position
  54. startPos = MainFrame.Position
  55.  
  56. input.Changed:Connect(function()
  57. if input.UserInputState == Enum.UserInputState.End then
  58. dragging = false
  59. end
  60. end)
  61. end
  62. end)
  63.  
  64. DragBar.InputChanged:Connect(function(input)
  65. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  66. dragInput = input
  67. end
  68. end)
  69.  
  70. UIS.InputChanged:Connect(function(input)
  71. if input == dragInput and dragging then
  72. local delta = input.Position - dragStart
  73. MainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  74. end
  75. end)
  76.  
  77. -- Hide/Show Button
  78. local HideButton = Instance.new("TextButton")
  79. HideButton.Size = UDim2.new(0, 100, 0, 30)
  80. HideButton.Position = UDim2.new(0.5, -50, 1, 10)
  81. HideButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
  82. HideButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  83. HideButton.Text = "Hide GUI"
  84. HideButton.Parent = ScreenGui
  85.  
  86. local guiVisible = true
  87. HideButton.MouseButton1Click:Connect(function()
  88. guiVisible = not guiVisible
  89. MainFrame.Visible = guiVisible
  90. HideButton.Text = guiVisible and "Hide GUI" or "Show GUI"
  91. end)
  92.  
  93. -- Function to Stop and Restart Spinning
  94. local function restartSpin(styleName)
  95. _G.IsSpinning = false
  96. wait(0.1)
  97. _G.WantedStyles = {styleName}
  98. _G.IsSpinning = true
  99.  
  100. print("Switched to Style:", styleName)
  101. loadstring(game:HttpGet("https://raw.githubusercontent.com/AntIsAStar/Haikyuu-Legends/refs/heads/main/Auto-Spin"))()
  102. end
  103.  
  104. -- Styles List (Updated "Bokuto" to "Butoku")
  105. local styles = {
  106. "Sanu", "Oigawa", "Butoku", "Uchishima",
  107. "Yabu", "Kuzee", "Azamena", "Kosumi", "Kagayomo",
  108. "Iwaezeni", "Yomomute", "Sagafura",
  109. "Haibo", "Tsuzichiwa", "Hinoto", "Tonoko", "Yamegushi",
  110. "Ojiri", "Saguwuru", "Kito", "Nichinoya"
  111. }
  112.  
  113. -- Function to Create Buttons
  114. local function createButton(styleName)
  115. local Button = Instance.new("TextButton")
  116. Button.Size = UDim2.new(1, 0, 0, 30)
  117. Button.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  118. Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  119. Button.Text = styleName
  120. Button.Parent = ScrollFrame
  121.  
  122. Button.MouseButton1Click:Connect(function()
  123. restartSpin(styleName)
  124. end)
  125. end
  126.  
  127. -- Create Buttons for Each Style
  128. for _, style in ipairs(styles) do
  129. createButton(style)
  130. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement