SHARE
TWEET

m

a guest Jun 12th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wait(0.25)
  2. local q = nil
  3. local e = nil
  4. local a = nil
  5. local b = nil
  6. local ply = game.Players.LocalPlayer
  7. local char = ply.Character
  8. local mouse = ply:GetMouse()
  9. local bp = Instance.new("BodyPosition",char.UpperTorso)
  10. local bg = Instance.new("BodyGyro",char.UpperTorso)
  11. local bgdest = Vector3.new()
  12. local pfvalue = Instance.new("BoolValue",char)
  13. local gas = nil
  14. local numqe = 0
  15. local numq = 0
  16. local nume = 0
  17. local nums = 0
  18. local weightless = nil
  19. bg.maxTorque = Vector3.new(0,0,0)
  20. bp.maxForce = Vector3.new(0,0,0)
  21. bp.P = 1500
  22. mouse.KeyDown:connect(function(key)
  23.     if key == "q" and not q and mouse.Target then
  24.         if (mouse.Hit.p - char.UpperTorso.Position).magnitude < 200 then
  25.             pfvalue.Value = true
  26.             a = mouse.Hit.p
  27.             q = Instance.new("SelectionPointLasso",char)
  28.             q.Color = BrickColor.new("Pearl")
  29.             q.Point = mouse.Hit.p
  30.             q.Humanoid = char.Humanoid
  31.             if char.UpperTorso:FindFirstChild("Smoke") then
  32.                 game:GetService("Debris"):AddItem(char.UpperTorso.Smoke,0)
  33.             end
  34.             if not weightless then
  35.                 weightless = Instance.new("BodyPosition",char.Head)
  36.                 weightless.maxForce = Vector3.new(0,200,0)
  37.                 weightless.position = Vector3.new(0,100,0)
  38.                 coroutine.resume(coroutine.create(function()
  39.                     local current = weightless
  40.                     wait(0.25)
  41.                     if current == weightless then
  42.                         weightless.maxForce = Vector3.new(0,400,0)
  43.                     end
  44.                 end))
  45.             end
  46.         end
  47.     elseif key == "e" and not e and mouse.Target then
  48.         if (mouse.Hit.p - char.UpperTorso.Position).magnitude < 200 then
  49.             pfvalue.Value = true
  50.             b = mouse.Hit.p
  51.             e = Instance.new("SelectionPointLasso",char)
  52.             e.Color = BrickColor.new("Pearl")
  53.             e.Point = mouse.Hit.p
  54.             e.Humanoid = char.Humanoid
  55.             if char.UpperTorso:FindFirstChild("Smoke") then
  56.                 game:GetService("Debris"):AddItem(char.UpperTorso.Smoke,0)
  57.             end
  58.             if not weightless then
  59.                 weightless = Instance.new("BodyPosition",char.Head)
  60.                 weightless.maxForce = Vector3.new(0,200,0)
  61.                 weightless.position = Vector3.new(0,100,0)
  62.                 coroutine.resume(coroutine.create(function()
  63.                     local current = weightless
  64.                     wait(0.25)
  65.                     if current == weightless then
  66.                         weightless.maxForce = Vector3.new(0,400,0)
  67.                     end
  68.                 end))
  69.             end
  70.         end
  71.     elseif key == " " and (q or e) then
  72.         bgdest = char.UpperTorso.Position + (char.UpperTorso.CFrame.lookVector * 125)
  73.         gas = Instance.new("Smoke",char.UpperTorso)
  74.         gas.Size = 0.1
  75.         gas.Opacity = 0.25
  76.         if not weightless then
  77.             weightless = Instance.new("BodyPosition",char.Head)
  78.             weightless.maxForce = Vector3.new(0,50000,0)
  79.             weightless.position = Vector3.new(0,5000,0)
  80.             coroutine.resume(coroutine.create(function()
  81.                 local current = weightless
  82.                 wait(0.25)
  83.                 if current == weightless then
  84.                     weightless.maxForce = Vector3.new(0,25000,0)
  85.                 end
  86.             end))
  87.         end
  88.     end
  89. end)
  90. mouse.KeyUp:connect(function(key)
  91.     if key == "q" and q then
  92.         if not e then
  93.             pfvalue.Value = false
  94.         end
  95.         game:GetService("Debris"):AddItem(q,0)
  96.         q = nil
  97.         a = nil
  98.         if weightless then
  99.             game:GetService("Debris"):AddItem(weightless,0)
  100.             weightless = nil
  101.         end
  102.     elseif key == "e" and e then
  103.         if not q then
  104.             pfvalue.Value = false
  105.         end
  106.         game:GetService("Debris"):AddItem(e,0)
  107.         e = nil
  108.         b = nil
  109.         if weightless then
  110.             game:GetService("Debris"):AddItem(weightless,0)
  111.             weightless = nil
  112.         end
  113.     end
  114. end)
  115.  local player = game.Players.LocalPlayer
  116. repeat wait() until player.Character.Humanoid
  117. local humanoid = player.Character.Humanoid
  118. local mouse = player:GetMouse()
  119.  
  120.  
  121. local anim = Instance.new("Animation")
  122. anim.AnimationId = "http://www.roblox.com/asset/?id=3279141662"
  123.  
  124. mouse.KeyDown:connect(function(key)
  125.   if key == "b" then
  126.    local playAnim = humanoid:LoadAnimation(anim)
  127.    playAnim:Play()
  128.  
  129.     end
  130. end)
  131.  local player = game.Players.LocalPlayer
  132. repeat wait() until player.Character.Humanoid
  133. local humanoid = player.Character.Humanoid
  134. local mouse = player:GetMouse()
  135.  
  136.  
  137. local anim = Instance.new("Animation")
  138. anim.AnimationId = "http://www.roblox.com/asset/?id=3279263396"
  139.  
  140. mouse.KeyDown:connect(function(key)
  141.   if key == "q" then
  142.    local playAnim = humanoid:LoadAnimation(anim)
  143.    playAnim:Play()
  144.  
  145.     end
  146. end)
  147.  local player = game.Players.LocalPlayer
  148. repeat wait() until player.Character.Humanoid
  149. local humanoid = player.Character.Humanoid
  150. local mouse = player:GetMouse()
  151.  
  152.  
  153. local anim = Instance.new("Animation")
  154. anim.AnimationId = "http://www.roblox.com/asset/?id=3279275284"
  155.  
  156. mouse.KeyDown:connect(function(key)
  157.   if key == "e" then
  158.    local playAnim = humanoid:LoadAnimation(anim)
  159.    playAnim:Play()
  160.  
  161.     end
  162. end)
  163. pfvalue.Changed:connect(function()
  164.     if pfvalue.Value == false then
  165.         char.Humanoid.PlatformStand = false
  166.         char["Left Leg"].CanCollide = false
  167.         char["Right Leg"].CanCollide = false
  168.         char["Left Arm"].CanCollide = false
  169.         char["Right Arm"].CanCollide = false
  170.     else
  171.         char.Humanoid.PlatformStand = true
  172.         char["Left Leg"].CanCollide = true
  173.         char["Right Leg"].CanCollide = true
  174.         char["Left Arm"].CanCollide = false
  175.         char["Right Arm"].CanCollide = false
  176.     end
  177. end)
  178. function grapple()
  179.     wait()
  180.     local pos = char.UpperTorso.Position
  181.     if q and e then
  182.         local tab = {a.x,a.y,a.z,b.x,b.y,b.z}
  183.         local x = {}
  184.         numqe = numqe + 1
  185.         local num = numqe
  186.         for i = 1,3 do
  187.             table.insert(x,(tab[i] + tab[i+3])/2)
  188.         end
  189.         bp.position = Vector3.new(unpack(x))
  190.         bp.D = 10
  191.         bp.maxForce = Vector3.new(22500 * (math.abs(pos.x-bgdest.x)/1000) + 15000,22500 * (math.abs(pos.y-bgdest.y)/1000) + 15000,22500 * (math.abs(pos.z-bgdest.z)/1000) + 15000)
  192.         wait(1)
  193.         if num == numqe then
  194.             bp.D = 0
  195.         end
  196.     elseif q then
  197.         numq = numq + 1
  198.         local num = numq
  199.         bp.position = a
  200.         bp.D = 10
  201.         bp.maxForce = Vector3.new(20000 * (math.abs(pos.x-bgdest.x)/1000) + 15000,22500 * (math.abs(pos.y-bgdest.y)/1000) + 15000,22500 * (math.abs(pos.z-bgdest.z)/1000) + 15000)
  202.         bgdest = a
  203.         bg.maxTorque = Vector3.new(25000,25000,25000)
  204.         wait(1)
  205.         if num == numq then
  206.             bp.D = 0
  207.         end
  208.     elseif e then
  209.         nume = nume + 1
  210.         local num = nume
  211.         bp.position = b
  212.         bp.D = 10
  213.         bp.maxForce = Vector3.new(20000 * (math.abs(pos.x-bgdest.x)/1000) + 15000,22500 * (math.abs(pos.y-bgdest.y)/1000) + 15000,22500 * (math.abs(pos.z-bgdest.z)/1000) + 15000)
  214.         bgdest = b
  215.         bg.maxTorque = Vector3.new(25000,25000,25000)
  216.         wait(1)
  217.         if num == nume then
  218.             bp.D = 0
  219.         end
  220.     elseif char.UpperTorso:FindFirstChild("Smoke") then
  221.         nums = nums + 1
  222.         num = nums
  223.         bp.position = bgdest
  224.         bp.D = 10
  225.         bp.maxForce = Vector3.new(20000 * (math.abs(pos.x-bgdest.x)/1000) + 10000,22500 * (math.abs(pos.y-bgdest.y)/1000) + 10000,22500 * (math.abs(pos.z-bgdest.z)/1000) + 10000)
  226.         bg.maxTorque = Vector3.new(30000,30000,30000)
  227.         wait(1)
  228.         if num == nums then
  229.             bp.D = 0
  230.         end
  231.     else
  232.         bp.maxForce = Vector3.new(0,0,0)
  233.         bg.maxTorque = Vector3.new(0,0,0)
  234.     end
  235. end
  236. mouse.KeyDown:connect(grapple)
  237. mouse.KeyUp:connect(grapple)
  238. while wait() do
  239.     bg.cframe = CFrame.new(char.UpperTorso.Position,bgdest)
  240. 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