Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2025
1,108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. -- Local Script for Roblox Game "Fight In a School"
  2. -- This script creates a GUI to toggle Unlimited Spins for the Wheel Spin.
  3.  
  4. local player = game.Players.LocalPlayer
  5. local playerGui = player:WaitForChild("PlayerGui")
  6.  
  7. -- GUI Setup
  8. local screenGui = Instance.new("ScreenGui")
  9. screenGui.Parent = playerGui
  10.  
  11. -- Frame for the GUI
  12. local frame = Instance.new("Frame")
  13. frame.Size = UDim2.new(0, 300, 0, 200)
  14. frame.Position = UDim2.new(0.5, -150, 0.5, -100)
  15. frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  16. frame.Parent = screenGui
  17.  
  18. -- Button to toggle Unlimited Spins
  19. local toggleButton = Instance.new("TextButton")
  20. toggleButton.Size = UDim2.new(0, 200, 0, 50)
  21. toggleButton.Position = UDim2.new(0.5, -100, 0.5, -25)
  22. toggleButton.Text = "Toggle Unlimited Spins"
  23. toggleButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  24. toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  25. toggleButton.Parent = frame
  26.  
  27. -- Variable to track if Unlimited Spins is active
  28. local unlimitedSpinsActive = true
  29.  
  30. -- Placeholder for the actual Wheel Spin function (to be replaced with game code)
  31. local function performWheelSpin()
  32. print("Wheel spin performed!")
  33. -- Here you would call the actual function in the game that performs the spin.
  34. -- Example: game.ReplicatedStorage.WheelSpin:Fire()
  35. end
  36.  
  37. -- Function to toggle Unlimited Spins
  38. local function toggleUnlimitedSpins()
  39. unlimitedSpinsActive = not unlimitedSpinsActive
  40. if unlimitedSpinsActive then
  41. toggleButton.Text = "Unlimited Spins: ON"
  42. -- Start the auto-spin loop
  43. while unlimitedSpinsActive do
  44. wait(5) -- Spin every 5 seconds (or adjust the delay based on the game's mechanics)
  45. performWheelSpin()
  46. end
  47. else
  48. toggleButton.Text = "Unlimited Spins: OFF"
  49. end
  50. end
  51.  
  52. -- Button click event handler
  53. toggleButton.MouseButton1Click:Connect(function()
  54. toggleUnlimitedSpins()
  55. end)
  56.  
  57. -- Example loop that continuously performs spins if Unlimited Spins is active
  58. -- This is a placeholder that mimics the behavior of "unlimited spins"
  59. game:GetService("RunService").Heartbeat:Connect(function()
  60. if unlimitedSpinsActive then
  61. -- This would be replaced with the actual logic that triggers a wheel spin in the game.
  62. -- In a real scenario, you might need to trigger a server-side event.
  63. performWheelSpin()
  64. end
  65. end)
  66.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement