Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- UI Library (Interface Graphique)
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local ActivateRollback = Instance.new("TextButton")
- local RejoinButton = Instance.new("TextButton")
- local RollbackEnabled = false
- -- Propriétés de la GUI
- ScreenGui.Parent = game.CoreGui
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- Frame.Position = UDim2.new(0.35, 0, 0.3, 0)
- Frame.Size = UDim2.new(0, 300, 0, 200)
- Title.Parent = Frame
- Title.Text = "Rollback Script"
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.Size = UDim2.new(1, 0, 0.2, 0)
- Title.BackgroundTransparency = 1
- -- Bouton Activer Rollback
- ActivateRollback.Parent = Frame
- ActivateRollback.Text = "Activer Rollback (OFF)"
- ActivateRollback.Size = UDim2.new(0.8, 0, 0.2, 0)
- ActivateRollback.Position = UDim2.new(0.1, 0, 0.3, 0)
- ActivateRollback.MouseButton1Click:Connect(function()
- RollbackEnabled = not RollbackEnabled
- if RollbackEnabled then
- ActivateRollback.Text = "Activer Rollback (ON)"
- -- Ajoute ici le code pour sauvegarder l'état avant de spinner
- print("Rollback activé")
- else
- ActivateRollback.Text = "Activer Rollback (OFF)"
- print("Rollback désactivé")
- end
- end)
- -- Bouton Rejoindre
- RejoinButton.Parent = Frame
- RejoinButton.Text = "Rejoindre"
- RejoinButton.Size = UDim2.new(0.8, 0, 0.2, 0)
- RejoinButton.Position = UDim2.new(0.1, 0, 0.6, 0)
- RejoinButton.MouseButton1Click:Connect(function()
- game:GetService("TeleportService"):Teleport(game.PlaceId, game.Players.LocalPlayer)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement