Advertisement
NightGolden

Untitled

Mar 12th, 2023
426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.14 KB | None | 0 0
  1.  
  2. local Speed = 60
  3.  
  4. -- Gui to Lua
  5. -- Version: 3.2
  6. local HumanoidRP = game.Players.LocalPlayer.Character.HumanoidRootPart
  7. -- Instances:
  8.  
  9. local ScreenGui = Instance.new("ScreenGui")
  10. local W = Instance.new("TextButton")
  11. local S = Instance.new("TextButton")
  12. local A = Instance.new("TextButton")
  13. local D = Instance.new("TextButton")
  14. local Fly = Instance.new("TextButton")
  15. local unfly = Instance.new("TextButton")
  16. local StopFly = Instance.new("TextButton")
  17.  
  18. --Properties:
  19.  
  20. ScreenGui.Parent = game.CoreGui
  21. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  22.  
  23. unfly.Name = "unfly"
  24. unfly.Parent = ScreenGui
  25. unfly.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  26. unfly.Position = UDim2.new(0.694387913, 0, 0.181818187, 0)
  27. unfly.Size = UDim2.new(0, 72, 0, 50)
  28. unfly.Font = Enum.Font.SourceSans
  29. unfly.Text = "unfly"
  30. unfly.TextColor3 = Color3.fromRGB(170, 0, 255)
  31. unfly.TextScaled = true
  32. unfly.TextSize = 14.000
  33. unfly.TextWrapped =
  34. unfly.MouseButton1Down:Connect(function()
  35. HumanoidRP:FindFirstChildOfClass("BodyVelocity"):Destroy()
  36. HumanoidRP:FindFirstChildOfClass("BodyGyro"):Destroy()
  37. end)
  38.  
  39. StopFly.Name = "Stop Fly"
  40. StopFly.Parent = ScreenGui
  41. StopFly.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  42. StopFly.Position = UDim2.new(0.695689976, 0, 0.0213903747, 0)
  43. StopFly.Size = UDim2.new(0, 71, 0, 50)
  44. StopFly.Font = Enum.Font.SourceSans
  45. StopFly.Text = "Stop fly"
  46. StopFly.TextColor3 = Color3.fromRGB(170, 0, 255)
  47. StopFly.TextScaled = true
  48. StopFly.TextSize = 14.000
  49. StopFly.TextWrapped = true
  50. StopFly.MouseButton1Down:Connect(function()
  51. HumanoidRP.Anchored = true
  52. end)
  53.  
  54. Fly.Name = "Fly"
  55. Fly.Parent = ScreenGui
  56. Fly.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  57. Fly.Position = UDim2.new(0.588797748, 0, 0.0213903747, 0)
  58. Fly.Size = UDim2.new(0, 66, 0, 50)
  59. Fly.Font = Enum.Font.SourceSans
  60. Fly.Text = "Fly"
  61. Fly.TextColor3 = Color3.fromRGB(170, 0, 127)
  62. Fly.TextScaled = true
  63. Fly.TextSize = 14.000
  64. Fly.TextWrapped = true
  65. Fly.MouseButton1Down:Connect(function()
  66. local BV = Instance.new("BodyVelocity",HumanoidRP)
  67. local BG = Instance.new("BodyGyro",HumanoidRP)
  68. BG.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  69. BG.D = 5000
  70. BG.P = 50000
  71. BG.CFrame = game.Workspace.CurrentCamera.CFrame
  72. BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  73. end)
  74.  
  75. W.Name = "W"
  76. W.Parent = ScreenGui
  77. W.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  78. W.Position = UDim2.new(0.161668837, 0, 0.601604283, 0)
  79. W.Size = UDim2.new(0, 58, 0, 50)
  80. W.Font = Enum.Font.SourceSans
  81. W.Text = "↑"
  82. W.TextColor3 = Color3.fromRGB(226, 226, 226)
  83. W.TextScaled = true
  84. W.TextSize = 5.000
  85. W.TextWrapped = true
  86. W.MouseButton1Down:Connect(function()
  87. HumanoidRP.Anchored = false
  88. HumanoidRP:FindFirstChildOfClass("BodyVelocity"):Destroy()
  89. HumanoidRP:FindFirstChildOfClass("BodyGyro"):Destroy()
  90. wait(.1)
  91. local BV = Instance.new("BodyVelocity",HumanoidRP)
  92. local BG = Instance.new("BodyGyro",HumanoidRP)
  93. BG.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  94. BG.D = 5000
  95. BG.P = 50000
  96. BG.CFrame = game.Workspace.CurrentCamera.CFrame
  97. BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  98. BV.Velocity = game.Workspace.CurrentCamera.CFrame.LookVector * Speed
  99. end)
  100.  
  101.  
  102. S.Name = "S"
  103. S.Parent = ScreenGui
  104. S.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  105. S.Position = UDim2.new(0.161668837, 0, 0.735294104, 0)
  106. S.Size = UDim2.new(0, 58, 0, 50)
  107. S.Font = Enum.Font.SourceSans
  108. S.Text = "↓"
  109. S.TextColor3 = Color3.fromRGB(255, 255, 255)
  110. S.TextScaled = true
  111. S.TextSize = 14.000
  112. S.TextWrapped = true
  113. S.MouseButton1Down:Connect(function()
  114. HumanoidRP.Anchored = false
  115. HumanoidRP:FindFirstChildOfClass("BodyVelocity"):Destroy()
  116. HumanoidRP:FindFirstChildOfClass("BodyGyro"):Destroy()
  117. wait(.1)
  118. local BV = Instance.new("BodyVelocity",HumanoidRP)
  119. local BG = Instance.new("BodyGyro",HumanoidRP)
  120. BG.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  121. BG.D = 5000
  122. BG.P = 50000
  123. BG.CFrame = game.Workspace.CurrentCamera.CFrame
  124. BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  125. BV.Velocity = game.Workspace.CurrentCamera.CFrame.LookVector * -Speed
  126. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement