Lasiv

Speed Hack Roblox Press Tab To Open (Any Speed what you want)

Mar 3rd, 2023 (edited)
2,029
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.66 KB | Gaming | 0 0
  1. -- Speed Hax
  2. -- Press Tab To Open
  3. local screenGui = Instance.new("ScreenGui")
  4. local speedFrame = Instance.new("Frame")
  5. local speedLabel = Instance.new("TextLabel")
  6. local speedTextBox = Instance.new("TextBox")
  7. local applyButton = Instance.new("TextButton")
  8.  
  9. screenGui.Name = "SpeedUI"
  10. screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  11.  
  12. speedFrame.Name = "SpeedFrame"
  13. speedFrame.Parent = screenGui
  14. speedFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  15. speedFrame.Position = UDim2.new(0.5, -150, 0.5, -50)
  16. speedFrame.Size = UDim2.new(0, 300, 0, 100)
  17.  
  18. speedLabel.Name = "SpeedLabel"
  19. speedLabel.Parent = speedFrame
  20. speedLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  21. speedLabel.Position = UDim2.new(0, 10, 0, 10)
  22. speedLabel.Size = UDim2.new(0, 200, 0, 30)
  23. speedLabel.Font = Enum.Font.SourceSans
  24. speedLabel.Text = "Lasiv's SpeedHack"
  25. speedLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  26. speedLabel.TextSize = 20
  27.  
  28. speedTextBox.Name = "SpeedTextBox"
  29. speedTextBox.Parent = speedFrame
  30. speedTextBox.BackgroundColor3 = Color3.fromRGB(200, 200, 200)
  31. speedTextBox.Position = UDim2.new(0, 10, 0, 50)
  32. speedTextBox.Size = UDim2.new(0, 200, 0, 20)
  33. speedTextBox.Font = Enum.Font.SourceSans
  34. speedTextBox.PlaceholderText = "Enter number of speed"
  35. speedTextBox.Text = ""
  36. speedTextBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  37. speedTextBox.TextSize = 14
  38. speedTextBox.ClearTextOnFocus = false
  39.  
  40. applyButton.Name = "ApplyButton"
  41. applyButton.Parent = speedFrame
  42. applyButton.BackgroundColor3 = Color3.fromRGB(200, 200, 200)
  43. applyButton.Position = UDim2.new(0, 220, 0, 50)
  44. applyButton.Size = UDim2.new(0, 70, 0, 20)
  45. applyButton.Font = Enum.Font.SourceSans
  46. applyButton.Text = "Apply"
  47. applyButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  48. applyButton.TextSize = 14
  49.  
  50.  
  51. local function changeSpeed(value)
  52.     local humanoid = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
  53.     if humanoid then
  54.         humanoid.WalkSpeed = value
  55.     end
  56. end
  57.  
  58. applyButton.MouseButton1Down:Connect(function()
  59.     local value = tonumber(speedTextBox.Text)
  60. if value then
  61. changeSpeed(value)
  62. end
  63. end)
  64.  
  65. speedTextBox.Changed:Connect(function(property)
  66. if property == "Text" then
  67. local value = tonumber(speedTextBox.Text)
  68. if value then
  69. changeSpeed(value)
  70. end
  71. end
  72. end)
  73.  
  74. local toggleKey = Enum.KeyCode.Tab
  75. local isUIOpen = false
  76.  
  77. game:GetService("UserInputService").InputBegan:Connect(function(input)
  78. if input.KeyCode == toggleKey then
  79. isUIOpen = not isUIOpen
  80. screenGui.Enabled = isUIOpen
  81. end
  82. end)
  83.  
  84. screenGui.Enabled = false
  85.  
  86. game.Players.PlayerRemoving:Connect(function(player)
  87. if player == game.Players.LocalPlayer then
  88. screenGui:Destroy()
  89. end
  90. end)
  91.  
Advertisement
Add Comment
Please, Sign In to add comment