daily pastebin goal
11%
SHARE
TWEET

Untitled

a guest Oct 19th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wait(0.03)
  2. local player = game.Players.LocalPlayer
  3. local mouse = player:GetMouse()
  4. local char
  5. repeat char = player.Character wait(0.03) until char
  6. --lasso stuff
  7. local makelasso = function(endpos)
  8.     local lasso = Instance.new("SelectionPointLasso",char)
  9.     lasso.Color = BrickColor.new("Really black")
  10.     lasso.Humanoid = char.Humanoid
  11.     lasso.Point = endpos
  12.     return lasso
  13. end
  14. --\lasso stuff
  15. --bodpos stuff 
  16. local bodypos = Instance.new("BodyPosition",char.Torso)
  17. bodypos.maxForce = Vector3.new()
  18. --weight stuff
  19. local weight = 0
  20. local fatness = char:GetChildren()
  21. for i = 1,#fatness do
  22.     if fatness[i]:IsA("BasePart") then
  23.         weight = weight + fatness[i]:GetMass()*192.6
  24.     elseif fatness[i]:IsA("Hat") and fatness[i]:FindFirstChild("Handle") then
  25.         weight = weight + fatness[i].Handle:GetMass()*192.6
  26.     end
  27. end
  28. fatness = nil
  29. --\weightstuff
  30. --\bodpos stuff
  31. --bodvel stuff
  32. local bv = Instance.new("BodyVelocity",char.Head)
  33. bv.maxForce = Vector3.new()
  34. --\bodvel stuff
  35. --bodgyro stuff
  36. local bodygyro = Instance.new("BodyGyro",char.Torso)
  37. bodygyro.maxTorque = Vector3.new()
  38. local setgyro = false
  39. --\bodgyro stuff
  40. --are grapples active?and gas
  41. local q,qlocation = false,Vector3.new()
  42. local e,elocation = false,Vector3.new()
  43. local qlasso,elasso = nil,nil
  44. local gas = false
  45. --\are grapples active?and gas
  46. mouse.KeyDown:connect(function(key)
  47.     if key == "q" and not q then
  48.         if (mouse.Hit.p-char.Torso.Position).magnitude > 200 then return end
  49.         q = true
  50.         qlocation = mouse.Hit.p
  51.         if mouse.Target and e then
  52.             bodypos.position = mouse.Hit.p:lerp(bodypos.position,0.5)
  53.             bodypos.maxForce = Vector3.new(4000,weight+4000,4000)
  54.             setgyro = false
  55.             if not qlasso then
  56.                 qlasso = makelasso(qlocation)
  57.             end
  58.         elseif mouse.Target then
  59.             bodypos.position = mouse.Hit.p
  60.             bodypos.maxForce = Vector3.new(3500,weight+3500,3500)
  61.             setgyro = true
  62.             if not qlasso then
  63.                 qlasso = makelasso(qlocation)
  64.             end
  65.         end
  66.     elseif key == "e" and not e then
  67.         if (mouse.Hit.p-char.Torso.Position).magnitude > 200 then return end
  68.         e = true
  69.         elocation = mouse.Hit.p
  70.         if mouse.Target and q then
  71.             bodypos.position = mouse.Hit.p:lerp(bodypos.position,0.5)
  72.             bodypos.maxForce = Vector3.new(4000,weight+4000,4000)
  73.             setgyro = false
  74.             if not elasso then
  75.                 elasso = makelasso(elocation)
  76.             end
  77.         elseif mouse.Target then
  78.             bodypos.position = mouse.Hit.p
  79.             bodypos.maxForce = Vector3.new(3500,weight+3500,3500)
  80.             setgyro = true
  81.             if not elasso then
  82.                 elasso = makelasso(elocation)
  83.             end
  84.         end
  85.     elseif key:byte() == 32 and not gas then
  86.         gas = true
  87.         bv.velocity = char.Torso.CFrame.lookVector.unit * 350
  88.         bv.maxForce = Vector3.new(4000,weight+4000,4000)
  89.         local gasblock = Instance.new("Smoke",char.Torso)
  90.         gasblock.RiseVelocity = 8
  91.         gasblock.Size = 0.1
  92.         Delay(2,function()
  93.             gasblock:Destroy()
  94.             bv.maxForce = Vector3.new()
  95.             gas = false
  96.         end)
  97.     elseif key:byte() == 50 then
  98.         char.Humanoid.PlatformStand = not char.Humanoid.PlatformStand
  99.     end
  100. end)
  101. mouse.KeyUp:connect(function(key)
  102.     if key == "q" then
  103.         q = false
  104.         if not e then
  105.             bodypos.maxForce = Vector3.new()
  106.             setgyro = false
  107.         else
  108.             bodypos.position = elocation
  109.         end
  110.         if qlasso then
  111.             game:GetService("Debris"):AddItem(qlasso,0)
  112.             qlasso = nil
  113.             if not q and not e then
  114.                 char.Torso.Velocity = char.Torso.Velocity + Vector3.new(0,70,0)
  115.             end
  116.         end
  117.     elseif key == "e" then
  118.         e = false
  119.         if not q then
  120.             bodypos.maxForce = Vector3.new()
  121.             setgyro = false
  122.         else
  123.             bodypos.position = qlocation
  124.         end
  125.         if elasso then
  126.             game:GetService("Debris"):AddItem(elasso,0)
  127.             elasso = nil
  128.             if not q and not e then
  129.                 char.Torso.Velocity = char.Torso.Velocity + Vector3.new(0,70,0)
  130.             end
  131.         end
  132.     end
  133. end)
  134. char.Torso.Friction = 0
  135. while wait() do
  136.     bodygyro.maxTorque = setgyro and Vector3.new(3000,3000,3000) or Vector3.new()
  137.     bodygyro.cframe = CFrame.new(char.Torso.Position,bodypos.position)
  138. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top