Advertisement
Guest User

Spider-Man Web Shooters roblox script

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