Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Create GUI
- local ScreenGui = Instance.new("ScreenGui")
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- local MainFrame = Instance.new("Frame")
- MainFrame.Size = UDim2.new(0, 250, 0, 300) -- Smaller size
- MainFrame.Position = UDim2.new(0.5, -125, 0.5, -150)
- MainFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- MainFrame.Active = true
- MainFrame.Draggable = true -- Enables dragging
- MainFrame.Parent = ScreenGui
- -- Credit Label
- local CreditLabel = Instance.new("TextLabel")
- CreditLabel.Size = UDim2.new(1, 0, 0, 20)
- CreditLabel.Position = UDim2.new(0, 0, 0, 0)
- CreditLabel.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- CreditLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- CreditLabel.Text = "Made by @elnanocruz2"
- CreditLabel.Font = Enum.Font.SourceSansBold
- CreditLabel.TextSize = 14
- CreditLabel.Parent = MainFrame
- -- Create Scroll Frame (PC & Mobile Compatible)
- local ScrollFrame = Instance.new("ScrollingFrame")
- ScrollFrame.Size = UDim2.new(1, 0, 1, -60) -- Adjusted to fit credit label
- ScrollFrame.Position = UDim2.new(0, 0, 0, 40)
- ScrollFrame.CanvasSize = UDim2.new(0, 0, 2, 0) -- Bigger canvas for scrolling
- ScrollFrame.ScrollBarThickness = 5
- ScrollFrame.BackgroundTransparency = 1
- ScrollFrame.Parent = MainFrame
- local UIListLayout = Instance.new("UIListLayout")
- UIListLayout.Parent = ScrollFrame
- UIListLayout.Padding = UDim.new(0, 5)
- -- Create Drag Bar
- local DragBar = Instance.new("TextLabel")
- DragBar.Size = UDim2.new(1, 0, 0, 30)
- DragBar.Position = UDim2.new(0, 0, 0, 20) -- Adjusted for credit label
- DragBar.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- DragBar.TextColor3 = Color3.fromRGB(255, 255, 255)
- DragBar.Text = "Drag Me"
- DragBar.Parent = MainFrame
- -- Drag functionality
- local UIS = game:GetService("UserInputService")
- local dragging, dragInput, dragStart, startPos
- DragBar.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = MainFrame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- DragBar.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- UIS.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- local delta = input.Position - dragStart
- MainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- end)
- -- Hide/Show Button
- local HideButton = Instance.new("TextButton")
- HideButton.Size = UDim2.new(0, 100, 0, 30)
- HideButton.Position = UDim2.new(0.5, -50, 1, 10)
- HideButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
- HideButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- HideButton.Text = "Hide GUI"
- HideButton.Parent = ScreenGui
- local guiVisible = true
- HideButton.MouseButton1Click:Connect(function()
- guiVisible = not guiVisible
- MainFrame.Visible = guiVisible
- HideButton.Text = guiVisible and "Hide GUI" or "Show GUI"
- end)
- -- Function to Stop and Restart Spinning
- local function restartSpin(styleName)
- _G.IsSpinning = false
- wait(0.1)
- _G.WantedStyles = {styleName}
- _G.IsSpinning = true
- print("Switched to Style:", styleName)
- loadstring(game:HttpGet("https://raw.githubusercontent.com/AntIsAStar/Haikyuu-Legends/refs/heads/main/Auto-Spin"))()
- end
- -- Styles List (Updated "Bokuto" to "Butoku")
- local styles = {
- "Sanu", "Oigawa", "Butoku", "Uchishima",
- "Yabu", "Kuzee", "Azamena", "Kosumi", "Kagayomo",
- "Iwaezeni", "Yomomute", "Sagafura",
- "Haibo", "Tsuzichiwa", "Hinoto", "Tonoko", "Yamegushi",
- "Ojiri", "Saguwuru", "Kito", "Nichinoya"
- }
- -- Function to Create Buttons
- local function createButton(styleName)
- local Button = Instance.new("TextButton")
- Button.Size = UDim2.new(1, 0, 0, 30)
- Button.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
- Button.TextColor3 = Color3.fromRGB(255, 255, 255)
- Button.Text = styleName
- Button.Parent = ScrollFrame
- Button.MouseButton1Click:Connect(function()
- restartSpin(styleName)
- end)
- end
- -- Create Buttons for Each Style
- for _, style in ipairs(styles) do
- createButton(style)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement