daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Jul 21st, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function clerp(c1,c2,al)
  2.     local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  3.     local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  4.     for i,v in pairs(com1) do
  5.         com1[i] = v+(com2[i]-v)*al
  6.     end
  7.     return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  8. end
  9.  
  10. plr = game:service'Players'.LocalPlayer
  11. plrgui = plr.PlayerGui
  12. char = plr.Character
  13. mouse = plr:GetMouse()
  14. humanoid = char:findFirstChild("Humanoid")
  15. torso = char:findFirstChild("Torso")
  16. head = char.Head
  17. ra = char:findFirstChild("Right Arm")
  18. la = char:findFirstChild("Left Arm")
  19. rl = char:findFirstChild("Right Leg")
  20. ll = char:findFirstChild("Left Leg")
  21. rs = torso:findFirstChild("Right Shoulder")
  22. ls = torso:findFirstChild("Left Shoulder")
  23. rh = torso:findFirstChild("Right Hip")
  24. lh = torso:findFirstChild("Left Hip")
  25. neck = torso:findFirstChild("Neck")
  26. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  27. rootpart = char:findFirstChild("HumanoidRootPart")
  28. camera = workspace.CurrentCamera
  29. anim = char:findFirstChild("Animate")
  30. if anim then
  31. anim:Destroy()
  32. end
  33.  
  34. shirt = Instance.new("Shirt", char)
  35. shirt.Name = "Shirt"
  36. pants = Instance.new("Pants", char)
  37. pants.Name = "Pants"
  38. char.Shirt.ShirtTemplate = "rbxassetid://769770676"
  39. char.Pants.PantsTemplate = "rbxassetid://761044844"
  40.  
  41. local lal = Instance.new('Sound', head)
  42. lal.SoundId = "rbxassetid://547125234"
  43. lal.Volume = 1
  44. lal:play()
  45. game:service'Debris':AddItem(lal, 8)
  46.  
  47. local rm = Instance.new("Weld", torso)
  48. rm.C0 = CFrame.new(1.5, 0.5, 0)
  49. rm.C1 = CFrame.new(0, 0.5, 0)
  50. rm.Part0 = torso
  51. rm.Part1 = ra
  52. rm.Name = 'Right Shoulder'
  53.  
  54. local lm = Instance.new("Weld", torso)
  55. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  56. lm.C1 = CFrame.new(0, 0.5, 0)
  57. lm.Part0 = torso
  58. lm.Part1 = la
  59. lm.Name = 'Left Shoulder'
  60.  
  61. local rlegm = Instance.new("Weld", torso)
  62. rlegm.C0 = CFrame.new(0.5, -1, 0)
  63. rlegm.C1 = CFrame.new(0, 1, 0)
  64. rlegm.Part0 = torso
  65. rlegm.Part1 = rl
  66.  
  67. local llegm = Instance.new("Weld", torso)
  68. llegm.C0 = CFrame.new(-0.5, -1, 0)
  69. llegm.C1 = CFrame.new(0, 1, 0)
  70. llegm.Part0 = torso
  71. llegm.Part1 = ll
  72.  
  73. rj.C0 = CFrame.new()
  74. rj.C1 = CFrame.new()
  75.  
  76. neck.C0 = CFrame.new(0, 1, 0)
  77. neck.C1 = CFrame.new(0, -0.5, 0)
  78.  
  79.  
  80. local speed = 0.3
  81. local angle = 0
  82. local anglespeed = 1
  83. rsc0 = rm.C0
  84. lsc0 = lm.C0
  85. llc0 = llegm.C0
  86. rlc0 = rlegm.C0
  87. rootc0 = rj.C0
  88. neckc0 = neck.C0
  89.  
  90. model = Instance.new('Model', char)
  91. model.Name = '3DG'
  92. function Weld(part0,part1,c1,c0)
  93.     local w = Instance.new('Weld', model)
  94.     w.Part0 = part0
  95.     w.Part1 = part1
  96.     w.C0 = c0 or CFrame.new()
  97.     w.C1 = c1 or CFrame.new()
  98. end
  99.  
  100. local BasePart = Instance.new('Part')
  101. BasePart.FormFactor = 'Custom'
  102. BasePart.Material = 'Neon'
  103. BasePart.CanCollide = false
  104. BasePart.Locked = true
  105. BasePart.TopSurface = 10
  106. BasePart.BottomSurface = 10
  107. BasePart.LeftSurface = 10
  108. BasePart.RightSurface = 10
  109. BasePart.FrontSurface = 10
  110. BasePart.BackSurface = 10
  111. BasePart:breakJoints()
  112.  
  113.  
  114. for i = 1,2 do
  115.     local strap = BasePart:clone()
  116.     strap.Size = Vector3.new(1.025,.2,1.025)
  117.     strap.Parent = model
  118.     strap.BrickColor = BrickColor.new("Magenta")
  119.     strap:BreakJoints()
  120.     Weld(strap, la, CFrame.new(0, .1 - i/3,0))
  121. end
  122.  
  123. for i = 1,2 do
  124.     local strap = BasePart:clone()
  125.     strap.Size = Vector3.new(1.025,.2,1.025)
  126.     strap.Parent = model
  127.     strap.BrickColor = BrickColor.new("Magenta")
  128.     strap:BreakJoints()
  129.     Weld(strap, ra, CFrame.new(0, .1 - i/3,0))
  130. end
  131.  
  132. local ropeStart = BasePart:clone()
  133.     ropeStart.Size = Vector3.new(.2,1.75,.2)
  134.     ropeStart.Parent = model
  135.     ropeStart.BrickColor = BrickColor.new("Magenta")
  136.     ropeStart:BreakJoints()
  137.     Weld(ropeStart, ra, CFrame.new(-.45, -.5, 0))
  138. local ropeStart2 = BasePart:clone()
  139.     ropeStart2.Size = Vector3.new(.2,1.75,.2)
  140.     ropeStart2.Parent = model
  141.     ropeStart2.BrickColor = BrickColor.new("Magenta")
  142.     ropeStart2:BreakJoints()
  143.     Weld(ropeStart2, la, CFrame.new(.45, -.5, 0))
  144.  
  145.     local ropeCont = BasePart:clone()
  146.     ropeCont.Size = Vector3.new(.8,.2,.8)
  147.     ropeCont.Parent = model
  148.     ropeCont.BrickColor = BrickColor.new("Magenta")
  149.     ropeCont:BreakJoints()
  150.     Instance.new('CylinderMesh', ropeCont)
  151.     Weld(ropeCont, la, CFrame.new(.5, .05, 0), CFrame.Angles(math.pi/2, math.pi/2, 0))
  152. local ropeCont2 = BasePart:clone()
  153.     ropeCont2.Size = Vector3.new(.8,.2,.8)
  154.     ropeCont2.Parent = model
  155.     ropeCont2.BrickColor = BrickColor.new("Magenta")
  156.     ropeCont2:BreakJoints()
  157.     Instance.new('CylinderMesh', ropeCont2)
  158.     Weld(ropeCont2, ra, CFrame.new(-.5, .05, 0), CFrame.Angles(math.pi/2, math.pi/2, 0))
  159.  
  160.     local GasTank = BasePart:clone()
  161.     GasTank.Size = Vector3.new(.8,1.4,.8)
  162.     GasTank.Parent = model
  163.     GasTank.BrickColor = BrickColor.new("Magenta")
  164.     GasTank:BreakJoints()
  165.     Instance.new('SpecialMesh', GasTank)
  166.     Weld(GasTank, ra, CFrame.new(0, -.25, .5))
  167. local GasTank2 = BasePart:clone()
  168.     GasTank2.Size = Vector3.new(.8,1.4,.8)
  169.     GasTank2.Parent = model
  170.     GasTank2.BrickColor = BrickColor.new("Magenta")
  171.     GasTank2:BreakJoints()
  172.     Instance.new('SpecialMesh', GasTank2)
  173.     Weld(GasTank2, la, CFrame.new(0, -.25, .5))
  174.  
  175. local pa = BasePart:clone()
  176. pa.BrickColor = BrickColor.new()
  177. pa.Anchored = true
  178. pa.Size = Vector3.new(.5,1,.5)
  179. local special = Instance.new('SpecialMesh', pa)
  180. special.MeshId = "rbxassetid://1033714"
  181. special.Scale = Vector3.new(.25,2,.25)
  182. local ropePA = BasePart:clone()
  183. ropePA.Parent = pa
  184. ropePA.Anchored = true
  185. ropePA.BrickColor = BrickColor.new'Magenta'
  186. Instance.new('CylinderMesh', ropePA).Scale = Vector3.new(.25,1,.25)
  187.  
  188. local pa2 = BasePart:clone()
  189. pa2.BrickColor = BrickColor.new()
  190. pa2.Anchored = true
  191. pa2.Size = Vector3.new(.5,1,.5)
  192. local special = Instance.new('SpecialMesh', pa2)
  193. special.MeshId = "rbxassetid://1033714"
  194. special.Scale = Vector3.new(.25,2,.25)
  195. local ropePA2 = BasePart:clone()
  196. ropePA2.Parent = pa2
  197. ropePA2.Anchored = true
  198. ropePA2.BrickColor = BrickColor.new'Magenta'
  199. Instance.new('CylinderMesh', ropePA2).Scale = Vector3.new(.25,1,.25)
  200.  
  201. local pa3 = BasePart:clone()
  202. pa3.Transparency = 1
  203. pa3.Anchored = true
  204. pa3.Size = Vector3.new(2,2,2)
  205.  
  206. local torso3 = Instance.new('Part', char)
  207. torso3.Name = 'FakeTorsoForStuff'
  208. torso3.Size = torso.Size
  209. torso3.Transparency = 1
  210. torso3:breakJoints()
  211. Weld(torso3, torso)
  212.  
  213. Instance.new('PointLight', torso)
  214.  
  215. local jumpmode
  216.  
  217. local SGui = Instance.new('ScreenGui', plr.PlayerGui)
  218. local JumpButton = Instance.new('TextButton', SGui)
  219. JumpButton.BackgroundColor = BrickColor.new('Dark stone grey')
  220. JumpButton.BorderSizePixel = 4
  221. JumpButton.TextColor3 = Color3.new(1,1,1)
  222. JumpButton.BorderColor3 = Color3.new()
  223. JumpButton.TextStrokeTransparency = .5
  224. JumpButton.FontSize = 'Size12'
  225. JumpButton.Text = 'Thrust up when grappled'
  226. JumpButton.Size = UDim2.new(0, 250, 0, 50)
  227. JumpButton.Position = UDim2.new(1, -250, 1, -50)
  228. local OnOff = Instance.new('Frame', JumpButton)
  229. OnOff.BackgroundColor3 = Color3.new()
  230. OnOff.BorderSizePixel = 0
  231. OnOff.Size = UDim2.new(.8, 0, 0, 5)
  232. OnOff.Position = UDim2.new(.1, 0, 1, -10)
  233. JumpButton.MouseButton1Down:connect(function()
  234.     jumpmode = not jumpmode
  235.     if jumpmode then
  236.         OnOff.BackgroundColor3 = Color3.new(0,1,0)
  237.     else
  238.         OnOff.BackgroundColor3 = Color3.new()
  239.     end
  240. end)
  241.  
  242.  
  243.  
  244. local bodygyro = Instance.new('BodyGyro', torso)
  245.     bodygyro.maxTorque = Vector3.new(14e16,14e16,14e16)
  246.     bodygyro.P = 10000
  247.  
  248.         ro=Instance.new("RocketPropulsion",rootpart)
  249.         ro.Name = 'RockatPropoolsun'
  250.         ro.MaxSpeed=200
  251.         ro.MaxThrust=8000
  252.         ro.TurnP = 0
  253.         ro.MaxTorque=Vector3.new(14e16,14e16,14e16)
  254.  
  255.         ro2=Instance.new("RocketPropulsion",torso)
  256.         ro2.Name = 'RockatPropoolsun2'
  257.         ro2.MaxSpeed=200
  258.         ro2.MaxThrust=8000
  259.         ro2.TurnP = 0
  260.         ro2.MaxTorque=Vector3.new(14e16,14e16,14e16)
  261. local run
  262. mouse.KeyDown:connect(function(k)
  263.     if k:byte() == 48 then
  264.         run = not run
  265.         if run then
  266.             humanoid.WalkSpeed = 22
  267.         else
  268.             humanoid.WalkSpeed = 16
  269.         end
  270.     end
  271.     if k:byte() == 32 then
  272.         if Grapple1 or Grapple2 then
  273.         wait()
  274.         humanoid.PlatformStand = true
  275.         rlegm.C0 = rlc0 * CFrame.new(0, .5, -.65) * CFrame.Angles(-math.pi/8, 0, .1)
  276.         llegm.C0 = llc0 * CFrame.new(0, .5, -.65) * CFrame.Angles(-math.pi/8, 0, -.1)
  277.         if pa3.Parent ~= nil then
  278.             ro3:Fire()
  279.         end
  280.         if Grapple1 then
  281.             ro:Fire()
  282.         end
  283.         if Grapple2 then
  284.             ro2:Fire()
  285.         end
  286.         end
  287.     end
  288.     if k=="q" then
  289.         local sound = Instance.new('Sound', head)
  290.         sound.SoundId = "rbxassetid:547125234"
  291.         sound.Pitch = 1
  292.         sound.Volume = .8
  293.         sound:play()
  294.         game:service'Debris':AddItem(sound,4)
  295.         lm.Parent = torso
  296.         pa.CFrame = la.CFrame
  297.             local grapplepos = pa.Position
  298.             local grapplevelocity = (mouse.Hit.p - grapplepos).unit*50
  299.             local lastgrapplepos = pa.Position
  300.             while wait() do
  301.                 lastgrapplepos = grapplepos
  302.                 grapplepos = grapplepos + grapplevelocity
  303.                 local RayCast = Ray.new(lastgrapplepos, (grapplepos - lastgrapplepos))
  304.                 local hit, hitpos = workspace:FindPartOnRay(RayCast, char)
  305.                 if (torso.Position - pa.Position).magnitude > 900 then
  306.                     pa.Parent = nil
  307.                     break
  308.                 end
  309.                 pa.Anchored = true
  310.                 pa.CFrame = CFrame.new(grapplepos, grapplepos+grapplevelocity) * CFrame.Angles(math.pi/2, 0, 0)
  311.                 pa.Parent = char
  312.                 if hit then
  313.                     local rotX,rotY,rotZ = pa.CFrame:toEulerAnglesXYZ()
  314.                     local sound = Instance.new('Sound', head)
  315.                     sound.SoundId = "rbxassetid:547125234"
  316.                     sound.Pitch = 1.2+math.random()/3
  317.                     sound.Volume = .25
  318.                     sound:play()
  319.                     game:service'Debris':AddItem(sound,4)
  320.                     pa.Parent = char
  321.                     pa.CFrame=CFrame.new(hitpos.x, hitpos.y, hitpos.z)*CFrame.Angles(rotX,rotY,rotZ)*CFrame.Angles(math.pi,0,0)
  322.                     ro.Target=pa
  323.                     lm.Parent = torso
  324.                     local ray = Ray.new(rootpart.Position, Vector3.new(0, -6, 0))
  325.                     local hitz, enz = workspace:FindPartOnRay(ray, char)
  326.                     local hum = hit and hit.Parent and hit.Parent:findFirstChild'Humanoid'
  327.                     if hum then
  328.                         hum:TakeDamage(math.random(7,11))
  329.                     end
  330.                     local hum = hit and hit.Parent and hit.Parent.Parent and hit.Parent.Parent:findFirstChild'Humanoid'
  331.                     if hum then
  332.                         hum:TakeDamage(math.random(7,11))
  333.                     end
  334.                     if pa.Parent ~= nil and humanoid.PlatformStand or not (hitz and hitz.CanCollide) then
  335.                         ro:Fire()
  336.                         if jumpmode then
  337.                             humanoid.Jump = true
  338.                         end
  339.                     end
  340.                     Gweld = Instance.new("Weld", char)
  341.                     Gweld.C0 = hit.CFrame:toObjectSpace(pa.CFrame)
  342.                     Gweld.Part0 = hit
  343.                     Gweld.Part1 = pa
  344.                     pa.Anchored = false
  345.                     Grapple1Hit = hit
  346.                     Grapple1 = true
  347.                     break
  348.                 end
  349.                 pa.Anchored = true
  350.                 pa.CFrame = CFrame.new(grapplepos, grapplepos+grapplevelocity) * CFrame.Angles(math.pi/2, 0, 0)
  351.             end
  352.     end
  353.     if k=="e" then
  354.         local sound = Instance.new('Sound', head)
  355.         sound.SoundId = "rbxassetid://547125234"
  356.         sound.Pitch = 1
  357.         sound.Volume = .8
  358.         sound:play()
  359.         game:service'Debris':AddItem(sound,4)
  360.             pa2.CFrame = ra.CFrame
  361.             rm.Parent = torso
  362.             local grapplepos = pa2.Position
  363.             local grapplevelocity = (mouse.Hit.p - grapplepos).unit*50
  364.             local lastgrapplepos = pa2.Position
  365.             while wait() do
  366.                 lastgrapplepos = grapplepos
  367.                 grapplepos = grapplepos + grapplevelocity
  368.                 local RayCast = Ray.new(lastgrapplepos, (grapplepos - lastgrapplepos))
  369.                 local hit, hitpos = workspace:FindPartOnRay(RayCast, char)
  370.                 if (torso.Position - pa2.Position).magnitude > 900 then
  371.                     pa2.Parent = nil
  372.                     break
  373.                 end
  374.                 pa2.Anchored = true
  375.                 pa2.CFrame = CFrame.new(grapplepos, grapplepos+grapplevelocity) * CFrame.Angles(math.pi/2, 0, 0)
  376.                 pa2.Parent = char
  377.                 if hit then
  378.                     local rotX,rotY,rotZ = pa2.CFrame:toEulerAnglesXYZ()
  379.                     local sound = Instance.new('Sound', head)
  380.                     sound.SoundId = "rbxassetid://547125234"
  381.                     sound.Pitch = 1.2+math.random()/3
  382.                     sound.Volume = .25
  383.                     sound:play()
  384.                     game:service'Debris':AddItem(sound,4)
  385.                     pa2.Parent = char
  386.                     pa2.CFrame=CFrame.new(hitpos.x, hitpos.y, hitpos.z)*CFrame.Angles(rotX,rotY,rotZ)*CFrame.Angles(math.pi,0,0)
  387.                     ro2.Target=pa2
  388.                     rm.Parent = torso
  389.                     local ray = Ray.new(rootpart.Position, Vector3.new(0, -6, 0))
  390.                     local hitz, enz = workspace:FindPartOnRay(ray, char)
  391.                     local hum = hit and hit.Parent and hit.Parent:findFirstChild'Humanoid'
  392.                     if hum then
  393.                         hum:TakeDamage(math.random(7,11))
  394.                     end
  395.                     local hum = hit and hit.Parent and hit.Parent.Parent and hit.Parent.Parent:findFirstChild'Humanoid'
  396.                     if hum then
  397.                         hum:TakeDamage(math.random(7,11))
  398.                     end
  399.                     if pa2.Parent ~= nil and humanoid.PlatformStand or not (hitz and hitz.CanCollide) then
  400.                         if jumpmode then
  401.                             humanoid.Jump = true
  402.                         end
  403.                         ro2:Fire()
  404.                     end
  405.                     Gweld2 = Instance.new("Weld", char)
  406.                     Gweld2.C0 = hit.CFrame:toObjectSpace(pa2.CFrame)
  407.                     Gweld2.Part0 = hit
  408.                     Gweld2.Part1 = pa2
  409.                     pa2.Anchored = false
  410.                     Grapple2Hit = hit
  411.                     Grapple2 = true
  412.                     break
  413.                 end
  414.                 pa2.Anchored = true
  415.                 pa2.CFrame = CFrame.new(grapplepos, grapplepos+grapplevelocity) * CFrame.Angles(math.pi/2, 0, 0)
  416.             end
  417.     end
  418. end)
  419.  
  420. mouse.KeyUp:connect(function(k)
  421.     if k=="q" then
  422.         pcall(function() Gweld:remove() end)
  423.         game:service'RunService'.RenderStepped:wait()
  424.         pcall(function() pa.Parent = nil Grapple1 = false end)
  425.         pcall(function() ro:Abort() end)
  426.         game:service'RunService'.RenderStepped:wait()
  427.         pcall(function() ro2.Target=pa2 if Grapple2 and humanoid.PlatformStand or Grapple2 and not hitz then ro2:Fire() end end)
  428.     elseif k=="e" then
  429.         pcall(function() Gweld2:remove() end)
  430.         game:service'RunService'.RenderStepped:wait()
  431.         pcall(function() pa2.Parent = nil Grapple2 = false end)
  432.         pcall(function() ro2:Abort() end)
  433.         game:service'RunService'.RenderStepped:wait()
  434.         pcall(function() ro.Target=pa if Grapple1 and humanoid.PlatformStand or Grapple1 and not hitz then ro:Fire() end end)
  435.     end
  436. end)
  437.  
  438.  
  439. local MidPointUsed = false
  440. local TorsoSmoke = Instance.new('Smoke', torso)
  441.  
  442.  
  443. game:service'RunService'.RenderStepped:connect(function()
  444.         angle = (angle % 100) + anglespeed/10
  445.         mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  446.         local rscf = rsc0
  447.         local lscf = lsc0
  448.         local rlcf = rlc0
  449.         local llcf = llc0
  450.         local rjcf = rootc0
  451.         local ncf = neckc0
  452.         for i,object in pairs(char:children()) do
  453.             if object:IsA("Tool") then
  454.                 tool = true
  455.                 if not debounce then
  456.                 for x,value in pairs(object:children()) do
  457.                     if value:IsA("StringValue") and value.Name == "toolanim" and value.Value == "Slash" then
  458.                         debounce = true
  459.                         coroutine.wrap(function()
  460.                         slashing = true
  461.                         wait(.25)
  462.                         slashing = false
  463.                         debounce = false
  464.                     end)()
  465.                     value:Destroy()
  466.                     end
  467.                 end
  468.                 end
  469.             elseif not object:IsA'Tool' then
  470.                 tool = false
  471.             end
  472.         end
  473.         if not humanoid.PlatformStand then
  474.             if humanoid.Sit == true then
  475.                 speed = 0.2
  476.                 anglespeed = 1/4
  477.                         ncf = neckc0 * CFrame.Angles(0, 0, 0)
  478.                         rjcf = rootc0
  479.                         rscf = rsc0 * CFrame.Angles(math.pi/2+math.sin(-angle)*0.05, 0, 0)
  480.                         lscf = lsc0 * CFrame.Angles(math.pi/2+math.sin(-angle)*0.05, 0, 0)
  481.                         rlcf = rlc0 * CFrame.Angles(math.pi/2+-math.rad(.2), 0, math.rad(.2))
  482.                         llcf = llc0 * CFrame.Angles(math.pi/2+math.rad(.2), 0, -math.rad(.2))
  483.             elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 2 then
  484.                     anglespeed = 1/4
  485.                         speed = 0.2
  486.                         ncf = neckc0 * CFrame.Angles(math.sin(angle)*0.075, 0, 0)
  487.                         rjcf = rootc0
  488.                         rscf = rsc0 * CFrame.new(0, math.sin(angle)*0.05, 0) * CFrame.Angles(math.sin(-angle)*0.05, 0, 0)
  489.                         lscf = lsc0 * CFrame.new(0, math.sin(angle)*0.05, 0) * CFrame.Angles(math.sin(-angle)*0.05, 0, 0)
  490.                         rlcf = rlc0 * CFrame.Angles(-math.rad(.2), 0, math.rad(.2))
  491.                         llcf = llc0 * CFrame.Angles(math.rad(.2), 0, -math.rad(.2))
  492.             elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 20 then
  493.                         anglespeed = 1.7
  494.                         speed = 0.25
  495.                         anglespeed = 2.2
  496.                         speed = 0.25
  497.                         ncf = neckc0 * CFrame.Angles(0, 0, 0)
  498.                         rjcf = rootc0 * CFrame.new(0, math.abs(math.sin(angle))*.055, 0) * CFrame.Angles(-math.rad(1), 0, 0)
  499.                         rscf = rsc0 * CFrame.Angles(math.sin(angle)*.5, 0, -math.rad(1))
  500.                         lscf = lsc0 * CFrame.Angles(math.sin(-angle)*.5, 0, math.rad(1))
  501.                         rlcf = rlc0 * CFrame.new(0, .075 + -math.cos(-angle)*.075, math.sin(angle)*0.1) * CFrame.Angles(math.sin(-angle)*.45, 0, math.rad(.5))
  502.                         llcf = llc0 * CFrame.new(0, .075 - -math.cos(angle)*.075, -math.sin(angle)*0.1) * CFrame.Angles(math.sin(angle)*.45, 0, -math.rad(.5))
  503.             elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then
  504.                 local RotVelocityZ = torso.RotVelocity.Y
  505.                 if RotVelocityZ >= 15 then
  506.                     RotVelocityZ = 15
  507.                 elseif RotVelocityZ <= -15 then
  508.                     RotVelocityZ = -15
  509.                 end
  510.                     speed = 0.25
  511.                     anglespeed = 2.7
  512.                     ncf = neckc0 * CFrame.Angles(0, 0, -math.sin(angle)*.045)
  513.                     rscf = rsc0 * CFrame.new(0, 0, -math.sin(angle)*0.125) * CFrame.Angles(math.pi/14+math.sin(angle)*1.5, 0, -math.sin(math.abs(angle))*0.3)
  514.                     lscf = lsc0 * CFrame.new(0, 0, math.sin(angle)*0.125) * CFrame.Angles(math.pi/14+math.sin(-angle)*1.5, 0, -math.sin(math.abs(angle))*0.3)
  515.                     rjcf = rootc0 * CFrame.new(0, math.abs(math.sin(angle))*.175 - .2, 0) * CFrame.Angles(math.abs(math.sin(angle))*0.055 + -math.pi/18, 0, math.rad(RotVelocityZ) + math.sin(angle)*.045)
  516.                     rlcf = rlc0 * CFrame.new(0, .3 + -math.cos(-angle)*.3, -.2+math.sin(angle)*0.25) * CFrame.Angles(-math.pi/18+math.sin(-angle)*1.3, 0, math.rad(.5))
  517.                     llcf = llc0 * CFrame.new(0, .3 - -math.cos(angle)*.3, -.05-math.sin(angle)*0.25) * CFrame.Angles(-math.pi/18+math.sin(angle)*1.3, 0, -math.rad(.5))
  518.             end
  519.             if tool then
  520.                 rscf = rsc0 * CFrame.Angles(math.pi/2, 0, 0)
  521.                 if slashing then
  522.                     rscf = rsc0
  523.                 end
  524.             end
  525.         end
  526.     if pa2.Parent == nil then
  527.     rm.C0 = clerp(rm.C0,rscf,speed)
  528.     end
  529.     if pa.Parent == nil then
  530.     lm.C0 = clerp(lm.C0,lscf,speed)
  531.     end
  532.     rj.C0 = clerp(rj.C0,rjcf,speed)
  533.     neck.C0 = clerp(neck.C0,ncf,speed)
  534.     rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  535.     llegm.C0 = clerp(llegm.C0,llcf,speed)
  536. end)
  537.  
  538.  
  539.  
  540. game:service'RunService'.RenderStepped:connect(function()
  541.     if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 225 then
  542.         TorsoSmoke.Enabled = true
  543.     else
  544.         TorsoSmoke.Enabled = false
  545.     end
  546.     local ray = Ray.new(rootpart.Position, Vector3.new(0, -7, 0))
  547.     local hitz, enz = workspace:FindPartOnRay(ray, char)
  548.     if hitz and hitz.CanCollide and pa.Parent ~= char and pa2.Parent ~= char then
  549.         bodygyro.Parent = nil
  550.         humanoid.PlatformStand = false
  551.     end
  552.     if pa.Parent ~= nil or Grapple1 then
  553.         local size = (ropeStart2.Position-pa.Position).magnitude
  554.             ropePA.Size = Vector3.new(.2, size, .2)
  555.             ropePA.CFrame = CFrame.new(ropeStart2.Position, pa.Position) * CFrame.Angles(math.pi/2, 0, 0) * CFrame.new(0, -size/2, 0)
  556.         lm.C0 = CFrame.new(Vector3.new(lsc0.x, lsc0.y, lsc0.z), torso.CFrame:pointToObjectSpace(pa.Position)) * CFrame.Angles(math.pi/2, 0, 0)
  557.     else
  558.         if not debounce and humanoid.PlatformStand then
  559.             lm.C0 = lsc0 * CFrame.Angles(-.15, 0, -.15)
  560.         end
  561.     end
  562.     if pa2.Parent ~= nil or Grapple2 then
  563.         local size = (ropeStart.Position-pa2.Position).magnitude
  564.             ropePA2.Size = Vector3.new(.2, size, .2)
  565.             ropePA2.CFrame = CFrame.new(ropeStart.Position, pa2.Position) * CFrame.Angles(math.pi/2, 0, 0) * CFrame.new(0, -size/2, 0)
  566.         rm.C0 = CFrame.new(Vector3.new(rsc0.x, rsc0.y, rsc0.z), torso.CFrame:pointToObjectSpace(pa2.Position)) * CFrame.Angles(math.pi/2, 0, 0)
  567.     else
  568.         if not debounce and humanoid.PlatformStand then
  569.             rm.C0 = rsc0 * CFrame.Angles(-.15, 0, .15)
  570.         end
  571.     end
  572.     if Grapple1 and Grapple1Hit.Parent == nil then
  573.         pcall(function() Gweld:remove() end)
  574.         pa.Parent = nil
  575.         Grapple1 = false
  576.         ro:Abort()
  577.     end
  578.     if Grapple2 and Grapple2Hit.Parent == nil then
  579.         pcall(function() Gweld2:remove() end)
  580.         pa2.Parent = nil
  581.         Grapple2 = false
  582.         ro2:Abort()
  583.     end
  584.     if Grapple1 and Grapple2 and (humanoid.PlatformStand or not hitz) then
  585.         local distance = (pa.Position-pa2.Position).magnitude
  586.         bodygyro.Parent = torso
  587.         torso.CFrame = CFrame.new(torso.Position, Vector3.new(camera.CoordinateFrame.x, camera.CoordinateFrame.y, camera.CoordinateFrame.z)) * CFrame.Angles(0, math.pi, 0)
  588.         bodygyro.cframe = CFrame.new(torso.Position, Vector3.new(camera.CoordinateFrame.x, camera.CoordinateFrame.y, camera.CoordinateFrame.z)) * CFrame.Angles(0, math.pi, 0)
  589.         pa3.Parent = char
  590.             if distance <= .5 then
  591.                 pa3.CFrame = pa.CFrame
  592.             elseif distance > .5 then
  593.                 pa3.CFrame = CFrame.new(pa.Position, pa2.Position) * CFrame.new(0, 0, -distance/2)
  594.             end
  595.         if not MidPointUsed then
  596.         ro3=Instance.new("RocketPropulsion",torso3)
  597.         ro3.Name = 'RockatPropoolsun3'
  598.         ro3.MaxSpeed=250
  599.         ro3.MaxThrust=16000
  600.         ro3.TurnP = 0
  601.         ro3.TurnD = 0
  602.         ro3.MaxTorque=Vector3.new(14e16,14e16,14e16)
  603.         if humanoid.PlatformStand or not hitz then
  604.             ro:Abort()
  605.             ro2:Abort()
  606.         end
  607.             ro3.Target = pa3
  608.             if humanoid.PlatformStand or not hitz then
  609.                 ro3:Fire()
  610.             end
  611.             MidPointUsed = true
  612.         end
  613.     elseif (not Grapple1 or not Grapple2) and MidPointUsed == true and (humanoid.PlatformStand or not hitz) then
  614.         pa3.Parent = nil
  615.         MidPointUsed = false
  616.         ro3:Abort()
  617.         ro3:Destroy()
  618.         if Grapple1 then
  619.             ro:Fire()
  620.         end
  621.         if Grapple2 then
  622.             ro2:Fire()
  623.         end
  624.     end
  625.     if not Grapple1 then
  626.         pcall(function() Gweld:remove() end)
  627.     end
  628.     if not Grapple2 then
  629.         pcall(function() Gweld2:remove() end)
  630.     end
  631.     if (Grapple1 or Grapple2) and not hitz then
  632.         bodygyro.Parent = torso
  633.         humanoid.PlatformStand = true
  634.         rlegm.Parent = torso
  635.         llegm.Parent = torso
  636.         lm.Parent = torso
  637.         rm.Parent = torso
  638.         rlegm.C0 = rlc0 * CFrame.new(0, .5, -.65) * CFrame.Angles(-math.pi/8, 0, .1)
  639.         llegm.C0 = llc0 * CFrame.new(0, .5, -.65) * CFrame.Angles(-math.pi/8, 0, -.1)
  640.     end
  641.     if (Grapple1 or Grapple2) and not hitz or humanoid.PlatformStand then
  642.         bodygyro.Parent = torso
  643.         bodygyro.cframe = CFrame.new(torso.Position, Vector3.new(camera.CoordinateFrame.x, camera.CoordinateFrame.y, camera.CoordinateFrame.z)) * CFrame.Angles(0, math.pi, 0)
  644.         rlegm.Parent = torso
  645.         llegm.Parent = torso
  646.         rlegm.C0 = rlc0 * CFrame.new(0, .5, -.65) * CFrame.Angles(-math.pi/8, 0, .1)
  647.         llegm.C0 = llc0 * CFrame.new(0, .5, -.65) * CFrame.Angles(-math.pi/8, 0, -.1)
  648.     end
  649. end)
  650.  
  651. z = Instance.new("Sound", torso)
  652. z.SoundId = "rbxassetid://813440633" -- Put Music ID Here.
  653. z.Looped = true
  654. z.Volume = 1
  655. wait(.1)
  656. z:Play()
  657.  
  658. Player = game:GetService("Players").LocalPlayer
  659. Character = Player.Character
  660. rarm = Character["Right Arm"]
  661. larm = Character["Left Arm"]
  662. vt = Vector3.new
  663. bc = BrickColor.new
  664. wit = bc("Magenta").Color
  665.  
  666. local prtr = Instance.new("Part",Character)
  667. prtr.Size = vt(0,0,0)
  668. prtr.CanCollide = false
  669. prtr.Transparency = 0.5
  670. prtr.Material = "Neon"
  671. prtr.BrickColor = bc("Magenta")
  672. local prtrl = Instance.new("Part",Character)
  673. prtrl.Size = vt(0,0,0)
  674. prtrl.CanCollide = false
  675. prtrl.Transparency = 0.5
  676. prtrl.Material = "Neon"
  677. prtrl.BrickColor = bc("Magenta")
  678. local eff = Instance.new("ParticleEmitter",prtr)
  679. eff.LightEmission = 30
  680. eff.Texture = "rbxassetid://348321827"
  681. eff.Color = ColorSequence.new(wit)
  682. eff.Size = NumberSequence.new(0.55,1)
  683. eff.Acceleration = vt(0,25,0)
  684. eff.Speed = NumberRange.new(5)
  685. eff.LockedToPart = false
  686. eff.Transparency = NumberSequence.new(0.95)
  687. eff.Lifetime = NumberRange.new(0.50)
  688. eff.Rate = 100000
  689. eff.VelocitySpread = 35
  690. local wld = Instance.new("Weld",Character)
  691. wld.Part0 = rarm
  692. wld.Part1 = prtr
  693. local wldl = Instance.new("Weld",Character)
  694. wldl.Part0 = rleg
  695. wldl.Part1 = prtrl
  696.  
  697. local prtr2 = Instance.new("Part",Character)
  698. prtr2.Size = vt(0,0,0)
  699. prtr2.CanCollide = false
  700. prtr2.Transparency = 0.5
  701. prtr2.Material = "Neon"
  702. prtr2.BrickColor = bc("Magenta")
  703. local prtrl2 = Instance.new("Part",Character)
  704. prtrl2.Size = vt(0,0,0)
  705. prtrl2.CanCollide = false
  706. prtrl2.Transparency = 0.5
  707. prtrl2.Material = "Neon"
  708. prtrl2.BrickColor = bc("Magenta")
  709. local eff2 = Instance.new("ParticleEmitter",prtr2)
  710. eff2.LightEmission = 30
  711. eff2.Texture = "rbxassetid://348321827"
  712. eff2.Color = ColorSequence.new(wit)
  713. eff2.Size = NumberSequence.new(0.55,1)
  714. eff2.Acceleration = vt(0,25,0)
  715. eff2.Speed = NumberRange.new(5)
  716. eff2.LockedToPart = false
  717. eff2.Transparency = NumberSequence.new(0.95)
  718. eff2.Lifetime = NumberRange.new(0.50)
  719. eff2.Rate = 100000
  720. eff2.VelocitySpread = 35
  721. local wld2 = Instance.new("Weld",Character)
  722. wld2.Part0 = larm
  723. wld2.Part1 = prtr2
  724. local wldl2 = Instance.new("Weld",Character)
  725. wldl2.Part0 = lleg
  726. wldl2.Part1 = prtrl2
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