Advertisement
HackNeedsScripts

Untitled

Oct 6th, 2022
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.27 KB | None | 0 0
  1. local plr = script.Parent.Parent.Parent.Parent
  2. repeat wait() until plr and plr.Character and plr.Character:findFirstChild("HumanoidRootPart") and plr.Character:findFirstChild("Humanoid")
  3. local mouse = game.Players.LocalPlayer:GetMouse()
  4. repeat wait() until mouse
  5.  
  6. local torso = plr.Character.HumanoidRootPart
  7. local flying = false
  8. local deb = true
  9. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  10. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  11. local maxspeed = 1000
  12. local speed = 50
  13. function Fly()
  14. local bg = Instance.new("BodyGyro", torso)
  15. bg.P = 9e4
  16. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  17. bg.cframe = torso.CFrame
  18. local bv = Instance.new("BodyVelocity", torso)
  19. bv.velocity = Vector3.new(0,0.1,0)
  20. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  21. repeat wait()
  22. plr.Character.Humanoid.PlatformStand = true
  23. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  24. speed = speed+.5+(speed/maxspeed)
  25. if speed > maxspeed then
  26. speed = maxspeed
  27. end
  28. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  29. speed = speed-1
  30. if speed < 0 then
  31. speed = 0
  32. else
  33. speed = 50
  34. end
  35. end
  36. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  37. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  38. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  39. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  40. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  41. else
  42. bv.velocity = Vector3.new(0,0.1,0)
  43. end
  44. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  45. until not flying
  46. ctrl = {f = 0, b = 0, l = 0, r = 0}
  47. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  48.  
  49. bg:Destroy()
  50. bv:Destroy()
  51. plr.Character.Humanoid.PlatformStand = false
  52. speed = 50
  53. end
  54.  
  55. mouse.KeyDown:connect(function(key)
  56. if key:lower() == "e" then
  57. if flying then flying = false
  58. speed = 50
  59. else
  60. flying = true
  61. Fly()
  62.  
  63. end
  64. elseif key:lower() == "w" then
  65. ctrl.f = 1
  66. elseif key:lower() == "s" then
  67. ctrl.b = -1
  68. elseif key:lower() == "a" then
  69. ctrl.l = -1
  70. elseif key:lower() == "d" then
  71. ctrl.r = 1
  72. end
  73. end)
  74. mouse.KeyUp:connect(function(key)
  75. if key:lower() == "w" then
  76. ctrl.f = 0
  77. elseif key:lower() == "s" then
  78. ctrl.b = 0
  79. elseif key:lower() == "a" then
  80. ctrl.l = 0
  81. elseif key:lower() == "d" then
  82. ctrl.r = 0
  83. end
  84. end)
  85.  
  86. plr.Character.Humanoid.StateChanged:Connect(function(o,n)
  87. if n == Enum.HumanoidStateType.Running then
  88. ctrl.f = 1
  89. else
  90. ctrl.f = 0
  91. end
  92.  
  93. end)
  94. script.Parent.TextButton.MouseButton1Click:Connect(function()
  95. if flying then
  96. flying = false
  97. speed = 50
  98. else
  99. flying = true
  100. Fly()
  101. end
  102. end)
  103.  
  104. end
  105. coroutine.wrap(NQWSTGE_fake_script)()
  106. local function RAQA_fake_script() -- Frame.Buttons
  107. local script = Instance.new('LocalScript', Frame)
  108.  
  109. local Trigger = script.Parent.MiniTrext
  110. local IsMini = false
  111. function CreateTween(Instance,Style,Direction,Time,table,RepeatCount,CanRepeat,Delay)
  112. local ts = game:GetService("TweenService")
  113. local TweenInfo = TweenInfo.new(Time,Style,Direction,RepeatCount,CanRepeat,Delay)
  114. local Tween = ts:Create(Instance,TweenInfo,table)
  115. repeat wait() until Tween ~= nil
  116. return Tween
  117.  
  118. end
  119. Trigger.MouseButton1Click:Connect(function()
  120. if IsMini then
  121. CreateTween(script.Parent,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0.5,{Size = UDim2.new(0.265, 0,0.1, 0)},0,false,0.1):Play()
  122. IsMini = false
  123. Trigger.Text = "-"
  124. else
  125. CreateTween(script.Parent,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0.5,{Size = UDim2.new(0.265, 0,0.042, 0)},0,false,0.1):Play()
  126. IsMini = true
  127. Trigger.Text = "+"
  128. end
  129. end)
  130. script.Parent.Delete.MouseButton1Click:Connect(function()
  131. script.Parent.Parent:Destroy()
  132. end)
  133. end
  134. coroutine.wrap(RAQA_fake_script)()
  135. local function TKVUMP_fake_script() -- Frame.Drag Gui
  136. local script = Instance.new('LocalScript', Frame)
  137.  
  138. local UserInputService = game:GetService("UserInputService")
  139.  
  140. local gui = script.Parent
  141.  
  142. local dragging
  143. local dragInput
  144. local dragStart
  145. local startPos
  146.  
  147. local function update(input)
  148. local delta = input.Position - dragStart
  149. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  150. end
  151.  
  152. gui.InputBegan:Connect(function(input)
  153. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  154. dragging = true
  155. dragStart = input.Position
  156. startPos = gui.Position
  157.  
  158. input.Changed:Connect(function()
  159. if input.UserInputState == Enum.UserInputState.End then
  160. dragging = false
  161. end
  162. end)
  163. end
  164. end)
  165.  
  166. gui.InputChanged:Connect(function(input)
  167. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  168. dragInput = input
  169. end
  170. end)
  171.  
  172. UserInputService.InputChanged:Connect(function(input)
  173. if input == dragInput and dragging then
  174. update(input)
  175. end
  176. end)
  177. end
  178. coroutine.wrap(TKVUMP_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement