Advertisement
Roblox_Xploits

Untitled

Jun 24th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.99 KB | None | 0 0
  1. print("TestDone")
  2. wait(1)
  3. Character = game.Players.LocalPlayer.Character
  4. Camera = game.Workspace.CurrentCamera
  5. Mouse = game.Players.LocalPlayer:GetMouse()
  6. RArmJoint = Character.Torso:FindFirstChild("Right Shoulder")
  7. LArmJoint = Character.Torso:FindFirstChild("Left Shoulder")
  8. RHipJoint = Character.Torso:FindFirstChild("Right Hip")
  9. LHipJoint = Character.Torso:FindFirstChild("Left Hip")
  10. Tilt = 0
  11. TiltConvergence = 0
  12. Twist = 0
  13. TwistConvergence = 0
  14. Speed = 0.975
  15. SpeedConvergence = 0.975
  16. SD = 0.95
  17. Flat = Vector3.new(1, 0, 1)
  18. CurrentCameraLV = nil
  19. MinVelocity = -100
  20. HasReset = false
  21. Flying = false
  22.  
  23. function KeyPressed(Key)
  24.     if Key == "d" then
  25.         TwistConvergence = 1
  26.     elseif Key == "a" then
  27.         TwistConvergence = -1
  28.     elseif Key == "w" then
  29.         TiltConvergence = 1
  30.     elseif Key == "s" then
  31.         TiltConvergence = -1
  32.     elseif Key == " " then
  33.         SD = 0.95
  34.         SpeedConvergence = 0.66
  35.     end
  36. print(3)
  37. end
  38.  
  39. function KeyUnpressed(Key)
  40.     if Key == "d" or Key == "a" then
  41.         TwistConvergence = 0
  42.     elseif Key == "w" or Key == "s" then
  43.         TiltConvergence = 0
  44.     elseif Key == " " then
  45.         SD = 0.975
  46.         SpeedConvergence = 1
  47.     end
  48. print(4)
  49. end
  50.  
  51. Mouse.KeyDown:connect(KeyPressed)
  52. Mouse.KeyUp:connect(KeyUnpressed)
  53.  
  54. function ChangeWeld(Weld, C0, C1)
  55.     Weld.C0, Weld.C1 = C0, C1
  56. end
  57.  
  58. function MakeRay(From, To)
  59.     local Hit, Position = game.Workspace:FindPartOnRay(Ray.new(From, To - From), Character)
  60.     return {Hit = Hit, Position = Position}
  61. end
  62.  
  63. while true do
  64.     wait()
  65.     Twist = (Twist * 31 + TwistConvergence) / 32
  66.     Tilt = (Tilt * 31 + TiltConvergence) / 32
  67.     Speed = (Speed * 15 + SpeedConvergence) / 16
  68.     if Character.Torso.Velocity.y < MinVelocity and not Character.Humanoid.Sit then
  69.         Character.Animate.Disabled = true
  70.         VMag = math.sqrt(Character.Torso.Velocity.magnitude / 48)
  71.         DMag = ((Character.Torso.CFrame * CFrame.Angles(1.57, 0, 0)).lookVector - Character.Torso.Velocity.unit).magnitude
  72.         MinVelocity = -50
  73.         HasReset = false
  74.         Character.Humanoid.PlatformStand = true
  75.         Raise = math.max(math.min(Character.Torso.Velocity.y / 800 - (DMag * VMag / 4), 1), -1)
  76.         ChangeWeld(RArmJoint,
  77.             CFrame.new(1.5, 0.5, 0) * CFrame.Angles(Raise, (math.random() * 0.2 - 0.1) * Raise, 2.355 / Speed - 1.57 - Twist / 1.5),
  78.             CFrame.new(0, 0.5, 0))
  79.         ChangeWeld(LArmJoint,
  80.             CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(Raise, (math.random() * 0.2 - 0.1) * Raise, -2.355 / Speed + 1.57 - Twist / 1.5),
  81.             CFrame.new(0, 0.5, 0))
  82.         ChangeWeld(RHipJoint,
  83.             CFrame.new(0.5, -1, 0) * CFrame.Angles(Raise, (math.random() * 0.2 - 0.1) * Raise, 1.046 / Speed - 0.698 - Twist / 1.5),
  84.             CFrame.new(0, 1, 0))
  85.         ChangeWeld(LHipJoint,
  86.             CFrame.new(-0.5, -1, 0) * CFrame.Angles(Raise, (math.random() * 0.2 - 0.1) * Raise, -1.046 / Speed + 0.698 - Twist / 1.5),
  87.             CFrame.new(0, 1, 0))
  88.         CurrentCameraLV = (game.Workspace.CurrentCamera.CoordinateFrame.lookVector * Flat).unit
  89.         Character.Torso.CFrame = CFrame.new(Character.Torso.Position, Character.Torso.Position + ((Character.Torso.CFrame * CFrame.Angles(1.57, 0, 0)).lookVector * Flat * 15 + CurrentCameraLV)/16) * CFrame.Angles(-Tilt - 1.57, Twist, 0)
  90.         Character.Torso.Velocity = Character.Torso.Velocity*SD + CurrentCameraLV*Tilt*5 + Vector3.new(-CurrentCameraLV.z, 0, CurrentCameraLV.x)*Twist*5
  91.         Character.Torso.RotVelocity = Vector3.new(0, 0, 0)
  92.     elseif not HasReset then
  93.         Character.Animate.Disabled = false
  94.         MinVelocity = -100
  95.         Character.Humanoid.PlatformStand = false
  96.         RArmJoint.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(0, math.pi/2, 0)
  97.         RArmJoint.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, math.pi/2, 0)
  98.         LArmJoint.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0, -math.pi/2, 0)
  99.         LArmJoint.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, -math.pi/2, 0)
  100.         RHipJoint.C0 = CFrame.new(0.5, -1, 0) * CFrame.Angles(0, math.pi/2, 0)
  101.         RHipJoint.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0, math.pi/2, 0)
  102.         LHipJoint.C0 = CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, -math.pi/2, 0)
  103.         LHipJoint.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0, -math.pi/2, 0)
  104.         HasReset = true
  105.     end
  106. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement