-- Execute this in your Roblox Executor
local ScreenGui = Instance.new("ScreenGui")
local MainButton = Instance.new("TextButton")
local UICorner = Instance.new("UICorner")
-- Setup GUI Parent
ScreenGui.Name = "SpeedToggleGui"
ScreenGui.Parent = game:GetService("CoreGui") -- Put in CoreGui so it doesn't delete on death
ScreenGui.ResetOnSpawn = false
-- Setup Button Appearance
MainButton.Name = "MainButton"
MainButton.Parent = ScreenGui
MainButton.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
MainButton.Position = UDim2.new(0.05, 0, 0.4, 0) -- Left side of screen
MainButton.Size = UDim2.new(0, 100, 0, 50)
MainButton.Font = Enum.Font.GothamBold
MainButton.Text = "Speed: OFF"
MainButton.TextColor3 = Color3.fromRGB(255, 255, 255)
MainButton.TextSize = 14.0
MainButton.Draggable = true -- Allows you to move it around
MainButton.Active = true
UICorner.Parent = MainButton
-- Logic Settings
local fastSpeed = 100
local normalSpeed = 16
local toggled = false
MainButton.MouseButton1Click:Connect(function()
local char = game.Players.LocalPlayer.Character
if char and char:FindFirstChild("Humanoid") then
toggled = not toggled
if toggled then
char.Humanoid.WalkSpeed = fastSpeed
MainButton.Text = "Speed: ON"
MainButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
else
char.Humanoid.WalkSpeed = normalSpeed
MainButton.Text = "Speed: OFF"
MainButton.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
end
end
end)
-- Keep speed active even after respawning
game:GetService("RunService").RenderStepped:Connect(function()
if toggled then
local char = game.Players.LocalPlayer.Character
if char and char:FindFirstChild("Humanoid") then
char.Humanoid.WalkSpeed = fastSpeed
end
end
end)Made by ai Made by ai Made by ai Made by ai Made by ai Made by ai Made by ai Made by ai
No comments yet. Be the first to comment!
1-- Execute this in your Roblox Executor
2local ScreenGui = Instance.new("ScreenGui")
3local MainButton = Instance.new("TextButton")
4local UICorner = Instance.new("UICorner")
5
6-- Setup GUI Parent
7ScreenGui.Name = "SpeedToggleGui"
8ScreenGui.Parent = game:GetService("CoreGui") -- Put in CoreGui so it doesn't delete on death
9ScreenGui.ResetOnSpawn = false
10
11-- Setup Button Appearance
12MainButton.Name = "MainButton"
13MainButton.Parent = ScreenGui
14MainButton.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
15MainButton.Position = UDim2.new(0.05, 0, 0.4, 0) -- Left side of screen
16MainButton.Size = UDim2.new(0, 100, 0, 50)
17MainButton.Font = Enum.Font.GothamBold
18MainButton.Text = "Speed: OFF"
19MainButton.TextColor3 = Color3.fromRGB(255, 255, 255)
20MainButton.TextSize = 14.0
21MainButton.Draggable = true -- Allows you to move it around
22MainButton.Active = true
23
24UICorner.Parent = MainButton
25
26-- Logic Settings
27local fastSpeed = 100
28local normalSpeed = 16
29local toggled = false
30
31MainButton.MouseButton1Click:Connect(function()
32 local char = game.Players.LocalPlayer.Character
33 if char and char:FindFirstChild("Humanoid") then
34 toggled = not toggled
35
36 if toggled then
37 char.Humanoid.WalkSpeed = fastSpeed
38 MainButton.Text = "Speed: ON"
39 MainButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
40 else
41 char.Humanoid.WalkSpeed = normalSpeed
42 MainButton.Text = "Speed: OFF"
43 MainButton.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
44 end
45 end
46end)
47
48-- Keep speed active even after respawning
49game:GetService("RunService").RenderStepped:Connect(function()
50 if toggled then
51 local char = game.Players.LocalPlayer.Character
52 if char and char:FindFirstChild("Humanoid") then
53 char.Humanoid.WalkSpeed = fastSpeed
54 end
55 end
56end)