arfiakbar123

TheStreet

Oct 5th, 2018
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. -- By:ArfiAkbar
  2. -- Version: 1.1
  3. -- Instances:
  4. local Main = Instance.new("ScreenGui")
  5. local Frame = Instance.new("Frame")
  6. local TextLabel = Instance.new("TextLabel")
  7. local TextButton = Instance.new("TextButton")
  8. --Properties:
  9. Main.Name = "Main"
  10. Main.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  11.  
  12. Frame.Parent = Main
  13. Frame.BackgroundColor3 = Color3.new(1, 0, 1)
  14. Frame.Position = UDim2.new(0, 0, 0.718023241, 0)
  15. Frame.Size = UDim2.new(0, 226, 0, 200)
  16.  
  17. TextLabel.Parent = Frame
  18. TextLabel.BackgroundColor3 = Color3.new(0, 1, 0)
  19. TextLabel.Position = UDim2.new(0, 0, -0.194999993, 0)
  20. TextLabel.Size = UDim2.new(0, 226, 0, 39)
  21. TextLabel.Font = Enum.Font.SourceSans
  22. TextLabel.Text = "TheStreet"
  23. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  24. TextLabel.TextSize = 14
  25.  
  26. TextButton.Parent = Frame
  27. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  28. TextButton.Position = UDim2.new(0.143239245, 0, 0.0869185925, 0)
  29. TextButton.Size = UDim2.new(0, 162, 0, 34)
  30. TextButton.Font = Enum.Font.SourceSans
  31. TextButton.Text = "Speed [q]"
  32. TextButton.TextColor3 = Color3.new(0, 0, 0)
  33. TextButton.TextSize = 14
  34. TextButton.MouseButton1Down:connect(function()
  35. local plr = game:GetService("Players").LocalPlayer
  36. local char = plr.Character
  37. local mouse = game:GetService("Players").LocalPlayer:GetMouse()
  38. local hum = char:FindFirstChild("HumanoidRootPart")
  39. local speed = 3
  40. mouse.KeyDown:connect(function(key)
  41. if key == "q" then
  42. loop = true
  43. while loop do
  44. hum.CFrame = hum.CFrame + hum.CFrame.lookVector * speed
  45. wait()
  46. end
  47. end
  48. end)
  49.  
  50. mouse.KeyUp:connect(function(key)
  51. if key == "q" then
  52. loop = false
  53. end
  54. end)
  55. end)
Add Comment
Please, Sign In to add comment