Advertisement
Zertujji1

Untitled

Mar 10th, 2025
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.62 KB | None | 0 0
  1. -- UI Library (Interface Graphique)
  2. local ScreenGui = Instance.new("ScreenGui")
  3. local Frame = Instance.new("Frame")
  4. local Title = Instance.new("TextLabel")
  5. local ActivateRollback = Instance.new("TextButton")
  6. local RejoinButton = Instance.new("TextButton")
  7. local RollbackEnabled = false
  8.  
  9. -- Propriétés de la GUI
  10. ScreenGui.Parent = game.CoreGui
  11.  
  12. Frame.Parent = ScreenGui
  13. Frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  14. Frame.Position = UDim2.new(0.35, 0, 0.3, 0)
  15. Frame.Size = UDim2.new(0, 300, 0, 200)
  16.  
  17. Title.Parent = Frame
  18. Title.Text = "Rollback Script"
  19. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  20. Title.Size = UDim2.new(1, 0, 0.2, 0)
  21. Title.BackgroundTransparency = 1
  22.  
  23. -- Bouton Activer Rollback
  24. ActivateRollback.Parent = Frame
  25. ActivateRollback.Text = "Activer Rollback (OFF)"
  26. ActivateRollback.Size = UDim2.new(0.8, 0, 0.2, 0)
  27. ActivateRollback.Position = UDim2.new(0.1, 0, 0.3, 0)
  28.  
  29. ActivateRollback.MouseButton1Click:Connect(function()
  30.     RollbackEnabled = not RollbackEnabled
  31.     if RollbackEnabled then
  32.         ActivateRollback.Text = "Activer Rollback (ON)"
  33.         -- Ajoute ici le code pour sauvegarder l'état avant de spinner
  34.         print("Rollback activé")
  35.     else
  36.         ActivateRollback.Text = "Activer Rollback (OFF)"
  37.         print("Rollback désactivé")
  38.     end
  39. end)
  40.  
  41. -- Bouton Rejoindre
  42. RejoinButton.Parent = Frame
  43. RejoinButton.Text = "Rejoindre"
  44. RejoinButton.Size = UDim2.new(0.8, 0, 0.2, 0)
  45. RejoinButton.Position = UDim2.new(0.1, 0, 0.6, 0)
  46.  
  47. RejoinButton.MouseButton1Click:Connect(function()
  48.     game:GetService("TeleportService"):Teleport(game.PlaceId, game.Players.LocalPlayer)
  49. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement