Advertisement
Guest User

cock

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