1local ReplicatedStorage = game:GetService("ReplicatedStorage")2local Players = game:GetService("Players")34local MissileLaunchedEvent = ReplicatedStorage:WaitForChild("MissileLaunchedEvent")56local player = Players.LocalPlayer7local gui = Instance.new("ScreenGui")8gui.Name = "EasyLeaderboardGui"9gui.ResetOnSpawn = false10gui.Parent = player:WaitForChild("PlayerGui")1112local mainButton = Instance.new("TextButton")13mainButton.Name = "EasyButton"14mainButton.Size = UDim2.new(0, 200, 0, 50)15mainButton.Position = UDim2.new(0.5, -100, 0.5, -25)16mainButton.Text = "Easy Leaderboard"17mainButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)18mainButton.TextColor3 = Color3.new(1, 1, 1)19mainButton.Font = Enum.Font.SourceSansBold20mainButton.TextSize = 2421mainButton.Parent = gui2223local toggleButton = Instance.new("TextButton")24toggleButton.Name = "ToggleVisibility"25toggleButton.Size = UDim2.new(0, 30, 0, 30)26toggleButton.Position = UDim2.new(0, 10, 0, 10)27toggleButton.Text = "-"28toggleButton.BackgroundColor3 = Color3.fromRGB(30, 30, 30)29toggleButton.TextColor3 = Color3.new(1, 1, 1)30toggleButton.Font = Enum.Font.SourceSans31toggleButton.TextSize = 1832toggleButton.Parent = gui3334local speedBox = Instance.new("TextBox")35speedBox.Name = "SpeedBox"36speedBox.Size = UDim2.new(0, 100, 0, 30)37speedBox.Position = UDim2.new(0.5, -50, 0.5, 40)38speedBox.PlaceholderText = "Vitesse (ex: 0.05)"39speedBox.Text = "0.05"40speedBox.BackgroundColor3 = Color3.fromRGB(20, 20, 20)41speedBox.TextColor3 = Color3.new(1, 1, 1)42speedBox.Font = Enum.Font.SourceSans43speedBox.TextSize = 1844speedBox.ClearTextOnFocus = false45speedBox.Parent = gui4647local running = false4849mainButton.MouseButton1Click:Connect(function()50 running = not running51 if running then52 mainButton.Text = "Stop Leaderboard"53 task.spawn(function()54 while running do55 MissileLaunchedEvent:FireServer()56 local speed = tonumber(speedBox.Text)57 if speed and speed > 0 then58 task.wait(speed)59 else60 task.wait()61 end62 end63 end)64 else65 mainButton.Text = "Easy Leaderboard"66 end67end)6869toggleButton.MouseButton1Click:Connect(function()70 local visible = mainButton.Visible71 mainButton.Visible = not visible72 speedBox.Visible = not visible73 toggleButton.Text = mainButton.Visible and "-" or "+"74end)
Comments
Loading comments…