zed_isJayTheLionJR

Dark Saitama test

Mar 4th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 79.71 KB | None | 0 0
  1. local isScriptNil = false
  2.  
  3. local PlrName = "PDoktor"
  4. local Plrs = game:GetService("Players")
  5. local RunService = game:GetService("RunService")
  6. local Content = game:GetService("ContentProvider")
  7. local LP = Plrs.LocalPlayer
  8. local Char = LP.Character
  9. local PlrGui = LP.PlayerGui
  10. local Backpack = LP.Backpack
  11. local Mouse = LP:GetMouse()
  12.  
  13. local Camera = Workspace.CurrentCamera
  14. local LastCamCF = Camera.CoordinateFrame
  15. local AnimJoints = {}
  16. local Cons = {}
  17. local mDown = false
  18. local Multi = false
  19. local Grabbing = false
  20. local Current = {}
  21. local Alpha = 1
  22. local LightNum = 1
  23.  
  24. Current.Part = nil
  25. Current.BP = nil
  26. Current.BA = nil
  27. Current.Mass = nil
  28.  
  29. local LastPart = nil
  30.  
  31. local Head = Char["Head"]
  32. local Torso = Char["Torso"]
  33. local Humanoid = Char["Humanoid"]
  34. local LA = Char["Left Arm"]
  35. local RA = Char["Right Arm"]
  36. local LL = Char["Left Leg"]
  37. local RL = Char["Right Leg"]
  38.  
  39. local LS, RS;
  40.  
  41. local OrigLS = Torso["Left Shoulder"]
  42. local OrigRS = Torso["Right Shoulder"]
  43.  
  44. for _,v in pairs(Char:GetChildren()) do
  45. if v.Name == ModID then
  46. v:Destroy()
  47. end
  48. end
  49.  
  50. for _,v in pairs(PlrGui:GetChildren()) do
  51. if v.Name == "PadsGui" then
  52. v:Destroy()
  53. end
  54. end
  55.  
  56. local ModID = "Pads"
  57. local Objects = {}
  58. local Grav = 196.2
  59.  
  60. local sin=math.sin
  61. local cos=math.cos
  62. local max=math.max
  63. local min=math.min
  64. local atan2=math.atan2
  65. local random=math.random
  66. local tau = 2 * math.pi
  67.  
  68. local BodyObjects = {
  69. ["BodyVelocity"] = true;
  70. ["BodyAngularVelocity"] = true;
  71. ["BodyForce"] = true;
  72. ["BodyThrust"] = true;
  73. ["BodyPosition"] = true;
  74. ["RocketPropulsion"] = true;
  75. }
  76.  
  77. if LP.Name == PlrName and isScriptNil then
  78. script.Parent = nil
  79. end
  80.  
  81. LP.CameraMode = "Classic"
  82.  
  83. local Assets = {
  84. }
  85.  
  86. local LS0, LS1 = OrigLS.C0, OrigLS.C1
  87. local RS0, RS1 = OrigRS.C0, OrigRS.C1
  88.  
  89. for i,v in pairs(Assets) do
  90. local ID = tostring(Assets[i])
  91. Assets[i] = "http://www.roblox.com/asset/?id=" .. ID
  92. Content:Preload("http://www.roblox.com/asset/?id=" .. ID)
  93. end
  94.  
  95. function QuaternionFromCFrame(cf)
  96. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components();
  97. local trace = m00 + m11 + m22 if trace > 0 then
  98. local s = math.sqrt(1 + trace);
  99. local recip = 0.5/s;
  100. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5;
  101. else
  102. local i = 0;
  103. if m11 > m00 then
  104. i = 1;
  105. end;
  106. if m22 > (i == 0 and m00 or m11) then
  107. i = 2 end if i == 0 then
  108. local s = math.sqrt(m00-m11-m22+1);
  109. local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip;
  110. elseif i == 1 then
  111. local s = math.sqrt(m11-m22-m00+1);
  112. local recip = 0.5/s;
  113. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip ;
  114. elseif i == 2 then
  115. local s = math.sqrt(m22-m00-m11+1);
  116. local recip = 0.5/s;
  117. return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip;
  118. end;
  119. end;
  120. end;
  121.  
  122. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  123. local xs, ys, zs = x + x, y + y, z + z;
  124. local wx, wy, wz = w*xs, w*ys, w*zs;
  125. local xx = x*xs;
  126. local xy = x*ys;
  127. local xz = x*zs;
  128. local yy = y*ys;
  129. local yz = y*zs;
  130. local zz = z*zs;
  131. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  132. end;
  133.  
  134. function QuaternionSlerp(a, b, t)
  135. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4];
  136. local startInterp, finishInterp;
  137. if cosTheta >= 0.0001 then
  138. if (1 - cosTheta) > 0.0001 then
  139. local theta = math.acos(cosTheta);
  140. local invSinTheta = 1/math.sin(theta);
  141. startInterp = math.sin((1-t)*theta)*invSinTheta;
  142. finishInterp = math.sin(t*theta)*invSinTheta;
  143. else
  144. startInterp = 1-t finishInterp = t;
  145. end;
  146. else
  147. if (1+cosTheta) > 0.0001 then
  148. local theta = math.acos(-cosTheta);
  149. local invSinTheta = 1/math.sin(theta);
  150. startInterp = math.sin((t-1)*theta)*invSinTheta;
  151. finishInterp = math.sin(t*theta)*invSinTheta;
  152. else startInterp = t-1 finishInterp = t;
  153. end;
  154. end;
  155. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp;
  156. end;
  157.  
  158. function CLerp(a,b,t)
  159. local qa={QuaternionFromCFrame(a)};
  160. local qb={QuaternionFromCFrame(b)};
  161. local ax,ay,az=a.x,a.y,a.z;
  162. local bx,by,bz=b.x,b.y,b.z;
  163. local _t=1-t;
  164. return QuaternionToCFrame(_t*ax+t*bx,_t*ay+t*by,_t*az+t*bz,QuaternionSlerp(qa, qb, t));
  165. end
  166.  
  167. function GetWeld(weld)
  168. local obj
  169. for i, v in pairs(AnimJoints) do
  170. if v[1] == weld then
  171. obj = v
  172. break
  173. end
  174. end
  175. if not obj then
  176. obj = {weld,NV}
  177. table.insert(AnimJoints,obj)
  178. end
  179. return weld.C0.p, obj[2]
  180. end
  181.  
  182. function SetWeld(weld, i, loops, origpos, origangle, nextpos, nextangle, override, overrideLower, smooth)
  183. smooth = smooth or 1
  184. local obj
  185. for i, v in pairs(AnimJoints) do
  186. if v[1] == weld then
  187. obj = v
  188. break
  189. end
  190. end
  191. if not obj then
  192. obj = {weld,NV}
  193. table.insert(AnimJoints,obj)
  194. end
  195.  
  196. local perc = (smooth == 1 and math.sin((math.pi/2)/loops*i)) or i/loops
  197.  
  198. local tox,toy,toz = 0,0,0
  199. tox = math.abs(origangle.x - nextangle.x) *perc
  200. toy = math.abs(origangle.y - nextangle.y) *perc
  201. toz = math.abs(origangle.z - nextangle.z) *perc
  202. tox = ((origangle.x > nextangle.x and -tox) or tox)
  203. toy = ((origangle.y > nextangle.y and -toy) or toy)
  204. toz = ((origangle.z > nextangle.z and -toz) or toz)
  205.  
  206. local tox2,toy2,toz2 = 0,0,0
  207. tox2 = math.abs(origpos.x - nextpos.x) *perc
  208. toy2 = math.abs(origpos.y - nextpos.y) *perc
  209. toz2 = math.abs(origpos.z - nextpos.z) *perc
  210. tox2 = (origpos.x > nextpos.x and -tox2) or tox2
  211. toy2 = (origpos.y > nextpos.y and -toy2) or toy2
  212. toz2 = (origpos.z > nextpos.z and -toz2) or toz2
  213.  
  214. obj[2] = Vector3.new(origangle.x + tox, origangle.y + toy, origangle.z + toz)
  215. weld.C0 = CFrame.new(origpos.x + tox2,origpos.y + toy2,origpos.z + toz2) * CFrame.Angles(origangle.x + tox,origangle.y + toy,origangle.z + toz)
  216. end
  217.  
  218. function RotateCamera(x, y)
  219. Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(x, y, 0) * CFrame.new(0, 0, (Camera.CoordinateFrame.p - Camera.Focus.p).magnitude)
  220. end
  221.  
  222. function GetAngles(cf)
  223. local lv = cf.lookVector
  224. return -math.asin(lv.y), math.atan2(lv.x, -lv.z)
  225. end
  226.  
  227. local LastCamCF = Camera.CoordinateFrame
  228.  
  229. function Look()
  230. if AlphaOn == true then
  231. local x, y = GetAngles(LastCamCF:toObjectSpace(Camera.CoordinateFrame))
  232. Camera.CoordinateFrame = LastCamCF
  233. RotateCamera(x * -(Alpha), y * -(Alpha))
  234. LastCamCF = Camera.CoordinateFrame
  235. end
  236. end
  237.  
  238. function Cor(Func)
  239. local Ok, Err = coroutine.resume(coroutine.create(Func))
  240. if not Ok then
  241. print(Err)
  242. end
  243. end
  244.  
  245. function Cor2(Func)
  246. local Ok, Err = ypcall(Func)
  247. if not Ok then
  248. print(Err)
  249. end
  250. end
  251.  
  252. function MakePads()
  253.  
  254. -- 2 - RBase
  255. P2 = Instance.new("Part")
  256. P2.CFrame = CFrame.new(Vector3.new(21.100008, 1.95000589, 11.899971)) * CFrame.Angles(-0, 0, -0)
  257. P2.FormFactor = Enum.FormFactor.Custom
  258. P2.Size = Vector3.new(0.799999952, 0.200000003, 0.800000012)
  259. P2.Anchored = true
  260. P2.BrickColor = BrickColor.new("White")
  261. P2.Friction = 0.30000001192093
  262. P2.Shape = Enum.PartType.Block
  263. P2.Name = "RBase"
  264. P2.Parent = P1
  265. P2.Transparency = 1
  266. -- 3 - Mesh
  267. P3 = Instance.new("CylinderMesh")
  268. P3.Scale = Vector3.new(1, 0.5, 1)
  269. P3.Parent = P2
  270.  
  271. -- 4 - LBase
  272. P4 = Instance.new("Part")
  273. P4.CFrame = CFrame.new(Vector3.new(18.100008, 1.95000589, 11.899971)) * CFrame.Angles(-0, 0, -0)
  274. P4.FormFactor = Enum.FormFactor.Custom
  275. P4.Size = Vector3.new(0.799999952, 0.200000003, 0.800000012)
  276. P4.Anchored = true
  277. P4.BrickColor = BrickColor.new("White")
  278. P4.Friction = 0.30000001192093
  279. P4.Shape = Enum.PartType.Block
  280. P4.Name = "LBase"
  281. P4.Parent = P1
  282. P4.Transparency = 1
  283. -- 5 - Mesh
  284. P5 = Instance.new("CylinderMesh")
  285. P5.Scale = Vector3.new(1, 0.5, 1)
  286. P5.Parent = P4
  287.  
  288. -- 7 - Mesh
  289. P7 = Instance.new("CylinderMesh")
  290. P7.Scale = Vector3.new(1, 0.5, 1)
  291. P7.Parent = P6
  292.  
  293.  
  294.  
  295. -- 9 - Mesh
  296. P9 = Instance.new("CylinderMesh")
  297. P9.Scale = Vector3.new(1, 0.5, 1)
  298. P9.Parent = P8
  299.  
  300.  
  301.  
  302. -- 11 - Mesh
  303. P11 = Instance.new("CylinderMesh")
  304. P11.Scale = Vector3.new(1, 0.5, 1)
  305. P11.Parent = P10
  306.  
  307.  
  308. -- 13 - Mesh
  309. P13 = Instance.new("CylinderMesh")
  310. P13.Scale = Vector3.new(1, 0.5, 1)
  311. P13.Parent = P12
  312.  
  313.  
  314. -- 15 - Mesh
  315. P15 = Instance.new("CylinderMesh")
  316. P15.Scale = Vector3.new(1, 0.5, 1)
  317. P15.Parent = P14
  318.  
  319. -- 17 - Mesh
  320. P17 = Instance.new("CylinderMesh")
  321. P17.Scale = Vector3.new(1, 0.5, 1)
  322. P17.Parent = P16
  323.  
  324. P1.Parent = LP.Character
  325. P1:MakeJoints()
  326. return P1
  327. end
  328.  
  329. weldModel = function(model, unanchor, rooty)
  330. local parts = {}
  331. local function recurse(object)
  332. if object:IsA("BasePart") then
  333. table.insert(parts, object)
  334. end
  335. for _,child in pairs(object:GetChildren()) do
  336. recurse(child)
  337. end
  338. end
  339. recurse(model)
  340.  
  341. local rootPart = rooty or parts[1]
  342. for _, part in pairs(parts) do
  343. local cframe = rootPart.CFrame:toObjectSpace(part.CFrame)
  344. local weld = Instance.new("Weld")
  345. weld.Part0 = rootPart
  346. weld.Part1 = part
  347. weld.C0 = cframe
  348. weld.Parent = rootPart
  349. end
  350.  
  351. if unanchor then
  352. for _, part in pairs(parts) do
  353. part.Anchored = false
  354. part.CanCollide = false
  355. end
  356. end
  357. end
  358.  
  359. weldItem = function(rootPart, Item, TheC0, unanchor, ParentItem)
  360. local cframe = TheC0 or rootPart.CFrame:toObjectSpace(Item.CFrame)
  361. local weld = Instance.new("Weld")
  362. weld.Name = "Weld"
  363. weld.Part0 = rootPart
  364. weld.Part1 = Item
  365. weld.C0 = cframe
  366. weld.Parent = ParentItem and Item or rootPart
  367.  
  368. if unanchor then
  369. Item.Anchored = false
  370. end
  371. return weld, cframe
  372. end
  373.  
  374. scaleModel = function(model, scale)
  375. local parts = {}
  376. local function recurse(object)
  377. if object:IsA("BasePart") then
  378. table.insert(parts, object)
  379. end
  380. for _,child in pairs(object:GetChildren()) do
  381. recurse(child)
  382. end
  383. end
  384. recurse(model)
  385.  
  386. local top, bottom, left, right, back, front
  387. for _, part in pairs(parts) do
  388. if top == nil or top < part.Position.y then top = part.Position.y end
  389. if bottom == nil or bottom > part.Position.y then bottom = part.Position.y end
  390. if left == nil or left > part.Position.x then left = part.Position.x end
  391. if right == nil or right < part.Position.x then right = part.Position.x end
  392. if back == nil or back > part.Position.z then back = part.Position.z end
  393. if front == nil or front < part.Position.z then front = part.Position.z end
  394. end
  395.  
  396. local middle = Vector3.new( left+right, top+bottom, back+front )/2
  397. local minSize = Vector3.new(0.2, 0.2, 0.2)
  398.  
  399. for _, part in pairs(parts) do
  400. local foo = part.CFrame.p - middle
  401. local rotation = part.CFrame - part.CFrame.p
  402. local newSize = part.Size*scale
  403. part.FormFactor = "Custom"
  404. part.Size = newSize
  405. part.CFrame = CFrame.new( middle + foo*scale ) * rotation
  406.  
  407. if newSize.x < minSize.x or newSize.y < minSize.y or newSize.z < minSize.z then
  408. local mesh
  409. for _, child in pairs(part:GetChildren()) do
  410. if child:IsA("DataModelMesh") then
  411. mesh = child
  412. break
  413. end
  414. end
  415.  
  416. if mesh == nil then
  417. mesh = Instance.new("BlockMesh", part)
  418. end
  419.  
  420. local oScale = mesh.Scale
  421. local newScale = newSize/minSize * oScale
  422. if 0.2 < newSize.x then newScale = Vector3.new(1 * oScale.x, newScale.y, newScale.z) end
  423. if 0.2 < newSize.y then newScale = Vector3.new(newScale.x, 1 * oScale.y, newScale.z) end
  424. if 0.2 < newSize.z then newScale = Vector3.new(newScale.x, newScale.y, 1 * oScale.z) end
  425.  
  426. mesh.Scale = newScale
  427. end
  428. end
  429. end
  430.  
  431. function getMass(Obj, Total)
  432. local newTotal = Total
  433. local returnTotal = 0
  434.  
  435. if Obj:IsA("BasePart") then
  436. newTotal = newTotal + Objects[Obj]
  437. elseif BodyObjects[Obj.ClassName] then
  438. Obj:Destroy()
  439. end
  440.  
  441. if Obj:GetChildren() and #Obj:GetChildren() > 0 then
  442. for _,v in pairs(Obj:GetChildren()) do
  443. returnTotal = returnTotal + getMass(v, newTotal)
  444. end
  445. else
  446. returnTotal = newTotal
  447. end
  448.  
  449. return returnTotal
  450. end
  451.  
  452. function getTargFromCurrent()
  453. local Current = Current.Part
  454. if Current:IsA("BasePart") then
  455. return Current
  456. elseif Current:findFirstChild("Torso") then
  457. return Current.Torso
  458. else
  459. for _,v in pairs(Current:GetChildren()) do
  460. if v:IsA("BasePart") then
  461. return v
  462. end
  463. end
  464. end
  465. end
  466.  
  467. function Fire(Part, Vec, Inv)
  468. pcall(function()
  469. Current.BP:Destroy()
  470. Current.BP = nil
  471. end)
  472. pcall(function()
  473. Current.BA:Destroy()
  474. Current.BA = nil
  475. end)
  476. pcall(function()
  477. if Inv then
  478. Part.Velocity = -((Vec - Torso.Position).unit * Grav * 1.1)
  479. else
  480. Part.Velocity = ((Vec - Camera.CoordinateFrame.p).unit * Grav * 1.1)
  481. end
  482. Current.Mass = nil
  483. end)
  484. Reset()
  485. end
  486.  
  487. function Reset()
  488. LS.Parent = nil
  489. RS.Parent = nil
  490.  
  491. OrigLS.Parent = Torso
  492. OrigRS.Parent = Torso
  493.  
  494. OrigLS.C0 = LS0
  495. OrigRS.C0 = RS0
  496. end
  497.  
  498. function Start()
  499. Cor(function()
  500. repeat wait(1/30) until LP.Character and LP.Character.Parent == Workspace and LP.Character:findFirstChild("Torso")
  501. Char = LP.Character
  502. PlrGui = LP.PlayerGui
  503. Backpack = LP.Backpack
  504. Mouse = LP:GetMouse()
  505.  
  506. for _,v in pairs(Cons) do
  507. v:disconnect()
  508. end
  509. Cons = {}
  510.  
  511. Camera = Workspace.CurrentCamera
  512. LastCamCF = Camera.CoordinateFrame
  513. AnimJoints = {}
  514. mDown = false
  515. Multi = false
  516. Grabbing = false
  517. Current = {}
  518. Alpha = 1
  519.  
  520. Head = Char["Head"]
  521. Torso = Char["Torso"]
  522. Humanoid = Char["Humanoid"]
  523. LA = Char["Left Arm"]
  524. RA = Char["Right Arm"]
  525. LL = Char["Left Leg"]
  526. RL = Char["Right Leg"]
  527.  
  528. OrigLS = Torso["Left Shoulder"]
  529. OrigRS = Torso["Right Shoulder"]
  530.  
  531. for _,v in pairs(Char:GetChildren()) do
  532. if v.Name == ModID then
  533. v:Destroy()
  534. end
  535. end
  536.  
  537. for _,v in pairs(PlrGui:GetChildren()) do
  538. if v.Name == "PadsGui" then
  539. v:Destroy()
  540. end
  541. end
  542.  
  543. LS = Instance.new("Weld")
  544. RS = Instance.new("Weld")
  545.  
  546. LS.Name = OrigLS.Name
  547. LS.Part0 = Torso
  548. LS.Part1 = LA
  549. LS.C0 = LS0
  550. LS.C1 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 0, 1, 0, -1, 0)
  551.  
  552. RS.Name = OrigRS.Name
  553. RS.Part0 = Torso
  554. RS.Part1 = RA
  555. RS.C0 = RS0
  556. RS.C1 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 0, 1, 0, -1, 0)
  557.  
  558. local Pads = MakePads()
  559. local LPad = Pads.LBase
  560. local RPad = Pads.RBase
  561.  
  562. weldModel(LPad, true, LPad)
  563. weldModel(RPad, true, RPad)
  564.  
  565. local GripWeldL = Instance.new("Weld")
  566. GripWeldL.Name = "GripWeldL"
  567. GripWeldL.Part0 = LA
  568. GripWeldL.Part1 = LPad
  569. GripWeldL.C0 = CFrame.new(0, -1.05, 0) * CFrame.Angles(0, math.rad(180), 0)
  570. GripWeldL.Parent = LA
  571.  
  572. local GripWeldR = Instance.new("Weld")
  573. GripWeldR.Name = "GripWeldR"
  574. GripWeldR.Part0 = RA
  575. GripWeldR.Part1 = RPad
  576. GripWeldR.C0 = CFrame.new(0, -1.05, 0) * CFrame.Angles(0, math.rad(180), 0)
  577. GripWeldR.Parent = RA
  578.  
  579. local isParts = false
  580.  
  581. table.insert(Cons, Mouse.KeyDown:connect(function(Key)
  582. Key = Key:lower()
  583. if Key == "z" then
  584. --Stuff
  585. elseif Key == "f" then
  586. local Current = Current.Part
  587. if Current and Current.Parent ~= nil and not Multi then
  588. Current:BreakJoints()
  589. end
  590. elseif Key == "q" then
  591. if isParts then
  592. isParts = false
  593. for _,v in pairs(Workspace:GetChildren()) do
  594. if v.Name == "MyPartV" and v:IsA("BasePart") then
  595. v:Destroy()
  596. end
  597. end
  598. else
  599. isParts = true
  600. for i = 1, 50 do
  601. local Part = Instance.new("Part")
  602. Part.Color = Color3.new(math.random(), math.random(), math.random())
  603. Part.Transparency = 0
  604. Part.Size = Vector3.new(math.random(1, 3), math.random(1, 3), math.random(1, 3))
  605. Part.Archivable = true
  606. Part.CanCollide = false
  607. Part.Material = "Neon"
  608. Part.Locked = false
  609. Part.CFrame = Torso.CFrame * CFrame.new(math.random(-15, 15), -1, math.random(-15, 15))
  610. Part.Anchored = true
  611. Part.Name = "MyPartV"
  612. Part.TopSurface = "Smooth"
  613. Part.BottomSurface = "Smooth"
  614. Part.Parent = Workspace
  615. end
  616. end
  617. elseif Key == "e" then
  618. local Targ;
  619. if Current.Part and Current.Part ~= nil then
  620. Targ = getTargFromCurrent()
  621. else
  622. Targ = LastPart
  623. end
  624. if Targ and Targ.Parent ~= nil and not Multi then
  625. local Ex = Instance.new("Explosion", Workspace)
  626. Ex.Position = Targ.CFrame.p
  627. Ex.BlastRadius = 16
  628. Ex.DestroyJointRadiusPercent = 0.5
  629. end
  630. elseif Key == "c" then
  631. if Current.Part and Current.Part.Parent ~= nil and not Multi then
  632. local Part = getTargFromCurrent()
  633. if Part then
  634. Grabbing = false
  635. if Mouse.Hit then
  636. local TargPos = CFrame.new(Camera.CoordinateFrame.p, Mouse.Hit.p) * CFrame.new(0, 0, -1000)
  637. Fire(Part, TargPos.p)
  638. else
  639. Fire(Part, Mouse.Origin.p + Mouse.UnitRay.Direction, true)
  640. end
  641. end
  642. end
  643. end
  644. end))
  645.  
  646. table.insert(Cons, Mouse.Button1Up:connect(function()
  647. mDown = false
  648. if Grabbing == true and Multi == false then
  649. Grabbing = false
  650. Reset()
  651. end
  652. if Current.Part ~= nil then
  653. LastPart = getTargFromCurrent()
  654. Current = {}
  655. end
  656. end))
  657.  
  658. local function makeLightning(Par, Start, End, Width, Length, RandomScale, ArcScale, Num1)
  659. local oldParts = {}
  660. for _,v in pairs(Par:GetChildren()) do
  661. v.CFrame = CFrame.new(5e5, 5e5, 5e5)
  662. table.insert(oldParts, v)
  663. end
  664. local Distance = (Start-End).Magnitude
  665. local ArcScale = ArcScale or 1
  666. local RandomScale = RandomScale or 0
  667. local Last = Start
  668. local IterNum = 0
  669.  
  670. while Par.Parent do
  671. IterNum = IterNum + 1
  672. local New = nil
  673. if (Last-End).Magnitude < Length then
  674. New = CFrame.new(End)
  675. else
  676. if (End-Last).Magnitude < Length*2 then
  677. RandomScale = RandomScale*0.5
  678. ArcScale = ArcScale*0.5
  679. end
  680. local Direct = CFrame.new(Last,End)
  681. New = Direct*CFrame.Angles(math.rad(math.random(-RandomScale/4,RandomScale*ArcScale)),math.rad(math.random(-RandomScale,RandomScale)),math.rad(math.random(-RandomScale,RandomScale)))
  682. New = New*CFrame.new(0,0,-Length)
  683. end
  684. local Trail = nil
  685. if oldParts[IterNum] then
  686. Trail = oldParts[IterNum]
  687. Trail.BrickColor = ((Num1 % 2 == 0) and BrickColor.new("White")) or BrickColor.new("Cyan")
  688. Trail.Size = Vector3.new(Width, (Last-New.p).Magnitude, Width)
  689. Trail.CFrame = CFrame.new(New.p, Last)*CFrame.Angles(math.rad(90),0,0)*CFrame.new(0, -(Last-New.p).Magnitude/2, 0)
  690. oldParts[IterNum] = nil
  691. else
  692. Trail = Instance.new("Part")
  693. Trail.Name = "Part"
  694. Trail.FormFactor = "Custom"
  695. Trail.BrickColor = ((Num1 % 2 == 0) and BrickColor.new("White")) or BrickColor.new("White")
  696. Trail.Transparency = 0
  697. Trail.Anchored = true
  698. Trail.CanCollide = false
  699. Trail.Locked = true
  700. Trail.BackSurface = "SmoothNoOutlines"
  701. Trail.BottomSurface = "SmoothNoOutlines"
  702. Trail.FrontSurface = "SmoothNoOutlines"
  703. Trail.LeftSurface = "SmoothNoOutlines"
  704. Trail.RightSurface = "SmoothNoOutlines"
  705. Trail.TopSurface = "SmoothNoOutlines"
  706. Trail.Material = "Neon"
  707. Trail.Size = Vector3.new(Width, (Last-New.p).Magnitude, Width)
  708. Trail.CFrame = CFrame.new(New.p, Last)*CFrame.Angles(math.rad(90),0,0)*CFrame.new(0, -(Last-New.p).Magnitude/2, 0)
  709. Trail.Parent = Par
  710. end
  711. Last = New.p
  712. if (Last-End).Magnitude < 1 then
  713. break
  714. end
  715. end
  716. for _,v in pairs(oldParts) do
  717. v:Destroy()
  718. end
  719. end
  720.  
  721. table.insert(Cons, Mouse.Button1Down:connect(function()
  722. mDown = true
  723. local Targ = Mouse.Target
  724. Cor(function()
  725. if Targ and Objects[Targ] and not Multi then
  726. Grabbing = true
  727. Current.Part = Targ
  728. local Mass = Objects[Targ]
  729. local ForceNum = 0
  730. local Hum = nil
  731.  
  732. for _,v in pairs(Targ:GetChildren()) do
  733. if BodyObjects[v.ClassName] then
  734. v:Destroy()
  735. end
  736. end
  737.  
  738. for _,v in pairs(Workspace:GetChildren()) do
  739. if v:findFirstChild("Humanoid") and v:IsAncestorOf(Targ) then
  740. Hum = v.Humanoid
  741. Mass = getMass(v, 0)
  742. Current.Part = v
  743. break
  744. end
  745. end
  746.  
  747. Current.Mass = Mass
  748.  
  749. if not Hum then
  750. Targ:BreakJoints()
  751. end
  752.  
  753. ForceNum = Mass * Grav
  754. Targ.CanCollide = true
  755. Targ.Anchored = false
  756.  
  757. local BP = Instance.new("BodyPosition")
  758. BP.maxForce = Vector3.new(3 * ForceNum, 3 * ForceNum, 3 * ForceNum)
  759. BP.Parent = Targ
  760.  
  761. local Ang = Instance.new("BodyAngularVelocity")
  762. Ang.Parent = Targ
  763.  
  764. Current.BP = BP
  765. Current.BA = Ang
  766.  
  767. OrigLS.Parent = nil
  768. OrigRS.Parent = nil
  769.  
  770. LS.Parent = Torso
  771. RS.Parent = Torso
  772.  
  773. LS.C0 = LS0
  774. RS.C0 = RS0
  775.  
  776. local DirDot = Mouse.UnitRay.Direction:Dot(Targ.Position - Mouse.Origin.p)
  777. local BPPos = Vector3.new(0, 0, 0)
  778. local Vel = Vector3.new(0, 0, 0)
  779. local Vlev = random() * math.pi
  780. local RPos = Vector3.new(random() * 2 - 1, cos(Vlev), random() * 2 - 1)
  781.  
  782. local Ball = Instance.new("Part")
  783. Ball.Name = "Ball"
  784. Ball.FormFactor = "Custom"
  785. Ball.Color = Color3.new(0, 1, 1)
  786. Ball.Transparency = 0.3
  787. Ball.Anchored = true
  788. Ball.CanCollide = false
  789. Ball.Locked = true
  790. Ball.BottomSurface, Ball.TopSurface = "Smooth", "Smooth"
  791. Ball.Size = Vector3.new(0.5, 0.5, 0.5)
  792. Ball.CFrame = Torso.CFrame * CFrame.new(0, 1, -3)
  793. Ball.Parent = Char
  794.  
  795. if Targ.Name == "MyPartV" then
  796. Targ.Name = "MyPartF"
  797. end
  798.  
  799. local LightMod = Instance.new("Model", Char)
  800.  
  801. local Mesh = Instance.new("SpecialMesh")
  802. Mesh.MeshType = "Sphere"
  803. Mesh.Parent = Ball
  804.  
  805. local Size = 0.5
  806. local Rise = true
  807.  
  808. while Grabbing and BP and Ang and Targ.Parent ~= nil do
  809. local BPPos = Mouse.Origin.p + Mouse.UnitRay.Direction * DirDot
  810. Ang.angularvelocity = Vel
  811. BP.position = BPPos + RPos
  812. RPos = Vector3.new(max(-1, min(RPos.x + random() * 0.02 - 0.01, 1)), cos(Vlev), max(-1, min(RPos.z + random() * 0.02 - 0.01, 1)))
  813. Vel = Vector3.new(max(-1, min(Vel.x + random() * 0.2 - 0.1, 1)), max(-1, min(Vel.y + random() * 0.2 - 0.1, 1)), max(-1, min(Vel.z + random() * 0.2 - 0.1, 1)))
  814. Vlev = (Vlev + 0.05) % tau
  815.  
  816. if Hum then
  817. Hum.Sit = true
  818. end
  819.  
  820. if LA.Parent ~= nil and RA.Parent ~= nil then
  821. local LPos = (LA.CFrame * CFrame.new(0, -1, 0)).p
  822. local RPos = (RA.CFrame * CFrame.new(0, -1, 0)).p
  823. if Rise == true then
  824. if Size < 0.6 then
  825. Size = Size + 0.05
  826. else
  827. Size = Size + 0.1
  828. end
  829. if Size >= 2.2 then
  830. Rise = false
  831. end
  832. else
  833. if Size > 2.1 then
  834. Size = Size - 0.05
  835. else
  836. Size = Size - 0.1
  837. end
  838. if Size <= 0.5 then
  839. Rise = true
  840. end
  841. end
  842. Ball.Size = Vector3.new(Size, Size, Size)
  843. Ball.CFrame = CFrame.new(LPos:Lerp(RPos, 0.5), Targ.Position) * CFrame.new(0, 0, -2.2)
  844. LightNum = LightNum + 1
  845. makeLightning(LightMod, Ball.Position, Targ.Position, 0.2, 4, 50, 1, LightNum)
  846. elseif Ball.Parent ~= nil then
  847. Ball:Destroy()
  848. end
  849.  
  850. if LS and LS.Parent == Torso then
  851. LS.C0 = CFrame.new(Vector3.new(-1.5, 0.5, 0), Torso.CFrame:pointToObjectSpace((Targ.CFrame or Torso.CFrame * CFrame.new(-1.5, 0.5, 1)).p))
  852. end
  853. if RS and RS.Parent == Torso then
  854. RS.C0 = CFrame.new(Vector3.new(1.5, 0.5, 0), Torso.CFrame:pointToObjectSpace((Targ.CFrame or Torso.CFrame * CFrame.new(1.5, 0.5, 1)).p))
  855. end
  856. RunService.Heartbeat:wait()
  857. end
  858.  
  859. coroutine.resume(coroutine.create(function()
  860. for i = 0.5, 1, 0.1 do
  861. for i2,v in pairs(LightMod:GetChildren()) do
  862. --v.Light.Range = 6-(i*5)
  863. v.Transparency = i
  864. end
  865. wait(1/30)
  866. end
  867. LightMod:Destroy()
  868. end))
  869.  
  870. if BP and BP.Parent ~= nil then
  871. BP:Destroy()
  872. end
  873.  
  874. if Ang and Ang.Parent ~= nil then
  875. Ang:Destroy()
  876. end
  877.  
  878. pcall(function() Ball:Destroy() end)
  879. end
  880. end)
  881. end))
  882. end)
  883. end
  884.  
  885. function Add(Obj)
  886. if Obj:IsA("BasePart") and not Objects[Obj] and not (Obj.Name == "Base" and Obj.ClassName == "Part") then
  887. Objects[Obj] = Obj:GetMass()
  888. Obj.Changed:connect(function(P)
  889. if P:lower() == "size" and Objects[Obj] and Obj.Parent ~= nil then
  890. Objects[Obj] = Obj:GetMass()
  891. end
  892. end)
  893. end
  894. end
  895.  
  896. function Rem(Obj)
  897. if Objects[Obj] then
  898. Objects[Obj] = nil
  899. end
  900. end
  901.  
  902. function Recursion(Obj)
  903. ypcall(function()
  904. Add(Obj)
  905. if #Obj:GetChildren() > 0 then
  906. for _,v in pairs(Obj:GetChildren()) do
  907. Recursion(v)
  908. end
  909. end
  910. end)
  911. end
  912.  
  913. Workspace.DescendantAdded:connect(function(Obj)
  914. Add(Obj)
  915. end)
  916.  
  917. Workspace.DescendantRemoving:connect(function(Obj)
  918. Rem(Obj)
  919. end)
  920.  
  921. for _,v in pairs(Workspace:GetChildren()) do
  922. Recursion(v)
  923. end
  924.  
  925. Start()
  926.  
  927. if LP.Name == PlrName then
  928. LP.CharacterAdded:connect(Start)
  929. end
  930.  
  931. local verlet = {}
  932. verlet.step_time = 1 / 50
  933. verlet.gravity = Vector3.new(0, -10, 0)
  934.  
  935. local char = game.Players.LocalPlayer.Character
  936. local torso = char:WaitForChild("Torso")
  937. local parts = {}
  938. local render = game:GetService("RunService").RenderStepped
  939.  
  940. wait(2)
  941.  
  942. local point = {}
  943. local link = {}
  944. local rope = {}
  945.  
  946. local function ccw(A,B,C)
  947. return (C.y-A.y) * (B.x-A.x) > (B.y-A.y) * (C.x-A.x)
  948. end
  949.  
  950. local function intersect(A,B,C,D)
  951. return ccw(A,C,D) ~= ccw(B,C,D) and ccw(A,B,C) ~= ccw(A,B,D)
  952. end
  953.  
  954. local function vec2(v)
  955. return Vector2.new(v.x, v.z)
  956. end
  957.  
  958. function point:step()
  959. if not self.fixed then
  960. local derivative = (self.position - self.last_position) * 0.95
  961. self.last_position = self.position
  962. self.position = self.position + derivative + (self.velocity * verlet.step_time ^ 2)
  963. --[[local torsoP = torso.CFrame * CFrame.new(-1, 0, 0.5)
  964. local torsoE = torso.CFrame * CFrame.new(1, 0, 0.5)
  965. local pointE = self.position + torso.CFrame.lookVector * 100
  966. local doIntersect = intersect(vec2(torsoP.p), vec2(torsoE.p), vec2(self.position), vec2(pointE))
  967. if not doIntersect then
  968. self.postition = self.position - torso.CFrame.lookVector * 10
  969. end]]
  970. end
  971. end
  972.  
  973. function link:step()
  974. for i = 1, 1 do
  975. local distance = self.point1.position - self.point2.position
  976. local magnitude = distance.magnitude
  977. local differance = (self.length - magnitude) / magnitude
  978. local translation = ((self.point1.fixed or self.point2.fixed) and 1 or 0.6) * distance * differance
  979. if not self.point1.fixed then
  980. self.point1.position = self.point1.position + translation
  981. end
  982. if not self.point2.fixed then
  983. self.point2.position = self.point2.position - translation
  984. end
  985. end
  986. end
  987.  
  988. function verlet.new(class, a, b, c)
  989. if class == "Point" then
  990. local new = {}
  991. setmetatable(new, {__index = point})
  992. new.class = class
  993. new.position = a or Vector3.new()
  994. new.last_position = new.position
  995. new.velocity = verlet.gravity
  996. new.fixed = false
  997. return new
  998. elseif class == "Link" then
  999. local new = {}
  1000. setmetatable(new, {__index = link})
  1001. new.class = class
  1002. new.point1 = a
  1003. new.point2 = b
  1004. new.length = c or (a.position - b.position).magnitude
  1005. return new
  1006. elseif class == "Rope" then
  1007. local new = {}
  1008. setmetatable(new, {__index = link})
  1009. new.class = class
  1010. new.start_point = a
  1011. new.finish_point = b
  1012. new.points = {}
  1013. new.links = {}
  1014. local inc = (b - a) / 10
  1015. for i = 0, 10 do
  1016. table.insert(new.points, verlet.new("Point", a + (i * inc)))
  1017. end
  1018. for i = 2, #new.points do
  1019. table.insert(new.links, verlet.new("Link", new.points[i - 1], new.points[i]))
  1020. end
  1021. return new
  1022. end
  1023. end
  1024.  
  1025. local tris = {}
  1026. local triParts = {}
  1027.  
  1028. local function GetDiscoColor(hue)
  1029. local section = hue % 1 * 3
  1030. local secondary = 0.5 * math.pi * (section % 1)
  1031. if section < 1 then
  1032. return Color3.new(0, 0, 0)
  1033. elseif section < 2 then
  1034. return Color3.new(0, 0, 0)
  1035. else
  1036. return Color3.new(0, 0, 0)
  1037. end
  1038. end
  1039.  
  1040. local function setupPart(part)
  1041. part.Anchored = true
  1042. part.FormFactor = 3
  1043. part.CanCollide = false
  1044. part.TopSurface = 10
  1045. part.BottomSurface = 10
  1046. part.LeftSurface = 10
  1047. part.RightSurface = 10
  1048. part.FrontSurface = 10
  1049. part.BackSurface = 10
  1050. part.Material = "Neon"
  1051. local m = Instance.new("SpecialMesh", part)
  1052. m.MeshType = "Wedge"
  1053. m.Scale = Vector3.new(0.2, 1, 1)
  1054. return part
  1055. end
  1056.  
  1057. local function CFrameFromTopBack(at, top, back)
  1058. local right = top:Cross(back)
  1059. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  1060. end
  1061.  
  1062. local function drawTri(parent, a, b, c)
  1063. local this = {}
  1064. local mPart1 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
  1065. local mPart2 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
  1066. function this:Set(a, b, c)
  1067. local ab, bc, ca = b-a, c-b, a-c
  1068. local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude
  1069. local edg1 = math.abs(0.5 + ca:Dot(ab)/(abm*abm))
  1070. local edg2 = math.abs(0.5 + ab:Dot(bc)/(bcm*bcm))
  1071. local edg3 = math.abs(0.5 + bc:Dot(ca)/(cam*cam))
  1072. if edg1 < edg2 then
  1073. if edg1 >= edg3 then
  1074. a, b, c = c, a, b
  1075. ab, bc, ca = ca, ab, bc
  1076. abm = cam
  1077. end
  1078. else
  1079. if edg2 < edg3 then
  1080. a, b, c = b, c, a
  1081. ab, bc, ca = bc, ca, ab
  1082. abm = bcm
  1083. else
  1084. a, b, c = c, a, b
  1085. ab, bc, ca = ca, ab, bc
  1086. abm = cam
  1087. end
  1088. end
  1089.  
  1090. local len1 = -ca:Dot(ab)/abm
  1091. local len2 = abm - len1
  1092. local width = (ca + ab.unit*len1).magnitude
  1093.  
  1094. local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit)
  1095.  
  1096. if len1 > 0.2 then
  1097. mPart1.Parent = parent
  1098. mPart1.Size = Vector3.new(0.2, width, len1)
  1099. mPart1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1100. else
  1101. mPart1.Parent = nil
  1102. end
  1103.  
  1104. if len2 > 0.2 then
  1105. mPart2.Parent = parent
  1106. mPart2.Size = Vector3.new(0.2, width, len2)
  1107. mPart2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1108. else
  1109. mPart2.Parent = nil
  1110. end
  1111. end
  1112. function this:SetProperty(prop, value)
  1113. mPart1[prop] = value
  1114. mPart2[prop] = value
  1115. end
  1116. this:Set(a, b, c)
  1117. function this:Destroy()
  1118. mPart1:Destroy()
  1119. mPart2:Destroy()
  1120. end
  1121. this.p1 = mPart1
  1122. this.p2 = mPart2
  1123. this.p1.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p1.CFrame.Y * 0.5 + time())))
  1124. this.p2.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p2.CFrame.Y * 0.5 + time())))
  1125. return this
  1126. end
  1127.  
  1128. function verlet.draw(object, id)
  1129. if object.class == "Point" then
  1130. local part = parts[id]
  1131. part.BrickColor = BrickColor.new(107, 0, 107)
  1132. part.Transparency = 0
  1133. part.formFactor = 3
  1134. part.Anchored = true
  1135. part.CanCollide = false
  1136. part.TopSurface = 0
  1137. part.BottomSurface = 0
  1138. part.Size = Vector3.new(0.35, 0.35, 0.35)
  1139. part.Material = "Neon"
  1140. part.CFrame = CFrame.new(object.position)
  1141. part.Parent = torso
  1142. return part
  1143. elseif object.class == "Link" then
  1144. local part = parts[id]
  1145. local dist = (object.point1.position - object.point2.position).magnitude
  1146. part.Size = Vector3.new(0.2, 0.2, dist)
  1147. part.CFrame = CFrame.new(object.point1.position, object.point2.position) * CFrame.new(0, 0, dist * -0.5)
  1148. part.Parent = torso
  1149. return part
  1150. end
  1151. end
  1152.  
  1153. function verlet.clear()
  1154. for _, v in pairs(workspace:GetChildren()) do
  1155. if v.Name == "Part" then
  1156. v:Destroy()
  1157. end
  1158. end
  1159. end
  1160.  
  1161. local points = {}
  1162. local links = {}
  1163.  
  1164. for x = 0, 2 do
  1165. points[x] = {}
  1166. for y = 0, 3 do
  1167. points[x][y] = verlet.new("Point", torso.Position + Vector3.new(x * 0.8 - 2, 2 - y * 0.8, 5 + y * 0.4))
  1168. points[x][y].fixed = y == 0
  1169. end
  1170. end
  1171.  
  1172. for x = 1, 2 do
  1173. for y = 0, 3 do
  1174. links[#links + 1] = verlet.new("Link", points[x][y], points[x - 1][y], 1 + y * 0.08)
  1175. end
  1176. end
  1177.  
  1178. for x = 0, 2 do
  1179. for y = 1, 3 do
  1180. links[#links + 1] = verlet.new("Link", points[x][y], points[x][y - 1], 1.2 + y * 0.03)
  1181. end
  1182. end
  1183.  
  1184. render:connect(function()
  1185. for x = 0, 2 do
  1186. for y = 0, 3 do
  1187. if y == 0 then
  1188. points[x][y].position = (torso.CFrame * CFrame.new(x * 1 - 1, 1, 0.5)).p
  1189. else
  1190. points[x][y]:step()
  1191. end
  1192. end
  1193. end
  1194. for i = 1, #links do
  1195. links[i]:step()
  1196. end
  1197. for i = 1, #tris do
  1198. triParts[#triParts + 1] = tris[i].p1
  1199. triParts[#triParts + 1] = tris[i].p2
  1200. end
  1201. tris = {}
  1202. for x = 1, 2 do
  1203. for y = 1, 3 do
  1204. tris[#tris + 1] = drawTri(torso, points[x - 1][y - 1].position, points[x - 1][y].position, points[x][y - 1].position)
  1205. tris[#tris + 1] = drawTri(torso, points[x][y].position, points[x - 1][y].position, points[x][y - 1].position)
  1206. end
  1207. end
  1208. end)local isScriptNil = false
  1209.  
  1210. local PlrName = "PDoktor"
  1211. local Plrs = game:GetService("Players")
  1212. local RunService = game:GetService("RunService")
  1213. local Content = game:GetService("ContentProvider")
  1214. local LP = Plrs.LocalPlayer
  1215. local Char = LP.Character
  1216. local PlrGui = LP.PlayerGui
  1217. local Backpack = LP.Backpack
  1218. local Mouse = LP:GetMouse()
  1219.  
  1220. local Camera = Workspace.CurrentCamera
  1221. local LastCamCF = Camera.CoordinateFrame
  1222. local AnimJoints = {}
  1223. local Cons = {}
  1224. local mDown = false
  1225. local Multi = false
  1226. local Grabbing = false
  1227. local Current = {}
  1228. local Alpha = 1
  1229. local LightNum = 1
  1230.  
  1231. Current.Part = nil
  1232. Current.BP = nil
  1233. Current.BA = nil
  1234. Current.Mass = nil
  1235.  
  1236. local LastPart = nil
  1237.  
  1238. local Head = Char["Head"]
  1239. local Torso = Char["Torso"]
  1240. local Humanoid = Char["Humanoid"]
  1241. local LA = Char["Left Arm"]
  1242. local RA = Char["Right Arm"]
  1243. local LL = Char["Left Leg"]
  1244. local RL = Char["Right Leg"]
  1245.  
  1246. local LS, RS;
  1247.  
  1248. local OrigLS = Torso["Left Shoulder"]
  1249. local OrigRS = Torso["Right Shoulder"]
  1250.  
  1251. for _,v in pairs(Char:GetChildren()) do
  1252. if v.Name == ModID then
  1253. v:Destroy()
  1254. end
  1255. end
  1256.  
  1257. for _,v in pairs(PlrGui:GetChildren()) do
  1258. if v.Name == "PadsGui" then
  1259. v:Destroy()
  1260. end
  1261. end
  1262.  
  1263. local ModID = "Pads"
  1264. local Objects = {}
  1265. local Grav = 196.2
  1266.  
  1267. local sin=math.sin
  1268. local cos=math.cos
  1269. local max=math.max
  1270. local min=math.min
  1271. local atan2=math.atan2
  1272. local random=math.random
  1273. local tau = 2 * math.pi
  1274.  
  1275. local BodyObjects = {
  1276. ["BodyVelocity"] = true;
  1277. ["BodyAngularVelocity"] = true;
  1278. ["BodyForce"] = true;
  1279. ["BodyThrust"] = true;
  1280. ["BodyPosition"] = true;
  1281. ["RocketPropulsion"] = true;
  1282. }
  1283.  
  1284. if LP.Name == PlrName and isScriptNil then
  1285. script.Parent = nil
  1286. end
  1287.  
  1288. LP.CameraMode = "Classic"
  1289.  
  1290. local Assets = {
  1291. }
  1292.  
  1293. local LS0, LS1 = OrigLS.C0, OrigLS.C1
  1294. local RS0, RS1 = OrigRS.C0, OrigRS.C1
  1295.  
  1296. for i,v in pairs(Assets) do
  1297. local ID = tostring(Assets[i])
  1298. Assets[i] = "http://www.roblox.com/asset/?id=" .. ID
  1299. Content:Preload("http://www.roblox.com/asset/?id=" .. ID)
  1300. end
  1301.  
  1302. function QuaternionFromCFrame(cf)
  1303. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components();
  1304. local trace = m00 + m11 + m22 if trace > 0 then
  1305. local s = math.sqrt(1 + trace);
  1306. local recip = 0.5/s;
  1307. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5;
  1308. else
  1309. local i = 0;
  1310. if m11 > m00 then
  1311. i = 1;
  1312. end;
  1313. if m22 > (i == 0 and m00 or m11) then
  1314. i = 2 end if i == 0 then
  1315. local s = math.sqrt(m00-m11-m22+1);
  1316. local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip;
  1317. elseif i == 1 then
  1318. local s = math.sqrt(m11-m22-m00+1);
  1319. local recip = 0.5/s;
  1320. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip ;
  1321. elseif i == 2 then
  1322. local s = math.sqrt(m22-m00-m11+1);
  1323. local recip = 0.5/s;
  1324. return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip;
  1325. end;
  1326. end;
  1327. end;
  1328.  
  1329. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1330. local xs, ys, zs = x + x, y + y, z + z;
  1331. local wx, wy, wz = w*xs, w*ys, w*zs;
  1332. local xx = x*xs;
  1333. local xy = x*ys;
  1334. local xz = x*zs;
  1335. local yy = y*ys;
  1336. local yz = y*zs;
  1337. local zz = z*zs;
  1338. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  1339. end;
  1340.  
  1341. function QuaternionSlerp(a, b, t)
  1342. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4];
  1343. local startInterp, finishInterp;
  1344. if cosTheta >= 0.0001 then
  1345. if (1 - cosTheta) > 0.0001 then
  1346. local theta = math.acos(cosTheta);
  1347. local invSinTheta = 1/math.sin(theta);
  1348. startInterp = math.sin((1-t)*theta)*invSinTheta;
  1349. finishInterp = math.sin(t*theta)*invSinTheta;
  1350. else
  1351. startInterp = 1-t finishInterp = t;
  1352. end;
  1353. else
  1354. if (1+cosTheta) > 0.0001 then
  1355. local theta = math.acos(-cosTheta);
  1356. local invSinTheta = 1/math.sin(theta);
  1357. startInterp = math.sin((t-1)*theta)*invSinTheta;
  1358. finishInterp = math.sin(t*theta)*invSinTheta;
  1359. else startInterp = t-1 finishInterp = t;
  1360. end;
  1361. end;
  1362. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp;
  1363. end;
  1364.  
  1365. function CLerp(a,b,t)
  1366. local qa={QuaternionFromCFrame(a)};
  1367. local qb={QuaternionFromCFrame(b)};
  1368. local ax,ay,az=a.x,a.y,a.z;
  1369. local bx,by,bz=b.x,b.y,b.z;
  1370. local _t=1-t;
  1371. return QuaternionToCFrame(_t*ax+t*bx,_t*ay+t*by,_t*az+t*bz,QuaternionSlerp(qa, qb, t));
  1372. end
  1373.  
  1374. function GetWeld(weld)
  1375. local obj
  1376. for i, v in pairs(AnimJoints) do
  1377. if v[1] == weld then
  1378. obj = v
  1379. break
  1380. end
  1381. end
  1382. if not obj then
  1383. obj = {weld,NV}
  1384. table.insert(AnimJoints,obj)
  1385. end
  1386. return weld.C0.p, obj[2]
  1387. end
  1388.  
  1389. function SetWeld(weld, i, loops, origpos, origangle, nextpos, nextangle, override, overrideLower, smooth)
  1390. smooth = smooth or 1
  1391. local obj
  1392. for i, v in pairs(AnimJoints) do
  1393. if v[1] == weld then
  1394. obj = v
  1395. break
  1396. end
  1397. end
  1398. if not obj then
  1399. obj = {weld,NV}
  1400. table.insert(AnimJoints,obj)
  1401. end
  1402.  
  1403. local perc = (smooth == 1 and math.sin((math.pi/2)/loops*i)) or i/loops
  1404.  
  1405. local tox,toy,toz = 0,0,0
  1406. tox = math.abs(origangle.x - nextangle.x) *perc
  1407. toy = math.abs(origangle.y - nextangle.y) *perc
  1408. toz = math.abs(origangle.z - nextangle.z) *perc
  1409. tox = ((origangle.x > nextangle.x and -tox) or tox)
  1410. toy = ((origangle.y > nextangle.y and -toy) or toy)
  1411. toz = ((origangle.z > nextangle.z and -toz) or toz)
  1412.  
  1413. local tox2,toy2,toz2 = 0,0,0
  1414. tox2 = math.abs(origpos.x - nextpos.x) *perc
  1415. toy2 = math.abs(origpos.y - nextpos.y) *perc
  1416. toz2 = math.abs(origpos.z - nextpos.z) *perc
  1417. tox2 = (origpos.x > nextpos.x and -tox2) or tox2
  1418. toy2 = (origpos.y > nextpos.y and -toy2) or toy2
  1419. toz2 = (origpos.z > nextpos.z and -toz2) or toz2
  1420.  
  1421. obj[2] = Vector3.new(origangle.x + tox, origangle.y + toy, origangle.z + toz)
  1422. weld.C0 = CFrame.new(origpos.x + tox2,origpos.y + toy2,origpos.z + toz2) * CFrame.Angles(origangle.x + tox,origangle.y + toy,origangle.z + toz)
  1423. end
  1424.  
  1425. function RotateCamera(x, y)
  1426. Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(x, y, 0) * CFrame.new(0, 0, (Camera.CoordinateFrame.p - Camera.Focus.p).magnitude)
  1427. end
  1428.  
  1429. function GetAngles(cf)
  1430. local lv = cf.lookVector
  1431. return -math.asin(lv.y), math.atan2(lv.x, -lv.z)
  1432. end
  1433.  
  1434. local LastCamCF = Camera.CoordinateFrame
  1435.  
  1436. function Look()
  1437. if AlphaOn == true then
  1438. local x, y = GetAngles(LastCamCF:toObjectSpace(Camera.CoordinateFrame))
  1439. Camera.CoordinateFrame = LastCamCF
  1440. RotateCamera(x * -(Alpha), y * -(Alpha))
  1441. LastCamCF = Camera.CoordinateFrame
  1442. end
  1443. end
  1444.  
  1445. function Cor(Func)
  1446. local Ok, Err = coroutine.resume(coroutine.create(Func))
  1447. if not Ok then
  1448. print(Err)
  1449. end
  1450. end
  1451.  
  1452. function Cor2(Func)
  1453. local Ok, Err = ypcall(Func)
  1454. if not Ok then
  1455. print(Err)
  1456. end
  1457. end
  1458.  
  1459. function MakePads()
  1460.  
  1461. -- 2 - RBase
  1462. P2 = Instance.new("Part")
  1463. P2.CFrame = CFrame.new(Vector3.new(21.100008, 1.95000589, 11.899971)) * CFrame.Angles(-0, 0, -0)
  1464. P2.FormFactor = Enum.FormFactor.Custom
  1465. P2.Size = Vector3.new(0.799999952, 0.200000003, 0.800000012)
  1466. P2.Anchored = true
  1467. P2.BrickColor = BrickColor.new("White")
  1468. P2.Friction = 0.30000001192093
  1469. P2.Shape = Enum.PartType.Block
  1470. P2.Name = "RBase"
  1471. P2.Parent = P1
  1472. P2.Transparency = 1
  1473. -- 3 - Mesh
  1474. P3 = Instance.new("CylinderMesh")
  1475. P3.Scale = Vector3.new(1, 0.5, 1)
  1476. P3.Parent = P2
  1477.  
  1478. -- 4 - LBase
  1479. P4 = Instance.new("Part")
  1480. P4.CFrame = CFrame.new(Vector3.new(18.100008, 1.95000589, 11.899971)) * CFrame.Angles(-0, 0, -0)
  1481. P4.FormFactor = Enum.FormFactor.Custom
  1482. P4.Size = Vector3.new(0.799999952, 0.200000003, 0.800000012)
  1483. P4.Anchored = true
  1484. P4.BrickColor = BrickColor.new("White")
  1485. P4.Friction = 0.30000001192093
  1486. P4.Shape = Enum.PartType.Block
  1487. P4.Name = "LBase"
  1488. P4.Parent = P1
  1489. P4.Transparency = 1
  1490. -- 5 - Mesh
  1491. P5 = Instance.new("CylinderMesh")
  1492. P5.Scale = Vector3.new(1, 0.5, 1)
  1493. P5.Parent = P4
  1494.  
  1495. -- 7 - Mesh
  1496. P7 = Instance.new("CylinderMesh")
  1497. P7.Scale = Vector3.new(1, 0.5, 1)
  1498. P7.Parent = P6
  1499.  
  1500.  
  1501.  
  1502. -- 9 - Mesh
  1503. P9 = Instance.new("CylinderMesh")
  1504. P9.Scale = Vector3.new(1, 0.5, 1)
  1505. P9.Parent = P8
  1506.  
  1507.  
  1508.  
  1509. -- 11 - Mesh
  1510. P11 = Instance.new("CylinderMesh")
  1511. P11.Scale = Vector3.new(1, 0.5, 1)
  1512. P11.Parent = P10
  1513.  
  1514.  
  1515. -- 13 - Mesh
  1516. P13 = Instance.new("CylinderMesh")
  1517. P13.Scale = Vector3.new(1, 0.5, 1)
  1518. P13.Parent = P12
  1519.  
  1520.  
  1521. -- 15 - Mesh
  1522. P15 = Instance.new("CylinderMesh")
  1523. P15.Scale = Vector3.new(1, 0.5, 1)
  1524. P15.Parent = P14
  1525.  
  1526. -- 17 - Mesh
  1527. P17 = Instance.new("CylinderMesh")
  1528. P17.Scale = Vector3.new(1, 0.5, 1)
  1529. P17.Parent = P16
  1530.  
  1531. P1.Parent = LP.Character
  1532. P1:MakeJoints()
  1533. return P1
  1534. end
  1535.  
  1536. weldModel = function(model, unanchor, rooty)
  1537. local parts = {}
  1538. local function recurse(object)
  1539. if object:IsA("BasePart") then
  1540. table.insert(parts, object)
  1541. end
  1542. for _,child in pairs(object:GetChildren()) do
  1543. recurse(child)
  1544. end
  1545. end
  1546. recurse(model)
  1547.  
  1548. local rootPart = rooty or parts[1]
  1549. for _, part in pairs(parts) do
  1550. local cframe = rootPart.CFrame:toObjectSpace(part.CFrame)
  1551. local weld = Instance.new("Weld")
  1552. weld.Part0 = rootPart
  1553. weld.Part1 = part
  1554. weld.C0 = cframe
  1555. weld.Parent = rootPart
  1556. end
  1557.  
  1558. if unanchor then
  1559. for _, part in pairs(parts) do
  1560. part.Anchored = false
  1561. part.CanCollide = false
  1562. end
  1563. end
  1564. end
  1565.  
  1566. weldItem = function(rootPart, Item, TheC0, unanchor, ParentItem)
  1567. local cframe = TheC0 or rootPart.CFrame:toObjectSpace(Item.CFrame)
  1568. local weld = Instance.new("Weld")
  1569. weld.Name = "Weld"
  1570. weld.Part0 = rootPart
  1571. weld.Part1 = Item
  1572. weld.C0 = cframe
  1573. weld.Parent = ParentItem and Item or rootPart
  1574.  
  1575. if unanchor then
  1576. Item.Anchored = false
  1577. end
  1578. return weld, cframe
  1579. end
  1580.  
  1581. scaleModel = function(model, scale)
  1582. local parts = {}
  1583. local function recurse(object)
  1584. if object:IsA("BasePart") then
  1585. table.insert(parts, object)
  1586. end
  1587. for _,child in pairs(object:GetChildren()) do
  1588. recurse(child)
  1589. end
  1590. end
  1591. recurse(model)
  1592.  
  1593. local top, bottom, left, right, back, front
  1594. for _, part in pairs(parts) do
  1595. if top == nil or top < part.Position.y then top = part.Position.y end
  1596. if bottom == nil or bottom > part.Position.y then bottom = part.Position.y end
  1597. if left == nil or left > part.Position.x then left = part.Position.x end
  1598. if right == nil or right < part.Position.x then right = part.Position.x end
  1599. if back == nil or back > part.Position.z then back = part.Position.z end
  1600. if front == nil or front < part.Position.z then front = part.Position.z end
  1601. end
  1602.  
  1603. local middle = Vector3.new( left+right, top+bottom, back+front )/2
  1604. local minSize = Vector3.new(0.2, 0.2, 0.2)
  1605.  
  1606. for _, part in pairs(parts) do
  1607. local foo = part.CFrame.p - middle
  1608. local rotation = part.CFrame - part.CFrame.p
  1609. local newSize = part.Size*scale
  1610. part.FormFactor = "Custom"
  1611. part.Size = newSize
  1612. part.CFrame = CFrame.new( middle + foo*scale ) * rotation
  1613.  
  1614. if newSize.x < minSize.x or newSize.y < minSize.y or newSize.z < minSize.z then
  1615. local mesh
  1616. for _, child in pairs(part:GetChildren()) do
  1617. if child:IsA("DataModelMesh") then
  1618. mesh = child
  1619. break
  1620. end
  1621. end
  1622.  
  1623. if mesh == nil then
  1624. mesh = Instance.new("BlockMesh", part)
  1625. end
  1626.  
  1627. local oScale = mesh.Scale
  1628. local newScale = newSize/minSize * oScale
  1629. if 0.2 < newSize.x then newScale = Vector3.new(1 * oScale.x, newScale.y, newScale.z) end
  1630. if 0.2 < newSize.y then newScale = Vector3.new(newScale.x, 1 * oScale.y, newScale.z) end
  1631. if 0.2 < newSize.z then newScale = Vector3.new(newScale.x, newScale.y, 1 * oScale.z) end
  1632.  
  1633. mesh.Scale = newScale
  1634. end
  1635. end
  1636. end
  1637.  
  1638. function getMass(Obj, Total)
  1639. local newTotal = Total
  1640. local returnTotal = 0
  1641.  
  1642. if Obj:IsA("BasePart") then
  1643. newTotal = newTotal + Objects[Obj]
  1644. elseif BodyObjects[Obj.ClassName] then
  1645. Obj:Destroy()
  1646. end
  1647.  
  1648. if Obj:GetChildren() and #Obj:GetChildren() > 0 then
  1649. for _,v in pairs(Obj:GetChildren()) do
  1650. returnTotal = returnTotal + getMass(v, newTotal)
  1651. end
  1652. else
  1653. returnTotal = newTotal
  1654. end
  1655.  
  1656. return returnTotal
  1657. end
  1658.  
  1659. function getTargFromCurrent()
  1660. local Current = Current.Part
  1661. if Current:IsA("BasePart") then
  1662. return Current
  1663. elseif Current:findFirstChild("Torso") then
  1664. return Current.Torso
  1665. else
  1666. for _,v in pairs(Current:GetChildren()) do
  1667. if v:IsA("BasePart") then
  1668. return v
  1669. end
  1670. end
  1671. end
  1672. end
  1673.  
  1674. function Fire(Part, Vec, Inv)
  1675. pcall(function()
  1676. Current.BP:Destroy()
  1677. Current.BP = nil
  1678. end)
  1679. pcall(function()
  1680. Current.BA:Destroy()
  1681. Current.BA = nil
  1682. end)
  1683. pcall(function()
  1684. if Inv then
  1685. Part.Velocity = -((Vec - Torso.Position).unit * Grav * 1.1)
  1686. else
  1687. Part.Velocity = ((Vec - Camera.CoordinateFrame.p).unit * Grav * 1.1)
  1688. end
  1689. Current.Mass = nil
  1690. end)
  1691. Reset()
  1692. end
  1693.  
  1694. function Reset()
  1695. LS.Parent = nil
  1696. RS.Parent = nil
  1697.  
  1698. OrigLS.Parent = Torso
  1699. OrigRS.Parent = Torso
  1700.  
  1701. OrigLS.C0 = LS0
  1702. OrigRS.C0 = RS0
  1703. end
  1704.  
  1705. function Start()
  1706. Cor(function()
  1707. repeat wait(1/30) until LP.Character and LP.Character.Parent == Workspace and LP.Character:findFirstChild("Torso")
  1708. Char = LP.Character
  1709. PlrGui = LP.PlayerGui
  1710. Backpack = LP.Backpack
  1711. Mouse = LP:GetMouse()
  1712.  
  1713. for _,v in pairs(Cons) do
  1714. v:disconnect()
  1715. end
  1716. Cons = {}
  1717.  
  1718. Camera = Workspace.CurrentCamera
  1719. LastCamCF = Camera.CoordinateFrame
  1720. AnimJoints = {}
  1721. mDown = false
  1722. Multi = false
  1723. Grabbing = false
  1724. Current = {}
  1725. Alpha = 1
  1726.  
  1727. Head = Char["Head"]
  1728. Torso = Char["Torso"]
  1729. Humanoid = Char["Humanoid"]
  1730. LA = Char["Left Arm"]
  1731. RA = Char["Right Arm"]
  1732. LL = Char["Left Leg"]
  1733. RL = Char["Right Leg"]
  1734.  
  1735. OrigLS = Torso["Left Shoulder"]
  1736. OrigRS = Torso["Right Shoulder"]
  1737.  
  1738. for _,v in pairs(Char:GetChildren()) do
  1739. if v.Name == ModID then
  1740. v:Destroy()
  1741. end
  1742. end
  1743.  
  1744. for _,v in pairs(PlrGui:GetChildren()) do
  1745. if v.Name == "PadsGui" then
  1746. v:Destroy()
  1747. end
  1748. end
  1749.  
  1750. LS = Instance.new("Weld")
  1751. RS = Instance.new("Weld")
  1752.  
  1753. LS.Name = OrigLS.Name
  1754. LS.Part0 = Torso
  1755. LS.Part1 = LA
  1756. LS.C0 = LS0
  1757. LS.C1 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 0, 1, 0, -1, 0)
  1758.  
  1759. RS.Name = OrigRS.Name
  1760. RS.Part0 = Torso
  1761. RS.Part1 = RA
  1762. RS.C0 = RS0
  1763. RS.C1 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 0, 1, 0, -1, 0)
  1764.  
  1765. local Pads = MakePads()
  1766. local LPad = Pads.LBase
  1767. local RPad = Pads.RBase
  1768.  
  1769. weldModel(LPad, true, LPad)
  1770. weldModel(RPad, true, RPad)
  1771.  
  1772. local GripWeldL = Instance.new("Weld")
  1773. GripWeldL.Name = "GripWeldL"
  1774. GripWeldL.Part0 = LA
  1775. GripWeldL.Part1 = LPad
  1776. GripWeldL.C0 = CFrame.new(0, -1.05, 0) * CFrame.Angles(0, math.rad(180), 0)
  1777. GripWeldL.Parent = LA
  1778.  
  1779. local GripWeldR = Instance.new("Weld")
  1780. GripWeldR.Name = "GripWeldR"
  1781. GripWeldR.Part0 = RA
  1782. GripWeldR.Part1 = RPad
  1783. GripWeldR.C0 = CFrame.new(0, -1.05, 0) * CFrame.Angles(0, math.rad(180), 0)
  1784. GripWeldR.Parent = RA
  1785.  
  1786. local isParts = false
  1787.  
  1788. table.insert(Cons, Mouse.KeyDown:connect(function(Key)
  1789. Key = Key:lower()
  1790. if Key == "z" then
  1791. --Stuff
  1792. elseif Key == "f" then
  1793. local Current = Current.Part
  1794. if Current and Current.Parent ~= nil and not Multi then
  1795. Current:BreakJoints()
  1796. end
  1797. elseif Key == "q" then
  1798. if isParts then
  1799. isParts = false
  1800. for _,v in pairs(Workspace:GetChildren()) do
  1801. if v.Name == "MyPartV" and v:IsA("BasePart") then
  1802. v:Destroy()
  1803. end
  1804. end
  1805. else
  1806. isParts = true
  1807. for i = 1, 50 do
  1808. local Part = Instance.new("Part")
  1809. Part.Color = Color3.new(math.random(), math.random(), math.random())
  1810. Part.Transparency = 0
  1811. Part.Size = Vector3.new(math.random(1, 3), math.random(1, 3), math.random(1, 3))
  1812. Part.Archivable = true
  1813. Part.CanCollide = false
  1814. Part.Material = "Neon"
  1815. Part.Locked = false
  1816. Part.CFrame = Torso.CFrame * CFrame.new(math.random(-15, 15), -1, math.random(-15, 15))
  1817. Part.Anchored = true
  1818. Part.Name = "MyPartV"
  1819. Part.TopSurface = "Smooth"
  1820. Part.BottomSurface = "Smooth"
  1821. Part.Parent = Workspace
  1822. end
  1823. end
  1824. elseif Key == "e" then
  1825. local Targ;
  1826. if Current.Part and Current.Part ~= nil then
  1827. Targ = getTargFromCurrent()
  1828. else
  1829. Targ = LastPart
  1830. end
  1831. if Targ and Targ.Parent ~= nil and not Multi then
  1832. local Ex = Instance.new("Explosion", Workspace)
  1833. Ex.Position = Targ.CFrame.p
  1834. Ex.BlastRadius = 16
  1835. Ex.DestroyJointRadiusPercent = 0.5
  1836. end
  1837. elseif Key == "c" then
  1838. if Current.Part and Current.Part.Parent ~= nil and not Multi then
  1839. local Part = getTargFromCurrent()
  1840. if Part then
  1841. Grabbing = false
  1842. if Mouse.Hit then
  1843. local TargPos = CFrame.new(Camera.CoordinateFrame.p, Mouse.Hit.p) * CFrame.new(0, 0, -1000)
  1844. Fire(Part, TargPos.p)
  1845. else
  1846. Fire(Part, Mouse.Origin.p + Mouse.UnitRay.Direction, true)
  1847. end
  1848. end
  1849. end
  1850. end
  1851. end))
  1852.  
  1853. table.insert(Cons, Mouse.Button1Up:connect(function()
  1854. mDown = false
  1855. if Grabbing == true and Multi == false then
  1856. Grabbing = false
  1857. Reset()
  1858. end
  1859. if Current.Part ~= nil then
  1860. LastPart = getTargFromCurrent()
  1861. Current = {}
  1862. end
  1863. end))
  1864.  
  1865. local function makeLightning(Par, Start, End, Width, Length, RandomScale, ArcScale, Num1)
  1866. local oldParts = {}
  1867. for _,v in pairs(Par:GetChildren()) do
  1868. v.CFrame = CFrame.new(5e5, 5e5, 5e5)
  1869. table.insert(oldParts, v)
  1870. end
  1871. local Distance = (Start-End).Magnitude
  1872. local ArcScale = ArcScale or 1
  1873. local RandomScale = RandomScale or 0
  1874. local Last = Start
  1875. local IterNum = 0
  1876.  
  1877. while Par.Parent do
  1878. IterNum = IterNum + 1
  1879. local New = nil
  1880. if (Last-End).Magnitude < Length then
  1881. New = CFrame.new(End)
  1882. else
  1883. if (End-Last).Magnitude < Length*2 then
  1884. RandomScale = RandomScale*0.5
  1885. ArcScale = ArcScale*0.5
  1886. end
  1887. local Direct = CFrame.new(Last,End)
  1888. New = Direct*CFrame.Angles(math.rad(math.random(-RandomScale/4,RandomScale*ArcScale)),math.rad(math.random(-RandomScale,RandomScale)),math.rad(math.random(-RandomScale,RandomScale)))
  1889. New = New*CFrame.new(0,0,-Length)
  1890. end
  1891. local Trail = nil
  1892. if oldParts[IterNum] then
  1893. Trail = oldParts[IterNum]
  1894. Trail.BrickColor = ((Num1 % 2 == 0) and BrickColor.new("White")) or BrickColor.new("Cyan")
  1895. Trail.Size = Vector3.new(Width, (Last-New.p).Magnitude, Width)
  1896. Trail.CFrame = CFrame.new(New.p, Last)*CFrame.Angles(math.rad(90),0,0)*CFrame.new(0, -(Last-New.p).Magnitude/2, 0)
  1897. oldParts[IterNum] = nil
  1898. else
  1899. Trail = Instance.new("Part")
  1900. Trail.Name = "Part"
  1901. Trail.FormFactor = "Custom"
  1902. Trail.BrickColor = ((Num1 % 2 == 0) and BrickColor.new("White")) or BrickColor.new("White")
  1903. Trail.Transparency = 0
  1904. Trail.Anchored = true
  1905. Trail.CanCollide = false
  1906. Trail.Locked = true
  1907. Trail.BackSurface = "SmoothNoOutlines"
  1908. Trail.BottomSurface = "SmoothNoOutlines"
  1909. Trail.FrontSurface = "SmoothNoOutlines"
  1910. Trail.LeftSurface = "SmoothNoOutlines"
  1911. Trail.RightSurface = "SmoothNoOutlines"
  1912. Trail.TopSurface = "SmoothNoOutlines"
  1913. Trail.Material = "Neon"
  1914. Trail.Size = Vector3.new(Width, (Last-New.p).Magnitude, Width)
  1915. Trail.CFrame = CFrame.new(New.p, Last)*CFrame.Angles(math.rad(90),0,0)*CFrame.new(0, -(Last-New.p).Magnitude/2, 0)
  1916. Trail.Parent = Par
  1917. end
  1918. Last = New.p
  1919. if (Last-End).Magnitude < 1 then
  1920. break
  1921. end
  1922. end
  1923. for _,v in pairs(oldParts) do
  1924. v:Destroy()
  1925. end
  1926. end
  1927.  
  1928. table.insert(Cons, Mouse.Button1Down:connect(function()
  1929. mDown = true
  1930. local Targ = Mouse.Target
  1931. Cor(function()
  1932. if Targ and Objects[Targ] and not Multi then
  1933. Grabbing = true
  1934. Current.Part = Targ
  1935. local Mass = Objects[Targ]
  1936. local ForceNum = 0
  1937. local Hum = nil
  1938.  
  1939. for _,v in pairs(Targ:GetChildren()) do
  1940. if BodyObjects[v.ClassName] then
  1941. v:Destroy()
  1942. end
  1943. end
  1944.  
  1945. for _,v in pairs(Workspace:GetChildren()) do
  1946. if v:findFirstChild("Humanoid") and v:IsAncestorOf(Targ) then
  1947. Hum = v.Humanoid
  1948. Mass = getMass(v, 0)
  1949. Current.Part = v
  1950. break
  1951. end
  1952. end
  1953.  
  1954. Current.Mass = Mass
  1955.  
  1956. if not Hum then
  1957. Targ:BreakJoints()
  1958. end
  1959.  
  1960. ForceNum = Mass * Grav
  1961. Targ.CanCollide = true
  1962. Targ.Anchored = false
  1963.  
  1964. local BP = Instance.new("BodyPosition")
  1965. BP.maxForce = Vector3.new(3 * ForceNum, 3 * ForceNum, 3 * ForceNum)
  1966. BP.Parent = Targ
  1967.  
  1968. local Ang = Instance.new("BodyAngularVelocity")
  1969. Ang.Parent = Targ
  1970.  
  1971. Current.BP = BP
  1972. Current.BA = Ang
  1973.  
  1974. OrigLS.Parent = nil
  1975. OrigRS.Parent = nil
  1976.  
  1977. LS.Parent = Torso
  1978. RS.Parent = Torso
  1979.  
  1980. LS.C0 = LS0
  1981. RS.C0 = RS0
  1982.  
  1983. local DirDot = Mouse.UnitRay.Direction:Dot(Targ.Position - Mouse.Origin.p)
  1984. local BPPos = Vector3.new(0, 0, 0)
  1985. local Vel = Vector3.new(0, 0, 0)
  1986. local Vlev = random() * math.pi
  1987. local RPos = Vector3.new(random() * 2 - 1, cos(Vlev), random() * 2 - 1)
  1988.  
  1989. local Ball = Instance.new("Part")
  1990. Ball.Name = "Ball"
  1991. Ball.FormFactor = "Custom"
  1992. Ball.Color = Color3.new(0, 1, 1)
  1993. Ball.Transparency = 0.3
  1994. Ball.Anchored = true
  1995. Ball.CanCollide = false
  1996. Ball.Locked = true
  1997. Ball.BottomSurface, Ball.TopSurface = "Smooth", "Smooth"
  1998. Ball.Size = Vector3.new(0.5, 0.5, 0.5)
  1999. Ball.CFrame = Torso.CFrame * CFrame.new(0, 1, -3)
  2000. Ball.Parent = Char
  2001.  
  2002. if Targ.Name == "MyPartV" then
  2003. Targ.Name = "MyPartF"
  2004. end
  2005.  
  2006. local LightMod = Instance.new("Model", Char)
  2007.  
  2008. local Mesh = Instance.new("SpecialMesh")
  2009. Mesh.MeshType = "Sphere"
  2010. Mesh.Parent = Ball
  2011.  
  2012. local Size = 0.5
  2013. local Rise = true
  2014.  
  2015. while Grabbing and BP and Ang and Targ.Parent ~= nil do
  2016. local BPPos = Mouse.Origin.p + Mouse.UnitRay.Direction * DirDot
  2017. Ang.angularvelocity = Vel
  2018. BP.position = BPPos + RPos
  2019. RPos = Vector3.new(max(-1, min(RPos.x + random() * 0.02 - 0.01, 1)), cos(Vlev), max(-1, min(RPos.z + random() * 0.02 - 0.01, 1)))
  2020. Vel = Vector3.new(max(-1, min(Vel.x + random() * 0.2 - 0.1, 1)), max(-1, min(Vel.y + random() * 0.2 - 0.1, 1)), max(-1, min(Vel.z + random() * 0.2 - 0.1, 1)))
  2021. Vlev = (Vlev + 0.05) % tau
  2022.  
  2023. if Hum then
  2024. Hum.Sit = true
  2025. end
  2026.  
  2027. if LA.Parent ~= nil and RA.Parent ~= nil then
  2028. local LPos = (LA.CFrame * CFrame.new(0, -1, 0)).p
  2029. local RPos = (RA.CFrame * CFrame.new(0, -1, 0)).p
  2030. if Rise == true then
  2031. if Size < 0.6 then
  2032. Size = Size + 0.05
  2033. else
  2034. Size = Size + 0.1
  2035. end
  2036. if Size >= 2.2 then
  2037. Rise = false
  2038. end
  2039. else
  2040. if Size > 2.1 then
  2041. Size = Size - 0.05
  2042. else
  2043. Size = Size - 0.1
  2044. end
  2045. if Size <= 0.5 then
  2046. Rise = true
  2047. end
  2048. end
  2049. Ball.Size = Vector3.new(Size, Size, Size)
  2050. Ball.CFrame = CFrame.new(LPos:Lerp(RPos, 0.5), Targ.Position) * CFrame.new(0, 0, -2.2)
  2051. LightNum = LightNum + 1
  2052. makeLightning(LightMod, Ball.Position, Targ.Position, 0.2, 4, 50, 1, LightNum)
  2053. elseif Ball.Parent ~= nil then
  2054. Ball:Destroy()
  2055. end
  2056.  
  2057. if LS and LS.Parent == Torso then
  2058. LS.C0 = CFrame.new(Vector3.new(-1.5, 0.5, 0), Torso.CFrame:pointToObjectSpace((Targ.CFrame or Torso.CFrame * CFrame.new(-1.5, 0.5, 1)).p))
  2059. end
  2060. if RS and RS.Parent == Torso then
  2061. RS.C0 = CFrame.new(Vector3.new(1.5, 0.5, 0), Torso.CFrame:pointToObjectSpace((Targ.CFrame or Torso.CFrame * CFrame.new(1.5, 0.5, 1)).p))
  2062. end
  2063. RunService.Heartbeat:wait()
  2064. end
  2065.  
  2066. coroutine.resume(coroutine.create(function()
  2067. for i = 0.5, 1, 0.1 do
  2068. for i2,v in pairs(LightMod:GetChildren()) do
  2069. --v.Light.Range = 6-(i*5)
  2070. v.Transparency = i
  2071. end
  2072. wait(1/30)
  2073. end
  2074. LightMod:Destroy()
  2075. end))
  2076.  
  2077. if BP and BP.Parent ~= nil then
  2078. BP:Destroy()
  2079. end
  2080.  
  2081. if Ang and Ang.Parent ~= nil then
  2082. Ang:Destroy()
  2083. end
  2084.  
  2085. pcall(function() Ball:Destroy() end)
  2086. end
  2087. end)
  2088. end))
  2089. end)
  2090. end
  2091.  
  2092. function Add(Obj)
  2093. if Obj:IsA("BasePart") and not Objects[Obj] and not (Obj.Name == "Base" and Obj.ClassName == "Part") then
  2094. Objects[Obj] = Obj:GetMass()
  2095. Obj.Changed:connect(function(P)
  2096. if P:lower() == "size" and Objects[Obj] and Obj.Parent ~= nil then
  2097. Objects[Obj] = Obj:GetMass()
  2098. end
  2099. end)
  2100. end
  2101. end
  2102.  
  2103. function Rem(Obj)
  2104. if Objects[Obj] then
  2105. Objects[Obj] = nil
  2106. end
  2107. end
  2108.  
  2109. function Recursion(Obj)
  2110. ypcall(function()
  2111. Add(Obj)
  2112. if #Obj:GetChildren() > 0 then
  2113. for _,v in pairs(Obj:GetChildren()) do
  2114. Recursion(v)
  2115. end
  2116. end
  2117. end)
  2118. end
  2119.  
  2120. Workspace.DescendantAdded:connect(function(Obj)
  2121. Add(Obj)
  2122. end)
  2123.  
  2124. Workspace.DescendantRemoving:connect(function(Obj)
  2125. Rem(Obj)
  2126. end)
  2127.  
  2128. for _,v in pairs(Workspace:GetChildren()) do
  2129. Recursion(v)
  2130. end
  2131.  
  2132. Start()
  2133.  
  2134. if LP.Name == PlrName then
  2135. LP.CharacterAdded:connect(Start)
  2136. end
  2137.  
  2138. local verlet = {}
  2139. verlet.step_time = 1 / 50
  2140. verlet.gravity = Vector3.new(0, -10, 0)
  2141.  
  2142. local char = game.Players.LocalPlayer.Character
  2143. local torso = char:WaitForChild("Torso")
  2144. local parts = {}
  2145. local render = game:GetService("RunService").RenderStepped
  2146.  
  2147. wait(2)
  2148.  
  2149. local point = {}
  2150. local link = {}
  2151. local rope = {}
  2152.  
  2153. local function ccw(A,B,C)
  2154. return (C.y-A.y) * (B.x-A.x) > (B.y-A.y) * (C.x-A.x)
  2155. end
  2156.  
  2157. local function intersect(A,B,C,D)
  2158. return ccw(A,C,D) ~= ccw(B,C,D) and ccw(A,B,C) ~= ccw(A,B,D)
  2159. end
  2160.  
  2161. local function vec2(v)
  2162. return Vector2.new(v.x, v.z)
  2163. end
  2164.  
  2165. function point:step()
  2166. if not self.fixed then
  2167. local derivative = (self.position - self.last_position) * 0.95
  2168. self.last_position = self.position
  2169. self.position = self.position + derivative + (self.velocity * verlet.step_time ^ 2)
  2170. --[[local torsoP = torso.CFrame * CFrame.new(-1, 0, 0.5)
  2171. local torsoE = torso.CFrame * CFrame.new(1, 0, 0.5)
  2172. local pointE = self.position + torso.CFrame.lookVector * 100
  2173. local doIntersect = intersect(vec2(torsoP.p), vec2(torsoE.p), vec2(self.position), vec2(pointE))
  2174. if not doIntersect then
  2175. self.postition = self.position - torso.CFrame.lookVector * 10
  2176. end]]
  2177. end
  2178. end
  2179.  
  2180. function link:step()
  2181. for i = 1, 1 do
  2182. local distance = self.point1.position - self.point2.position
  2183. local magnitude = distance.magnitude
  2184. local differance = (self.length - magnitude) / magnitude
  2185. local translation = ((self.point1.fixed or self.point2.fixed) and 1 or 0.6) * distance * differance
  2186. if not self.point1.fixed then
  2187. self.point1.position = self.point1.position + translation
  2188. end
  2189. if not self.point2.fixed then
  2190. self.point2.position = self.point2.position - translation
  2191. end
  2192. end
  2193. end
  2194.  
  2195. function verlet.new(class, a, b, c)
  2196. if class == "Point" then
  2197. local new = {}
  2198. setmetatable(new, {__index = point})
  2199. new.class = class
  2200. new.position = a or Vector3.new()
  2201. new.last_position = new.position
  2202. new.velocity = verlet.gravity
  2203. new.fixed = false
  2204. return new
  2205. elseif class == "Link" then
  2206. local new = {}
  2207. setmetatable(new, {__index = link})
  2208. new.class = class
  2209. new.point1 = a
  2210. new.point2 = b
  2211. new.length = c or (a.position - b.position).magnitude
  2212. return new
  2213. elseif class == "Rope" then
  2214. local new = {}
  2215. setmetatable(new, {__index = link})
  2216. new.class = class
  2217. new.start_point = a
  2218. new.finish_point = b
  2219. new.points = {}
  2220. new.links = {}
  2221. local inc = (b - a) / 10
  2222. for i = 0, 10 do
  2223. table.insert(new.points, verlet.new("Point", a + (i * inc)))
  2224. end
  2225. for i = 2, #new.points do
  2226. table.insert(new.links, verlet.new("Link", new.points[i - 1], new.points[i]))
  2227. end
  2228. return new
  2229. end
  2230. end
  2231.  
  2232. local tris = {}
  2233. local triParts = {}
  2234.  
  2235. local function GetDiscoColor(hue)
  2236. local section = hue % 1 * 3
  2237. local secondary = 0.5 * math.pi * (section % 1)
  2238. if section < 1 then
  2239. return Color3.new(0, 0, 0)
  2240. elseif section < 2 then
  2241. return Color3.new(0, 0, 0)
  2242. else
  2243. return Color3.new(0, 0, 0)
  2244. end
  2245. end
  2246.  
  2247. local function setupPart(part)
  2248. part.Anchored = true
  2249. part.FormFactor = 3
  2250. part.CanCollide = false
  2251. part.TopSurface = 10
  2252. part.BottomSurface = 10
  2253. part.LeftSurface = 10
  2254. part.RightSurface = 10
  2255. part.FrontSurface = 10
  2256. part.BackSurface = 10
  2257. part.Material = "Neon"
  2258. local m = Instance.new("SpecialMesh", part)
  2259. m.MeshType = "Wedge"
  2260. m.Scale = Vector3.new(0.2, 1, 1)
  2261. return part
  2262. end
  2263.  
  2264. local function CFrameFromTopBack(at, top, back)
  2265. local right = top:Cross(back)
  2266. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  2267. end
  2268.  
  2269. local function drawTri(parent, a, b, c)
  2270. local this = {}
  2271. local mPart1 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
  2272. local mPart2 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
  2273. function this:Set(a, b, c)
  2274. local ab, bc, ca = b-a, c-b, a-c
  2275. local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude
  2276. local edg1 = math.abs(0.5 + ca:Dot(ab)/(abm*abm))
  2277. local edg2 = math.abs(0.5 + ab:Dot(bc)/(bcm*bcm))
  2278. local edg3 = math.abs(0.5 + bc:Dot(ca)/(cam*cam))
  2279. if edg1 < edg2 then
  2280. if edg1 >= edg3 then
  2281. a, b, c = c, a, b
  2282. ab, bc, ca = ca, ab, bc
  2283. abm = cam
  2284. end
  2285. else
  2286. if edg2 < edg3 then
  2287. a, b, c = b, c, a
  2288. ab, bc, ca = bc, ca, ab
  2289. abm = bcm
  2290. else
  2291. a, b, c = c, a, b
  2292. ab, bc, ca = ca, ab, bc
  2293. abm = cam
  2294. end
  2295. end
  2296.  
  2297. local len1 = -ca:Dot(ab)/abm
  2298. local len2 = abm - len1
  2299. local width = (ca + ab.unit*len1).magnitude
  2300.  
  2301. local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit)
  2302.  
  2303. if len1 > 0.2 then
  2304. mPart1.Parent = parent
  2305. mPart1.Size = Vector3.new(0.2, width, len1)
  2306. mPart1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  2307. else
  2308. mPart1.Parent = nil
  2309. end
  2310.  
  2311. if len2 > 0.2 then
  2312. mPart2.Parent = parent
  2313. mPart2.Size = Vector3.new(0.2, width, len2)
  2314. mPart2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  2315. else
  2316. mPart2.Parent = nil
  2317. end
  2318. end
  2319. function this:SetProperty(prop, value)
  2320. mPart1[prop] = value
  2321. mPart2[prop] = value
  2322. end
  2323. this:Set(a, b, c)
  2324. function this:Destroy()
  2325. mPart1:Destroy()
  2326. mPart2:Destroy()
  2327. end
  2328. this.p1 = mPart1
  2329. this.p2 = mPart2
  2330. this.p1.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p1.CFrame.Y * 0.5 + time())))
  2331. this.p2.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p2.CFrame.Y * 0.5 + time())))
  2332. return this
  2333. end
  2334.  
  2335. function verlet.draw(object, id)
  2336. if object.class == "Point" then
  2337. local part = parts[id]
  2338. part.BrickColor = BrickColor.new(107, 0, 107)
  2339. part.Transparency = 0
  2340. part.formFactor = 3
  2341. part.Anchored = true
  2342. part.CanCollide = false
  2343. part.TopSurface = 0
  2344. part.BottomSurface = 0
  2345. part.Size = Vector3.new(0.35, 0.35, 0.35)
  2346. part.Material = "Neon"
  2347. part.CFrame = CFrame.new(object.position)
  2348. part.Parent = torso
  2349. return part
  2350. elseif object.class == "Link" then
  2351. local part = parts[id]
  2352. local dist = (object.point1.position - object.point2.position).magnitude
  2353. part.Size = Vector3.new(0.2, 0.2, dist)
  2354. part.CFrame = CFrame.new(object.point1.position, object.point2.position) * CFrame.new(0, 0, dist * -0.5)
  2355. part.Parent = torso
  2356. return part
  2357. end
  2358. end
  2359.  
  2360. function verlet.clear()
  2361. for _, v in pairs(workspace:GetChildren()) do
  2362. if v.Name == "Part" then
  2363. v:Destroy()
  2364. end
  2365. end
  2366. end
  2367.  
  2368. local points = {}
  2369. local links = {}
  2370.  
  2371. for x = 0, 2 do
  2372. points[x] = {}
  2373. for y = 0, 3 do
  2374. points[x][y] = verlet.new("Point", torso.Position + Vector3.new(x * 0.8 - 2, 2 - y * 0.8, 5 + y * 0.4))
  2375. points[x][y].fixed = y == 0
  2376. end
  2377. end
  2378.  
  2379. for x = 1, 2 do
  2380. for y = 0, 3 do
  2381. links[#links + 1] = verlet.new("Link", points[x][y], points[x - 1][y], 1 + y * 0.08)
  2382. end
  2383. end
  2384.  
  2385. for x = 0, 2 do
  2386. for y = 1, 3 do
  2387. links[#links + 1] = verlet.new("Link", points[x][y], points[x][y - 1], 1.2 + y * 0.03)
  2388. end
  2389. end
  2390.  
  2391. render:connect(function()
  2392. for x = 0, 2 do
  2393. for y = 0, 3 do
  2394. if y == 0 then
  2395. points[x][y].position = (torso.CFrame * CFrame.new(x * 1 - 1, 1, 0.5)).p
  2396. else
  2397. points[x][y]:step()
  2398. end
  2399. end
  2400. end
  2401. for i = 1, #links do
  2402. links[i]:step()
  2403. end
  2404. for i = 1, #tris do
  2405. triParts[#triParts + 1] = tris[i].p1
  2406. triParts[#triParts + 1] = tris[i].p2
  2407. end
  2408. tris = {}
  2409. for x = 1, 2 do
  2410. for y = 1, 3 do
  2411. tris[#tris + 1] = drawTri(torso, points[x - 1][y - 1].position, points[x - 1][y].position, points[x][y - 1].position)
  2412. tris[#tris + 1] = drawTri(torso, points[x][y].position, points[x - 1][y].position, points[x][y - 1].position)
  2413. end
  2414. end
  2415. end)
  2416. --By zed_isJayTheLionJR
  2417. sound = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  2418. sound.SoundId = "rbxassetid://1252113657"
  2419. Instance.new("ForceField", game.Players.LocalPlayer.Character)
  2420. mouse = game.Players.LocalPlayer:GetMouse()
  2421. function key(key)
  2422. key = key:lower()
  2423. if key == "q" then
  2424. for i = 1,5 do
  2425. wait(0.01)
  2426. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(0,0,0.35)
  2427. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.Angles(0.25,0,0)
  2428. plr.HumanoidRootPart.RootJoint.C1 = plr.HumanoidRootPart.RootJoint.C1 * CFrame.Angles(0,0,-0.35)
  2429. end
  2430. sound:Play()
  2431. local hit = Instance.new("Explosion", plr["Right Arm"])
  2432. hit.Position = plr["Right Arm"].Position
  2433. hit.Visible = false
  2434. hit.BlastPressure = 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  2435. hit.BlastRadius = 25
  2436. wait(0.05)
  2437. for i = 1,5 do
  2438. wait(0.01)
  2439. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(0,0,-0.35)
  2440. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.Angles(-0.25,0,0)
  2441. plr.HumanoidRootPart.RootJoint.C1 = plr.HumanoidRootPart.RootJoint.C1 * CFrame.Angles(0,0,0.35)
  2442. end
  2443. hit:destroy()
  2444. end
  2445. if key == "e" then
  2446. for i = 1,5 do
  2447. wait(0.01)
  2448. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,-0.3)
  2449. plr.HumanoidRootPart.RootJoint.C1 = plr.HumanoidRootPart.RootJoint.C1 * CFrame.Angles(0.05,0,0)
  2450. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.Angles(0,0,0.06)
  2451. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.Angles(0,0,0.06)
  2452. sound.PlaybackSpeed = 40
  2453. end
  2454. sound:Play()
  2455. local hit1 = Instance.new("Explosion", plr["Right Leg"])
  2456. hit1.Position = plr["Right Leg"].Position
  2457. hit1.Visible = false
  2458. hit1.BlastPressure = 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  2459. hit1.BlastRadius = 25
  2460. wait(0.1)
  2461. for i = 1,5 do
  2462. wait(0.01)
  2463. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,0.3)
  2464. plr.HumanoidRootPart.RootJoint.C1 = plr.HumanoidRootPart.RootJoint.C1 * CFrame.Angles(-0.05,0,0)
  2465. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.Angles(0,0,-0.06)
  2466. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.Angles(0,0,-0.06)
  2467. end
  2468. sound.PlaybackSpeed = 1
  2469. hit1:destory()
  2470. end
  2471. if key == "r" then
  2472. for i = 1,5 do
  2473. wait(0.01)
  2474. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(0,0,-0.35)
  2475. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.Angles(0.25,0,0)
  2476. plr.HumanoidRootPart.RootJoint.C1 = plr.HumanoidRootPart.RootJoint.C1 * CFrame.Angles(0,0,0.35)
  2477. end
  2478. sound:Play()
  2479. local hit2 = Instance.new("Explosion", plr["Left Arm"])
  2480. hit2.Position = plr["Left Arm"].Position
  2481. hit2.Visible = false
  2482. hit2.BlastPressure = 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  2483. hit2.BlastRadius = 25
  2484. wait(0.05)
  2485. for i = 1,5 do
  2486. wait(0.01)
  2487. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(0,0,0.35)
  2488. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.Angles(-0.25,0,0)
  2489. plr.HumanoidRootPart.RootJoint.C1 = plr.HumanoidRootPart.RootJoint.C1 * CFrame.Angles(0,0,-0.35)
  2490. end
  2491. hit2:destroy()
  2492. end
  2493. end
  2494. mouse.KeyDown:connect(key)
  2495. plr = game.Players.LocalPlayer.Character
  2496. sound1 = Instance.new("Sound", plr.Head)
  2497. sound1.SoundId = ""
  2498. sound1:Play()
  2499. sound1.Looped = false
  2500. sound1.Volume = 10
  2501. plr.HumanoidRootPart.RootJoint.C1 = plr.HumanoidRootPart.RootJoint.C1 * CFrame.Angles(-0.05,0,0)
  2502. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.Angles(0.1,0.1,0.1)
  2503. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.Angles(0.1,0.1,0.1)
  2504. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,-0.15)
  2505. plr.Torso["Left Hip"].C1 = plr.Torso["Left Hip"].C1 * CFrame.Angles(0,0,-0.15)
  2506. while true do
  2507. wait(0.01)
  2508. for i = 1,2 do
  2509. wait(0.05)
  2510. plr = game.Players.LocalPlayer.Character
  2511. plr.Torso["Left Hip"].C1 = plr.Torso["Left Hip"].C1 * CFrame.Angles(0,0,-0.005)
  2512. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,-0.005)
  2513. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(-0.005,0,-0.005)
  2514. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.new(0,0.01,0)
  2515. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.new(0,0.01,0)
  2516. end
  2517. for i = 1,2 do
  2518. wait(0.05)
  2519. plr.Torso["Left Hip"].C1 = plr.Torso["Left Hip"].C1 * CFrame.Angles(0,0,-0.005)
  2520. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,-0.005)
  2521. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(-0.005,0,-0.005)
  2522. plr = game.Players.LocalPlayer.Character
  2523. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.new(0,0.02,0)
  2524. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.new(0,0.02,0)
  2525. end
  2526. for i = 1,3 do
  2527. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(-0.005,0,-0.005)
  2528. wait(0.05)
  2529. plr.Torso["Left Hip"].C1 = plr.Torso["Left Hip"].C1 * CFrame.Angles(0,0,-0.005)
  2530. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,-0.005)
  2531. plr = game.Players.LocalPlayer.Character
  2532. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.new(0,0.025,0)
  2533. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.new(0,0.025,0)
  2534. end
  2535. wait(1)
  2536. -------------------------------------------------------------------------------------------------------
  2537. for i = 1,3 do
  2538. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(0.005,0,0.005)
  2539. wait(0.05)
  2540. plr.Torso["Left Hip"].C1 = plr.Torso["Left Hip"].C1 * CFrame.Angles(0,0,0.005)
  2541. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,0.005)
  2542. plr = game.Players.LocalPlayer.Character
  2543. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.new(0,-0.025,0)
  2544. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.new(0,-0.025,0)
  2545.  
  2546. end
  2547. for i = 1,2 do
  2548. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,0.005)
  2549. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(0.005,0,0.005)
  2550. wait(0.05)
  2551. plr.Torso["Left Hip"].C1 = plr.Torso["Left Hip"].C1 * CFrame.Angles(0,0,0.005)
  2552. plr = game.Players.LocalPlayer.Character
  2553. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.new(0,-0.02,0)
  2554. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.new(0,-0.02,0)
  2555.  
  2556. end
  2557. for i = 1,2 do
  2558. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,0.005)
  2559. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(0.005,0,0.005)
  2560. wait(0.05)
  2561. plr.Torso["Left Hip"].C1 = plr.Torso["Left Hip"].C1 * CFrame.Angles(0,0,0.005)
  2562. plr = game.Players.LocalPlayer.Character
  2563. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.new(0,-0.01,0)
  2564. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.new(0,-0.01,0)
  2565. game.Workspace.JayTheLionJR.Humanoid.WalkSpeed = 170
  2566. --By zed_isJayTheLionJR
  2567. sound = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  2568. sound.SoundId = "rbxassetid://1252113657"
  2569. Instance.new("ForceField", game.Players.LocalPlayer.Character)
  2570. mouse = game.Players.LocalPlayer:GetMouse()
  2571. function key(key)
  2572. key = key:lower()
  2573. if key == "q" then
  2574. for i = 1,5 do
  2575. wait(0.01)
  2576. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(0,0,0.35)
  2577. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.Angles(0.25,0,0)
  2578. plr.HumanoidRootPart.RootJoint.C1 = plr.HumanoidRootPart.RootJoint.C1 * CFrame.Angles(0,0,-0.35)
  2579. end
  2580. sound:Play()
  2581. local hit = Instance.new("Explosion", plr["Right Arm"])
  2582. hit.Position = plr["Right Arm"].Position
  2583. hit.Visible = false
  2584. hit.BlastPressure = 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  2585. hit.BlastRadius = 100
  2586. wait(0.05)
  2587. for i = 1,5 do
  2588. wait(0.01)
  2589. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(0,0,-0.35)
  2590. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.Angles(-0.25,0,0)
  2591. plr.HumanoidRootPart.RootJoint.C1 = plr.HumanoidRootPart.RootJoint.C1 * CFrame.Angles(0,0,0.35)
  2592. end
  2593. hit:destroy()
  2594. end
  2595. if key == "e" then
  2596. for i = 1,5 do
  2597. wait(0.01)
  2598. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,-0.3)
  2599. plr.HumanoidRootPart.RootJoint.C1 = plr.HumanoidRootPart.RootJoint.C1 * CFrame.Angles(0.05,0,0)
  2600. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.Angles(0,0,0.06)
  2601. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.Angles(0,0,0.06)
  2602. sound.PlaybackSpeed = 40
  2603. end
  2604. sound:Play()
  2605. local hit1 = Instance.new("Explosion", plr["Right Leg"])
  2606. hit1.Position = plr["Right Leg"].Position
  2607. hit1.Visible = false
  2608. hit1.BlastPressure = 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  2609. hit1.BlastRadius = 100
  2610. wait(0.1)
  2611. for i = 1,5 do
  2612. wait(0.01)
  2613. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,0.3)
  2614. plr.HumanoidRootPart.RootJoint.C1 = plr.HumanoidRootPart.RootJoint.C1 * CFrame.Angles(-0.05,0,0)
  2615. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.Angles(0,0,-0.06)
  2616. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.Angles(0,0,-0.06)
  2617. end
  2618. sound.PlaybackSpeed = 1
  2619. hit1:destory()
  2620. end
  2621. if key == "r" then
  2622. for i = 1,5 do
  2623. wait(0.01)
  2624. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(0,0,-0.35)
  2625. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.Angles(0.25,0,0)
  2626. plr.HumanoidRootPart.RootJoint.C1 = plr.HumanoidRootPart.RootJoint.C1 * CFrame.Angles(0,0,0.35)
  2627. end
  2628. sound:Play()
  2629. local hit2 = Instance.new("Explosion", plr["Left Arm"])
  2630. hit2.Position = plr["Left Arm"].Position
  2631. hit2.Visible = false
  2632. hit2.BlastPressure = 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  2633. hit2.BlastRadius = 100
  2634. wait(0.05)
  2635. for i = 1,5 do
  2636. wait(0.01)
  2637. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(0,0,0.35)
  2638. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.Angles(-0.25,0,0)
  2639. plr.HumanoidRootPart.RootJoint.C1 = plr.HumanoidRootPart.RootJoint.C1 * CFrame.Angles(0,0,-0.35)
  2640. end
  2641. hit2:destroy()
  2642. end
  2643. end
  2644. mouse.KeyDown:connect(key)
  2645. plr = game.Players.LocalPlayer.Character
  2646. sound1 = Instance.new("Sound", plr.Head)
  2647. sound1.SoundId = "rbxassetid://1252113657"
  2648. sound1:Play()
  2649. sound1.Looped = false
  2650. sound1.Volume = 10
  2651. plr.HumanoidRootPart.RootJoint.C1 = plr.HumanoidRootPart.RootJoint.C1 * CFrame.Angles(-0.05,0,0)
  2652. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.Angles(0.1,0.1,0.1)
  2653. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.Angles(0.1,0.1,0.1)
  2654. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,-0.15)
  2655. plr.Torso["Left Hip"].C1 = plr.Torso["Left Hip"].C1 * CFrame.Angles(0,0,-0.15)
  2656. while true do
  2657. wait(0.01)
  2658. for i = 1,2 do
  2659. wait(0.05)
  2660. plr = game.Players.LocalPlayer.Character
  2661. plr.Torso["Left Hip"].C1 = plr.Torso["Left Hip"].C1 * CFrame.Angles(0,0,-0.005)
  2662. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,-0.005)
  2663. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(-0.005,0,-0.005)
  2664. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.new(0,0.01,0)
  2665. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.new(0,0.01,0)
  2666. end
  2667. for i = 1,2 do
  2668. wait(0.05)
  2669. plr.Torso["Left Hip"].C1 = plr.Torso["Left Hip"].C1 * CFrame.Angles(0,0,-0.005)
  2670. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,-0.005)
  2671. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(-0.005,0,-0.005)
  2672. plr = game.Players.LocalPlayer.Character
  2673. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.new(0,0.02,0)
  2674. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.new(0,0.02,0)
  2675. end
  2676. for i = 1,3 do
  2677. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(-0.005,0,-0.005)
  2678. wait(0.05)
  2679. plr.Torso["Left Hip"].C1 = plr.Torso["Left Hip"].C1 * CFrame.Angles(0,0,-0.005)
  2680. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,-0.005)
  2681. plr = game.Players.LocalPlayer.Character
  2682. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.new(0,0.025,0)
  2683. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.new(0,0.025,0)
  2684. end
  2685. wait(1)
  2686. -------------------------------------------------------------------------------------------------------
  2687. for i = 1,3 do
  2688. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(0.005,0,0.005)
  2689. wait(0.05)
  2690. plr.Torso["Left Hip"].C1 = plr.Torso["Left Hip"].C1 * CFrame.Angles(0,0,0.005)
  2691. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,0.005)
  2692. plr = game.Players.LocalPlayer.Character
  2693. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.new(0,-0.025,0)
  2694. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.new(0,-0.025,0)
  2695.  
  2696. end
  2697. for i = 1,2 do
  2698. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,0.005)
  2699. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(0.005,0,0.005)
  2700. wait(0.05)
  2701. plr.Torso["Left Hip"].C1 = plr.Torso["Left Hip"].C1 * CFrame.Angles(0,0,0.005)
  2702. plr = game.Players.LocalPlayer.Character
  2703. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.new(0,-0.02,0)
  2704. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.new(0,-0.02,0)
  2705.  
  2706. end
  2707. for i = 1,2 do
  2708. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,0.005)
  2709. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(0.005,0,0.005)
  2710. wait(0.05)
  2711. plr.Torso["Left Hip"].C1 = plr.Torso["Left Hip"].C1 * CFrame.Angles(0,0,0.005)
  2712. plr = game.Players.LocalPlayer.Character
  2713. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.new(0,-0.01,0)
  2714. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.new(0,-0.01,0)
  2715. game.Workspace.JayTheLionJR.Humanoid.WalkSpeed = 170
  2716. p = game.Players.LocalPlayer
  2717. char = p.Character
  2718. des = false
  2719. fling = true
  2720. dot = false
  2721. falling = false
  2722. jump = true
  2723. char.Shirt:Remove()
  2724. for i,v in pairs(char:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
  2725. for i,v in pairs(char:GetChildren()) do if v:IsA("Hat") then v.Handle:Remove() end end
  2726. wait()shirt = Instance.new("Shirt", char)
  2727. shirt.Name = "Shirt"
  2728. pants = Instance.new("Pants", char)
  2729. pants.Name = "Pants"
  2730.  
  2731. char.Shirt.ShirtTemplate = "rbxassetid://1221569770"
  2732. char.Pants.PantsTemplate = "rbxassetid://217061019"
  2733. tp = true
  2734. shoot = true
  2735. hum = char.Humanoid
  2736. punch = true
  2737. neckp = char.Torso.Neck.C0
  2738. neck = char.Torso.Neck
  2739. hum.MaxHealth = 9e999
  2740. wait()
  2741. hum.Health =hum.MaxHealth
  2742. des = false
  2743. root=char.HumanoidRootPart
  2744. torso = char.Torso
  2745. char.Head.face.Texture = "rbxassetid://860656752"
  2746. end
  2747. end
  2748. end
  2749. end
Add Comment
Please, Sign In to add comment