Advertisement
zXzGamePROzXz

Untitled

Jan 4th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 87.86 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
  2. print("FE Compatibility: by WaverlyCole & Mokiros")
  3. InternalData = {}
  4. do
  5. script.Parent = owner.Character
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput"
  8. local function NewFakeEvent()
  9. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  10. return Fake
  11. end
  12. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  13. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  14. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  15. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  16. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  17. local function TriggerEvent(self,Event,...)
  18. local Trigger = Mouse[Event]
  19. if Trigger and Trigger.fakeEvent and Trigger.Function then
  20. Trigger.Function(...)
  21. end
  22. end
  23. Mouse.TrigEvent = TriggerEvent
  24. UserInputService.TrigEvent = TriggerEvent
  25. Event.OnServerEvent:Connect(function(FiredBy,Input)
  26. if FiredBy.Name ~= owner.Name then end
  27. if Input.MouseEvent then
  28. Mouse.Target = Input.Target
  29. Mouse.Hit = Input.Hit
  30. else
  31. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  32. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  33. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  34. end
  35. for _,Action in pairs(ContextActionService.Actions) do
  36. for _,Key in pairs(Action.Keys) do
  37. if Key==Input.KeyCode then
  38. Action.Function(Action.Name,Input.UserInputState,Input)
  39. end
  40. end
  41.  
  42. -- Extracted from nebula hub by DOGGΩ#0018
  43. local plr = game.Players.LocalPlayer
  44.  
  45. local char = plr.Character
  46.  
  47. local larm = char["Left Arm"]
  48.  
  49. local rarm = char["Right Arm"]
  50.  
  51. local lleg = char["Left Leg"]
  52.  
  53. local rleg = char["Right Leg"]
  54.  
  55. local head = char.Head
  56.  
  57. local torso = char.Torso
  58.  
  59.  
  60.  
  61. for i,v in pairs(char:children()) do
  62.  
  63. if v:IsA("Hat") then
  64.  
  65. v:Destroy()
  66.  
  67. end
  68.  
  69. end
  70.  
  71.  
  72.  
  73. for i,v in pairs (head:GetChildren()) do
  74.  
  75. if v:IsA("Sound") then
  76.  
  77. v:Destroy()
  78.  
  79. end
  80.  
  81. end
  82.  
  83.  
  84.  
  85. larm.Transparency = 1
  86.  
  87. rarm.Transparency = 1
  88.  
  89. lleg.Transparency = 1
  90.  
  91. rleg.Transparency = 1
  92.  
  93. torso.Transparency = 1
  94.  
  95. head.Transparency = 1
  96.  
  97. head.face.Transparency = 1
  98.  
  99.  
  100.  
  101. larm.CanCollide = false
  102.  
  103. rarm.CanCollide = false
  104.  
  105. lleg.CanCollide = false
  106.  
  107. rleg.CanCollide = false
  108.  
  109. head.CanCollide = false
  110.  
  111. torso.CanCollide = false
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133. --[[
  134.  
  135. Shadow V1
  136.  
  137. By:LuaLlama
  138.  
  139. --]]
  140.  
  141. local Player = game.Players.LocalPlayer
  142.  
  143. local Character = Player.Character or Player.CharacterAdded:wait()
  144.  
  145. local Mouse = Player:GetMouse()
  146.  
  147. local Spread = 20
  148.  
  149. local Activate = false
  150.  
  151. local Holder = Instance.new('Model', Character)
  152.  
  153. local Color = BrickColor.new('Institutional white') -- Institutional white
  154.  
  155. local run
  156.  
  157. local wall = false
  158.  
  159. local fire = false
  160.  
  161. local Blocks = {}
  162.  
  163.  
  164.  
  165. function Boomeffect()
  166.  
  167. local Ball = Instance.new('Part', Holder)
  168.  
  169. Ball.Shape = 'Ball'
  170.  
  171. Ball.BrickColor = Color
  172.  
  173. Ball.Material = Enum.Material.Neon
  174.  
  175. Ball.Anchored = true
  176.  
  177. Ball.CanCollide = false
  178.  
  179. Ball.CFrame = Character.Torso.CFrame
  180.  
  181. coroutine.resume(coroutine.create(function()
  182.  
  183. for i=0,10,0.5 do
  184.  
  185. Ball.Size = Vector3.new(i,i,i)
  186.  
  187. Ball.CFrame = Character.Torso.CFrame
  188.  
  189. Ball.Transparency = i/10
  190.  
  191. wait()
  192.  
  193. end
  194.  
  195. Ball:Destroy()
  196.  
  197. end))
  198.  
  199. end
  200.  
  201.  
  202.  
  203. function Unboomeffect()
  204.  
  205. local Ball = Instance.new('Part', Holder)
  206.  
  207. Ball.Shape = 'Ball'
  208.  
  209. Ball.BrickColor = Color
  210.  
  211. Ball.Material = Enum.Material.Neon
  212.  
  213. Ball.Anchored = true
  214.  
  215. Ball.CanCollide = false
  216.  
  217. Ball.CFrame = Character.Torso.CFrame
  218.  
  219. coroutine.resume(coroutine.create(function()
  220.  
  221. for i=10,0,-0.5 do
  222.  
  223. Ball.Size = Vector3.new(i,i,i)
  224.  
  225. Ball.CFrame = Character.Torso.CFrame
  226.  
  227. Ball.Transparency = i/10
  228.  
  229. wait()
  230.  
  231. end
  232.  
  233. Ball:Destroy()
  234.  
  235. end))
  236.  
  237. end
  238.  
  239.  
  240.  
  241. function onKeyPress(inputObject, gameProcessedEvent)
  242.  
  243. if inputObject.KeyCode == Enum.KeyCode.Q then -- Activate
  244.  
  245. if Activate then
  246.  
  247. --run:disconnect()
  248.  
  249. Activate = false
  250.  
  251. Character.Humanoid.WalkSpeed = 16
  252.  
  253. Character.Humanoid.JumpPower = 50
  254.  
  255. Unboomeffect()
  256.  
  257. else
  258.  
  259. Activate = true
  260.  
  261. Character.Humanoid.WalkSpeed = 200
  262.  
  263. Character.Humanoid.JumpPower = 200
  264.  
  265. Boomeffect()
  266.  
  267. wait(0.35)
  268.  
  269. --run = game:GetService('RunService').Stepped:connect(function()
  270.  
  271. repeat
  272.  
  273. wait()
  274.  
  275. if fire then repeat wait(0.1) until not fire end
  276.  
  277. for i,v in ipairs(Character:GetChildren()) do
  278.  
  279. local Shadow
  280.  
  281. if v:IsA('BasePart') then
  282.  
  283. Shadow = v:Clone()
  284.  
  285. end
  286.  
  287. if Shadow then
  288.  
  289. Shadow:ClearAllChildren()
  290.  
  291. local BF = Instance.new('BodyVelocity', Shadow)
  292.  
  293. BF.velocity = Vector3.new(math.random(-Spread, Spread), math.random(-Spread, Spread), math.random(-Spread, Spread))
  294.  
  295. BF.Name = 'BF'
  296.  
  297. Shadow.Parent = Holder
  298.  
  299. Shadow.CanCollide = false
  300.  
  301. Shadow.Transparency = 0.5
  302.  
  303. Shadow.Material = 'Neon'
  304.  
  305. Shadow.BrickColor = Color
  306.  
  307. table.insert(Blocks, Shadow)
  308.  
  309. coroutine.resume(coroutine.create(function()
  310.  
  311. for i=0,10,0.5 do
  312.  
  313. Shadow.Transparency = i/10
  314.  
  315. wait()
  316.  
  317. end
  318.  
  319. for i,v in next, Blocks do
  320.  
  321. if v == Shadow then
  322.  
  323. table.remove(Blocks, i)
  324.  
  325. break
  326.  
  327. end
  328.  
  329. end
  330.  
  331. Shadow:Destroy()
  332.  
  333. end))
  334.  
  335. end
  336.  
  337. end
  338.  
  339. until not Activate
  340.  
  341. --end)
  342.  
  343. end
  344.  
  345. end
  346.  
  347.  
  348.  
  349. if inputObject.KeyCode == Enum.KeyCode.L then -- Beam
  350.  
  351. if Mouse.Target and Mouse.Hit and Activate then
  352.  
  353. local Pos = Mouse.Hit.p
  354.  
  355. local Part = Mouse.Target
  356.  
  357. local Dist = (Character.Torso.Position - Pos).magnitude
  358.  
  359.  
  360.  
  361. local Beam = Instance.new("Part", Holder)
  362.  
  363. Beam.Name = "Beam"
  364.  
  365. Beam.BrickColor = Color
  366.  
  367. Beam.Transparency = 0.5
  368.  
  369. Beam.Anchored = true
  370.  
  371. Beam.CanCollide = false
  372.  
  373. Beam.Material = 'Neon'
  374.  
  375. Beam.Size = Vector3.new(0, 0, Dist)
  376.  
  377. Beam.CFrame = CFrame.new(Character.Torso.Position, Pos) * CFrame.new(0, 0, -Dist/2)
  378.  
  379.  
  380.  
  381. local explo = Instance.new('Explosion', Beam)
  382.  
  383. explo.Position = Pos
  384.  
  385. -- Damage
  386.  
  387.  
  388.  
  389. if Part.Parent ~= Character then
  390.  
  391. local Human
  392.  
  393. for i,v in ipairs(Part.Parent:GetChildren()) do
  394.  
  395. if v:IsA('Humanoid') then
  396.  
  397. Human = v
  398.  
  399. break
  400.  
  401. end
  402.  
  403. end
  404.  
  405. if Human then
  406.  
  407. Human:TakeDamage(25)
  408.  
  409. end
  410.  
  411. end
  412.  
  413.  
  414.  
  415.  
  416.  
  417. coroutine.resume(coroutine.create(function()
  418.  
  419. for i=0,10,2 do
  420.  
  421. Dist = (Character.Torso.Position - Pos).magnitude
  422.  
  423. Beam.Size = Vector3.new(i/2,i/2,Dist)
  424.  
  425. Beam.CFrame = CFrame.new(Character.Torso.Position, Pos) * CFrame.new(0, 0, -Dist/2)
  426.  
  427. Beam.Transparency = i/10
  428.  
  429. wait()
  430.  
  431. end
  432.  
  433. Beam:Destroy()
  434.  
  435. end))
  436.  
  437. end
  438.  
  439. end
  440.  
  441.  
  442.  
  443. if inputObject.KeyCode == Enum.KeyCode.R and Activate and not wall then -- Terrain misshap
  444.  
  445. wall = true
  446.  
  447. local cf = Character.Torso.CFrame
  448.  
  449. for i=1,18 do
  450.  
  451. wait(0.125)
  452.  
  453. local Pos = (cf*CFrame.Angles(0, math.rad(i*20), 0))*CFrame.new(35,0,0)
  454.  
  455. local Terrain = Instance.new('Part', game.Workspace)
  456.  
  457. Terrain.Material = 'Neon'
  458.  
  459. Terrain.BrickColor = Color
  460.  
  461. Terrain.Size = Vector3.new(10,0,10)
  462.  
  463. Terrain.CFrame = CFrame.new(Pos.p - Vector3.new(0, -3, 0))
  464.  
  465. Terrain.Anchored = true
  466.  
  467.  
  468.  
  469. Terrain.Touched:connect(function(Part)
  470.  
  471. if Part.Parent ~= Character then
  472.  
  473. local Human
  474.  
  475. for i,v in ipairs(Part.Parent:GetChildren()) do
  476.  
  477. if v:IsA('Humanoid') then
  478.  
  479. Human = v
  480.  
  481. break
  482.  
  483. end
  484.  
  485. end
  486.  
  487. if Human then
  488.  
  489. Human:TakeDamage(25)
  490.  
  491. end
  492.  
  493. end
  494.  
  495. end)
  496.  
  497.  
  498.  
  499. coroutine.resume(coroutine.create(function()
  500.  
  501. for i=0,100,8 do
  502.  
  503. Terrain.Size = Vector3.new(10,i/2,10)
  504.  
  505. Terrain.CFrame = CFrame.new(Pos.p+Vector3.new(0, i/4, 0) + Vector3.new(0, -3, 0))
  506.  
  507. --Terrain.Transparency = 1-(i/100)
  508.  
  509. wait()
  510.  
  511. end
  512.  
  513. wait(1)
  514.  
  515. for i=100,0,-16 do
  516.  
  517. Terrain.Size = Vector3.new(10,i/2,10)
  518.  
  519. Terrain.CFrame = CFrame.new(Pos.p+Vector3.new(0, i/4, 0) + Vector3.new(0, -3, 0))
  520.  
  521. wait()
  522.  
  523. end
  524.  
  525. Terrain:Destroy()
  526.  
  527. end))
  528.  
  529. end
  530.  
  531. wall = false
  532.  
  533. end
  534.  
  535.  
  536.  
  537. if inputObject.KeyCode == Enum.KeyCode.T and Activate and not fire then -- Teleport
  538.  
  539. if Mouse.Target and Mouse.Hit then
  540.  
  541. fire = true
  542.  
  543. local Pos = Mouse.Hit.p
  544.  
  545. for i,v in next, Blocks do
  546.  
  547. if v.Parent then
  548.  
  549. if v:FindFirstChild('BF') then
  550.  
  551. v.BF.Velocity = CFrame.new(Character.Torso.Position, Pos).lookVector *math.random(1,Spread*10)
  552.  
  553. end
  554.  
  555. game:GetService('Debris'):AddItem(v, 2)
  556.  
  557. v.Touched:connect(function(Part)
  558.  
  559. if Part.Parent and Part.Parent ~= Character then
  560.  
  561. local Human
  562.  
  563. for i,v in ipairs(Part.Parent:GetChildren()) do
  564.  
  565. if v:IsA('Humanoid') then
  566.  
  567. Human = v
  568.  
  569. break
  570.  
  571. end
  572.  
  573. end
  574.  
  575. if Human then
  576.  
  577. Human:TakeDamage(5)
  578.  
  579. v:Destroy()
  580.  
  581. end
  582.  
  583. end
  584.  
  585. end)
  586.  
  587. end
  588.  
  589. end
  590.  
  591. Blocks = {}
  592.  
  593. fire = false
  594.  
  595. end
  596.  
  597. end
  598.  
  599. end
  600.  
  601.  
  602.  
  603. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  604.  
  605. local isScriptNil = false
  606.  
  607.  
  608.  
  609. local PlrName = "saud20"
  610.  
  611. local Plrs = game:GetService("Players")
  612.  
  613. local RunService = game:GetService("RunService")
  614.  
  615. local Content = game:GetService("ContentProvider")
  616.  
  617. local LP = Plrs.LocalPlayer
  618.  
  619. local Char = LP.Character
  620.  
  621. local PlrGui = LP.PlayerGui
  622.  
  623. local Backpack = LP.Backpack
  624.  
  625. local Mouse = LP:GetMouse()
  626.  
  627.  
  628.  
  629. local Camera = Workspace.CurrentCamera
  630.  
  631. local LastCamCF = Camera.CoordinateFrame
  632.  
  633. local AnimJoints = {}
  634.  
  635. local Cons = {}
  636.  
  637. local mDown = false
  638.  
  639. local Multi = false
  640.  
  641. local Grabbing = false
  642.  
  643. local Current = {}
  644.  
  645. local Alpha = 1
  646.  
  647. local LightNum = 1
  648.  
  649.  
  650.  
  651. Current.Part = nil
  652.  
  653. Current.BP = nil
  654.  
  655. Current.BA = nil
  656.  
  657. Current.Mass = nil
  658.  
  659.  
  660.  
  661. local LastPart = nil
  662.  
  663.  
  664.  
  665. local Head = Char["Head"]
  666.  
  667. local Torso = Char["Torso"]
  668.  
  669. local Humanoid = Char["Humanoid"]
  670.  
  671. local LA = Char["Left Arm"]
  672.  
  673. local RA = Char["Right Arm"]
  674.  
  675. local LL = Char["Left Leg"]
  676.  
  677. local RL = Char["Right Leg"]
  678.  
  679.  
  680.  
  681. local LS, RS;
  682.  
  683.  
  684.  
  685. local OrigLS = Torso["Left Shoulder"]
  686.  
  687. local OrigRS = Torso["Right Shoulder"]
  688.  
  689.  
  690.  
  691. for _,v in pairs(Char:GetChildren()) do
  692.  
  693. if v.Name == ModID then
  694.  
  695. v:Destroy()
  696.  
  697. end
  698.  
  699. end
  700.  
  701.  
  702.  
  703. for _,v in pairs(PlrGui:GetChildren()) do
  704.  
  705. if v.Name == "PadsGui" then
  706.  
  707. v:Destroy()
  708.  
  709. end
  710.  
  711. end
  712.  
  713.  
  714.  
  715. local ModID = "Pads"
  716.  
  717. local Objects = {}
  718.  
  719. local Grav = 196.2
  720.  
  721.  
  722.  
  723. local sin=math.sin
  724.  
  725. local cos=math.cos
  726.  
  727. local max=math.max
  728.  
  729. local min=math.min
  730.  
  731. local atan2=math.atan2
  732.  
  733. local random=math.random
  734.  
  735. local tau = 2 * math.pi
  736.  
  737.  
  738.  
  739. local BodyObjects = {
  740.  
  741. ["BodyVelocity"] = true;
  742.  
  743. ["BodyAngularVelocity"] = true;
  744.  
  745. ["BodyForce"] = true;
  746.  
  747. ["BodyThrust"] = true;
  748.  
  749. ["BodyPosition"] = true;
  750.  
  751. ["RocketPropulsion"] = true;
  752.  
  753. }
  754.  
  755.  
  756.  
  757. if LP.Name == PlrName and isScriptNil then
  758.  
  759. script.Parent = nil
  760.  
  761. end
  762.  
  763.  
  764.  
  765. LP.CameraMode = "Classic"
  766.  
  767.  
  768.  
  769. local Assets = {
  770.  
  771. }
  772.  
  773.  
  774.  
  775. local LS0, LS1 = OrigLS.C0, OrigLS.C1
  776.  
  777. local RS0, RS1 = OrigRS.C0, OrigRS.C1
  778.  
  779.  
  780.  
  781. for i,v in pairs(Assets) do
  782.  
  783. local ID = tostring(Assets[i])
  784.  
  785. Assets[i] = "http://www.roblox.com/asset/?id=" .. ID
  786.  
  787. Content:Preload("http://www.roblox.com/asset/?id=" .. ID)
  788.  
  789. end
  790.  
  791.  
  792.  
  793. function QuaternionFromCFrame(cf)
  794.  
  795. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components();
  796.  
  797. local trace = m00 + m11 + m22 if trace > 0 then
  798.  
  799. local s = math.sqrt(1 + trace);
  800.  
  801. local recip = 0.5/s;
  802.  
  803. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5;
  804.  
  805. else
  806.  
  807. local i = 0;
  808.  
  809. if m11 > m00 then
  810.  
  811. i = 1;
  812.  
  813. end;
  814.  
  815. if m22 > (i == 0 and m00 or m11) then
  816.  
  817. i = 2 end if i == 0 then
  818.  
  819. local s = math.sqrt(m00-m11-m22+1);
  820.  
  821. local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip;
  822.  
  823. elseif i == 1 then
  824.  
  825. local s = math.sqrt(m11-m22-m00+1);
  826.  
  827. local recip = 0.5/s;
  828.  
  829. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip ;
  830.  
  831. elseif i == 2 then
  832.  
  833. local s = math.sqrt(m22-m00-m11+1);
  834.  
  835. local recip = 0.5/s;
  836.  
  837. return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip;
  838.  
  839. end;
  840.  
  841. end;
  842.  
  843. end;
  844.  
  845.  
  846.  
  847. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  848.  
  849. local xs, ys, zs = x + x, y + y, z + z;
  850.  
  851. local wx, wy, wz = w*xs, w*ys, w*zs;
  852.  
  853. local xx = x*xs;
  854.  
  855. local xy = x*ys;
  856.  
  857. local xz = x*zs;
  858.  
  859. local yy = y*ys;
  860.  
  861. local yz = y*zs;
  862.  
  863. local zz = z*zs;
  864.  
  865. 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))
  866.  
  867. end;
  868.  
  869.  
  870.  
  871. function QuaternionSlerp(a, b, t)
  872.  
  873. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4];
  874.  
  875. local startInterp, finishInterp;
  876.  
  877. if cosTheta >= 0.0001 then
  878.  
  879. if (1 - cosTheta) > 0.0001 then
  880.  
  881. local theta = math.acos(cosTheta);
  882.  
  883. local invSinTheta = 1/math.sin(theta);
  884.  
  885. startInterp = math.sin((1-t)*theta)*invSinTheta;
  886.  
  887. finishInterp = math.sin(t*theta)*invSinTheta;
  888.  
  889. else
  890.  
  891. startInterp = 1-t finishInterp = t;
  892.  
  893. end;
  894.  
  895. else
  896.  
  897. if (1+cosTheta) > 0.0001 then
  898.  
  899. local theta = math.acos(-cosTheta);
  900.  
  901. local invSinTheta = 1/math.sin(theta);
  902.  
  903. startInterp = math.sin((t-1)*theta)*invSinTheta;
  904.  
  905. finishInterp = math.sin(t*theta)*invSinTheta;
  906.  
  907. else startInterp = t-1 finishInterp = t;
  908.  
  909. end;
  910.  
  911. end;
  912.  
  913. 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;
  914.  
  915. end;
  916.  
  917.  
  918.  
  919. function CLerp(a,b,t)
  920.  
  921. local qa={QuaternionFromCFrame(a)};
  922.  
  923. local qb={QuaternionFromCFrame(b)};
  924.  
  925. local ax,ay,az=a.x,a.y,a.z;
  926.  
  927. local bx,by,bz=b.x,b.y,b.z;
  928.  
  929. local _t=1-t;
  930.  
  931. return QuaternionToCFrame(_t*ax+t*bx,_t*ay+t*by,_t*az+t*bz,QuaternionSlerp(qa, qb, t));
  932.  
  933. end
  934.  
  935.  
  936.  
  937. function GetWeld(weld)
  938.  
  939. local obj
  940.  
  941. for i, v in pairs(AnimJoints) do
  942.  
  943. if v[1] == weld then
  944.  
  945. obj = v
  946.  
  947. break
  948.  
  949. end
  950.  
  951. end
  952.  
  953. if not obj then
  954.  
  955. obj = {weld,NV}
  956.  
  957. table.insert(AnimJoints,obj)
  958.  
  959. end
  960.  
  961. return weld.C0.p, obj[2]
  962.  
  963. end
  964.  
  965.  
  966.  
  967. function SetWeld(weld, i, loops, origpos, origangle, nextpos, nextangle, override, overrideLower, smooth)
  968.  
  969. smooth = smooth or 1
  970.  
  971. local obj
  972.  
  973. for i, v in pairs(AnimJoints) do
  974.  
  975. if v[1] == weld then
  976.  
  977. obj = v
  978.  
  979. break
  980.  
  981. end
  982.  
  983. end
  984.  
  985. if not obj then
  986.  
  987. obj = {weld,NV}
  988.  
  989. table.insert(AnimJoints,obj)
  990.  
  991. end
  992.  
  993.  
  994.  
  995. local perc = (smooth == 1 and math.sin((math.pi/2)/loops*i)) or i/loops
  996.  
  997.  
  998.  
  999. local tox,toy,toz = 0,0,0
  1000.  
  1001. tox = math.abs(origangle.x - nextangle.x) *perc
  1002.  
  1003. toy = math.abs(origangle.y - nextangle.y) *perc
  1004.  
  1005. toz = math.abs(origangle.z - nextangle.z) *perc
  1006.  
  1007. tox = ((origangle.x > nextangle.x and -tox) or tox)
  1008.  
  1009. toy = ((origangle.y > nextangle.y and -toy) or toy)
  1010.  
  1011. toz = ((origangle.z > nextangle.z and -toz) or toz)
  1012.  
  1013.  
  1014.  
  1015. local tox2,toy2,toz2 = 0,0,0
  1016.  
  1017. tox2 = math.abs(origpos.x - nextpos.x) *perc
  1018.  
  1019. toy2 = math.abs(origpos.y - nextpos.y) *perc
  1020.  
  1021. toz2 = math.abs(origpos.z - nextpos.z) *perc
  1022.  
  1023. tox2 = (origpos.x > nextpos.x and -tox2) or tox2
  1024.  
  1025. toy2 = (origpos.y > nextpos.y and -toy2) or toy2
  1026.  
  1027. toz2 = (origpos.z > nextpos.z and -toz2) or toz2
  1028.  
  1029.  
  1030.  
  1031. obj[2] = Vector3.new(origangle.x + tox, origangle.y + toy, origangle.z + toz)
  1032.  
  1033. weld.C0 = CFrame.new(origpos.x + tox2,origpos.y + toy2,origpos.z + toz2) * CFrame.Angles(origangle.x + tox,origangle.y + toy,origangle.z + toz)
  1034.  
  1035. end
  1036.  
  1037.  
  1038.  
  1039. function RotateCamera(x, y)
  1040.  
  1041. 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)
  1042.  
  1043. end
  1044.  
  1045.  
  1046.  
  1047. function GetAngles(cf)
  1048.  
  1049. local lv = cf.lookVector
  1050.  
  1051. return -math.asin(lv.y), math.atan2(lv.x, -lv.z)
  1052.  
  1053. end
  1054.  
  1055.  
  1056.  
  1057. local LastCamCF = Camera.CoordinateFrame
  1058.  
  1059.  
  1060.  
  1061. function Look()
  1062.  
  1063. if AlphaOn == true then
  1064.  
  1065. local x, y = GetAngles(LastCamCF:toObjectSpace(Camera.CoordinateFrame))
  1066.  
  1067. Camera.CoordinateFrame = LastCamCF
  1068.  
  1069. RotateCamera(x * -(Alpha), y * -(Alpha))
  1070.  
  1071. LastCamCF = Camera.CoordinateFrame
  1072.  
  1073. end
  1074.  
  1075. end
  1076.  
  1077.  
  1078.  
  1079. function Cor(Func)
  1080.  
  1081. local Ok, Err = coroutine.resume(coroutine.create(Func))
  1082.  
  1083. if not Ok then
  1084.  
  1085. print(Err)
  1086.  
  1087. end
  1088.  
  1089. end
  1090.  
  1091.  
  1092.  
  1093. function Cor2(Func)
  1094.  
  1095. local Ok, Err = ypcall(Func)
  1096.  
  1097. if not Ok then
  1098.  
  1099. print(Err)
  1100.  
  1101. end
  1102.  
  1103. end
  1104.  
  1105.  
  1106.  
  1107. function MakePads()
  1108.  
  1109. -- 1 - VTelekinesis
  1110.  
  1111. P1 = Instance.new("Model")
  1112.  
  1113. P1.Name = ModID
  1114.  
  1115.  
  1116.  
  1117. -- 2 - RBase
  1118.  
  1119. P2 = Instance.new("Part")
  1120.  
  1121. P2.CFrame = CFrame.new(Vector3.new(21.100008, 1.95000589, 11.899971)) * CFrame.Angles(-0, 0, -0)
  1122.  
  1123. P2.FormFactor = Enum.FormFactor.Custom
  1124.  
  1125. P2.Size = Vector3.new(0.799999952, 0.200000003, 0.800000012)
  1126.  
  1127. P2.Anchored = true
  1128.  
  1129. P2.BrickColor = BrickColor.new("White")
  1130.  
  1131. P2.Friction = 0.30000001192093
  1132.  
  1133. P2.Shape = Enum.PartType.Block
  1134.  
  1135. P2.Name = "RBase"
  1136.  
  1137. P2.Parent = P1
  1138.  
  1139. P2.Transparency = 1
  1140.  
  1141.  
  1142.  
  1143. -- 3 - Mesh
  1144.  
  1145. P3 = Instance.new("CylinderMesh")
  1146.  
  1147. P3.Scale = Vector3.new(1, 0.5, 1)
  1148.  
  1149. P3.Parent = P2
  1150.  
  1151.  
  1152.  
  1153. -- 4 - LBase
  1154.  
  1155. P4 = Instance.new("Part")
  1156.  
  1157. P4.CFrame = CFrame.new(Vector3.new(18.100008, 1.95000589, 11.899971)) * CFrame.Angles(-0, 0, -0)
  1158.  
  1159. P4.FormFactor = Enum.FormFactor.Custom
  1160.  
  1161. P4.Size = Vector3.new(0.799999952, 0.200000003, 0.800000012)
  1162.  
  1163. P4.Anchored = true
  1164.  
  1165. P4.BrickColor = BrickColor.new("White")
  1166.  
  1167. P4.Friction = 0.30000001192093
  1168.  
  1169. P4.Shape = Enum.PartType.Block
  1170.  
  1171. P4.Name = "LBase"
  1172.  
  1173. P4.Parent = P1
  1174.  
  1175. P4.Transparency = 1
  1176.  
  1177.  
  1178.  
  1179. -- 5 - Mesh
  1180.  
  1181. P5 = Instance.new("CylinderMesh")
  1182.  
  1183. P5.Scale = Vector3.new(1, 0.5, 1)
  1184.  
  1185. P5.Parent = P4
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191. -- 6 - RP1
  1192.  
  1193. P6 = Instance.new("Part")
  1194.  
  1195. P6.CFrame = CFrame.new(Vector3.new(20.8999996, 1.8499999, 12.0499992)) * CFrame.Angles(-0, 0, -0)
  1196.  
  1197. P6.FormFactor = Enum.FormFactor.Custom
  1198.  
  1199. P6.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1200.  
  1201. P6.Anchored = true
  1202.  
  1203. P6.BrickColor = BrickColor.new("White")
  1204.  
  1205. P6.Friction = 0.30000001192093
  1206.  
  1207. P6.Shape = Enum.PartType.Block
  1208.  
  1209. P6.Name = "RP1"
  1210.  
  1211. P6.Parent = P2
  1212.  
  1213. P6.Transparency = 1
  1214.  
  1215. -- 7 - Mesh
  1216.  
  1217. P7 = Instance.new("CylinderMesh")
  1218.  
  1219. P7.Scale = Vector3.new(1, 0.5, 1)
  1220.  
  1221. P7.Parent = P6
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227. -- 8 - RP2
  1228.  
  1229. P8 = Instance.new("Part")
  1230.  
  1231. P8.CFrame = CFrame.new(Vector3.new(21.1000004, 1.8499999, 11.6999998)) * CFrame.Angles(-0, 0, -0)
  1232.  
  1233. P8.FormFactor = Enum.FormFactor.Custom
  1234.  
  1235. P8.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1236.  
  1237. P8.Anchored = true
  1238.  
  1239. P8.BrickColor = BrickColor.new("White")
  1240.  
  1241. P8.Friction = 0.30000001192093
  1242.  
  1243. P8.Shape = Enum.PartType.Block
  1244.  
  1245. P8.Name = "RP2"
  1246.  
  1247. P8.Parent = P2
  1248.  
  1249. P8.Transparency = 1
  1250.  
  1251.  
  1252.  
  1253. -- 9 - Mesh
  1254.  
  1255. P9 = Instance.new("CylinderMesh")
  1256.  
  1257. P9.Scale = Vector3.new(1, 0.5, 1)
  1258.  
  1259. P9.Parent = P8
  1260.  
  1261.  
  1262.  
  1263. -- 10 - RP3
  1264.  
  1265. P10 = Instance.new("Part")
  1266.  
  1267. P10.CFrame = CFrame.new(Vector3.new(21.3000011, 1.8499999, 12.0499992)) * CFrame.Angles(-0, 0, -0)
  1268.  
  1269. P10.FormFactor = Enum.FormFactor.Custom
  1270.  
  1271. P10.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1272.  
  1273. P10.Anchored = true
  1274.  
  1275. P10.BrickColor = BrickColor.new("White")
  1276.  
  1277. P10.Friction = 0.30000001192093
  1278.  
  1279. P10.Shape = Enum.PartType.Block
  1280.  
  1281. P10.Name = "RP3"
  1282.  
  1283. P10.Parent = P2
  1284.  
  1285. P10.Transparency = 1
  1286.  
  1287.  
  1288.  
  1289. -- 11 - Mesh
  1290.  
  1291. P11 = Instance.new("CylinderMesh")
  1292.  
  1293. P11.Scale = Vector3.new(1, 0.5, 1)
  1294.  
  1295. P11.Parent = P10
  1296.  
  1297.  
  1298.  
  1299.  
  1300.  
  1301. -- 12 - LP1
  1302.  
  1303. P12 = Instance.new("Part")
  1304.  
  1305. P12.CFrame = CFrame.new(Vector3.new(17.8999996, 1.8499999, 12.0499992)) * CFrame.Angles(-0, 0, -0)
  1306.  
  1307. P12.FormFactor = Enum.FormFactor.Custom
  1308.  
  1309. P12.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1310.  
  1311. P12.Anchored = true
  1312.  
  1313. P12.BrickColor = BrickColor.new("White")
  1314.  
  1315. P12.Friction = 0.30000001192093
  1316.  
  1317. P12.Shape = Enum.PartType.Block
  1318.  
  1319. P12.Name = "LP1"
  1320.  
  1321. P12.Parent = P4
  1322.  
  1323. P12.Transparency = 1
  1324.  
  1325.  
  1326.  
  1327. -- 13 - Mesh
  1328.  
  1329. P13 = Instance.new("CylinderMesh")
  1330.  
  1331. P13.Scale = Vector3.new(1, 0.5, 1)
  1332.  
  1333. P13.Parent = P12
  1334.  
  1335.  
  1336.  
  1337. -- 14 - LP2
  1338.  
  1339. P14 = Instance.new("Part")
  1340.  
  1341. P14.CFrame = CFrame.new(Vector3.new(18.1000004, 1.8499999, 11.6999998)) * CFrame.Angles(-0, 0, -0)
  1342.  
  1343. P14.FormFactor = Enum.FormFactor.Custom
  1344.  
  1345. P14.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1346.  
  1347. P14.Anchored = true
  1348.  
  1349. P14.BrickColor = BrickColor.new("White")
  1350.  
  1351. P14.Friction = 0.30000001192093
  1352.  
  1353. P14.Shape = Enum.PartType.Block
  1354.  
  1355. P14.Name = "LP2"
  1356.  
  1357. P14.Parent = P4
  1358.  
  1359. P14.Transparency = 1
  1360.  
  1361.  
  1362.  
  1363. -- 15 - Mesh
  1364.  
  1365. P15 = Instance.new("CylinderMesh")
  1366.  
  1367. P15.Scale = Vector3.new(1, 0.5, 1)
  1368.  
  1369. P15.Parent = P14
  1370.  
  1371.  
  1372.  
  1373.  
  1374.  
  1375. -- 16 - LP3
  1376.  
  1377. P16 = Instance.new("Part")
  1378.  
  1379. P16.CFrame = CFrame.new(Vector3.new(18.3000011, 1.8499999, 12.0499992)) * CFrame.Angles(-0, 0, -0)
  1380.  
  1381. P16.FormFactor = Enum.FormFactor.Custom
  1382.  
  1383. P16.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1384.  
  1385. P16.Anchored = true
  1386.  
  1387. P16.BrickColor = BrickColor.new("White")
  1388.  
  1389. P16.Friction = 0.30000001192093
  1390.  
  1391. P16.Shape = Enum.PartType.Block
  1392.  
  1393. P16.Name = "LP3"
  1394.  
  1395. P16.Parent = P4
  1396.  
  1397. P16.Transparency = 1
  1398.  
  1399.  
  1400.  
  1401. -- 17 - Mesh
  1402.  
  1403. P17 = Instance.new("CylinderMesh")
  1404.  
  1405. P17.Scale = Vector3.new(1, 0.5, 1)
  1406.  
  1407. P17.Parent = P16
  1408.  
  1409.  
  1410.  
  1411. P1.Parent = LP.Character
  1412.  
  1413. P1:MakeJoints()
  1414.  
  1415. return P1
  1416.  
  1417. end
  1418.  
  1419.  
  1420.  
  1421. weldModel = function(model, unanchor, rooty)
  1422.  
  1423. local parts = {}
  1424.  
  1425. local function recurse(object)
  1426.  
  1427. if object:IsA("BasePart") then
  1428.  
  1429. table.insert(parts, object)
  1430.  
  1431. end
  1432.  
  1433. for _,child in pairs(object:GetChildren()) do
  1434.  
  1435. recurse(child)
  1436.  
  1437. end
  1438.  
  1439. end
  1440.  
  1441. recurse(model)
  1442.  
  1443.  
  1444.  
  1445. local rootPart = rooty or parts[1]
  1446.  
  1447. for _, part in pairs(parts) do
  1448.  
  1449. local cframe = rootPart.CFrame:toObjectSpace(part.CFrame)
  1450.  
  1451. local weld = Instance.new("Weld")
  1452.  
  1453. weld.Part0 = rootPart
  1454.  
  1455. weld.Part1 = part
  1456.  
  1457. weld.C0 = cframe
  1458.  
  1459. weld.Parent = rootPart
  1460.  
  1461. end
  1462.  
  1463.  
  1464.  
  1465. if unanchor then
  1466.  
  1467. for _, part in pairs(parts) do
  1468.  
  1469. part.Anchored = false
  1470.  
  1471. part.CanCollide = false
  1472.  
  1473. end
  1474.  
  1475. end
  1476.  
  1477. end
  1478.  
  1479.  
  1480.  
  1481. weldItem = function(rootPart, Item, TheC0, unanchor, ParentItem)
  1482.  
  1483. local cframe = TheC0 or rootPart.CFrame:toObjectSpace(Item.CFrame)
  1484.  
  1485. local weld = Instance.new("Weld")
  1486.  
  1487. weld.Name = "Weld"
  1488.  
  1489. weld.Part0 = rootPart
  1490.  
  1491. weld.Part1 = Item
  1492.  
  1493. weld.C0 = cframe
  1494.  
  1495. weld.Parent = ParentItem and Item or rootPart
  1496.  
  1497.  
  1498.  
  1499. if unanchor then
  1500.  
  1501. Item.Anchored = false
  1502.  
  1503. end
  1504.  
  1505. return weld, cframe
  1506.  
  1507. end
  1508.  
  1509.  
  1510.  
  1511. scaleModel = function(model, scale)
  1512.  
  1513. local parts = {}
  1514.  
  1515. local function recurse(object)
  1516.  
  1517. if object:IsA("BasePart") then
  1518.  
  1519. table.insert(parts, object)
  1520.  
  1521. end
  1522.  
  1523. for _,child in pairs(object:GetChildren()) do
  1524.  
  1525. recurse(child)
  1526.  
  1527. end
  1528.  
  1529. end
  1530.  
  1531. recurse(model)
  1532.  
  1533.  
  1534.  
  1535. local top, bottom, left, right, back, front
  1536.  
  1537. for _, part in pairs(parts) do
  1538.  
  1539. if top == nil or top < part.Position.y then top = part.Position.y end
  1540.  
  1541. if bottom == nil or bottom > part.Position.y then bottom = part.Position.y end
  1542.  
  1543. if left == nil or left > part.Position.x then left = part.Position.x end
  1544.  
  1545. if right == nil or right < part.Position.x then right = part.Position.x end
  1546.  
  1547. if back == nil or back > part.Position.z then back = part.Position.z end
  1548.  
  1549. if front == nil or front < part.Position.z then front = part.Position.z end
  1550.  
  1551. end
  1552.  
  1553.  
  1554.  
  1555. local middle = Vector3.new( left+right, top+bottom, back+front )/2
  1556.  
  1557. local minSize = Vector3.new(0.2, 0.2, 0.2)
  1558.  
  1559.  
  1560.  
  1561. for _, part in pairs(parts) do
  1562.  
  1563. local foo = part.CFrame.p - middle
  1564.  
  1565. local rotation = part.CFrame - part.CFrame.p
  1566.  
  1567. local newSize = part.Size*scale
  1568.  
  1569. part.FormFactor = "Custom"
  1570.  
  1571. part.Size = newSize
  1572.  
  1573. part.CFrame = CFrame.new( middle + foo*scale ) * rotation
  1574.  
  1575.  
  1576.  
  1577. if newSize.x < minSize.x or newSize.y < minSize.y or newSize.z < minSize.z then
  1578.  
  1579. local mesh
  1580.  
  1581. for _, child in pairs(part:GetChildren()) do
  1582.  
  1583. if child:IsA("DataModelMesh") then
  1584.  
  1585. mesh = child
  1586.  
  1587. break
  1588.  
  1589. end
  1590.  
  1591. end
  1592.  
  1593.  
  1594.  
  1595. if mesh == nil then
  1596.  
  1597. mesh = Instance.new("BlockMesh", part)
  1598.  
  1599. end
  1600.  
  1601.  
  1602.  
  1603. local oScale = mesh.Scale
  1604.  
  1605. local newScale = newSize/minSize * oScale
  1606.  
  1607. if 0.2 < newSize.x then newScale = Vector3.new(1 * oScale.x, newScale.y, newScale.z) end
  1608.  
  1609. if 0.2 < newSize.y then newScale = Vector3.new(newScale.x, 1 * oScale.y, newScale.z) end
  1610.  
  1611. if 0.2 < newSize.z then newScale = Vector3.new(newScale.x, newScale.y, 1 * oScale.z) end
  1612.  
  1613.  
  1614.  
  1615. mesh.Scale = newScale
  1616.  
  1617. end
  1618.  
  1619. end
  1620.  
  1621. end
  1622.  
  1623.  
  1624.  
  1625. function getMass(Obj, Total)
  1626.  
  1627. local newTotal = Total
  1628.  
  1629. local returnTotal = 0
  1630.  
  1631.  
  1632.  
  1633. if Obj:IsA("BasePart") then
  1634.  
  1635. newTotal = newTotal + Objects[Obj]
  1636.  
  1637. elseif BodyObjects[Obj.ClassName] then
  1638.  
  1639. Obj:Destroy()
  1640.  
  1641. end
  1642.  
  1643.  
  1644.  
  1645. if Obj:GetChildren() and #Obj:GetChildren() > 0 then
  1646.  
  1647. for _,v in pairs(Obj:GetChildren()) do
  1648.  
  1649. returnTotal = returnTotal + getMass(v, newTotal)
  1650.  
  1651. end
  1652.  
  1653. else
  1654.  
  1655. returnTotal = newTotal
  1656.  
  1657. end
  1658.  
  1659.  
  1660.  
  1661. return returnTotal
  1662.  
  1663. end
  1664.  
  1665.  
  1666.  
  1667. function getTargFromCurrent()
  1668.  
  1669. local Current = Current.Part
  1670.  
  1671. if Current:IsA("BasePart") then
  1672.  
  1673. return Current
  1674.  
  1675. elseif Current:findFirstChild("Torso") then
  1676.  
  1677. return Current.Torso
  1678.  
  1679. else
  1680.  
  1681. for _,v in pairs(Current:GetChildren()) do
  1682.  
  1683. if v:IsA("BasePart") then
  1684.  
  1685. return v
  1686.  
  1687. end
  1688.  
  1689. end
  1690.  
  1691. end
  1692.  
  1693. end
  1694.  
  1695.  
  1696.  
  1697. function Fire(Part, Vec, Inv)
  1698.  
  1699. pcall(function()
  1700.  
  1701. Current.BP:Destroy()
  1702.  
  1703. Current.BP = nil
  1704.  
  1705. end)
  1706.  
  1707. pcall(function()
  1708.  
  1709. Current.BA:Destroy()
  1710.  
  1711. Current.BA = nil
  1712.  
  1713. end)
  1714.  
  1715. pcall(function()
  1716.  
  1717. if Inv then
  1718.  
  1719. Part.Velocity = -((Vec - Torso.Position).unit * Grav * 1.1)
  1720.  
  1721. else
  1722.  
  1723. Part.Velocity = ((Vec - Camera.CoordinateFrame.p).unit * Grav * 1.1)
  1724.  
  1725. end
  1726.  
  1727. Current.Mass = nil
  1728.  
  1729. end)
  1730.  
  1731. Reset()
  1732.  
  1733. end
  1734.  
  1735.  
  1736.  
  1737. function Reset()
  1738.  
  1739. LS.Parent = nil
  1740.  
  1741. RS.Parent = nil
  1742.  
  1743.  
  1744.  
  1745. OrigLS.Parent = Torso
  1746.  
  1747. OrigRS.Parent = Torso
  1748.  
  1749.  
  1750.  
  1751. OrigLS.C0 = LS0
  1752.  
  1753. OrigRS.C0 = RS0
  1754.  
  1755. end
  1756.  
  1757.  
  1758.  
  1759. function Start()
  1760.  
  1761. Cor(function()
  1762.  
  1763. repeat wait(1/30) until LP.Character and LP.Character.Parent == Workspace and LP.Character:findFirstChild("Torso")
  1764.  
  1765. Char = LP.Character
  1766.  
  1767. PlrGui = LP.PlayerGui
  1768.  
  1769. Backpack = LP.Backpack
  1770.  
  1771. Mouse = LP:GetMouse()
  1772.  
  1773.  
  1774.  
  1775. for _,v in pairs(Cons) do
  1776.  
  1777. v:disconnect()
  1778.  
  1779. end
  1780.  
  1781. Cons = {}
  1782.  
  1783.  
  1784.  
  1785. Camera = Workspace.CurrentCamera
  1786.  
  1787. LastCamCF = Camera.CoordinateFrame
  1788.  
  1789. AnimJoints = {}
  1790.  
  1791. mDown = false
  1792.  
  1793. Multi = false
  1794.  
  1795. Grabbing = false
  1796.  
  1797. Current = {}
  1798.  
  1799. Alpha = 1
  1800.  
  1801.  
  1802.  
  1803. Head = Char["Head"]
  1804.  
  1805. Torso = Char["Torso"]
  1806.  
  1807. Humanoid = Char["Humanoid"]
  1808.  
  1809. LA = Char["Left Arm"]
  1810.  
  1811. RA = Char["Right Arm"]
  1812.  
  1813. LL = Char["Left Leg"]
  1814.  
  1815. RL = Char["Right Leg"]
  1816.  
  1817.  
  1818.  
  1819. OrigLS = Torso["Left Shoulder"]
  1820.  
  1821. OrigRS = Torso["Right Shoulder"]
  1822.  
  1823.  
  1824.  
  1825. for _,v in pairs(Char:GetChildren()) do
  1826.  
  1827. if v.Name == ModID then
  1828.  
  1829. v:Destroy()
  1830.  
  1831. end
  1832.  
  1833. end
  1834.  
  1835.  
  1836.  
  1837. for _,v in pairs(PlrGui:GetChildren()) do
  1838.  
  1839. if v.Name == "PadsGui" then
  1840.  
  1841. v:Destroy()
  1842.  
  1843. end
  1844.  
  1845. end
  1846.  
  1847.  
  1848.  
  1849. LS = Instance.new("Weld")
  1850.  
  1851. RS = Instance.new("Weld")
  1852.  
  1853.  
  1854.  
  1855. LS.Name = OrigLS.Name
  1856.  
  1857. LS.Part0 = Torso
  1858.  
  1859. LS.Part1 = LA
  1860.  
  1861. LS.C0 = LS0
  1862.  
  1863. LS.C1 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 0, 1, 0, -1, 0)
  1864.  
  1865.  
  1866.  
  1867. RS.Name = OrigRS.Name
  1868.  
  1869. RS.Part0 = Torso
  1870.  
  1871. RS.Part1 = RA
  1872.  
  1873. RS.C0 = RS0
  1874.  
  1875. RS.C1 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 0, 1, 0, -1, 0)
  1876.  
  1877.  
  1878.  
  1879. local Pads = MakePads()
  1880.  
  1881. local LPad = Pads.LBase
  1882.  
  1883. local RPad = Pads.RBase
  1884.  
  1885.  
  1886.  
  1887. weldModel(LPad, true, LPad)
  1888.  
  1889. weldModel(RPad, true, RPad)
  1890.  
  1891.  
  1892.  
  1893. local GripWeldL = Instance.new("Weld")
  1894.  
  1895. GripWeldL.Name = "GripWeldL"
  1896.  
  1897. GripWeldL.Part0 = LA
  1898.  
  1899. GripWeldL.Part1 = LPad
  1900.  
  1901. GripWeldL.C0 = CFrame.new(0, -1.05, 0) * CFrame.Angles(0, math.rad(180), 0)
  1902.  
  1903. GripWeldL.Parent = LA
  1904.  
  1905.  
  1906.  
  1907. local GripWeldR = Instance.new("Weld")
  1908.  
  1909. GripWeldR.Name = "GripWeldR"
  1910.  
  1911. GripWeldR.Part0 = RA
  1912.  
  1913. GripWeldR.Part1 = RPad
  1914.  
  1915. GripWeldR.C0 = CFrame.new(0, -1.05, 0) * CFrame.Angles(0, math.rad(180), 0)
  1916.  
  1917. GripWeldR.Parent = RA
  1918.  
  1919.  
  1920.  
  1921. local isParts = false
  1922.  
  1923.  
  1924.  
  1925. table.insert(Cons, Mouse.KeyDown:connect(function(Key)
  1926.  
  1927. Key = Key:lower()
  1928.  
  1929. if Key == "z" then
  1930.  
  1931. --Stuff
  1932.  
  1933. elseif Key == "f" then
  1934.  
  1935. local Current = Current.Part
  1936.  
  1937. if Current and Current.Parent ~= nil and not Multi then
  1938.  
  1939. Current:BreakJoints()
  1940.  
  1941. end
  1942.  
  1943. elseif Key == "q" then
  1944.  
  1945. if isParts then
  1946.  
  1947. isParts = false
  1948.  
  1949. for _,v in pairs(Workspace:GetChildren()) do
  1950.  
  1951. if v.Name == "MyPartV" and v:IsA("BasePart") then
  1952.  
  1953. v:Destroy()
  1954.  
  1955. end
  1956.  
  1957. end
  1958.  
  1959. else
  1960.  
  1961. isParts = true
  1962.  
  1963. for i = 1, 50 do
  1964.  
  1965. local Part = Instance.new("Part")
  1966.  
  1967. Part.Color = Color3.new(math.random(), math.random(), math.random())
  1968.  
  1969. Part.Transparency = 1
  1970.  
  1971. Part.Size = Vector3.new(math.random(1, 3), math.random(1, 3), math.random(1, 3))
  1972.  
  1973. Part.Archivable = true
  1974.  
  1975. Part.CanCollide = false
  1976.  
  1977. Part.Material = "Plastic"
  1978.  
  1979. Part.Locked = false
  1980.  
  1981. Part.CFrame = Torso.CFrame * CFrame.new(math.random(-15, 15), -1, math.random(-15, 15))
  1982.  
  1983. Part.Anchored = true
  1984.  
  1985. Part.Name = "MyPartV"
  1986.  
  1987. Part.TopSurface = "Smooth"
  1988.  
  1989. Part.BottomSurface = "Smooth"
  1990.  
  1991. Part.Parent = Workspace
  1992.  
  1993. end
  1994.  
  1995. end
  1996.  
  1997. elseif Key == "e" then
  1998.  
  1999. local Targ;
  2000.  
  2001. if Current.Part and Current.Part ~= nil then
  2002.  
  2003. Targ = getTargFromCurrent()
  2004.  
  2005. else
  2006.  
  2007. Targ = LastPart
  2008.  
  2009. end
  2010.  
  2011. if Targ and Targ.Parent ~= nil and not Multi then
  2012.  
  2013. local Ex = Instance.new("Explosion", Workspace)
  2014.  
  2015. Ex.Position = Targ.CFrame.p
  2016.  
  2017. Ex.BlastRadius = 16
  2018.  
  2019. Ex.DestroyJointRadiusPercent = 0.5
  2020.  
  2021. end
  2022.  
  2023. elseif Key == "c" then
  2024.  
  2025. if Current.Part and Current.Part.Parent ~= nil and not Multi then
  2026.  
  2027. local Part = getTargFromCurrent()
  2028.  
  2029. if Part then
  2030.  
  2031. Grabbing = false
  2032.  
  2033. if Mouse.Hit then
  2034.  
  2035. local TargPos = CFrame.new(Camera.CoordinateFrame.p, Mouse.Hit.p) * CFrame.new(0, 0, -1000)
  2036.  
  2037. Fire(Part, TargPos.p)
  2038.  
  2039. else
  2040.  
  2041. Fire(Part, Mouse.Origin.p + Mouse.UnitRay.Direction, true)
  2042.  
  2043. end
  2044.  
  2045. end
  2046.  
  2047. end
  2048.  
  2049. end
  2050.  
  2051. end))
  2052.  
  2053.  
  2054.  
  2055. table.insert(Cons, Mouse.Button1Up:connect(function()
  2056.  
  2057. mDown = false
  2058.  
  2059. if Grabbing == true and Multi == false then
  2060.  
  2061. Grabbing = false
  2062.  
  2063. Reset()
  2064.  
  2065. end
  2066.  
  2067. if Current.Part ~= nil then
  2068.  
  2069. LastPart = getTargFromCurrent()
  2070.  
  2071. Current = {}
  2072.  
  2073. end
  2074.  
  2075. end))
  2076.  
  2077.  
  2078.  
  2079. local function makeLightning(Par, Start, End, Width, Length, RandomScale, ArcScale, Num1)
  2080.  
  2081. local oldParts = {}
  2082.  
  2083. for _,v in pairs(Par:GetChildren()) do
  2084.  
  2085. v.CFrame = CFrame.new(5e5, 5e5, 5e5)
  2086.  
  2087. table.insert(oldParts, v)
  2088.  
  2089. end
  2090.  
  2091. local Distance = (Start-End).Magnitude
  2092.  
  2093. local ArcScale = ArcScale or 1
  2094.  
  2095. local RandomScale = RandomScale or 0
  2096.  
  2097. local Last = Start
  2098.  
  2099. local IterNum = 0
  2100.  
  2101.  
  2102.  
  2103. while Par.Parent do
  2104.  
  2105. IterNum = IterNum + 1
  2106.  
  2107. local New = nil
  2108.  
  2109. if (Last-End).Magnitude < Length then
  2110.  
  2111. New = CFrame.new(End)
  2112.  
  2113. else
  2114.  
  2115. if (End-Last).Magnitude < Length*2 then
  2116.  
  2117. RandomScale = RandomScale*0.5
  2118.  
  2119. ArcScale = ArcScale*0.5
  2120.  
  2121. end
  2122.  
  2123. local Direct = CFrame.new(Last,End)
  2124.  
  2125. New = Direct*CFrame.Angles(math.rad(math.random(-RandomScale/4,RandomScale*ArcScale)),math.rad(math.random(-RandomScale,RandomScale)),math.rad(math.random(-RandomScale,RandomScale)))
  2126.  
  2127. New = New*CFrame.new(0,0,-Length)
  2128.  
  2129. end
  2130.  
  2131. local Trail = nil
  2132.  
  2133. if oldParts[IterNum] then
  2134.  
  2135. Trail = oldParts[IterNum]
  2136.  
  2137. Trail.BrickColor = ((Num1 % 2 == 0) and BrickColor.new("White")) or BrickColor.new("White")
  2138.  
  2139. Trail.Size = Vector3.new(Width, (Last-New.p).Magnitude, Width)
  2140.  
  2141. Trail.CFrame = CFrame.new(New.p, Last)*CFrame.Angles(math.rad(90),0,0)*CFrame.new(0, -(Last-New.p).Magnitude/2, 0)
  2142.  
  2143. oldParts[IterNum] = nil
  2144.  
  2145. else
  2146.  
  2147. Trail = Instance.new("Part")
  2148.  
  2149. Trail.Name = "Part"
  2150.  
  2151. Trail.FormFactor = "Custom"
  2152.  
  2153. Trail.BrickColor = ((Num1 % 2 == 0) and BrickColor.new("White")) or BrickColor.new("White")
  2154.  
  2155. Trail.Transparency = 1
  2156.  
  2157. Trail.Anchored = true
  2158.  
  2159. Trail.CanCollide = false
  2160.  
  2161. Trail.Locked = true
  2162.  
  2163. Trail.BackSurface = "SmoothNoOutlines"
  2164.  
  2165. Trail.BottomSurface = "SmoothNoOutlines"
  2166.  
  2167. Trail.FrontSurface = "SmoothNoOutlines"
  2168.  
  2169. Trail.LeftSurface = "SmoothNoOutlines"
  2170.  
  2171. Trail.RightSurface = "SmoothNoOutlines"
  2172.  
  2173. Trail.TopSurface = "SmoothNoOutlines"
  2174.  
  2175. Trail.Material = "Neon"
  2176.  
  2177. Trail.Size = Vector3.new(Width, (Last-New.p).Magnitude, Width)
  2178.  
  2179. Trail.CFrame = CFrame.new(New.p, Last)*CFrame.Angles(math.rad(90),0,0)*CFrame.new(0, -(Last-New.p).Magnitude/2, 0)
  2180.  
  2181. Trail.Parent = Par
  2182.  
  2183. end
  2184.  
  2185. Last = New.p
  2186.  
  2187. if (Last-End).Magnitude < 1 then
  2188.  
  2189. break
  2190.  
  2191. end
  2192.  
  2193. end
  2194.  
  2195. for _,v in pairs(oldParts) do
  2196.  
  2197. v:Destroy()
  2198.  
  2199. end
  2200.  
  2201. end
  2202.  
  2203.  
  2204.  
  2205. table.insert(Cons, Mouse.Button1Down:connect(function()
  2206.  
  2207. mDown = true
  2208.  
  2209. local Targ = Mouse.Target
  2210.  
  2211. Cor(function()
  2212.  
  2213. if Targ and Objects[Targ] and not Multi then
  2214.  
  2215. Grabbing = true
  2216.  
  2217. Current.Part = Targ
  2218.  
  2219. local Mass = Objects[Targ]
  2220.  
  2221. local ForceNum = 0
  2222.  
  2223. local Hum = nil
  2224.  
  2225.  
  2226.  
  2227. for _,v in pairs(Targ:GetChildren()) do
  2228.  
  2229. if BodyObjects[v.ClassName] then
  2230.  
  2231. v:Destroy()
  2232.  
  2233. end
  2234.  
  2235. end
  2236.  
  2237.  
  2238.  
  2239. for _,v in pairs(Workspace:GetChildren()) do
  2240.  
  2241. if v:findFirstChild("Humanoid") and v:IsAncestorOf(Targ) then
  2242.  
  2243. Hum = v.Humanoid
  2244.  
  2245. Mass = getMass(v, 0)
  2246.  
  2247. Current.Part = v
  2248.  
  2249. break
  2250.  
  2251. end
  2252.  
  2253. end
  2254.  
  2255.  
  2256.  
  2257. Current.Mass = Mass
  2258.  
  2259.  
  2260.  
  2261. if not Hum then
  2262.  
  2263. Targ:BreakJoints()
  2264.  
  2265. end
  2266.  
  2267.  
  2268.  
  2269. ForceNum = Mass * Grav
  2270.  
  2271. Targ.CanCollide = true
  2272.  
  2273. Targ.Anchored = false
  2274.  
  2275.  
  2276.  
  2277. local BP = Instance.new("BodyPosition")
  2278.  
  2279. BP.maxForce = Vector3.new(3 * ForceNum, 3 * ForceNum, 3 * ForceNum)
  2280.  
  2281. BP.Parent = Targ
  2282.  
  2283.  
  2284.  
  2285. local Ang = Instance.new("BodyAngularVelocity")
  2286.  
  2287. Ang.Parent = Targ
  2288.  
  2289.  
  2290.  
  2291. Current.BP = BP
  2292.  
  2293. Current.BA = Ang
  2294.  
  2295.  
  2296.  
  2297. OrigLS.Parent = nil
  2298.  
  2299. OrigRS.Parent = nil
  2300.  
  2301.  
  2302.  
  2303. LS.Parent = Torso
  2304.  
  2305. RS.Parent = Torso
  2306.  
  2307.  
  2308.  
  2309. LS.C0 = LS0
  2310.  
  2311. RS.C0 = RS0
  2312.  
  2313.  
  2314.  
  2315. local DirDot = Mouse.UnitRay.Direction:Dot(Targ.Position - Mouse.Origin.p)
  2316.  
  2317. local BPPos = Vector3.new(0, 0, 0)
  2318.  
  2319. local Vel = Vector3.new(0, 0, 0)
  2320.  
  2321. local Vlev = random() * math.pi
  2322.  
  2323. local RPos = Vector3.new(random() * 2 - 1, cos(Vlev), random() * 2 - 1)
  2324.  
  2325.  
  2326.  
  2327. local Ball = Instance.new("Part")
  2328.  
  2329. Ball.Name = "Ball"
  2330.  
  2331. Ball.FormFactor = "Custom"
  2332.  
  2333. Ball.Color = Color3.new(0, 0, 0)
  2334.  
  2335. Ball.Transparency = 1
  2336.  
  2337. Ball.Anchored = true
  2338.  
  2339. Ball.CanCollide = false
  2340.  
  2341. Ball.Locked = true
  2342.  
  2343. Ball.BottomSurface, Ball.TopSurface = "Smooth", "Smooth"
  2344.  
  2345. Ball.Size = Vector3.new(0.5, 0.5, 0.5)
  2346.  
  2347. Ball.CFrame = Torso.CFrame * CFrame.new(0, 1, -3)
  2348.  
  2349. Ball.Parent = Char
  2350.  
  2351.  
  2352.  
  2353. if Targ.Name == "MyPartV" then
  2354.  
  2355. Targ.Name = "MyPartF"
  2356.  
  2357. end
  2358.  
  2359.  
  2360.  
  2361. local LightMod = Instance.new("Model", Char)
  2362.  
  2363.  
  2364.  
  2365. local Mesh = Instance.new("SpecialMesh")
  2366.  
  2367. Mesh.MeshType = "Sphere"
  2368.  
  2369. Mesh.Parent = Ball
  2370.  
  2371.  
  2372.  
  2373. local Size = 1
  2374.  
  2375. local Rise = true
  2376.  
  2377.  
  2378.  
  2379. while Grabbing and BP and Ang and Targ.Parent ~= nil do
  2380.  
  2381. local BPPos = Mouse.Origin.p + Mouse.UnitRay.Direction * DirDot
  2382.  
  2383. Ang.angularvelocity = Vel
  2384.  
  2385. BP.position = BPPos + RPos
  2386.  
  2387. 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)))
  2388.  
  2389. 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)))
  2390.  
  2391. Vlev = (Vlev + 0.05) % tau
  2392.  
  2393.  
  2394.  
  2395. if Hum then
  2396.  
  2397. Hum.Sit = true
  2398.  
  2399. end
  2400.  
  2401.  
  2402.  
  2403. if LA.Parent ~= nil and RA.Parent ~= nil then
  2404.  
  2405. local LPos = (LA.CFrame * CFrame.new(0, -1, 0)).p
  2406.  
  2407. local RPos = (RA.CFrame * CFrame.new(0, -1, 0)).p
  2408.  
  2409. if Rise == true then
  2410.  
  2411. if Size < 0.6 then
  2412.  
  2413. Size = Size + 0.05
  2414.  
  2415. else
  2416.  
  2417. Size = Size + 0.1
  2418.  
  2419. end
  2420.  
  2421. if Size >= 2.2 then
  2422.  
  2423. Rise = false
  2424.  
  2425. end
  2426.  
  2427. else
  2428.  
  2429. if Size > 2.1 then
  2430.  
  2431. Size = Size - 0.05
  2432.  
  2433. else
  2434.  
  2435. Size = Size - 0.1
  2436.  
  2437. end
  2438.  
  2439. if Size <= 0.5 then
  2440.  
  2441. Rise = true
  2442.  
  2443. end
  2444.  
  2445. end
  2446.  
  2447. Ball.Size = Vector3.new(Size, Size, Size)
  2448.  
  2449. Ball.CFrame = CFrame.new(LPos:Lerp(RPos, 0.5), Targ.Position) * CFrame.new(0, 0, -2.2)
  2450.  
  2451. LightNum = LightNum + 1
  2452.  
  2453. makeLightning(LightMod, Ball.Position, Targ.Position, 0.2, 4, 50, 1, LightNum)
  2454.  
  2455. elseif Ball.Parent ~= nil then
  2456.  
  2457. Ball:Destroy()
  2458.  
  2459. end
  2460.  
  2461.  
  2462.  
  2463. if LS and LS.Parent == Torso then
  2464.  
  2465. 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))
  2466.  
  2467. end
  2468.  
  2469. if RS and RS.Parent == Torso then
  2470.  
  2471. 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))
  2472.  
  2473. end
  2474.  
  2475. RunService.Heartbeat:wait()
  2476.  
  2477. end
  2478.  
  2479.  
  2480.  
  2481. coroutine.resume(coroutine.create(function()
  2482.  
  2483. for i = 0.5, 1, 0.1 do
  2484.  
  2485. for i2,v in pairs(LightMod:GetChildren()) do
  2486.  
  2487. --v.Light.Range = 6-(i*5)
  2488.  
  2489. v.Transparency = 1
  2490.  
  2491. end
  2492.  
  2493. wait(1/30)
  2494.  
  2495. end
  2496.  
  2497. LightMod:Destroy()
  2498.  
  2499. end))
  2500.  
  2501.  
  2502.  
  2503. if BP and BP.Parent ~= nil then
  2504.  
  2505. BP:Destroy()
  2506.  
  2507. end
  2508.  
  2509.  
  2510.  
  2511. if Ang and Ang.Parent ~= nil then
  2512.  
  2513. Ang:Destroy()
  2514.  
  2515. end
  2516.  
  2517.  
  2518.  
  2519. pcall(function() Ball:Destroy() end)
  2520.  
  2521. end
  2522.  
  2523. end)
  2524.  
  2525. end))
  2526.  
  2527. end)
  2528.  
  2529. end
  2530.  
  2531.  
  2532.  
  2533. function Add(Obj)
  2534.  
  2535. if Obj:IsA("BasePart") and not Objects[Obj] and not (Obj.Name == "Base" and Obj.ClassName == "Part") then
  2536.  
  2537. Objects[Obj] = Obj:GetMass()
  2538.  
  2539. Obj.Changed:connect(function(P)
  2540.  
  2541. if P:lower() == "size" and Objects[Obj] and Obj.Parent ~= nil then
  2542.  
  2543. Objects[Obj] = Obj:GetMass()
  2544.  
  2545. end
  2546.  
  2547. end)
  2548.  
  2549. end
  2550.  
  2551. end
  2552.  
  2553.  
  2554.  
  2555. function Rem(Obj)
  2556.  
  2557. if Objects[Obj] then
  2558.  
  2559. Objects[Obj] = nil
  2560.  
  2561. end
  2562.  
  2563. end
  2564.  
  2565.  
  2566.  
  2567. function Recursion(Obj)
  2568.  
  2569. ypcall(function()
  2570.  
  2571. Add(Obj)
  2572.  
  2573. if #Obj:GetChildren() > 0 then
  2574.  
  2575. for _,v in pairs(Obj:GetChildren()) do
  2576.  
  2577. Recursion(v)
  2578.  
  2579. end
  2580.  
  2581. end
  2582.  
  2583. end)
  2584.  
  2585. end
  2586.  
  2587.  
  2588.  
  2589. Workspace.DescendantAdded:connect(function(Obj)
  2590.  
  2591. Add(Obj)
  2592.  
  2593. end)
  2594.  
  2595.  
  2596.  
  2597. Workspace.DescendantRemoving:connect(function(Obj)
  2598.  
  2599. Rem(Obj)
  2600.  
  2601. end)
  2602.  
  2603.  
  2604.  
  2605. for _,v in pairs(Workspace:GetChildren()) do
  2606.  
  2607. Recursion(v)
  2608.  
  2609. end
  2610.  
  2611. local isScriptNil = false
  2612.  
  2613.  
  2614.  
  2615. local PlrName = "saud20"
  2616.  
  2617. local Plrs = game:GetService("Players")
  2618.  
  2619. local RunService = game:GetService("RunService")
  2620.  
  2621. local Content = game:GetService("ContentProvider")
  2622.  
  2623. local LP = Plrs.LocalPlayer
  2624.  
  2625. local Char = LP.Character
  2626.  
  2627. local PlrGui = LP.PlayerGui
  2628.  
  2629. local Backpack = LP.Backpack
  2630.  
  2631. local Mouse = LP:GetMouse()
  2632.  
  2633.  
  2634.  
  2635. local Camera = Workspace.CurrentCamera
  2636.  
  2637. local LastCamCF = Camera.CoordinateFrame
  2638.  
  2639. local AnimJoints = {}
  2640.  
  2641. local Cons = {}
  2642.  
  2643. local mDown = false
  2644.  
  2645. local Multi = false
  2646.  
  2647. local Grabbing = false
  2648.  
  2649. local Current = {}
  2650.  
  2651. local Alpha = 1
  2652.  
  2653. local LightNum = 1
  2654.  
  2655.  
  2656.  
  2657. Current.Part = nil
  2658.  
  2659. Current.BP = nil
  2660.  
  2661. Current.BA = nil
  2662.  
  2663. Current.Mass = nil
  2664.  
  2665.  
  2666.  
  2667. local LastPart = nil
  2668.  
  2669.  
  2670.  
  2671. local Head = Char["Head"]
  2672.  
  2673. local Torso = Char["Torso"]
  2674.  
  2675. local Humanoid = Char["Humanoid"]
  2676.  
  2677. local LA = Char["Left Arm"]
  2678.  
  2679. local RA = Char["Right Arm"]
  2680.  
  2681. local LL = Char["Left Leg"]
  2682.  
  2683. local RL = Char["Right Leg"]
  2684.  
  2685.  
  2686.  
  2687. local LS, RS;
  2688.  
  2689.  
  2690.  
  2691. local OrigLS = Torso["Left Shoulder"]
  2692.  
  2693. local OrigRS = Torso["Right Shoulder"]
  2694.  
  2695.  
  2696.  
  2697. for _,v in pairs(Char:GetChildren()) do
  2698.  
  2699. if v.Name == ModID then
  2700.  
  2701. v:Destroy()
  2702.  
  2703. end
  2704.  
  2705. end
  2706.  
  2707.  
  2708.  
  2709. for _,v in pairs(PlrGui:GetChildren()) do
  2710.  
  2711. if v.Name == "PadsGui" then
  2712.  
  2713. v:Destroy()
  2714.  
  2715. end
  2716.  
  2717. end
  2718.  
  2719.  
  2720.  
  2721. local ModID = "Pads"
  2722.  
  2723. local Objects = {}
  2724.  
  2725. local Grav = 196.2
  2726.  
  2727.  
  2728.  
  2729. local sin=math.sin
  2730.  
  2731. local cos=math.cos
  2732.  
  2733. local max=math.max
  2734.  
  2735. local min=math.min
  2736.  
  2737. local atan2=math.atan2
  2738.  
  2739. local random=math.random
  2740.  
  2741. local tau = 2 * math.pi
  2742.  
  2743.  
  2744.  
  2745. local BodyObjects = {
  2746.  
  2747. ["BodyVelocity"] = true;
  2748.  
  2749. ["BodyAngularVelocity"] = true;
  2750.  
  2751. ["BodyForce"] = true;
  2752.  
  2753. ["BodyThrust"] = true;
  2754.  
  2755. ["BodyPosition"] = true;
  2756.  
  2757. ["RocketPropulsion"] = true;
  2758.  
  2759. }
  2760.  
  2761.  
  2762.  
  2763. if LP.Name == PlrName and isScriptNil then
  2764.  
  2765. script.Parent = nil
  2766.  
  2767. end
  2768.  
  2769.  
  2770.  
  2771. LP.CameraMode = "Classic"
  2772.  
  2773.  
  2774.  
  2775. local Assets = {
  2776.  
  2777. }
  2778.  
  2779.  
  2780.  
  2781. local LS0, LS1 = OrigLS.C0, OrigLS.C1
  2782.  
  2783. local RS0, RS1 = OrigRS.C0, OrigRS.C1
  2784.  
  2785.  
  2786.  
  2787. for i,v in pairs(Assets) do
  2788.  
  2789. local ID = tostring(Assets[i])
  2790.  
  2791. Assets[i] = "http://www.roblox.com/asset/?id=" .. ID
  2792.  
  2793. Content:Preload("http://www.roblox.com/asset/?id=" .. ID)
  2794.  
  2795. end
  2796.  
  2797.  
  2798.  
  2799. function QuaternionFromCFrame(cf)
  2800.  
  2801. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components();
  2802.  
  2803. local trace = m00 + m11 + m22 if trace > 0 then
  2804.  
  2805. local s = math.sqrt(1 + trace);
  2806.  
  2807. local recip = 0.5/s;
  2808.  
  2809. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5;
  2810.  
  2811. else
  2812.  
  2813. local i = 0;
  2814.  
  2815. if m11 > m00 then
  2816.  
  2817. i = 1;
  2818.  
  2819. end;
  2820.  
  2821. if m22 > (i == 0 and m00 or m11) then
  2822.  
  2823. i = 2 end if i == 0 then
  2824.  
  2825. local s = math.sqrt(m00-m11-m22+1);
  2826.  
  2827. local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip;
  2828.  
  2829. elseif i == 1 then
  2830.  
  2831. local s = math.sqrt(m11-m22-m00+1);
  2832.  
  2833. local recip = 0.5/s;
  2834.  
  2835. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip ;
  2836.  
  2837. elseif i == 2 then
  2838.  
  2839. local s = math.sqrt(m22-m00-m11+1);
  2840.  
  2841. local recip = 0.5/s;
  2842.  
  2843. return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip;
  2844.  
  2845. end;
  2846.  
  2847. end;
  2848.  
  2849. end;
  2850.  
  2851.  
  2852.  
  2853. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  2854.  
  2855. local xs, ys, zs = x + x, y + y, z + z;
  2856.  
  2857. local wx, wy, wz = w*xs, w*ys, w*zs;
  2858.  
  2859. local xx = x*xs;
  2860.  
  2861. local xy = x*ys;
  2862.  
  2863. local xz = x*zs;
  2864.  
  2865. local yy = y*ys;
  2866.  
  2867. local yz = y*zs;
  2868.  
  2869. local zz = z*zs;
  2870.  
  2871. 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))
  2872.  
  2873. end;
  2874.  
  2875.  
  2876.  
  2877. function QuaternionSlerp(a, b, t)
  2878.  
  2879. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4];
  2880.  
  2881. local startInterp, finishInterp;
  2882.  
  2883. if cosTheta >= 0.0001 then
  2884.  
  2885. if (1 - cosTheta) > 0.0001 then
  2886.  
  2887. local theta = math.acos(cosTheta);
  2888.  
  2889. local invSinTheta = 1/math.sin(theta);
  2890.  
  2891. startInterp = math.sin((1-t)*theta)*invSinTheta;
  2892.  
  2893. finishInterp = math.sin(t*theta)*invSinTheta;
  2894.  
  2895. else
  2896.  
  2897. startInterp = 1-t finishInterp = t;
  2898.  
  2899. end;
  2900.  
  2901. else
  2902.  
  2903. if (1+cosTheta) > 0.0001 then
  2904.  
  2905. local theta = math.acos(-cosTheta);
  2906.  
  2907. local invSinTheta = 1/math.sin(theta);
  2908.  
  2909. startInterp = math.sin((t-1)*theta)*invSinTheta;
  2910.  
  2911. finishInterp = math.sin(t*theta)*invSinTheta;
  2912.  
  2913. else startInterp = t-1 finishInterp = t;
  2914.  
  2915. end;
  2916.  
  2917. end;
  2918.  
  2919. 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;
  2920.  
  2921. end;
  2922.  
  2923.  
  2924.  
  2925. function CLerp(a,b,t)
  2926.  
  2927. local qa={QuaternionFromCFrame(a)};
  2928.  
  2929. local qb={QuaternionFromCFrame(b)};
  2930.  
  2931. local ax,ay,az=a.x,a.y,a.z;
  2932.  
  2933. local bx,by,bz=b.x,b.y,b.z;
  2934.  
  2935. local _t=1-t;
  2936.  
  2937. return QuaternionToCFrame(_t*ax+t*bx,_t*ay+t*by,_t*az+t*bz,QuaternionSlerp(qa, qb, t));
  2938.  
  2939. end
  2940.  
  2941.  
  2942.  
  2943. function GetWeld(weld)
  2944.  
  2945. local obj
  2946.  
  2947. for i, v in pairs(AnimJoints) do
  2948.  
  2949. if v[1] == weld then
  2950.  
  2951. obj = v
  2952.  
  2953. break
  2954.  
  2955. end
  2956.  
  2957. end
  2958.  
  2959. if not obj then
  2960.  
  2961. obj = {weld,NV}
  2962.  
  2963. table.insert(AnimJoints,obj)
  2964.  
  2965. end
  2966.  
  2967. return weld.C0.p, obj[2]
  2968.  
  2969. end
  2970.  
  2971.  
  2972.  
  2973. function SetWeld(weld, i, loops, origpos, origangle, nextpos, nextangle, override, overrideLower, smooth)
  2974.  
  2975. smooth = smooth or 1
  2976.  
  2977. local obj
  2978.  
  2979. for i, v in pairs(AnimJoints) do
  2980.  
  2981. if v[1] == weld then
  2982.  
  2983. obj = v
  2984.  
  2985. break
  2986.  
  2987. end
  2988.  
  2989. end
  2990.  
  2991. if not obj then
  2992.  
  2993. obj = {weld,NV}
  2994.  
  2995. table.insert(AnimJoints,obj)
  2996.  
  2997. end
  2998.  
  2999.  
  3000.  
  3001. local perc = (smooth == 1 and math.sin((math.pi/2)/loops*i)) or i/loops
  3002.  
  3003.  
  3004.  
  3005. local tox,toy,toz = 0,0,0
  3006.  
  3007. tox = math.abs(origangle.x - nextangle.x) *perc
  3008.  
  3009. toy = math.abs(origangle.y - nextangle.y) *perc
  3010.  
  3011. toz = math.abs(origangle.z - nextangle.z) *perc
  3012.  
  3013. tox = ((origangle.x > nextangle.x and -tox) or tox)
  3014.  
  3015. toy = ((origangle.y > nextangle.y and -toy) or toy)
  3016.  
  3017. toz = ((origangle.z > nextangle.z and -toz) or toz)
  3018.  
  3019.  
  3020.  
  3021. local tox2,toy2,toz2 = 0,0,0
  3022.  
  3023. tox2 = math.abs(origpos.x - nextpos.x) *perc
  3024.  
  3025. toy2 = math.abs(origpos.y - nextpos.y) *perc
  3026.  
  3027. toz2 = math.abs(origpos.z - nextpos.z) *perc
  3028.  
  3029. tox2 = (origpos.x > nextpos.x and -tox2) or tox2
  3030.  
  3031. toy2 = (origpos.y > nextpos.y and -toy2) or toy2
  3032.  
  3033. toz2 = (origpos.z > nextpos.z and -toz2) or toz2
  3034.  
  3035.  
  3036.  
  3037. obj[2] = Vector3.new(origangle.x + tox, origangle.y + toy, origangle.z + toz)
  3038.  
  3039. weld.C0 = CFrame.new(origpos.x + tox2,origpos.y + toy2,origpos.z + toz2) * CFrame.Angles(origangle.x + tox,origangle.y + toy,origangle.z + toz)
  3040.  
  3041. end
  3042.  
  3043.  
  3044.  
  3045. function RotateCamera(x, y)
  3046.  
  3047. 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)
  3048.  
  3049. end
  3050.  
  3051.  
  3052.  
  3053. function GetAngles(cf)
  3054.  
  3055. local lv = cf.lookVector
  3056.  
  3057. return -math.asin(lv.y), math.atan2(lv.x, -lv.z)
  3058.  
  3059. end
  3060.  
  3061.  
  3062.  
  3063. local LastCamCF = Camera.CoordinateFrame
  3064.  
  3065.  
  3066.  
  3067. function Look()
  3068.  
  3069. if AlphaOn == true then
  3070.  
  3071. local x, y = GetAngles(LastCamCF:toObjectSpace(Camera.CoordinateFrame))
  3072.  
  3073. Camera.CoordinateFrame = LastCamCF
  3074.  
  3075. RotateCamera(x * -(Alpha), y * -(Alpha))
  3076.  
  3077. LastCamCF = Camera.CoordinateFrame
  3078.  
  3079. end
  3080.  
  3081. end
  3082.  
  3083.  
  3084.  
  3085. function Cor(Func)
  3086.  
  3087. local Ok, Err = coroutine.resume(coroutine.create(Func))
  3088.  
  3089. if not Ok then
  3090.  
  3091. print(Err)
  3092.  
  3093. end
  3094.  
  3095. end
  3096.  
  3097.  
  3098.  
  3099. function Cor2(Func)
  3100.  
  3101. local Ok, Err = ypcall(Func)
  3102.  
  3103. if not Ok then
  3104.  
  3105. print(Err)
  3106.  
  3107. end
  3108.  
  3109. end
  3110.  
  3111.  
  3112.  
  3113. function MakePads()
  3114.  
  3115. -- 1 - VTelekinesis
  3116.  
  3117. P1 = Instance.new("Model")
  3118.  
  3119. P1.Name = ModID
  3120.  
  3121.  
  3122.  
  3123. -- 2 - RBase
  3124.  
  3125. P2 = Instance.new("Part")
  3126.  
  3127. P2.CFrame = CFrame.new(Vector3.new(21.100008, 1.95000589, 11.899971)) * CFrame.Angles(-0, 0, -0)
  3128.  
  3129. P2.FormFactor = Enum.FormFactor.Custom
  3130.  
  3131. P2.Size = Vector3.new(0.799999952, 0.200000003, 0.800000012)
  3132.  
  3133. P2.Anchored = true
  3134.  
  3135. P2.BrickColor = BrickColor.new("White")
  3136.  
  3137. P2.Friction = 0.30000001192093
  3138.  
  3139. P2.Shape = Enum.PartType.Block
  3140.  
  3141. P2.Name = "RBase"
  3142.  
  3143. P2.Parent = P1
  3144.  
  3145. P2.Transparency = 1
  3146.  
  3147.  
  3148.  
  3149. -- 3 - Mesh
  3150.  
  3151. P3 = Instance.new("CylinderMesh")
  3152.  
  3153. P3.Scale = Vector3.new(1, 0.5, 1)
  3154.  
  3155. P3.Parent = P2
  3156.  
  3157.  
  3158.  
  3159. -- 4 - LBase
  3160.  
  3161. P4 = Instance.new("Part")
  3162.  
  3163. P4.CFrame = CFrame.new(Vector3.new(18.100008, 1.95000589, 11.899971)) * CFrame.Angles(-0, 0, -0)
  3164.  
  3165. P4.FormFactor = Enum.FormFactor.Custom
  3166.  
  3167. P4.Size = Vector3.new(0.799999952, 0.200000003, 0.800000012)
  3168.  
  3169. P4.Anchored = true
  3170.  
  3171. P4.BrickColor = BrickColor.new("White")
  3172.  
  3173. P4.Friction = 0.30000001192093
  3174.  
  3175. P4.Shape = Enum.PartType.Block
  3176.  
  3177. P4.Name = "LBase"
  3178.  
  3179. P4.Parent = P1
  3180.  
  3181. P4.Transparency = 1
  3182.  
  3183.  
  3184.  
  3185. -- 5 - Mesh
  3186.  
  3187. P5 = Instance.new("CylinderMesh")
  3188.  
  3189. P5.Scale = Vector3.new(1, 0.5, 1)
  3190.  
  3191. P5.Parent = P4
  3192.  
  3193.  
  3194.  
  3195.  
  3196.  
  3197. -- 6 - RP1
  3198.  
  3199. P6 = Instance.new("Part")
  3200.  
  3201. P6.CFrame = CFrame.new(Vector3.new(20.8999996, 1.8499999, 12.0499992)) * CFrame.Angles(-0, 0, -0)
  3202.  
  3203. P6.FormFactor = Enum.FormFactor.Custom
  3204.  
  3205. P6.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  3206.  
  3207. P6.Anchored = true
  3208.  
  3209. P6.BrickColor = BrickColor.new("White")
  3210.  
  3211. P6.Friction = 0.30000001192093
  3212.  
  3213. P6.Shape = Enum.PartType.Block
  3214.  
  3215. P6.Name = "RP1"
  3216.  
  3217. P6.Parent = P2
  3218.  
  3219. P6.Transparency = 1
  3220.  
  3221. -- 7 - Mesh
  3222.  
  3223. P7 = Instance.new("CylinderMesh")
  3224.  
  3225. P7.Scale = Vector3.new(1, 0.5, 1)
  3226.  
  3227. P7.Parent = P6
  3228.  
  3229.  
  3230.  
  3231.  
  3232.  
  3233. -- 8 - RP2
  3234.  
  3235. P8 = Instance.new("Part")
  3236.  
  3237. P8.CFrame = CFrame.new(Vector3.new(21.1000004, 1.8499999, 11.6999998)) * CFrame.Angles(-0, 0, -0)
  3238.  
  3239. P8.FormFactor = Enum.FormFactor.Custom
  3240.  
  3241. P8.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  3242.  
  3243. P8.Anchored = true
  3244.  
  3245. P8.BrickColor = BrickColor.new("White")
  3246.  
  3247. P8.Friction = 0.30000001192093
  3248.  
  3249. P8.Shape = Enum.PartType.Block
  3250.  
  3251. P8.Name = "RP2"
  3252.  
  3253. P8.Parent = P2
  3254.  
  3255. P8.Transparency = 1
  3256.  
  3257.  
  3258.  
  3259. -- 9 - Mesh
  3260.  
  3261. P9 = Instance.new("CylinderMesh")
  3262.  
  3263. P9.Scale = Vector3.new(1, 0.5, 1)
  3264.  
  3265. P9.Parent = P8
  3266.  
  3267.  
  3268.  
  3269. -- 10 - RP3
  3270.  
  3271. P10 = Instance.new("Part")
  3272.  
  3273. P10.CFrame = CFrame.new(Vector3.new(21.3000011, 1.8499999, 12.0499992)) * CFrame.Angles(-0, 0, -0)
  3274.  
  3275. P10.FormFactor = Enum.FormFactor.Custom
  3276.  
  3277. P10.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  3278.  
  3279. P10.Anchored = true
  3280.  
  3281. P10.BrickColor = BrickColor.new("White")
  3282.  
  3283. P10.Friction = 0.30000001192093
  3284.  
  3285. P10.Shape = Enum.PartType.Block
  3286.  
  3287. P10.Name = "RP3"
  3288.  
  3289. P10.Parent = P2
  3290.  
  3291. P10.Transparency = 1
  3292.  
  3293.  
  3294.  
  3295. -- 11 - Mesh
  3296.  
  3297. P11 = Instance.new("CylinderMesh")
  3298.  
  3299. P11.Scale = Vector3.new(1, 0.5, 1)
  3300.  
  3301. P11.Parent = P10
  3302.  
  3303.  
  3304.  
  3305.  
  3306.  
  3307. -- 12 - LP1
  3308.  
  3309. P12 = Instance.new("Part")
  3310.  
  3311. P12.CFrame = CFrame.new(Vector3.new(17.8999996, 1.8499999, 12.0499992)) * CFrame.Angles(-0, 0, -0)
  3312.  
  3313. P12.FormFactor = Enum.FormFactor.Custom
  3314.  
  3315. P12.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  3316.  
  3317. P12.Anchored = true
  3318.  
  3319. P12.BrickColor = BrickColor.new("White")
  3320.  
  3321. P12.Friction = 0.30000001192093
  3322.  
  3323. P12.Shape = Enum.PartType.Block
  3324.  
  3325. P12.Name = "LP1"
  3326.  
  3327. P12.Parent = P4
  3328.  
  3329. P12.Transparency = 1
  3330.  
  3331.  
  3332.  
  3333. -- 13 - Mesh
  3334.  
  3335. P13 = Instance.new("CylinderMesh")
  3336.  
  3337. P13.Scale = Vector3.new(1, 0.5, 1)
  3338.  
  3339. P13.Parent = P12
  3340.  
  3341.  
  3342.  
  3343. -- 14 - LP2
  3344.  
  3345. P14 = Instance.new("Part")
  3346.  
  3347. P14.CFrame = CFrame.new(Vector3.new(18.1000004, 1.8499999, 11.6999998)) * CFrame.Angles(-0, 0, -0)
  3348.  
  3349. P14.FormFactor = Enum.FormFactor.Custom
  3350.  
  3351. P14.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  3352.  
  3353. P14.Anchored = true
  3354.  
  3355. P14.BrickColor = BrickColor.new("White")
  3356.  
  3357. P14.Friction = 0.30000001192093
  3358.  
  3359. P14.Shape = Enum.PartType.Block
  3360.  
  3361. P14.Name = "LP2"
  3362.  
  3363. P14.Parent = P4
  3364.  
  3365. P14.Transparency = 1
  3366.  
  3367.  
  3368.  
  3369. -- 15 - Mesh
  3370.  
  3371. P15 = Instance.new("CylinderMesh")
  3372.  
  3373. P15.Scale = Vector3.new(1, 0.5, 1)
  3374.  
  3375. P15.Parent = P14
  3376.  
  3377.  
  3378.  
  3379.  
  3380.  
  3381. -- 16 - LP3
  3382.  
  3383. P16 = Instance.new("Part")
  3384.  
  3385. P16.CFrame = CFrame.new(Vector3.new(18.3000011, 1.8499999, 12.0499992)) * CFrame.Angles(-0, 0, -0)
  3386.  
  3387. P16.FormFactor = Enum.FormFactor.Custom
  3388.  
  3389. P16.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  3390.  
  3391. P16.Anchored = true
  3392.  
  3393. P16.BrickColor = BrickColor.new("White")
  3394.  
  3395. P16.Friction = 0.30000001192093
  3396.  
  3397. P16.Shape = Enum.PartType.Block
  3398.  
  3399. P16.Name = "LP3"
  3400.  
  3401. P16.Parent = P4
  3402.  
  3403. P16.Transparency = 1
  3404.  
  3405.  
  3406.  
  3407. -- 17 - Mesh
  3408.  
  3409. P17 = Instance.new("CylinderMesh")
  3410.  
  3411. P17.Scale = Vector3.new(1, 0.5, 1)
  3412.  
  3413. P17.Parent = P16
  3414.  
  3415.  
  3416.  
  3417. P1.Parent = LP.Character
  3418.  
  3419. P1:MakeJoints()
  3420.  
  3421. return P1
  3422.  
  3423. end
  3424.  
  3425.  
  3426.  
  3427. weldModel = function(model, unanchor, rooty)
  3428.  
  3429. local parts = {}
  3430.  
  3431. local function recurse(object)
  3432.  
  3433. if object:IsA("BasePart") then
  3434.  
  3435. table.insert(parts, object)
  3436.  
  3437. end
  3438.  
  3439. for _,child in pairs(object:GetChildren()) do
  3440.  
  3441. recurse(child)
  3442.  
  3443. end
  3444.  
  3445. end
  3446.  
  3447. recurse(model)
  3448.  
  3449.  
  3450.  
  3451. local rootPart = rooty or parts[1]
  3452.  
  3453. for _, part in pairs(parts) do
  3454.  
  3455. local cframe = rootPart.CFrame:toObjectSpace(part.CFrame)
  3456.  
  3457. local weld = Instance.new("Weld")
  3458.  
  3459. weld.Part0 = rootPart
  3460.  
  3461. weld.Part1 = part
  3462.  
  3463. weld.C0 = cframe
  3464.  
  3465. weld.Parent = rootPart
  3466.  
  3467. end
  3468.  
  3469.  
  3470.  
  3471. if unanchor then
  3472.  
  3473. for _, part in pairs(parts) do
  3474.  
  3475. part.Anchored = false
  3476.  
  3477. part.CanCollide = false
  3478.  
  3479. end
  3480.  
  3481. end
  3482.  
  3483. end
  3484.  
  3485.  
  3486.  
  3487. weldItem = function(rootPart, Item, TheC0, unanchor, ParentItem)
  3488.  
  3489. local cframe = TheC0 or rootPart.CFrame:toObjectSpace(Item.CFrame)
  3490.  
  3491. local weld = Instance.new("Weld")
  3492.  
  3493. weld.Name = "Weld"
  3494.  
  3495. weld.Part0 = rootPart
  3496.  
  3497. weld.Part1 = Item
  3498.  
  3499. weld.C0 = cframe
  3500.  
  3501. weld.Parent = ParentItem and Item or rootPart
  3502.  
  3503.  
  3504.  
  3505. if unanchor then
  3506.  
  3507. Item.Anchored = false
  3508.  
  3509. end
  3510.  
  3511. return weld, cframe
  3512.  
  3513. end
  3514.  
  3515.  
  3516.  
  3517. scaleModel = function(model, scale)
  3518.  
  3519. local parts = {}
  3520.  
  3521. local function recurse(object)
  3522.  
  3523. if object:IsA("BasePart") then
  3524.  
  3525. table.insert(parts, object)
  3526.  
  3527. end
  3528.  
  3529. for _,child in pairs(object:GetChildren()) do
  3530.  
  3531. recurse(child)
  3532.  
  3533. end
  3534.  
  3535. end
  3536.  
  3537. recurse(model)
  3538.  
  3539.  
  3540.  
  3541. local top, bottom, left, right, back, front
  3542.  
  3543. for _, part in pairs(parts) do
  3544.  
  3545. if top == nil or top < part.Position.y then top = part.Position.y end
  3546.  
  3547. if bottom == nil or bottom > part.Position.y then bottom = part.Position.y end
  3548.  
  3549. if left == nil or left > part.Position.x then left = part.Position.x end
  3550.  
  3551. if right == nil or right < part.Position.x then right = part.Position.x end
  3552.  
  3553. if back == nil or back > part.Position.z then back = part.Position.z end
  3554.  
  3555. if front == nil or front < part.Position.z then front = part.Position.z end
  3556.  
  3557. end
  3558.  
  3559.  
  3560.  
  3561. local middle = Vector3.new( left+right, top+bottom, back+front )/2
  3562.  
  3563. local minSize = Vector3.new(0.2, 0.2, 0.2)
  3564.  
  3565.  
  3566.  
  3567. for _, part in pairs(parts) do
  3568.  
  3569. local foo = part.CFrame.p - middle
  3570.  
  3571. local rotation = part.CFrame - part.CFrame.p
  3572.  
  3573. local newSize = part.Size*scale
  3574.  
  3575. part.FormFactor = "Custom"
  3576.  
  3577. part.Size = newSize
  3578.  
  3579. part.CFrame = CFrame.new( middle + foo*scale ) * rotation
  3580.  
  3581.  
  3582.  
  3583. if newSize.x < minSize.x or newSize.y < minSize.y or newSize.z < minSize.z then
  3584.  
  3585. local mesh
  3586.  
  3587. for _, child in pairs(part:GetChildren()) do
  3588.  
  3589. if child:IsA("DataModelMesh") then
  3590.  
  3591. mesh = child
  3592.  
  3593. break
  3594.  
  3595. end
  3596.  
  3597. end
  3598.  
  3599.  
  3600.  
  3601. if mesh == nil then
  3602.  
  3603. mesh = Instance.new("BlockMesh", part)
  3604.  
  3605. end
  3606.  
  3607.  
  3608.  
  3609. local oScale = mesh.Scale
  3610.  
  3611. local newScale = newSize/minSize * oScale
  3612.  
  3613. if 0.2 < newSize.x then newScale = Vector3.new(1 * oScale.x, newScale.y, newScale.z) end
  3614.  
  3615. if 0.2 < newSize.y then newScale = Vector3.new(newScale.x, 1 * oScale.y, newScale.z) end
  3616.  
  3617. if 0.2 < newSize.z then newScale = Vector3.new(newScale.x, newScale.y, 1 * oScale.z) end
  3618.  
  3619.  
  3620.  
  3621. mesh.Scale = newScale
  3622.  
  3623. end
  3624.  
  3625. end
  3626.  
  3627. end
  3628.  
  3629.  
  3630.  
  3631. function getMass(Obj, Total)
  3632.  
  3633. local newTotal = Total
  3634.  
  3635. local returnTotal = 0
  3636.  
  3637.  
  3638.  
  3639. if Obj:IsA("BasePart") then
  3640.  
  3641. newTotal = newTotal + Objects[Obj]
  3642.  
  3643. elseif BodyObjects[Obj.ClassName] then
  3644.  
  3645. Obj:Destroy()
  3646.  
  3647. end
  3648.  
  3649.  
  3650.  
  3651. if Obj:GetChildren() and #Obj:GetChildren() > 0 then
  3652.  
  3653. for _,v in pairs(Obj:GetChildren()) do
  3654.  
  3655. returnTotal = returnTotal + getMass(v, newTotal)
  3656.  
  3657. end
  3658.  
  3659. else
  3660.  
  3661. returnTotal = newTotal
  3662.  
  3663. end
  3664.  
  3665.  
  3666.  
  3667. return returnTotal
  3668.  
  3669. end
  3670.  
  3671.  
  3672.  
  3673. function getTargFromCurrent()
  3674.  
  3675. local Current = Current.Part
  3676.  
  3677. if Current:IsA("BasePart") then
  3678.  
  3679. return Current
  3680.  
  3681. elseif Current:findFirstChild("Torso") then
  3682.  
  3683. return Current.Torso
  3684.  
  3685. else
  3686.  
  3687. for _,v in pairs(Current:GetChildren()) do
  3688.  
  3689. if v:IsA("BasePart") then
  3690.  
  3691. return v
  3692.  
  3693. end
  3694.  
  3695. end
  3696.  
  3697. end
  3698.  
  3699. end
  3700.  
  3701.  
  3702.  
  3703. function Fire(Part, Vec, Inv)
  3704.  
  3705. pcall(function()
  3706.  
  3707. Current.BP:Destroy()
  3708.  
  3709. Current.BP = nil
  3710.  
  3711. end)
  3712.  
  3713. pcall(function()
  3714.  
  3715. Current.BA:Destroy()
  3716.  
  3717. Current.BA = nil
  3718.  
  3719. end)
  3720.  
  3721. pcall(function()
  3722.  
  3723. if Inv then
  3724.  
  3725. Part.Velocity = -((Vec - Torso.Position).unit * Grav * 1.1)
  3726.  
  3727. else
  3728.  
  3729. Part.Velocity = ((Vec - Camera.CoordinateFrame.p).unit * Grav * 1.1)
  3730.  
  3731. end
  3732.  
  3733. Current.Mass = nil
  3734.  
  3735. end)
  3736.  
  3737. Reset()
  3738.  
  3739. end
  3740.  
  3741.  
  3742.  
  3743. function Reset()
  3744.  
  3745. LS.Parent = nil
  3746.  
  3747. RS.Parent = nil
  3748.  
  3749.  
  3750.  
  3751. OrigLS.Parent = Torso
  3752.  
  3753. OrigRS.Parent = Torso
  3754.  
  3755.  
  3756.  
  3757. OrigLS.C0 = LS0
  3758.  
  3759. OrigRS.C0 = RS0
  3760.  
  3761. end
  3762.  
  3763.  
  3764.  
  3765. function Start()
  3766.  
  3767. Cor(function()
  3768.  
  3769. repeat wait(1/30) until LP.Character and LP.Character.Parent == Workspace and LP.Character:findFirstChild("Torso")
  3770.  
  3771. Char = LP.Character
  3772.  
  3773. PlrGui = LP.PlayerGui
  3774.  
  3775. Backpack = LP.Backpack
  3776.  
  3777. Mouse = LP:GetMouse()
  3778.  
  3779.  
  3780.  
  3781. for _,v in pairs(Cons) do
  3782.  
  3783. v:disconnect()
  3784.  
  3785. end
  3786.  
  3787. Cons = {}
  3788.  
  3789.  
  3790.  
  3791. Camera = Workspace.CurrentCamera
  3792.  
  3793. LastCamCF = Camera.CoordinateFrame
  3794.  
  3795. AnimJoints = {}
  3796.  
  3797. mDown = false
  3798.  
  3799. Multi = false
  3800.  
  3801. Grabbing = false
  3802.  
  3803. Current = {}
  3804.  
  3805. Alpha = 1
  3806.  
  3807.  
  3808.  
  3809. Head = Char["Head"]
  3810.  
  3811. Torso = Char["Torso"]
  3812.  
  3813. Humanoid = Char["Humanoid"]
  3814.  
  3815. LA = Char["Left Arm"]
  3816.  
  3817. RA = Char["Right Arm"]
  3818.  
  3819. LL = Char["Left Leg"]
  3820.  
  3821. RL = Char["Right Leg"]
  3822.  
  3823.  
  3824.  
  3825. OrigLS = Torso["Left Shoulder"]
  3826.  
  3827. OrigRS = Torso["Right Shoulder"]
  3828.  
  3829.  
  3830.  
  3831. for _,v in pairs(Char:GetChildren()) do
  3832.  
  3833. if v.Name == ModID then
  3834.  
  3835. v:Destroy()
  3836.  
  3837. end
  3838.  
  3839. end
  3840.  
  3841.  
  3842.  
  3843. for _,v in pairs(PlrGui:GetChildren()) do
  3844.  
  3845. if v.Name == "PadsGui" then
  3846.  
  3847. v:Destroy()
  3848.  
  3849. end
  3850.  
  3851. end
  3852.  
  3853.  
  3854.  
  3855. LS = Instance.new("Weld")
  3856.  
  3857. RS = Instance.new("Weld")
  3858.  
  3859.  
  3860.  
  3861. LS.Name = OrigLS.Name
  3862.  
  3863. LS.Part0 = Torso
  3864.  
  3865. LS.Part1 = LA
  3866.  
  3867. LS.C0 = LS0
  3868.  
  3869. LS.C1 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 0, 1, 0, -1, 0)
  3870.  
  3871.  
  3872.  
  3873. RS.Name = OrigRS.Name
  3874.  
  3875. RS.Part0 = Torso
  3876.  
  3877. RS.Part1 = RA
  3878.  
  3879. RS.C0 = RS0
  3880.  
  3881. RS.C1 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 0, 1, 0, -1, 0)
  3882.  
  3883.  
  3884.  
  3885. local Pads = MakePads()
  3886.  
  3887. local LPad = Pads.LBase
  3888.  
  3889. local RPad = Pads.RBase
  3890.  
  3891.  
  3892.  
  3893. weldModel(LPad, true, LPad)
  3894.  
  3895. weldModel(RPad, true, RPad)
  3896.  
  3897.  
  3898.  
  3899. local GripWeldL = Instance.new("Weld")
  3900.  
  3901. GripWeldL.Name = "GripWeldL"
  3902.  
  3903. GripWeldL.Part0 = LA
  3904.  
  3905. GripWeldL.Part1 = LPad
  3906.  
  3907. GripWeldL.C0 = CFrame.new(0, -1.05, 0) * CFrame.Angles(0, math.rad(180), 0)
  3908.  
  3909. GripWeldL.Parent = LA
  3910.  
  3911.  
  3912.  
  3913. local GripWeldR = Instance.new("Weld")
  3914.  
  3915. GripWeldR.Name = "GripWeldR"
  3916.  
  3917. GripWeldR.Part0 = RA
  3918.  
  3919. GripWeldR.Part1 = RPad
  3920.  
  3921. GripWeldR.C0 = CFrame.new(0, -1.05, 0) * CFrame.Angles(0, math.rad(180), 0)
  3922.  
  3923. GripWeldR.Parent = RA
  3924.  
  3925.  
  3926.  
  3927. local isParts = false
  3928.  
  3929.  
  3930.  
  3931. table.insert(Cons, Mouse.KeyDown:connect(function(Key)
  3932.  
  3933. Key = Key:lower()
  3934.  
  3935. if Key == "z" then
  3936.  
  3937. --Stuff
  3938.  
  3939. elseif Key == "f" then
  3940.  
  3941. local Current = Current.Part
  3942.  
  3943. if Current and Current.Parent ~= nil and not Multi then
  3944.  
  3945. Current:BreakJoints()
  3946.  
  3947. end
  3948.  
  3949. elseif Key == "q" then
  3950.  
  3951. if isParts then
  3952.  
  3953. isParts = false
  3954.  
  3955. for _,v in pairs(Workspace:GetChildren()) do
  3956.  
  3957. if v.Name == "MyPartV" and v:IsA("BasePart") then
  3958.  
  3959. v:Destroy()
  3960.  
  3961. end
  3962.  
  3963. end
  3964.  
  3965. else
  3966.  
  3967. isParts = true
  3968.  
  3969. for i = 1, 50 do
  3970.  
  3971. local Part = Instance.new("Part")
  3972.  
  3973. Part.Color = Color3.new(math.random(), math.random(), math.random())
  3974.  
  3975. Part.Transparency = 1
  3976.  
  3977. Part.Size = Vector3.new(math.random(1, 3), math.random(1, 3), math.random(1, 3))
  3978.  
  3979. Part.Archivable = true
  3980.  
  3981. Part.CanCollide = false
  3982.  
  3983. Part.Material = "Plastic"
  3984.  
  3985. Part.Locked = false
  3986.  
  3987. Part.CFrame = Torso.CFrame * CFrame.new(math.random(-15, 15), -1, math.random(-15, 15))
  3988.  
  3989. Part.Anchored = true
  3990.  
  3991. Part.Name = "MyPartV"
  3992.  
  3993. Part.TopSurface = "Smooth"
  3994.  
  3995. Part.BottomSurface = "Smooth"
  3996.  
  3997. Part.Parent = Workspace
  3998.  
  3999. end
  4000.  
  4001. end
  4002.  
  4003. elseif Key == "e" then
  4004.  
  4005. local Targ;
  4006.  
  4007. if Current.Part and Current.Part ~= nil then
  4008.  
  4009. Targ = getTargFromCurrent()
  4010.  
  4011. else
  4012.  
  4013. Targ = LastPart
  4014.  
  4015. end
  4016.  
  4017. if Targ and Targ.Parent ~= nil and not Multi then
  4018.  
  4019. local Ex = Instance.new("Explosion", Workspace)
  4020.  
  4021. Ex.Position = Targ.CFrame.p
  4022.  
  4023. Ex.BlastRadius = 16
  4024.  
  4025. Ex.DestroyJointRadiusPercent = 0.5
  4026.  
  4027. end
  4028.  
  4029. elseif Key == "c" then
  4030.  
  4031. if Current.Part and Current.Part.Parent ~= nil and not Multi then
  4032.  
  4033. local Part = getTargFromCurrent()
  4034.  
  4035. if Part then
  4036.  
  4037. Grabbing = false
  4038.  
  4039. if Mouse.Hit then
  4040.  
  4041. local TargPos = CFrame.new(Camera.CoordinateFrame.p, Mouse.Hit.p) * CFrame.new(0, 0, -1000)
  4042.  
  4043. Fire(Part, TargPos.p)
  4044.  
  4045. else
  4046.  
  4047. Fire(Part, Mouse.Origin.p + Mouse.UnitRay.Direction, true)
  4048.  
  4049. end
  4050.  
  4051. end
  4052.  
  4053. end
  4054.  
  4055. end
  4056.  
  4057. end))
  4058.  
  4059.  
  4060.  
  4061. table.insert(Cons, Mouse.Button1Up:connect(function()
  4062.  
  4063. mDown = false
  4064.  
  4065. if Grabbing == true and Multi == false then
  4066.  
  4067. Grabbing = false
  4068.  
  4069. Reset()
  4070.  
  4071. end
  4072.  
  4073. if Current.Part ~= nil then
  4074.  
  4075. LastPart = getTargFromCurrent()
  4076.  
  4077. Current = {}
  4078.  
  4079. end
  4080.  
  4081. end))
  4082.  
  4083.  
  4084.  
  4085. local function makeLightning(Par, Start, End, Width, Length, RandomScale, ArcScale, Num1)
  4086.  
  4087. local oldParts = {}
  4088.  
  4089. for _,v in pairs(Par:GetChildren()) do
  4090.  
  4091. v.CFrame = CFrame.new(5e5, 5e5, 5e5)
  4092.  
  4093. table.insert(oldParts, v)
  4094.  
  4095. end
  4096.  
  4097. local Distance = (Start-End).Magnitude
  4098.  
  4099. local ArcScale = ArcScale or 1
  4100.  
  4101. local RandomScale = RandomScale or 0
  4102.  
  4103. local Last = Start
  4104.  
  4105. local IterNum = 0
  4106.  
  4107.  
  4108.  
  4109. while Par.Parent do
  4110.  
  4111. IterNum = IterNum + 1
  4112.  
  4113. local New = nil
  4114.  
  4115. if (Last-End).Magnitude < Length then
  4116.  
  4117. New = CFrame.new(End)
  4118.  
  4119. else
  4120.  
  4121. if (End-Last).Magnitude < Length*2 then
  4122.  
  4123. RandomScale = RandomScale*0.5
  4124.  
  4125. ArcScale = ArcScale*0.5
  4126.  
  4127. end
  4128.  
  4129. local Direct = CFrame.new(Last,End)
  4130.  
  4131. New = Direct*CFrame.Angles(math.rad(math.random(-RandomScale/4,RandomScale*ArcScale)),math.rad(math.random(-RandomScale,RandomScale)),math.rad(math.random(-RandomScale,RandomScale)))
  4132.  
  4133. New = New*CFrame.new(0,0,-Length)
  4134.  
  4135. end
  4136.  
  4137. local Trail = nil
  4138.  
  4139. if oldParts[IterNum] then
  4140.  
  4141. Trail = oldParts[IterNum]
  4142.  
  4143. Trail.BrickColor = ((Num1 % 2 == 0) and BrickColor.new("White")) or BrickColor.new("White")
  4144.  
  4145. Trail.Size = Vector3.new(Width, (Last-New.p).Magnitude, Width)
  4146.  
  4147. Trail.CFrame = CFrame.new(New.p, Last)*CFrame.Angles(math.rad(90),0,0)*CFrame.new(0, -(Last-New.p).Magnitude/2, 0)
  4148.  
  4149. oldParts[IterNum] = nil
  4150.  
  4151. else
  4152.  
  4153. Trail = Instance.new("Part")
  4154.  
  4155. Trail.Name = "Part"
  4156.  
  4157. Trail.FormFactor = "Custom"
  4158.  
  4159. Trail.BrickColor = ((Num1 % 2 == 0) and BrickColor.new("White")) or BrickColor.new("White")
  4160.  
  4161. Trail.Transparency = 1
  4162.  
  4163. Trail.Anchored = true
  4164.  
  4165. Trail.CanCollide = false
  4166.  
  4167. Trail.Locked = true
  4168.  
  4169. Trail.BackSurface = "SmoothNoOutlines"
  4170.  
  4171. Trail.BottomSurface = "SmoothNoOutlines"
  4172.  
  4173. Trail.FrontSurface = "SmoothNoOutlines"
  4174.  
  4175. Trail.LeftSurface = "SmoothNoOutlines"
  4176.  
  4177. Trail.RightSurface = "SmoothNoOutlines"
  4178.  
  4179. Trail.TopSurface = "SmoothNoOutlines"
  4180.  
  4181. Trail.Material = "Neon"
  4182.  
  4183. Trail.Size = Vector3.new(Width, (Last-New.p).Magnitude, Width)
  4184.  
  4185. Trail.CFrame = CFrame.new(New.p, Last)*CFrame.Angles(math.rad(90),0,0)*CFrame.new(0, -(Last-New.p).Magnitude/2, 0)
  4186.  
  4187. Trail.Parent = Par
  4188.  
  4189. end
  4190.  
  4191. Last = New.p
  4192.  
  4193. if (Last-End).Magnitude < 1 then
  4194.  
  4195. break
  4196.  
  4197. end
  4198.  
  4199. end
  4200.  
  4201. for _,v in pairs(oldParts) do
  4202.  
  4203. v:Destroy()
  4204.  
  4205. end
  4206.  
  4207. end
  4208.  
  4209.  
  4210.  
  4211. table.insert(Cons, Mouse.Button1Down:connect(function()
  4212.  
  4213. mDown = true
  4214.  
  4215. local Targ = Mouse.Target
  4216.  
  4217. Cor(function()
  4218.  
  4219. if Targ and Objects[Targ] and not Multi then
  4220.  
  4221. Grabbing = true
  4222.  
  4223. Current.Part = Targ
  4224.  
  4225. local Mass = Objects[Targ]
  4226.  
  4227. local ForceNum = 0
  4228.  
  4229. local Hum = nil
  4230.  
  4231.  
  4232.  
  4233. for _,v in pairs(Targ:GetChildren()) do
  4234.  
  4235. if BodyObjects[v.ClassName] then
  4236.  
  4237. v:Destroy()
  4238.  
  4239. end
  4240.  
  4241. end
  4242.  
  4243.  
  4244.  
  4245. for _,v in pairs(Workspace:GetChildren()) do
  4246.  
  4247. if v:findFirstChild("Humanoid") and v:IsAncestorOf(Targ) then
  4248.  
  4249. Hum = v.Humanoid
  4250.  
  4251. Mass = getMass(v, 0)
  4252.  
  4253. Current.Part = v
  4254.  
  4255. break
  4256.  
  4257. end
  4258.  
  4259. end
  4260.  
  4261.  
  4262.  
  4263. Current.Mass = Mass
  4264.  
  4265.  
  4266.  
  4267. if not Hum then
  4268.  
  4269. Targ:BreakJoints()
  4270.  
  4271. end
  4272.  
  4273.  
  4274.  
  4275. ForceNum = Mass * Grav
  4276.  
  4277. Targ.CanCollide = true
  4278.  
  4279. Targ.Anchored = false
  4280.  
  4281.  
  4282.  
  4283. local BP = Instance.new("BodyPosition")
  4284.  
  4285. BP.maxForce = Vector3.new(3 * ForceNum, 3 * ForceNum, 3 * ForceNum)
  4286.  
  4287. BP.Parent = Targ
  4288.  
  4289.  
  4290.  
  4291. local Ang = Instance.new("BodyAngularVelocity")
  4292.  
  4293. Ang.Parent = Targ
  4294.  
  4295.  
  4296.  
  4297. Current.BP = BP
  4298.  
  4299. Current.BA = Ang
  4300.  
  4301.  
  4302.  
  4303. OrigLS.Parent = nil
  4304.  
  4305. OrigRS.Parent = nil
  4306.  
  4307.  
  4308.  
  4309. LS.Parent = Torso
  4310.  
  4311. RS.Parent = Torso
  4312.  
  4313.  
  4314.  
  4315. LS.C0 = LS0
  4316.  
  4317. RS.C0 = RS0
  4318.  
  4319.  
  4320.  
  4321. local DirDot = Mouse.UnitRay.Direction:Dot(Targ.Position - Mouse.Origin.p)
  4322.  
  4323. local BPPos = Vector3.new(0, 0, 0)
  4324.  
  4325. local Vel = Vector3.new(0, 0, 0)
  4326.  
  4327. local Vlev = random() * math.pi
  4328.  
  4329. local RPos = Vector3.new(random() * 2 - 1, cos(Vlev), random() * 2 - 1)
  4330.  
  4331.  
  4332.  
  4333. local Ball = Instance.new("Part")
  4334.  
  4335. Ball.Name = "Ball"
  4336.  
  4337. Ball.FormFactor = "Custom"
  4338.  
  4339. Ball.Color = Color3.new(0, 0, 0)
  4340.  
  4341. Ball.Transparency = 1
  4342.  
  4343. Ball.Anchored = true
  4344.  
  4345. Ball.CanCollide = false
  4346.  
  4347. Ball.Locked = true
  4348.  
  4349. Ball.BottomSurface, Ball.TopSurface = "Smooth", "Smooth"
  4350.  
  4351. Ball.Size = Vector3.new(0.5, 0.5, 0.5)
  4352.  
  4353. Ball.CFrame = Torso.CFrame * CFrame.new(0, 1, -3)
  4354.  
  4355. Ball.Parent = Char
  4356.  
  4357.  
  4358.  
  4359. if Targ.Name == "MyPartV" then
  4360.  
  4361. Targ.Name = "MyPartF"
  4362.  
  4363. end
  4364.  
  4365.  
  4366.  
  4367. local LightMod = Instance.new("Model", Char)
  4368.  
  4369.  
  4370.  
  4371. local Mesh = Instance.new("SpecialMesh")
  4372.  
  4373. Mesh.MeshType = "Sphere"
  4374.  
  4375. Mesh.Parent = Ball
  4376.  
  4377.  
  4378.  
  4379. local Size = 1
  4380.  
  4381. local Rise = true
  4382.  
  4383.  
  4384.  
  4385. while Grabbing and BP and Ang and Targ.Parent ~= nil do
  4386.  
  4387. local BPPos = Mouse.Origin.p + Mouse.UnitRay.Direction * DirDot
  4388.  
  4389. Ang.angularvelocity = Vel
  4390.  
  4391. BP.position = BPPos + RPos
  4392.  
  4393. 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)))
  4394.  
  4395. 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)))
  4396.  
  4397. Vlev = (Vlev + 0.05) % tau
  4398.  
  4399.  
  4400.  
  4401. if Hum then
  4402.  
  4403. Hum.Sit = true
  4404.  
  4405. end
  4406.  
  4407.  
  4408.  
  4409. if LA.Parent ~= nil and RA.Parent ~= nil then
  4410.  
  4411. local LPos = (LA.CFrame * CFrame.new(0, -1, 0)).p
  4412.  
  4413. local RPos = (RA.CFrame * CFrame.new(0, -1, 0)).p
  4414.  
  4415. if Rise == true then
  4416.  
  4417. if Size < 0.6 then
  4418.  
  4419. Size = Size + 0.05
  4420.  
  4421. else
  4422.  
  4423. Size = Size + 0.1
  4424.  
  4425. end
  4426.  
  4427. if Size >= 2.2 then
  4428.  
  4429. Rise = false
  4430.  
  4431. end
  4432.  
  4433. else
  4434.  
  4435. if Size > 2.1 then
  4436.  
  4437. Size = Size - 0.05
  4438.  
  4439. else
  4440.  
  4441. Size = Size - 0.1
  4442.  
  4443. end
  4444.  
  4445. if Size <= 0.5 then
  4446.  
  4447. Rise = true
  4448.  
  4449. end
  4450.  
  4451. end
  4452.  
  4453. Ball.Size = Vector3.new(Size, Size, Size)
  4454.  
  4455. Ball.CFrame = CFrame.new(LPos:Lerp(RPos, 0.5), Targ.Position) * CFrame.new(0, 0, -2.2)
  4456.  
  4457. LightNum = LightNum + 1
  4458.  
  4459. makeLightning(LightMod, Ball.Position, Targ.Position, 0.2, 4, 50, 1, LightNum)
  4460.  
  4461. elseif Ball.Parent ~= nil then
  4462.  
  4463. Ball:Destroy()
  4464.  
  4465. end
  4466.  
  4467.  
  4468.  
  4469. if LS and LS.Parent == Torso then
  4470.  
  4471. 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))
  4472.  
  4473. end
  4474.  
  4475. if RS and RS.Parent == Torso then
  4476.  
  4477. 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))
  4478.  
  4479. end
  4480.  
  4481. RunService.Heartbeat:wait()
  4482.  
  4483. end
  4484.  
  4485.  
  4486.  
  4487. coroutine.resume(coroutine.create(function()
  4488.  
  4489. for i = 0.5, 1, 0.1 do
  4490.  
  4491. for i2,v in pairs(LightMod:GetChildren()) do
  4492.  
  4493. --v.Light.Range = 6-(i*5)
  4494.  
  4495. v.Transparency = 1
  4496.  
  4497. end
  4498.  
  4499. wait(1/30)
  4500.  
  4501. end
  4502.  
  4503. LightMod:Destroy()
  4504.  
  4505. end))
  4506.  
  4507.  
  4508.  
  4509. if BP and BP.Parent ~= nil then
  4510.  
  4511. BP:Destroy()
  4512.  
  4513. end
  4514.  
  4515.  
  4516.  
  4517. if Ang and Ang.Parent ~= nil then
  4518.  
  4519. Ang:Destroy()
  4520.  
  4521. end
  4522.  
  4523.  
  4524.  
  4525. pcall(function() Ball:Destroy() end)
  4526.  
  4527. end
  4528.  
  4529. end)
  4530.  
  4531. end))
  4532.  
  4533. end)
  4534.  
  4535. end
  4536.  
  4537.  
  4538.  
  4539. function Add(Obj)
  4540.  
  4541. if Obj:IsA("BasePart") and not Objects[Obj] and not (Obj.Name == "Base" and Obj.ClassName == "Part") then
  4542.  
  4543. Objects[Obj] = Obj:GetMass()
  4544.  
  4545. Obj.Changed:connect(function(P)
  4546.  
  4547. if P:lower() == "size" and Objects[Obj] and Obj.Parent ~= nil then
  4548.  
  4549. Objects[Obj] = Obj:GetMass()
  4550.  
  4551. end
  4552.  
  4553. end)
  4554.  
  4555. end
  4556.  
  4557. end
  4558.  
  4559.  
  4560.  
  4561. function Rem(Obj)
  4562.  
  4563. if Objects[Obj] then
  4564.  
  4565. Objects[Obj] = nil
  4566.  
  4567. end
  4568.  
  4569. end
  4570.  
  4571.  
  4572.  
  4573. function Recursion(Obj)
  4574.  
  4575. ypcall(function()
  4576.  
  4577. Add(Obj)
  4578.  
  4579. if #Obj:GetChildren() > 0 then
  4580.  
  4581. for _,v in pairs(Obj:GetChildren()) do
  4582.  
  4583. Recursion(v)
  4584.  
  4585. end
  4586.  
  4587. end
  4588.  
  4589. end)
  4590.  
  4591. end
  4592.  
  4593.  
  4594.  
  4595. Workspace.DescendantAdded:connect(function(Obj)
  4596.  
  4597. Add(Obj)
  4598.  
  4599. end)
  4600.  
  4601.  
  4602.  
  4603. Workspace.DescendantRemoving:connect(function(Obj)
  4604.  
  4605. Rem(Obj)
  4606.  
  4607. end)
  4608.  
  4609.  
  4610.  
  4611. for _,v in pairs(Workspace:GetChildren()) do
  4612.  
  4613. Recursion(v)
  4614.  
  4615. end
  4616.  
  4617.  
  4618.  
  4619. Start()
  4620.  
  4621.  
  4622.  
  4623. if LP.Name == PlrName then
  4624.  
  4625. LP.CharacterAdded:connect(Start)
  4626.  
  4627. end
  4628.  
  4629. Char.Humanoid.MaxHealth = 50000
  4630.  
  4631. Char.Humanoid.Health = 50000
  4632.  
  4633. --Responsible for regening a player's humanoid's health
  4634.  
  4635.  
  4636.  
  4637. -- declarations
  4638.  
  4639. local Figure = script.Parent
  4640.  
  4641. local Head = Figure:WaitForChild("Head")
  4642.  
  4643. local Humanoid = Figure:WaitForChild("Humanoid")
  4644.  
  4645. local regening = false
  4646.  
  4647.  
  4648.  
  4649. -- regeneration
  4650.  
  4651. function regenHealth()
  4652.  
  4653. if regening then return end
  4654.  
  4655. regening = true
  4656.  
  4657.  
  4658.  
  4659. while Humanoid.Health < Humanoid.MaxHealth do
  4660.  
  4661. local s = wait(0.1)
  4662.  
  4663. local health = Humanoid.Health
  4664.  
  4665. if health > 0 and health < Humanoid.MaxHealth then
  4666.  
  4667. local newHealthDelta = 0.1 * s * Humanoid.MaxHealth
  4668.  
  4669. health = health + newHealthDelta
  4670.  
  4671. Humanoid.Health = math.min(health,Humanoid.MaxHealth)
  4672.  
  4673. end
  4674.  
  4675. end
  4676.  
  4677.  
  4678.  
  4679. if Humanoid.Health > Humanoid.MaxHealth then
  4680.  
  4681. Humanoid.Health = Humanoid.MaxHealth
  4682.  
  4683. end
  4684.  
  4685.  
  4686.  
  4687. regening = false
  4688.  
  4689. end
  4690.  
  4691.  
  4692.  
  4693. Humanoid.HealthChanged:connect(regenHealth)
  4694.  
  4695. Me = game.Players.LocalPlayer
  4696.  
  4697. char = Me.Character
  4698.  
  4699. larm = char["Left Arm"]
  4700.  
  4701. rarm = char["Right Arm"]
  4702.  
  4703. lleg = char["Left Leg"]
  4704.  
  4705. rleg = char["Right Leg"]
  4706.  
  4707. torso = char.Torso
  4708.  
  4709.  
  4710.  
  4711.  
  4712.  
  4713.  
  4714.  
  4715. --------------------------
  4716.  
  4717.  
  4718.  
  4719. --[[ High Quality Sound Script
  4720.  
  4721. --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.
  4722.  
  4723. --- full credits to saud20 --Also, edit friendly so you can place this in your script for a weapon song or somethin
  4724.  
  4725. ]]
  4726.  
  4727. Effects = {} --sound effects, for advanced players.
  4728.  
  4729. local Player = game.Players.localPlayer
  4730.  
  4731. local Character = Player.Character
  4732.  
  4733. local Humanoid = Character.Humanoid
  4734.  
  4735. z = Instance.new("Sound", Character)
  4736.  
  4737. z.SoundId = "rbxassetid://152201694"--
  4738.  
  4739. z.Looped = true --False for a one-time song.
  4740.  
  4741. z.Pitch = 1.3
  4742.  
  4743. z.Volume = 1.3
  4744.  
  4745. wait(.1)
  4746.  
  4747. z:Play()
  4748.  
  4749. ------------------------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