Advertisement
loleriss

Flying based on hipheight by thatchrisie

May 24th, 2019
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.06 KB | None | 0 0
  1. -- Made by error404; limes bday in a while#1653
  2. -- Youtube channel: https://www.youtube.com/c/chrisplayyt
  3. -- Thank you for using HipHeight Flying
  4.  
  5. local player = game.Players.LocalPlayer
  6. local character = player.Character
  7. local mouse = player:GetMouse()
  8. local UIS = game:GetService("UserInputService")
  9. local bool = {"false"}
  10.  
  11. function credits()
  12. local ScreenGui = Instance.new("ScreenGui")
  13. local TextLabel = Instance.new("TextLabel")
  14. local TextLabel_2 = Instance.new("TextLabel")
  15. local TextLabel_3 = Instance.new("TextLabel")
  16. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  17. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  18. TextLabel.Parent = ScreenGui
  19. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  20. TextLabel.BackgroundTransparency = 1
  21. TextLabel.Position = UDim2.new(0.366145849, 0, 0.220082492, 0)
  22. TextLabel.Size = UDim2.new(0, 514, 0, 87)
  23. TextLabel.Font = Enum.Font.SourceSansLight
  24. TextLabel.Text = "HipHeight Flying made by error404; limes bday in a while"
  25. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  26. TextLabel.TextScaled = true
  27. TextLabel.TextSize = 14
  28. TextLabel.TextWrapped = true
  29. TextLabel_2.Parent = ScreenGui
  30. TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
  31. TextLabel_2.BackgroundTransparency = 1
  32. TextLabel_2.Position = UDim2.new(0.373958349, 0, 0.36038515, 0)
  33. TextLabel_2.Size = UDim2.new(0, 483, 0, 72)
  34. TextLabel_2.Font = Enum.Font.SourceSansLight
  35. TextLabel_2.Text = "To go up in hipheight please hold CTRL + Mouse Wheel Up"
  36. TextLabel_2.TextColor3 = Color3.new(0, 0, 0)
  37. TextLabel_2.TextScaled = true
  38. TextLabel_2.TextSize = 14
  39. TextLabel_2.TextWrapped = true
  40. TextLabel_3.Parent = ScreenGui
  41. TextLabel_3.BackgroundColor3 = Color3.new(1, 1, 1)
  42. TextLabel_3.BackgroundTransparency = 1
  43. TextLabel_3.Position = UDim2.new(0.373958349, 0, 0.485375285, 0)
  44. TextLabel_3.Size = UDim2.new(0, 483, 0, 72)
  45. TextLabel_3.Font = Enum.Font.SourceSansLight
  46. TextLabel_3.Text = "To go down in hipheight please hold CTRL + Mouse Wheel Down"
  47. TextLabel_3.TextColor3 = Color3.new(0, 0, 0)
  48. TextLabel_3.TextScaled = true
  49. TextLabel_3.TextSize = 14
  50. TextLabel_3.TextWrapped = true
  51. wait(8)
  52. ScreenGui:Destroy()
  53. end
  54.  
  55. UIS.InputBegan:Connect(function(key, gameproccesed)
  56. if key.KeyCode == Enum.KeyCode.LeftControl then
  57. table.remove(bool, 1)
  58. table.insert(bool, "true")
  59. end
  60. end)
  61.  
  62. UIS.InputEnded:Connect(function(key, gameproccesed)
  63. if key.KeyCode == Enum.KeyCode.LeftControl then
  64. table.remove(bool, 1)
  65. table.insert(bool, "false")
  66. end
  67. end)
  68.  
  69. mouse.WheelForward:Connect(function(player)
  70. if table.concat(bool) == "true" then
  71. character.Humanoid.HipHeight = character.Humanoid.HipHeight + 1
  72. character.Humanoid.WalkSpeed = character.Humanoid.WalkSpeed + 1
  73. end
  74. end)
  75.  
  76. mouse.WheelBackward:Connect(function(player)
  77. if table.concat(bool) == "true" then
  78. character.Humanoid.HipHeight = character.Humanoid.HipHeight - 1
  79. if character.Humanoid.HipHeight == 2 or character.Humanoid.HipHeight < 2 then
  80. else
  81. character.Humanoid.WalkSpeed = character.Humanoid.WalkSpeed - 1
  82. end
  83. end
  84. end)
  85.  
  86. credits()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement