Advertisement
zumhad

roblox walkspeed+clicktp

Feb 24th, 2025
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.25 KB | Source Code | 0 0
  1. local UserInputService = game:GetService("UserInputService")
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Frame2 = Instance.new("Frame")
  5. local TextButton3 = Instance.new("TextButton")
  6. local Frame = Instance.new("Frame")
  7. local TextButton2 = Instance.new("TextButton")
  8. local TextButton = Instance.new("TextButton")
  9. local CloseButton = Instance.new("TextButton")  -- Кнопка закрытия
  10.  
  11. -- Добавление элементов для изменения WalkSpeed
  12. local WalkSpeedFrame = Instance.new("Frame")
  13. local Num = Instance.new("TextBox")
  14. local Plus = Instance.new("TextButton")
  15. local Minus = Instance.new("TextButton")
  16.  
  17. --Properties:
  18.  
  19. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  20. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  21.  
  22. Frame2.Name = "Frame2"
  23. Frame2.Parent = ScreenGui
  24. Frame2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  25. Frame2.Position = UDim2.new(0.422948062, 0, 0.37327823, 0)
  26. Frame2.Size = UDim2.new(0, 363, 0, 199)
  27. Frame2.Visible = false
  28. Frame2.Style = Enum.FrameStyle.RobloxRound
  29.  
  30. TextButton3.Name = "TextButton3"
  31. TextButton3.Parent = Frame2
  32. TextButton3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  33. TextButton3.Size = UDim2.new(0, 200, 0, 50)
  34. TextButton3.Style = Enum.ButtonStyle.RobloxRoundButton
  35. TextButton3.Font = Enum.Font.SourceSans
  36. TextButton3.Text = "Allow teleport in sky / void"
  37. TextButton3.TextColor3 = Color3.fromRGB(17, 34, 136)
  38. TextButton3.TextScaled = true
  39. TextButton3.TextSize = 14.000
  40. TextButton3.TextWrapped = true
  41.  
  42. Frame.Parent = ScreenGui
  43. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  44. Frame.Position = UDim2.new(0.832495809, 0, 0.508264482, 0)
  45. Frame.Size = UDim2.new(0, 200, 0, 67)
  46. Frame.Style = Enum.FrameStyle.RobloxRound
  47.  
  48. TextButton2.Name = "TextButton2"
  49. TextButton2.Parent = Frame
  50. TextButton2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  51. TextButton2.Position = UDim2.new(0.191600069, 0, 1.14903104, 0)
  52. TextButton2.Size = UDim2.new(0, 113, 0, 35)
  53. TextButton2.Style = Enum.ButtonStyle.RobloxRoundButton
  54. TextButton2.Font = Enum.Font.SourceSans
  55. TextButton2.Text = "Settings"
  56. TextButton2.TextColor3 = Color3.fromRGB(0, 0, 0)
  57. TextButton2.TextSize = 14.000
  58.  
  59. TextButton.Parent = Frame
  60. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  61. TextButton.Position = UDim2.new(-0.0449999981, 0, 0.025828898, 0)
  62. TextButton.Size = UDim2.new(0, 200, 0, 50)
  63. TextButton.Style = Enum.ButtonStyle.RobloxRoundButton
  64. TextButton.Font = Enum.Font.SourceSans
  65. TextButton.Text = "False"
  66. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  67. TextButton.TextSize = 14.000
  68.  
  69. -- Добавляем кнопку "закрытия"
  70. CloseButton.Name = "CloseButton"
  71. CloseButton.Parent = Frame2
  72. CloseButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)  -- Красный цвет
  73. CloseButton.Size = UDim2.new(0, 30, 0, 30)
  74. CloseButton.Position = UDim2.new(1, -40, 0, 10)  -- В правом верхнем углу
  75. CloseButton.Text = "X"
  76. CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  77. CloseButton.TextSize = 20
  78. CloseButton.Font = Enum.Font.SourceSansBold
  79.  
  80. -- Добавление элементов для управления WalkSpeed
  81. WalkSpeedFrame.Size = UDim2.new(0, 200, 0, 100)
  82. WalkSpeedFrame.Position = UDim2.new(0.5, -100, 0.7, -50)
  83. WalkSpeedFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  84. WalkSpeedFrame.Parent = Frame2
  85. WalkSpeedFrame.Active = true
  86. WalkSpeedFrame.Draggable = true
  87.  
  88. Num.Size = UDim2.new(0.6, 0, 0.6, 0)
  89. Num.Position = UDim2.new(0.2, 0, 0.3, 0)
  90. Num.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  91. Num.TextColor3 = Color3.new(1, 1, 1)
  92. Num.TextScaled = true
  93. Num.Font = Enum.Font.SourceSans
  94. Num.ClearTextOnFocus = true
  95. Num.Parent = WalkSpeedFrame
  96.  
  97. Plus.Size = UDim2.new(0.2, 0, 0.6, 0)
  98. Plus.Position = UDim2.new(0.8, 0, 0.3, 0)
  99. Plus.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  100. Plus.TextColor3 = Color3.new(1, 1, 1)
  101. Plus.TextScaled = true
  102. Plus.Font = Enum.Font.SourceSans
  103. Plus.Text = "+"
  104. Plus.Parent = WalkSpeedFrame
  105.  
  106. Minus.Size = UDim2.new(0.2, 0, 0.6, 0)
  107. Minus.Position = UDim2.new(0, 0, 0.3, 0)
  108. Minus.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  109. Minus.TextColor3 = Color3.new(1, 1, 1)
  110. Minus.TextScaled = true
  111. Minus.Font = Enum.Font.SourceSans
  112. Minus.Text = "-"
  113. Minus.Parent = WalkSpeedFrame
  114.  
  115. -- Scripts:
  116.  
  117. local function RVRTSG_fake_script() -- TextButton.LocalScript
  118.     local script = Instance.new('LocalScript', TextButton)
  119.  
  120.     local frame = script.Parent.Parent -- Take out {}s, and put name of frame
  121.     frame.Draggable = true
  122.     frame.Active = true
  123.     frame.Selectable = true
  124.  
  125.     local player = game.Players.LocalPlayer
  126.     local mouse = player:GetMouse()
  127.     local Toggle = false
  128.     local Toggle2 = false
  129.     local Toggle3 = false
  130.     local isCtrlPressed = false
  131.     local AV = nil
  132.     local number
  133.     local humanoid
  134.     local EditingNum = false
  135.     print("Script Launched")
  136.  
  137.     -- Обработчик для нажатия кнопки TextButton
  138.     script.Parent.Activated:Connect(function()
  139.         if Toggle == true then
  140.             Toggle = false
  141.             script.Parent.Text = ("False")
  142.             print("Now False")
  143.         elseif Toggle == false then
  144.             Toggle = true
  145.             script.Parent.Text = ("True")
  146.             print("Now True")
  147.         end
  148.     end)
  149.  
  150.     -- Обработчик для нажатия клавиш и мыши
  151.     UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
  152.         if gameProcessedEvent then return end
  153.        
  154.         -- Проверка на нажатие Ctrl
  155.         if input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode == Enum.KeyCode.LeftControl then
  156.             isCtrlPressed = true
  157.         end
  158.     end)
  159.  
  160.     -- Обработчик для отпускания клавиш
  161.     UserInputService.InputEnded:Connect(function(input)
  162.         if input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode == Enum.KeyCode.LeftControl then
  163.             isCtrlPressed = false
  164.         end
  165.     end)
  166.  
  167.     -- Логика для левый клик мыши + левый Ctrl
  168.     mouse.Button1Down:Connect(function()
  169.         if Toggle == true and isCtrlPressed then
  170.             if mouse.Target ~= AV then
  171.                 player.Character.HumanoidRootPart.CFrame = mouse.Hit
  172.                 print("Teleported!")
  173.             end
  174.         end
  175.     end)
  176.  
  177.     -- Обработчик для кнопки настроек
  178.     spawn(function()
  179.         script.Parent.Parent:FindFirstChild("TextButton2").Activated:Connect(function()
  180.             script.Parent.Parent.Parent:FindFirstChild("Frame2").Visible = Toggle2
  181.             if Toggle2 == true then
  182.                 Toggle2 = false
  183.                 print("Now False")
  184.             elseif Toggle2 == false then
  185.                 Toggle2 = true
  186.                 print("Now True")
  187.             end
  188.         end)
  189.     end)
  190.  
  191.     -- Кнопка для "Allow teleport in sky / void"
  192.     script.Parent.Parent.Parent:FindFirstChild("Frame2").TextButton3.Text = "Allow teleport in sky / void is false"
  193.     script.Parent.Parent.Parent:FindFirstChild("Frame2").TextButton3.Activated:Connect(function()
  194.         if Toggle3 == true then
  195.             Toggle3 = false
  196.             AV = "hi"
  197.             script.Parent.Parent.Parent:FindFirstChild("Frame2").TextButton3.Text = "Allow teleport in sky / void is true"
  198.             print("Now True")
  199.         elseif Toggle3 == false then
  200.             Toggle3 = true
  201.             AV = nil
  202.             script.Parent.Parent.Parent:FindFirstChild("Frame2").TextButton3.Text = "Allow teleport in sky / void is false"
  203.             print("Now False")
  204.         end
  205.     end)
  206.  
  207.     -- Обработчик для кнопки "закрытия"
  208.     CloseButton.Activated:Connect(function()
  209.         -- Удаляем интерфейс и скрипт
  210.         print("Unloading script...")
  211.         ScreenGui:Destroy()
  212.     end)
  213.  
  214.     -- Управление WalkSpeed
  215.     local function UpdateNum()
  216.         Num.Text = tostring(number)
  217.         if humanoid then
  218.             humanoid.WalkSpeed = number
  219.         end
  220.     end
  221.  
  222.     local function onCharacterAdded(character)
  223.         humanoid = character:WaitForChild("Humanoid")
  224.         number = humanoid.WalkSpeed
  225.         number = 34
  226.         humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
  227.             if humanoid.WalkSpeed ~= number then
  228.                 humanoid.WalkSpeed = number
  229.             end
  230.         end)
  231.         UpdateNum()
  232.     end
  233.  
  234.     player.CharacterAdded:Connect(onCharacterAdded)
  235.  
  236.     if player.Character then
  237.         onCharacterAdded(player.Character)
  238.     end
  239.  
  240.     Plus.MouseButton1Click:Connect(function()
  241.         number = number + 3
  242.         UpdateNum()
  243.     end)
  244.  
  245.     Minus.MouseButton1Click:Connect(function()
  246.         if number > 0 then
  247.             number = number - 1
  248.             UpdateNum()
  249.         end
  250.     end)
  251.  
  252.     Num.Focused:Connect(function()
  253.         EditingNum = true
  254.     end)
  255.  
  256.     Num.FocusLost:Connect(function(enterPressed)
  257.         EditingNum = false
  258.         if enterPressed then
  259.             local Value = tonumber(Num.Text)
  260.             if Value and Value > 0 then
  261.                 number = Value
  262.                 UpdateNum()
  263.             else
  264.                 UpdateNum()
  265.             end
  266.         end
  267.     end)
  268. end
  269. coroutine.wrap(RVRTSG_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement