Advertisement
dadepro_2

Untitled

Mar 23rd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.50 KB | None | 0 0
  1. --[[MechSuit v1.41 (Animated)
  2.  
  3. How to use:
  4.  
  5. First equip the tool
  6.  
  7. w,a,s,d to move
  8.  
  9. q = Laser
  10.  
  11. e = Grab (Hold)
  12.  
  13. g = Jump
  14.  
  15. x = Sit/Unsit
  16.  
  17. ]]
  18.  
  19. Name = "dadepro" --1.Your name here.
  20.  
  21. x = 0
  22.  
  23.  
  24.  
  25. Players = game:GetService("Players")
  26.  
  27. Debris = game:GetService("Debris")
  28.  
  29. NetworkServer = game:findFirstChild("NetworkServer")
  30.  
  31.  
  32.  
  33. script.Name = "NubScript"
  34.  
  35.  
  36.  
  37. if (NetworkServer == nil) then
  38.  
  39. Name = "Player"
  40.  
  41. else
  42.  
  43. end
  44.  
  45.  
  46.  
  47. HopperName = "DXP-S002:MS"
  48.  
  49.  
  50.  
  51. if (script.Parent.className ~= "HopperBin") then
  52.  
  53. --script.Name = "_Main[" ..HopperName.. "]"
  54.  
  55. local h = Instance.new("HopperBin")
  56.  
  57. h.Name = "Mech Ctrl"
  58.  
  59. h.Parent = game:GetService("Players")[Name].Backpack
  60.  
  61. script.Parent = h
  62.  
  63. else
  64.  
  65. end
  66.  
  67.  
  68.  
  69. Player = Players.polo1716 --2.Your Name here also... done. -----------------------------------------
  70.  
  71. MechColor = "Bright yellow"
  72.  
  73. bin = script.Parent
  74.  
  75. Levitating = false
  76.  
  77. MousPos = Vector3.new(0,0,0)
  78.  
  79. facde = nil
  80.  
  81.  
  82.  
  83. for i=1,1 do
  84.  
  85. local zomfgimtheonlybinthatshouldbeinthisstupidbackpackofmahmasternoobishallkillunaokklololtrolol = Player.Backpack:GetChildren()
  86.  
  87. for i=1,#zomfgimtheonlybinthatshouldbeinthisstupidbackpackofmahmasternoobishallkillunaokklololtrolol do
  88.  
  89. if zomfgimtheonlybinthatshouldbeinthisstupidbackpackofmahmasternoobishallkillunaokklololtrolol[i].Name == HopperName and zomfgimtheonlybinthatshouldbeinthisstupidbackpackofmahmasternoobishallkillunaokklololtrolol[i] ~= bin then
  90.  
  91. zomfgimtheonlybinthatshouldbeinthisstupidbackpackofmahmasternoobishallkillunaokklololtrolol[i]:Remove()
  92.  
  93. else
  94.  
  95. end
  96.  
  97. end
  98.  
  99. end
  100.  
  101. --
  102.  
  103. a = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"}
  104.  
  105. n = {"1","2","3","4","5","6","7","8","9","0"}
  106.  
  107. Credec = "http://www.roblox.com/asset/?id=0"
  108.  
  109.  
  110.  
  111. PlayerGui = Player.PlayerGui
  112.  
  113. Backpack = Player.Backpack
  114.  
  115. Char = Player.Character
  116.  
  117. Hea = Char.Head
  118.  
  119. Tors = Char.Torso
  120.  
  121. Hum = Char.Humanoid
  122.  
  123. Hum.WalkSpeed = 22
  124.  
  125.  
  126.  
  127. WalkAnim = 1
  128.  
  129. Anim = "Standing"
  130.  
  131. Legs = true
  132.  
  133. Arms = true
  134.  
  135. RunChance = false
  136.  
  137. SAnim = false -- Animation debounce that can also be with walking
  138.  
  139. SSAnim = "None"
  140.  
  141. Canwalk = true
  142.  
  143. Grabbing = false
  144.  
  145. PushGrab = false
  146.  
  147. GrabbedOne = false
  148.  
  149. Sitting = false
  150.  
  151. AGrab = -1
  152.  
  153. Wasd = 0
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165. function FindClass(zParent,zObject)
  166.  
  167. local ch = zParent:GetChildren()
  168.  
  169. local FoundClasses = 0
  170.  
  171. for i=1,#ch do
  172.  
  173. if (ch[i].className == zObject) then
  174.  
  175. FoundClasses = FoundClasses + 1
  176.  
  177. else
  178.  
  179. end
  180.  
  181. end
  182.  
  183.  
  184.  
  185. return FoundClasses
  186.  
  187.  
  188.  
  189. end
  190.  
  191.  
  192.  
  193. function FindFirstClass(zParent,zObject)
  194.  
  195. local ch = zParent:GetChildren()
  196.  
  197. local FoundClasses = false
  198.  
  199. local tehfirstobject = nil
  200.  
  201. for i=1,#ch do
  202.  
  203. if (ch[i].className == zObject) and (FoundClasses == false) then
  204.  
  205. FoundClasses = true
  206.  
  207. tehfirstobject = ch[i]
  208.  
  209. else
  210.  
  211. end
  212.  
  213. end
  214.  
  215.  
  216.  
  217. return tehfirstobject
  218.  
  219.  
  220.  
  221. end
  222.  
  223.  
  224.  
  225.  
  226.  
  227. function stick(hit2,hit)
  228.  
  229. -- joint myself to the thing i hit
  230.  
  231.  
  232.  
  233. local weld = Instance.new("Weld")
  234.  
  235.  
  236.  
  237. weld.Part0 = hit2
  238.  
  239. weld.Part1 = hit
  240.  
  241.  
  242.  
  243. -- correction term to account for average skew between physics update and heartbeat
  244.  
  245. local HitPos = hit2.Position --+ (-arrow.Velocity * (1/60)) --+ (arrow.CFrame.lookVector * .5)
  246.  
  247.  
  248.  
  249. local CJ = CFrame.new(HitPos)
  250.  
  251. local C0 = hit2.CFrame:inverse() *CJ
  252.  
  253. local C1 = hit.CFrame:inverse() * CJ
  254.  
  255.  
  256.  
  257. weld.C0 = C0
  258.  
  259. weld.C1 = C1
  260.  
  261.  
  262.  
  263. weld.Parent = hit2
  264.  
  265.  
  266.  
  267. end
  268.  
  269.  
  270.  
  271. function computeDirection(vec)
  272.  
  273. local lenSquared = vec.magnitude * vec.magnitude
  274.  
  275. local invSqrt = 1 / math.sqrt(lenSquared)
  276.  
  277. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  278.  
  279. end
  280.  
  281.  
  282.  
  283.  
  284.  
  285. function rclass(zParent,zClass)
  286.  
  287. local ch = zParent:GetChildren()
  288.  
  289. for i=1,#ch do
  290.  
  291. if (ch[i].className == zClass) then
  292.  
  293. ch[i]:Remove()
  294.  
  295. else
  296.  
  297. end
  298.  
  299. end
  300.  
  301.  
  302.  
  303. end
  304.  
  305.  
  306.  
  307.  
  308.  
  309. function fWeld(zName,zParent,zPart0,zPart1,zCoco,a,b,c,d,e,f)
  310.  
  311. local funcw = Instance.new("Weld")
  312.  
  313. funcw.Name = zName
  314.  
  315. funcw.Parent = zParent
  316.  
  317. funcw.Part0 = zPart0
  318.  
  319. funcw.Part1 = zPart1
  320.  
  321. if (zCoco == true) then
  322.  
  323. funcw.C0 = CFrame.new(a,b,c) *CFrame.fromEulerAnglesXYZ(d,e,f)
  324.  
  325. else
  326.  
  327. funcw.C1 = CFrame.new(a,b,c) *CFrame.fromEulerAnglesXYZ(d,e,f)
  328.  
  329. end
  330.  
  331. end
  332.  
  333.  
  334.  
  335.  
  336.  
  337. function r(zObject)
  338.  
  339. if zObject == nil then return else end
  340.  
  341. zObject:Remove()
  342.  
  343. end
  344.  
  345.  
  346.  
  347.  
  348.  
  349. --CleanUp
  350.  
  351. if Hea:findFirstChild("face") ~= nil then
  352.  
  353. facde = Hea.face:Clone()
  354.  
  355. else
  356.  
  357. end
  358.  
  359.  
  360.  
  361. r(Char:findFirstChild("Animate"))
  362.  
  363. r(Char:findFirstChild("Sound"))
  364.  
  365. r(Char:findFirstChild("Left Arm"))
  366.  
  367. r(Char:findFirstChild("Right Arm"))
  368.  
  369. r(Char:findFirstChild("Left Leg"))
  370.  
  371. r(Char:findFirstChild("Right Leg"))
  372.  
  373. r(Char:findFirstChild("Parts"))
  374.  
  375.  
  376.  
  377. Tors.Neck.C0 = CFrame.new(0,0,0) *CFrame.fromEulerAnglesXYZ(0,0,0)
  378.  
  379. Hea.Transparency= 0.95
  380.  
  381.  
  382.  
  383.  
  384.  
  385. rclass(Char,"Hat")
  386.  
  387. rclass(Tors,"Decal")
  388.  
  389. rclass(Char,"CharacterMesh")
  390.  
  391. rclass(Hea,"Sound")
  392.  
  393.  
  394.  
  395. Tors.Neck.C0 = CFrame.new(0,5,-2)
  396.  
  397.  
  398.  
  399.  
  400.  
  401. --MainCoreSuitParts
  402.  
  403. Parts = Instance.new("Model")
  404.  
  405. Parts.Name = "Parts"
  406.  
  407. Parts.Parent = Char
  408.  
  409.  
  410.  
  411. jParts = Instance.new("Model")
  412.  
  413. jParts.Name = "JointParts"
  414.  
  415. jParts.Parent = Parts
  416.  
  417.  
  418.  
  419. CFrameCore = Instance.new("Part")
  420.  
  421. CFrameCore.formFactor = "Symmetric"
  422.  
  423. CFrameCore.CanCollide = false
  424.  
  425. CFrameCore.Size = Tors.Size
  426.  
  427. CFrameCore.Parent = jParts
  428.  
  429. CFrameCore.Transparency = 1
  430.  
  431.  
  432.  
  433. fWeld("Weld",CFrameCore,Tors,CFrameCore,true,0,0,0,0,0,0)
  434.  
  435.  
  436.  
  437. Levitate = Instance.new("Part")
  438.  
  439. Levitate.formFactor = "Symmetric"
  440.  
  441. Levitate.Transparency = 1
  442.  
  443. Levitate.CanCollide = Levitating --this is why there is Levitate
  444.  
  445. Levitate.Size = Vector3.new(1,17,1)
  446.  
  447. Levitate.Parent = jParts
  448.  
  449.  
  450.  
  451. fWeld("Weld",Levitate,Tors,Levitate,true,0,-6,0,0,0,0)
  452.  
  453.  
  454.  
  455.  
  456.  
  457. Torso = Instance.new("Part")
  458.  
  459. Torso.formFactor = "Symmetric"
  460.  
  461. Torso.Size = Vector3.new(8,3,6)
  462.  
  463. Torso.TopSurface = 0
  464.  
  465. Torso.BottomSurface = 0
  466.  
  467. Torso.Parent = jParts
  468.  
  469.  
  470.  
  471. fWeld("Weld",Torso,CFrameCore,Torso,true,0,0,0,0,0,0)
  472.  
  473.  
  474.  
  475.  
  476.  
  477. Stomach = Instance.new("Part")
  478.  
  479. Stomach.formFactor = "Symmetric"
  480.  
  481. Stomach.Size = Vector3.new(6,2,4)
  482.  
  483. Stomach.TopSurface = 0
  484.  
  485. Stomach.BottomSurface = 0
  486.  
  487. Stomach.Parent = jParts
  488.  
  489.  
  490.  
  491. fWeld("Weld",Stomach,Torso,Stomach,true,0,-2.5,0,0,0,0)
  492.  
  493.  
  494.  
  495. Platform = Instance.new("Part")
  496.  
  497. Platform.formFactor = "Symmetric"
  498.  
  499. Platform.Size = Vector3.new(10,1,8)
  500.  
  501. Platform.TopSurface = 0
  502.  
  503. Platform.BottomSurface = 0
  504.  
  505. Platform.Parent = jParts
  506.  
  507.  
  508.  
  509. fWeld("Weld",Platform,Torso,Platform,true,0,2,0,0,0,0)
  510.  
  511.  
  512.  
  513.  
  514.  
  515. Waist = Instance.new("Part")
  516.  
  517. Waist.formFactor = "Symmetric"
  518.  
  519. Waist.Size = Vector3.new(6,1,4)
  520.  
  521. Waist.TopSurface = 0
  522.  
  523. Waist.BottomSurface = 0
  524.  
  525. Waist.Parent = jParts
  526.  
  527.  
  528.  
  529. fWeld("Weld",Waist,Stomach,Waist,true,0,-1.5,0,0,0,0)
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537. LThigh2 = Instance.new("Part")
  538.  
  539. LThigh2.formFactor = "Symmetric"
  540.  
  541. LThigh2.Size = Vector3.new(2,1,2)
  542.  
  543. LThigh2.BrickColor = BrickColor.new("Really black")
  544.  
  545. LThigh2.TopSurface = 0
  546.  
  547. LThigh2.BottomSurface = 0
  548.  
  549. LThigh2.Parent = jParts
  550.  
  551.  
  552.  
  553. local ltm2 = Instance.new("SpecialMesh")
  554.  
  555. ltm2.MeshType = "Sphere"
  556.  
  557. ltm2.Scale = Vector3.new(1.75,3.25,1.75)
  558.  
  559. ltm2.Parent = LThigh2
  560.  
  561.  
  562.  
  563.  
  564.  
  565. fWeld("Weld",LThigh2,Waist,LThigh2,true,-2,-1,0,0,0,0)
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573. RThigh2 = Instance.new("Part")
  574.  
  575. RThigh2.BrickColor = BrickColor.new("Really black")
  576.  
  577. RThigh2.formFactor = "Symmetric"
  578.  
  579. RThigh2.Size = Vector3.new(2,1,2)
  580.  
  581. RThigh2.TopSurface = 0
  582.  
  583. RThigh2.BottomSurface = 0
  584.  
  585. RThigh2.Parent = jParts
  586.  
  587.  
  588.  
  589. local rtm2 = Instance.new("SpecialMesh")
  590.  
  591. rtm2.MeshType = "Sphere"
  592.  
  593. rtm2.Scale = Vector3.new(1.75,3.25,1.75)
  594.  
  595. rtm2.Parent = RThigh2
  596.  
  597.  
  598.  
  599.  
  600.  
  601. fWeld("Weld",RThigh2,Waist,RThigh2,true,2,-1,0,0,0,0)
  602.  
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609. RThigh = Instance.new("Part")
  610.  
  611. --RThigh.BrickColor = BrickColor.new("Really black")
  612.  
  613. RThigh.formFactor = "Symmetric"
  614.  
  615. RThigh.Size = Vector3.new(2,5,2)
  616.  
  617. RThigh.TopSurface = 0
  618.  
  619. RThigh.BottomSurface = 0
  620.  
  621. RThigh.Parent = jParts
  622.  
  623.  
  624.  
  625. local rtm = Instance.new("SpecialMesh")
  626.  
  627. rtm.MeshType = "Head"
  628.  
  629. rtm.Scale = Vector3.new(1.5,1.25,1.5)
  630.  
  631. rtm.Parent = RThigh
  632.  
  633.  
  634.  
  635. fWeld("Weld",RThigh,RThigh2,RThigh,true,0,-3,0,0,0,0)
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643. LThigh = Instance.new("Part")
  644.  
  645. --LThigh.BrickColor = BrickColor.new("Really black")
  646.  
  647. LThigh.formFactor = "Symmetric"
  648.  
  649. LThigh.Size = Vector3.new(2,5,2)
  650.  
  651. LThigh.TopSurface = 0
  652.  
  653. LThigh.BottomSurface = 0
  654.  
  655. LThigh.Parent = jParts
  656.  
  657.  
  658.  
  659. local ltm = Instance.new("SpecialMesh")
  660.  
  661. ltm.MeshType = "Head"
  662.  
  663. ltm.Scale = Vector3.new(1.5,1.25,1.5)
  664.  
  665. ltm.Parent = LThigh
  666.  
  667.  
  668.  
  669. fWeld("Weld",LThigh,LThigh2,LThigh,true,0,-3,0,0,0,0)
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677. Lk = Instance.new("Part")
  678.  
  679. Lk.BrickColor = BrickColor.new("Really black")
  680.  
  681. Lk.formFactor = "Symmetric"
  682.  
  683. Lk.Size = Vector3.new(2,1,2)
  684.  
  685. Lk.TopSurface = 0
  686.  
  687. Lk.BottomSurface = 0
  688.  
  689. Lk.Parent = jParts
  690.  
  691.  
  692.  
  693. local Lkm = Instance.new("SpecialMesh")
  694.  
  695. Lkm.MeshType = "Sphere"
  696.  
  697. Lkm.Scale = Vector3.new(1.25,2.75,1.25)
  698.  
  699. Lkm.Parent = Lk
  700.  
  701.  
  702.  
  703.  
  704.  
  705. fWeld("Weld",Lk,LThigh,Lk,true,0,-3,0,0,0,0)
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715. Rk = Instance.new("Part")
  716.  
  717. Rk.BrickColor = BrickColor.new("Really black")
  718.  
  719. Rk.formFactor = "Symmetric"
  720.  
  721. Rk.Size = Vector3.new(2,1,2)
  722.  
  723. Rk.TopSurface = 0
  724.  
  725. Rk.BottomSurface = 0
  726.  
  727. Rk.Parent = jParts
  728.  
  729.  
  730.  
  731. local Rkm = Instance.new("SpecialMesh")
  732.  
  733. Rkm.MeshType = "Sphere"
  734.  
  735. Rkm.Scale = Vector3.new(1.25,2.75,1.25)
  736.  
  737. Rkm.Parent = Rk
  738.  
  739.  
  740.  
  741.  
  742.  
  743. fWeld("Weld",Rk,RThigh,Rk,true,0,-3,0,0,0,0)
  744.  
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751. LLeg = Instance.new("Part")
  752.  
  753. --LThigh.BrickColor = BrickColor.new("Really black")
  754.  
  755. LLeg.formFactor = "Symmetric"
  756.  
  757. LLeg.Size = Vector3.new(2,5,2)
  758.  
  759. LLeg.TopSurface = 0
  760.  
  761. LLeg.BottomSurface = 0
  762.  
  763. LLeg.Parent = jParts
  764.  
  765.  
  766.  
  767. local Llm = Instance.new("SpecialMesh")
  768.  
  769. Llm.MeshType = "Head"
  770.  
  771. --Llm.Scale = Vector3.new(1.5,1.25,1.5) -- :O
  772.  
  773. Llm.Parent = LLeg
  774.  
  775.  
  776.  
  777. fWeld("Weld",LLeg,Lk,LLeg,true,0,-3,0,0,0,0)
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787. RLeg = Instance.new("Part")
  788.  
  789. --LThigh.BrickColor = BrickColor.new("Really black")
  790.  
  791. RLeg.formFactor = "Symmetric"
  792.  
  793. RLeg.Size = Vector3.new(2,5,2)
  794.  
  795. RLeg.TopSurface = 0
  796.  
  797. RLeg.BottomSurface = 0
  798.  
  799. RLeg.Parent = jParts
  800.  
  801.  
  802.  
  803. local Rlm = Instance.new("SpecialMesh")
  804.  
  805. Rlm.MeshType = "Head"
  806.  
  807. --Rlm.Scale = Vector3.new(1.5,1.25,1.5) -- :O
  808.  
  809. Rlm.Parent = RLeg
  810.  
  811.  
  812.  
  813. fWeld("Weld",RLeg,Rk,RLeg,true,0,-3,0,0,0,0)
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823. LHeel = Instance.new("Part")
  824.  
  825. LHeel.BrickColor = BrickColor.new("Really black")
  826.  
  827. LHeel.formFactor = "Symmetric"
  828.  
  829. LHeel.Size = Vector3.new(2,1,2)
  830.  
  831. LHeel.TopSurface = 0
  832.  
  833. LHeel.BottomSurface = 0
  834.  
  835. LHeel.Parent = jParts
  836.  
  837.  
  838.  
  839. fWeld("Weld",LHeel,LLeg,LHeel,true,0,-3,0,0,0,0)
  840.  
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847.  
  848.  
  849. RHeel = Instance.new("Part")
  850.  
  851. RHeel.BrickColor = BrickColor.new("Really black")
  852.  
  853. RHeel.formFactor = "Symmetric"
  854.  
  855. RHeel.Size = Vector3.new(2,1,2)
  856.  
  857. RHeel.TopSurface = 0
  858.  
  859. RHeel.BottomSurface = 0
  860.  
  861. RHeel.Parent = jParts
  862.  
  863.  
  864.  
  865. fWeld("Weld",RHeel,RLeg,RHeel,true,0,-3,0,0,0,0)
  866.  
  867.  
  868.  
  869.  
  870.  
  871.  
  872.  
  873. LFoot = Instance.new("WedgePart")
  874.  
  875. LFoot.BrickColor = BrickColor.new("Really black")
  876.  
  877. LFoot.formFactor = "Symmetric"
  878.  
  879. LFoot.Size = Vector3.new(2,1,2)
  880.  
  881. LFoot.TopSurface = 0
  882.  
  883. LFoot.BottomSurface = 0
  884.  
  885. LFoot.Parent = jParts
  886.  
  887.  
  888.  
  889. fWeld("Weld",LFoot,LHeel,LFoot,true,0,0,-2,0,0,0)
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898.  
  899. RFoot = Instance.new("WedgePart")
  900.  
  901. RFoot.BrickColor = BrickColor.new("Really black")
  902.  
  903. RFoot.formFactor = "Symmetric"
  904.  
  905. RFoot.Size = Vector3.new(2,1,2)
  906.  
  907. RFoot.TopSurface = 0
  908.  
  909. RFoot.BottomSurface = 0
  910.  
  911. RFoot.Parent = jParts
  912.  
  913.  
  914.  
  915. fWeld("Weld",RFoot,RHeel,RFoot,true,0,0,-2,0,0,0)
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923. Back = Instance.new("Part")
  924.  
  925. --RFoot.BrickColor = BrickColor.new("Really black")
  926.  
  927. Back.formFactor = "Symmetric"
  928.  
  929. Back.Size = Vector3.new(10,4,1)
  930.  
  931. Back.TopSurface = 0
  932.  
  933. Back.BottomSurface = 0
  934.  
  935. Back.Parent = jParts
  936.  
  937.  
  938.  
  939. fWeld("Weld",Back,Platform,Back,true,0,2.5,3.5,0,0,0)
  940.  
  941.  
  942.  
  943.  
  944.  
  945. LCover = Instance.new("Part")
  946.  
  947. LCover.formFactor = "Symmetric"
  948.  
  949. LCover.Size = Vector3.new(3,4,7)
  950.  
  951. LCover.TopSurface = 0
  952.  
  953. LCover.BottomSurface = 0
  954.  
  955. LCover.Parent = jParts
  956.  
  957.  
  958.  
  959. fWeld("Weld",LCover,Platform,LCover,true,-3.5,2.5,-0.5,0,0,0)
  960.  
  961.  
  962.  
  963.  
  964.  
  965.  
  966.  
  967. RCover = Instance.new("Part")
  968.  
  969. RCover.formFactor = "Symmetric"
  970.  
  971. RCover.Size = Vector3.new(3,4,7)
  972.  
  973. RCover.TopSurface = 0
  974.  
  975. RCover.BottomSurface = 0
  976.  
  977. RCover.Parent = jParts
  978.  
  979.  
  980.  
  981. fWeld("Weld",RCover,Platform,RCover,true,3.5,2.5,-0.5,0,0,0)
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989. Glass = Instance.new("Part")
  990.  
  991. Glass.Transparency = 0.5
  992.  
  993. Glass.BrickColor = BrickColor.new(MechColor)
  994.  
  995. Glass.formFactor = "Symmetric"
  996.  
  997. Glass.Size = Vector3.new(4,4,1)
  998.  
  999. Glass.TopSurface = 0
  1000.  
  1001. Glass.BottomSurface = 0
  1002.  
  1003. Glass.Parent = jParts
  1004.  
  1005.  
  1006.  
  1007. fWeld("Weld",Glass,Platform,Glass,true,0,2.5,-3.5,0,0,0)
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013. Roof = Instance.new("WedgePart")
  1014.  
  1015. Roof.formFactor = "Symmetric"
  1016.  
  1017. Roof.Size = Vector3.new(10,4,8)
  1018.  
  1019. Roof.TopSurface = 0
  1020.  
  1021. Roof.BottomSurface = 0
  1022.  
  1023. Roof.Parent = jParts
  1024.  
  1025.  
  1026.  
  1027. fWeld("Weld",Roof,Platform,Roof,true,0,6.5,0,0,0,0)
  1028.  
  1029.  
  1030.  
  1031. lkj = Instance.new("Decal")
  1032.  
  1033. lkj.Name = "WedgePart"
  1034.  
  1035. lkj.Texture = Credec
  1036.  
  1037. lkj.Parent = Roof
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043. LRoof = Instance.new("WedgePart")
  1044.  
  1045. LRoof.formFactor = "Symmetric"
  1046.  
  1047. LRoof.Size = Vector3.new(2,4,2)
  1048.  
  1049. LRoof.TopSurface = 0
  1050.  
  1051. LRoof.BottomSurface = 0
  1052.  
  1053. LRoof.Parent = jParts
  1054.  
  1055.  
  1056.  
  1057. fWeld("Weld",LRoof,Roof,LRoof,true,-2.5,0,5,math.rad(180),0,0)
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063. RRoof = Instance.new("WedgePart")
  1064.  
  1065. RRoof.formFactor = "Symmetric"
  1066.  
  1067. RRoof.Size = Vector3.new(2,4,2)
  1068.  
  1069. RRoof.TopSurface = 0
  1070.  
  1071. RRoof.BottomSurface = 0
  1072.  
  1073. RRoof.Parent = jParts
  1074.  
  1075.  
  1076.  
  1077. fWeld("Weld",RRoof,Roof,RRoof,true,2.5,0,5,math.rad(180),0,0)
  1078.  
  1079.  
  1080.  
  1081.  
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091. LShoulder2 = Instance.new("Seat")
  1092.  
  1093. LShoulder2.BrickColor = BrickColor.new("Really black")
  1094.  
  1095. --LShoulder2.formFactor = "Symmetric"
  1096.  
  1097. LShoulder2.Size = Vector3.new(3,3,3)
  1098.  
  1099. LShoulder2.TopSurface = 0
  1100.  
  1101. LShoulder2.BottomSurface = 0
  1102.  
  1103. LShoulder2.Parent = jParts
  1104.  
  1105.  
  1106.  
  1107. local Ls2 = Instance.new("SpecialMesh")
  1108.  
  1109. Ls2.MeshType = "Sphere"
  1110.  
  1111. Ls2.Scale = Vector3.new(2,1.75,2)
  1112.  
  1113. Ls2.Parent = LShoulder2
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119. fWeld("Weld",LShoulder2,LCover,LShoulder2,true,-2.5,1,1,0,0,0)
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135. RShoulder2 = Instance.new("Seat")
  1136.  
  1137. RShoulder2.BrickColor = BrickColor.new("Really black")
  1138.  
  1139. --RShoulder2.formFactor = "Symmetric"
  1140.  
  1141. RShoulder2.Size = Vector3.new(3,3,3)
  1142.  
  1143. RShoulder2.TopSurface = 0
  1144.  
  1145. RShoulder2.BottomSurface = 0
  1146.  
  1147. RShoulder2.Parent = jParts
  1148.  
  1149.  
  1150.  
  1151. local Rs2 = Instance.new("SpecialMesh")
  1152.  
  1153. Rs2.MeshType = "Sphere"
  1154.  
  1155. Rs2.Scale = Vector3.new(2,1.75,2)
  1156.  
  1157. Rs2.Parent = RShoulder2
  1158.  
  1159.  
  1160.  
  1161.  
  1162.  
  1163. fWeld("Weld",RShoulder2,RCover,RShoulder2,true,2.5,1,1,0,0,0)
  1164.  
  1165.  
  1166.  
  1167.  
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179. LShoulder = Instance.new("Part")
  1180.  
  1181. --LShoulder.BrickColor = BrickColor.new("Really black")
  1182.  
  1183. LShoulder.formFactor = "Symmetric"
  1184.  
  1185. LShoulder.Size = Vector3.new(2,5,2)
  1186.  
  1187. LShoulder.TopSurface = 0
  1188.  
  1189. LShoulder.BottomSurface = 0
  1190.  
  1191. LShoulder.Parent = jParts
  1192.  
  1193.  
  1194.  
  1195. local Ls1 = Instance.new("SpecialMesh")
  1196.  
  1197. Ls1.MeshType = "Head"
  1198.  
  1199. Ls1.Scale = Vector3.new(1.5,1.25,1.5)
  1200.  
  1201. Ls1.Parent = LShoulder
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207. fWeld("Weld",LShoulder,LShoulder2,LShoulder,true,-1.25,-4,0,0,0,0)
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221. RShoulder = Instance.new("Part")
  1222.  
  1223. --RShoulder.BrickColor = BrickColor.new("Really black")
  1224.  
  1225. RShoulder.formFactor = "Symmetric"
  1226.  
  1227. RShoulder.Size = Vector3.new(2,5,2)
  1228.  
  1229. RShoulder.TopSurface = 0
  1230.  
  1231. RShoulder.BottomSurface = 0
  1232.  
  1233. RShoulder.Parent = jParts
  1234.  
  1235.  
  1236.  
  1237. local Rs1 = Instance.new("SpecialMesh")
  1238.  
  1239. Rs1.MeshType = "Head"
  1240.  
  1241. Rs1.Scale = Vector3.new(1.5,1.25,1.5)
  1242.  
  1243. Rs1.Parent = RShoulder
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249. fWeld("Weld",RShoulder,RShoulder2,RShoulder,true,1.25,-4,0,0,0,0)
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.  
  1263.  
  1264.  
  1265.  
  1266.  
  1267. LArm2 = Instance.new("Part")
  1268.  
  1269. LArm2.BrickColor = BrickColor.new("Really black")
  1270.  
  1271. LArm2.formFactor = "Symmetric"
  1272.  
  1273. LArm2.Size = Vector3.new(2,1,2)
  1274.  
  1275. LArm2.TopSurface = 0
  1276.  
  1277. LArm2.BottomSurface = 0
  1278.  
  1279. LArm2.Parent = jParts
  1280.  
  1281.  
  1282.  
  1283. local La2 = Instance.new("SpecialMesh")
  1284.  
  1285. La2.MeshType = "Sphere"
  1286.  
  1287. La2.Scale = Vector3.new(1.75, 3.25, 1.75)
  1288.  
  1289. La2.Parent = LArm2
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295. fWeld("Weld",LArm2,LShoulder,LArm2,true,0,-3,0,0,0,0)
  1296.  
  1297.  
  1298.  
  1299.  
  1300.  
  1301.  
  1302.  
  1303.  
  1304.  
  1305. RArm2 = Instance.new("Part")
  1306.  
  1307. RArm2.BrickColor = BrickColor.new("Really black")
  1308.  
  1309. RArm2.formFactor = "Symmetric"
  1310.  
  1311. RArm2.Size = Vector3.new(2,1,2)
  1312.  
  1313. RArm2.TopSurface = 0
  1314.  
  1315. RArm2.BottomSurface = 0
  1316.  
  1317. RArm2.Parent = jParts
  1318.  
  1319.  
  1320.  
  1321. local Ra2 = Instance.new("SpecialMesh")
  1322.  
  1323. Ra2.MeshType = "Sphere"
  1324.  
  1325. Ra2.Scale = Vector3.new(1.75, 3.25, 1.75)
  1326.  
  1327. Ra2.Parent = RArm2
  1328.  
  1329.  
  1330.  
  1331.  
  1332.  
  1333. fWeld("Weld",RArm2,RShoulder,RArm2,true,0,-3,0,0,0,0)
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343. LHand = Instance.new("Part")
  1344.  
  1345. LHand.formFactor = "Symmetric"
  1346.  
  1347. LHand.Size = Vector3.new(2,5,2)
  1348.  
  1349. LHand.TopSurface = 0
  1350.  
  1351. LHand.BottomSurface = 0
  1352.  
  1353. LHand.Parent = jParts
  1354.  
  1355.  
  1356.  
  1357. local Lhm = Instance.new("SpecialMesh")
  1358.  
  1359. Lhm.MeshType = "Head"
  1360.  
  1361. Lhm.Scale = Vector3.new(2, 1.35, 2)
  1362.  
  1363. Lhm.Parent = LHand
  1364.  
  1365.  
  1366.  
  1367.  
  1368.  
  1369. fWeld("Weld",LHand,LArm2,LHand,true,0,-3,0,0,0,0)
  1370.  
  1371.  
  1372.  
  1373.  
  1374.  
  1375.  
  1376.  
  1377.  
  1378.  
  1379.  
  1380.  
  1381. RHand = Instance.new("Part")
  1382.  
  1383. RHand.formFactor = "Symmetric"
  1384.  
  1385. RHand.Size = Vector3.new(2,5,2)
  1386.  
  1387. RHand.TopSurface = 0
  1388.  
  1389. RHand.BottomSurface = 0
  1390.  
  1391. RHand.Parent = jParts
  1392.  
  1393.  
  1394.  
  1395. local Rhm = Instance.new("SpecialMesh")
  1396.  
  1397. Rhm.MeshType = "Head"
  1398.  
  1399. Rhm.Scale = Vector3.new(1.5,1.25,1.5)
  1400.  
  1401. Rhm.Parent = RHand
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407. fWeld("Weld",RHand,RArm2,RHand,true,0,-3,0,0,0,0)
  1408.  
  1409.  
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415.  
  1416.  
  1417.  
  1418.  
  1419. LArm = Instance.new("Part")
  1420.  
  1421. LArm.BrickColor = BrickColor.new("Bright yellow")
  1422.  
  1423. LArm.formFactor = "Symmetric"
  1424.  
  1425. LArm.Size = Vector3.new(2,1,2)
  1426.  
  1427. LArm.TopSurface = 0
  1428.  
  1429. LArm.BottomSurface = 0
  1430.  
  1431. LArm.Parent = jParts
  1432.  
  1433.  
  1434.  
  1435. local Lam = Instance.new("SpecialMesh")
  1436.  
  1437. Lam.MeshType = "Sphere"
  1438.  
  1439. Lam.Scale = Vector3.new(1.5, 0.5, 1.5)
  1440.  
  1441. Lam.Parent = LArm
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447. fWeld("Weld",LArm,LHand,LArm,true,0,-3.3,0,0,0,0)
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.  
  1460.  
  1461.  
  1462.  
  1463. RArm = Instance.new("Part")
  1464.  
  1465. RArm.BrickColor = BrickColor.new("Really black")
  1466.  
  1467. RArm.formFactor = "Symmetric"
  1468.  
  1469. RArm.Size = Vector3.new(2,1,2)
  1470.  
  1471. RArm.TopSurface = 0
  1472.  
  1473. RArm.BottomSurface = 0
  1474.  
  1475. RArm.Parent = jParts
  1476.  
  1477.  
  1478.  
  1479. local Ram = Instance.new("SpecialMesh")
  1480.  
  1481. Ram.MeshType = "Sphere"
  1482.  
  1483. Ram.Scale = Vector3.new(1.75, 3.25, 1.75)
  1484.  
  1485. Ram.Parent = RArm
  1486.  
  1487.  
  1488.  
  1489.  
  1490.  
  1491. fWeld("Weld",RArm,RHand,RArm,true,0,-3,0,0,0,0)
  1492.  
  1493.  
  1494.  
  1495.  
  1496.  
  1497. RArmT = Instance.new("Part")
  1498.  
  1499. RArmT.Transparency = 1
  1500.  
  1501. RArmT.formFactor = "Symmetric"
  1502.  
  1503. RArmT.Size = Vector3.new(3,2,5)
  1504.  
  1505. RArmT.TopSurface = 0
  1506.  
  1507. RArmT.BottomSurface = 0
  1508.  
  1509. RArmT.Parent = jParts
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515. fWeld("Weld",RArmT,RArm,RArmT,true,0,-0.5,0,0,0,0)
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523. MTorso = Instance.new("Part")
  1524.  
  1525. --MTorso.BrickColor = BrickColor.new("Medium green")
  1526.  
  1527. MTorso.formFactor = "Symmetric"
  1528.  
  1529. MTorso.Size = Vector3.new(2,2,1)
  1530.  
  1531. MTorso.TopSurface = 0
  1532.  
  1533. MTorso.BottomSurface = 0
  1534.  
  1535. MTorso.Parent = jParts
  1536.  
  1537.  
  1538.  
  1539.  
  1540.  
  1541. fWeld("Weld",MTorso,Platform,MTorso,true,0,1.5,-1,0,0,0)
  1542.  
  1543.  
  1544.  
  1545.  
  1546.  
  1547.  
  1548.  
  1549. Mhea = Instance.new("Part")
  1550.  
  1551. Mhea.BrickColor = BrickColor.new("Medium green")
  1552.  
  1553. Mhea.formFactor = "Symmetric"
  1554.  
  1555. Mhea.Size = Vector3.new(2,1,1)
  1556.  
  1557. Mhea.TopSurface = 0
  1558.  
  1559. Mhea.BottomSurface = 0
  1560.  
  1561. Mhea.Parent = jParts
  1562.  
  1563.  
  1564.  
  1565. local Mheam = Instance.new("SpecialMesh")
  1566.  
  1567. Mheam.MeshType = "Head"
  1568.  
  1569. Mheam.Scale = Vector3.new(1.25,1.25,1.25)
  1570.  
  1571. Mheam.Parent = Mhea
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577. fWeld("Weld",Mhea,MTorso,Mhea,true,0,1.5,0,0,0,0)
  1578.  
  1579.  
  1580.  
  1581. if facde ~= nil then facde.Parent = Mhea else end
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589. MLa = Instance.new("Part")
  1590.  
  1591. --MTorso.BrickColor = BrickColor.new("Medium green")
  1592.  
  1593. MLa.formFactor = "Symmetric"
  1594.  
  1595. MLa.Size = Vector3.new(1,1,2)
  1596.  
  1597. MLa.TopSurface = 0
  1598.  
  1599. MLa.BottomSurface = 0
  1600.  
  1601. MLa.Parent = jParts
  1602.  
  1603.  
  1604.  
  1605.  
  1606.  
  1607. fWeld("Weld",MLa,MTorso,MLa,true,-1.5,0.5,-0.75,0,0,0)
  1608.  
  1609.  
  1610.  
  1611. Mra = Instance.new("Part")
  1612.  
  1613. --MTorso.BrickColor = BrickColor.new("Medium green")
  1614.  
  1615. Mra.formFactor = "Symmetric"
  1616.  
  1617. Mra.Size = Vector3.new(1,1,2)
  1618.  
  1619. Mra.TopSurface = 0
  1620.  
  1621. Mra.BottomSurface = 0
  1622.  
  1623. Mra.Parent = jParts
  1624.  
  1625.  
  1626.  
  1627.  
  1628.  
  1629. fWeld("Weld",Mra,MTorso,Mra,true,1.5,0.5,-0.75,0,0,0)
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635. LJoyStickz = Instance.new("Part")
  1636.  
  1637. LJoyStickz.BrickColor = BrickColor.new("Bright yellow")
  1638.  
  1639. LJoyStickz.formFactor = "Symmetric"
  1640.  
  1641. LJoyStickz.Size = Vector3.new(2,1,1)
  1642.  
  1643. LJoyStickz.TopSurface = 0
  1644.  
  1645. LJoyStickz.BottomSurface = 0
  1646.  
  1647. LJoyStickz.Parent = jParts
  1648.  
  1649.  
  1650.  
  1651. local LJsm = Instance.new("SpecialMesh")
  1652.  
  1653. LJsm.MeshType = "Sphere"
  1654.  
  1655. LJsm.Scale = Vector3.new(0.75,0.6,0.6)
  1656.  
  1657. LJsm.Parent = LJoyStickz
  1658.  
  1659.  
  1660.  
  1661. fWeld("Weld",LJoyStickz,MTorso,LJoyStickz,true,-1.5,0.5,-1.7,0,0,0)
  1662.  
  1663.  
  1664.  
  1665.  
  1666.  
  1667.  
  1668.  
  1669. RJoyStickz = Instance.new("Part")
  1670.  
  1671. RJoyStickz.BrickColor = BrickColor.new("Bright yellow")
  1672.  
  1673. RJoyStickz.formFactor = "Symmetric"
  1674.  
  1675. RJoyStickz.Size = Vector3.new(2,1,1)
  1676.  
  1677. RJoyStickz.TopSurface = 0
  1678.  
  1679. RJoyStickz.BottomSurface = 0
  1680.  
  1681. RJoyStickz.Parent = jParts
  1682.  
  1683.  
  1684.  
  1685. local RJsm = Instance.new("SpecialMesh")
  1686.  
  1687. RJsm.MeshType = "Sphere"
  1688.  
  1689. RJsm.Scale = Vector3.new(0.75,0.6,0.6)
  1690.  
  1691. RJsm.Parent = RJoyStickz
  1692.  
  1693.  
  1694.  
  1695. fWeld("Weld",RJoyStickz,MTorso,RJoyStickz,true,1.5,0.5,-1.7,0,0,0)
  1696.  
  1697.  
  1698.  
  1699.  
  1700.  
  1701. LURoof = Instance.new("WedgePart")
  1702.  
  1703. LURoof.formFactor = "Symmetric"
  1704.  
  1705. LURoof.Size = Vector3.new(2,2,2)
  1706.  
  1707. LURoof.TopSurface = 0
  1708.  
  1709. LURoof.BottomSurface = 0
  1710.  
  1711. LURoof.Parent = jParts
  1712.  
  1713.  
  1714.  
  1715. fWeld("Weld",LURoof,Roof,LURoof,true,-2.5,3,5,0,math.rad(180),0)
  1716.  
  1717.  
  1718.  
  1719. RURoof = Instance.new("WedgePart")
  1720.  
  1721. RURoof.formFactor = "Symmetric"
  1722.  
  1723. RURoof.Size = Vector3.new(2,2,2)
  1724.  
  1725. RURoof.TopSurface = 0
  1726.  
  1727. RURoof.BottomSurface = 0
  1728.  
  1729. RURoof.Parent = jParts
  1730.  
  1731.  
  1732.  
  1733. fWeld("Weld",RURoof,Roof,RURoof,true,2.5,3,5,0,math.rad(180),0)
  1734.  
  1735.  
  1736.  
  1737. local luh = Instance.new("Hole")
  1738.  
  1739. luh.FaceId = "Back"
  1740.  
  1741. luh.Parent = LURoof
  1742.  
  1743.  
  1744.  
  1745. local ruh = Instance.new("Hole")
  1746.  
  1747. ruh.FaceId = "Back"
  1748.  
  1749. ruh.Parent = RURoof
  1750.  
  1751.  
  1752.  
  1753.  
  1754.  
  1755. RHand11 = Instance.new("Part")
  1756.  
  1757. RHand11.BrickColor = BrickColor.new("Bright yellow")
  1758.  
  1759. RHand11.formFactor = "Symmetric"
  1760.  
  1761. RHand11.Size = Vector3.new(1,2,1)
  1762.  
  1763. RHand11.TopSurface = 0
  1764.  
  1765. RHand11.BottomSurface = 0
  1766.  
  1767. RHand11.Parent = jParts
  1768.  
  1769.  
  1770.  
  1771.  
  1772.  
  1773. local RHand11m = Instance.new("SpecialMesh")
  1774.  
  1775. RHand11m.MeshType = "Head"
  1776.  
  1777. RHand11m.Scale = Vector3.new(0.75,0.75,0.75)
  1778.  
  1779. RHand11m.Parent = RHand11
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785. fWeld("Weld",RHand11,RArm,RHand11,true,0,-1,1.5,math.rad(-65),0,math.rad(180))
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793. RHand21 = Instance.new("Part")
  1794.  
  1795. RHand21.BrickColor = BrickColor.new("Bright yellow")
  1796.  
  1797. RHand21.formFactor = "Symmetric"
  1798.  
  1799. RHand21.Size = Vector3.new(1,2,1)
  1800.  
  1801. RHand21.TopSurface = 0
  1802.  
  1803. RHand21.BottomSurface = 0
  1804.  
  1805. RHand21.Parent = jParts
  1806.  
  1807.  
  1808.  
  1809.  
  1810.  
  1811. local RHand21m = Instance.new("SpecialMesh")
  1812.  
  1813. RHand21m.MeshType = "Head"
  1814.  
  1815. RHand21m.Scale = Vector3.new(0.75,0.75,0.75)
  1816.  
  1817. RHand21m.Parent = RHand21
  1818.  
  1819.  
  1820.  
  1821.  
  1822.  
  1823. fWeld("Weld",RHand21,RArm,RHand21,true,-1,-1,-1,math.rad(90),0,math.rad(180))
  1824.  
  1825.  
  1826.  
  1827.  
  1828.  
  1829.  
  1830.  
  1831. RHand31 = Instance.new("Part")
  1832.  
  1833. RHand31.BrickColor = BrickColor.new("Bright yellow")
  1834.  
  1835. RHand31.formFactor = "Symmetric"
  1836.  
  1837. RHand31.Size = Vector3.new(1,2,1)
  1838.  
  1839. RHand31.TopSurface = 0
  1840.  
  1841. RHand31.BottomSurface = 0
  1842.  
  1843. RHand31.Parent = jParts
  1844.  
  1845.  
  1846.  
  1847.  
  1848.  
  1849. local RHand31m = Instance.new("SpecialMesh")
  1850.  
  1851. RHand31m.MeshType = "Head"
  1852.  
  1853. RHand31m.Scale = Vector3.new(0.75,0.75,0.75)
  1854.  
  1855. RHand31m.Parent = RHand31
  1856.  
  1857.  
  1858.  
  1859.  
  1860.  
  1861. fWeld("Weld",RHand31,RArm,RHand31,true,1,-1,-1,math.rad(90),0,math.rad(180))
  1862.  
  1863.  
  1864.  
  1865.  
  1866.  
  1867.  
  1868.  
  1869.  
  1870.  
  1871.  
  1872.  
  1873.  
  1874.  
  1875.  
  1876.  
  1877.  
  1878.  
  1879.  
  1880.  
  1881.  
  1882.  
  1883.  
  1884.  
  1885.  
  1886.  
  1887.  
  1888.  
  1889.  
  1890.  
  1891.  
  1892.  
  1893.  
  1894.  
  1895. RHand12 = Instance.new("Part")
  1896.  
  1897. RHand12.BrickColor = BrickColor.new("Bright yellow")
  1898.  
  1899. RHand12.formFactor = "Symmetric"
  1900.  
  1901. RHand12.Size = Vector3.new(1,2,1)
  1902.  
  1903. RHand12.TopSurface = 0
  1904.  
  1905. RHand12.BottomSurface = 0
  1906.  
  1907. RHand12.Parent = jParts
  1908.  
  1909.  
  1910.  
  1911.  
  1912.  
  1913. local RHand12m = Instance.new("SpecialMesh")
  1914.  
  1915. RHand12m.MeshType = "Head"
  1916.  
  1917. RHand12m.Scale = Vector3.new(0.75,0.75,0.75)
  1918.  
  1919. RHand12m.Parent = RHand12
  1920.  
  1921.  
  1922.  
  1923.  
  1924.  
  1925. fWeld("Weld",RHand12,RHand11,RHand12,true,0,1,-0.2,math.rad(-20),0,0)
  1926.  
  1927.  
  1928.  
  1929.  
  1930.  
  1931.  
  1932.  
  1933.  
  1934.  
  1935. RHand22 = Instance.new("Part")
  1936.  
  1937. RHand22.BrickColor = BrickColor.new("Bright yellow")
  1938.  
  1939. RHand22.formFactor = "Symmetric"
  1940.  
  1941. RHand22.Size = Vector3.new(1,2,1)
  1942.  
  1943. RHand22.TopSurface = 0
  1944.  
  1945. RHand22.BottomSurface = 0
  1946.  
  1947. RHand22.Parent = jParts
  1948.  
  1949.  
  1950.  
  1951.  
  1952.  
  1953. local RHand22m = Instance.new("SpecialMesh")
  1954.  
  1955. RHand22m.MeshType = "Head"
  1956.  
  1957. RHand22m.Scale = Vector3.new(0.75,0.75,0.75)
  1958.  
  1959. RHand22m.Parent = RHand22
  1960.  
  1961.  
  1962.  
  1963.  
  1964.  
  1965. fWeld("Weld",RHand22,RHand21,RHand22,true,0,1,0,math.rad(20),0,0)
  1966.  
  1967.  
  1968.  
  1969.  
  1970.  
  1971.  
  1972.  
  1973. RHand32 = Instance.new("Part")
  1974.  
  1975. RHand32.BrickColor = BrickColor.new("Bright yellow")
  1976.  
  1977. RHand32.formFactor = "Symmetric"
  1978.  
  1979. RHand32.Size = Vector3.new(1,2,1)
  1980.  
  1981. RHand32.TopSurface = 0
  1982.  
  1983. RHand32.BottomSurface = 0
  1984.  
  1985. RHand32.Parent = jParts
  1986.  
  1987.  
  1988.  
  1989.  
  1990.  
  1991. local RHand32m = Instance.new("SpecialMesh")
  1992.  
  1993. RHand32m.MeshType = "Head"
  1994.  
  1995. RHand32m.Scale = Vector3.new(0.75,0.75,0.75)
  1996.  
  1997. RHand32m.Parent = RHand32
  1998.  
  1999.  
  2000.  
  2001.  
  2002.  
  2003. fWeld("Weld",RHand32,RHand31,RHand32,true,0,1,0,math.rad(20),0,0)
  2004.  
  2005.  
  2006.  
  2007.  
  2008.  
  2009.  
  2010.  
  2011.  
  2012.  
  2013.  
  2014.  
  2015.  
  2016.  
  2017. --Welds
  2018.  
  2019. Core = CFrameCore.Weld
  2020.  
  2021. Lev = Levitate.Weld
  2022.  
  2023. Wai = Waist.Weld
  2024.  
  2025. RT = RThigh.Weld
  2026.  
  2027. LT = LThigh.Weld
  2028.  
  2029. RL = RLeg.Weld
  2030.  
  2031. LL = LLeg.Weld
  2032.  
  2033. LH = LHeel.Weld
  2034.  
  2035. RH = RHeel.Weld -- T_T 2 much welds
  2036.  
  2037. LS = LShoulder.Weld
  2038.  
  2039. RS = RShoulder.Weld
  2040.  
  2041. LHa = LHand.Weld
  2042.  
  2043. RHa = RHand.Weld
  2044.  
  2045. RHand1 = RHand11.Weld
  2046.  
  2047. RHand2 = RHand21.Weld
  2048.  
  2049. RHand3 = RHand31.Weld
  2050.  
  2051.  
  2052.  
  2053.  
  2054.  
  2055. --Fix
  2056.  
  2057. for i=1,1 do
  2058.  
  2059. --[[
  2060.  
  2061. local aqpwozmclbiehtekd = Hea.Position
  2062.  
  2063. Tors.CFrame = CFrame.new(aqpwozmclbiehtekd) + Vector3.new(0,25,0)
  2064.  
  2065. [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][] ]]
  2066.  
  2067.  
  2068.  
  2069. Char:MoveTo(Vector3.new(0,50,0))
  2070.  
  2071. end
  2072.  
  2073.  
  2074.  
  2075.  
  2076.  
  2077. Core.C1 = CFrame.new(0,0,0) *CFrame.fromEulerAnglesXYZ(0.1,0,0)
  2078.  
  2079. Wai.C1 = CFrame.new(0,0,0) *CFrame.fromEulerAnglesXYZ(-0.1,0,0)
  2080.  
  2081. LS.C1 = CFrame.new(0,0,-1) *CFrame.fromEulerAnglesXYZ(0.2,0,0)
  2082.  
  2083. RS.C1 = CFrame.new(0,0,-1) *CFrame.fromEulerAnglesXYZ(0.2,0,0)
  2084.  
  2085. LHa.C1 = CFrame.new(0,0.75,1.3) *CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  2086.  
  2087. RHa.C1 = CFrame.new(0,0.75,1.3) *CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  2088.  
  2089.  
  2090.  
  2091.  
  2092.  
  2093.  
  2094.  
  2095.  
  2096.  
  2097.  
  2098.  
  2099.  
  2100.  
  2101.  
  2102.  
  2103.  
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121.  
  2122.  
  2123.  
  2124.  
  2125.  
  2126.  
  2127.  
  2128.  
  2129.  
  2130.  
  2131.  
  2132.  
  2133.  
  2134.  
  2135.  
  2136.  
  2137.  
  2138.  
  2139.  
  2140.  
  2141.  
  2142.  
  2143.  
  2144.  
  2145.  
  2146.  
  2147.  
  2148.  
  2149.  
  2150.  
  2151.  
  2152.  
  2153.  
  2154.  
  2155.  
  2156.  
  2157.  
  2158.  
  2159. function onButton1Down(mouse)
  2160.  
  2161. end
  2162.  
  2163.  
  2164.  
  2165.  
  2166.  
  2167.  
  2168.  
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.  
  2175. function onButton1Up(mouse)
  2176.  
  2177. end
  2178.  
  2179.  
  2180.  
  2181.  
  2182.  
  2183.  
  2184.  
  2185.  
  2186.  
  2187.  
  2188.  
  2189.  
  2190.  
  2191. function onMove(mouse)
  2192.  
  2193. MousePos = mouse.hit.p
  2194.  
  2195. end
  2196.  
  2197.  
  2198.  
  2199.  
  2200.  
  2201.  
  2202.  
  2203.  
  2204.  
  2205.  
  2206.  
  2207.  
  2208.  
  2209. function onKeyDown(key)
  2210.  
  2211. key:lower()
  2212.  
  2213. print(key)
  2214.  
  2215.  
  2216.  
  2217. if key == "w" or key == "a" or key == "s" or key == "d" then
  2218.  
  2219. Wasd = Wasd + 1
  2220.  
  2221.  
  2222.  
  2223. if Canwalk == false then return else end
  2224.  
  2225.  
  2226.  
  2227. if RunChance == true and Anim ~= "Running" then
  2228.  
  2229. Anim = "Running"
  2230.  
  2231. print("Run anim")
  2232.  
  2233.  
  2234.  
  2235. elseif RunChance == false and Anim ~= "Walking" then
  2236.  
  2237. Anim = "Walking"
  2238.  
  2239. repeat
  2240.  
  2241.  
  2242.  
  2243. if (WalkAnim == 1) then
  2244.  
  2245. WalkAnim = 2
  2246.  
  2247. for i = 0,5,1 do
  2248.  
  2249. if (Legs == true) then
  2250.  
  2251. RT.C1 = CFrame.new(0,0,-i*0.3) *CFrame.fromEulerAnglesXYZ(i*0.1,0,0)
  2252.  
  2253. RH.C1 = CFrame.new(0,0,i*0.1) *CFrame.fromEulerAnglesXYZ(-i*0.1,0,0)
  2254.  
  2255.  
  2256.  
  2257. LT.C1 = CFrame.new(0,0,i*0.35) *CFrame.fromEulerAnglesXYZ(-i*0.2,0,0)
  2258.  
  2259. LH.C1 = CFrame.new(0,0,-i*0.1) *CFrame.fromEulerAnglesXYZ(i*0.1,0,0)
  2260.  
  2261. LL.C1 = CFrame.new(0,0,-i*0.3) *CFrame.fromEulerAnglesXYZ(i*0.2,0,0)
  2262.  
  2263. else
  2264.  
  2265. end
  2266.  
  2267.  
  2268.  
  2269. if (Arms == true) then
  2270.  
  2271. LS.C1 = CFrame.new(0,0,-i*0.1 + -1) *CFrame.fromEulerAnglesXYZ(i*0.1,0,0)
  2272.  
  2273. RS.C1 = CFrame.new(0,0,i*0.1 + -1) *CFrame.fromEulerAnglesXYZ(-i*0.1,0,0)
  2274.  
  2275. else
  2276.  
  2277. end
  2278.  
  2279.  
  2280.  
  2281. if i ~= 5 then wait(0.1) else end
  2282.  
  2283. end
  2284.  
  2285.  
  2286.  
  2287.  
  2288.  
  2289.  
  2290.  
  2291.  
  2292.  
  2293.  
  2294.  
  2295. for i = 5,0,-1 do
  2296.  
  2297. if (Legs == true) then
  2298.  
  2299. RT.C1 = CFrame.new(0,0,-i*0.3) *CFrame.fromEulerAnglesXYZ(i*0.1,0,0)
  2300.  
  2301. RH.C1 = CFrame.new(0,0,i*0.1) *CFrame.fromEulerAnglesXYZ(-i*0.1,0,0)
  2302.  
  2303.  
  2304.  
  2305. LT.C1 = CFrame.new(0,0,i*0.35) *CFrame.fromEulerAnglesXYZ(-i*0.2,0,0)
  2306.  
  2307. LH.C1 = CFrame.new(0,0,-i*0.1) *CFrame.fromEulerAnglesXYZ(i*0.1,0,0)
  2308.  
  2309. LL.C1 = CFrame.new(0,0,-i*0.3) *CFrame.fromEulerAnglesXYZ(i*0.2,0,0)
  2310.  
  2311. else
  2312.  
  2313. end
  2314.  
  2315.  
  2316.  
  2317.  
  2318.  
  2319. if (Arms == true) then
  2320.  
  2321. LS.C1 = CFrame.new(0,0,-i*0.1 + -1) *CFrame.fromEulerAnglesXYZ(i*0.1,0,0)
  2322.  
  2323. RS.C1 = CFrame.new(0,0,i*0.1 + -1) *CFrame.fromEulerAnglesXYZ(-i*0.1,0,0)
  2324.  
  2325. else
  2326.  
  2327. end
  2328.  
  2329.  
  2330.  
  2331.  
  2332.  
  2333. if i ~= 0 then wait(0.1) else end
  2334.  
  2335. end
  2336.  
  2337.  
  2338.  
  2339.  
  2340.  
  2341.  
  2342.  
  2343.  
  2344.  
  2345.  
  2346.  
  2347.  
  2348.  
  2349.  
  2350.  
  2351. elseif (WalkAnim == 2) then
  2352.  
  2353. WalkAnim = 1
  2354.  
  2355.  
  2356.  
  2357.  
  2358.  
  2359. for i = 0,5,1 do
  2360.  
  2361. if (Legs == true) then
  2362.  
  2363. LT.C1 = CFrame.new(0,0,-i*0.3) *CFrame.fromEulerAnglesXYZ(i*0.1,0,0)
  2364.  
  2365. LH.C1 = CFrame.new(0,0,i*0.1) *CFrame.fromEulerAnglesXYZ(-i*0.1,0,0)
  2366.  
  2367.  
  2368.  
  2369. RT.C1 = CFrame.new(0,0,i*0.35) *CFrame.fromEulerAnglesXYZ(-i*0.2,0,0)
  2370.  
  2371. RH.C1 = CFrame.new(0,0,-i*0.1) *CFrame.fromEulerAnglesXYZ(i*0.1,0,0)
  2372.  
  2373. RL.C1 = CFrame.new(0,0,-i*0.3) *CFrame.fromEulerAnglesXYZ(i*0.2,0,0)
  2374.  
  2375. else
  2376.  
  2377. end
  2378.  
  2379.  
  2380.  
  2381. if (Arms == true) then
  2382.  
  2383. LS.C1 = CFrame.new(0,0,i*0.1 + -1) *CFrame.fromEulerAnglesXYZ(-i*0.1,0,0)
  2384.  
  2385. RS.C1 = CFrame.new(0,0,-i*0.1 + -1) *CFrame.fromEulerAnglesXYZ(i*0.1,0,0)
  2386.  
  2387. else
  2388.  
  2389. end
  2390.  
  2391.  
  2392.  
  2393. if i ~= 5 then wait(0.1) else end
  2394.  
  2395. end
  2396.  
  2397.  
  2398.  
  2399.  
  2400.  
  2401. for i = 5,0,-1 do
  2402.  
  2403. if (Legs == true) then
  2404.  
  2405. LT.C1 = CFrame.new(0,0,-i*0.3) *CFrame.fromEulerAnglesXYZ(i*0.1,0,0)
  2406.  
  2407. LH.C1 = CFrame.new(0,0,i*0.1) *CFrame.fromEulerAnglesXYZ(-i*0.1,0,0)
  2408.  
  2409.  
  2410.  
  2411. RT.C1 = CFrame.new(0,0,i*0.35) *CFrame.fromEulerAnglesXYZ(-i*0.2,0,0)
  2412.  
  2413. RH.C1 = CFrame.new(0,0,-i*0.1) *CFrame.fromEulerAnglesXYZ(i*0.1,0,0)
  2414.  
  2415. RL.C1 = CFrame.new(0,0,-i*0.3) *CFrame.fromEulerAnglesXYZ(i*0.2,0,0)
  2416.  
  2417. else
  2418.  
  2419. end
  2420.  
  2421.  
  2422.  
  2423.  
  2424.  
  2425. if (Arms == true) then
  2426.  
  2427. LS.C1 = CFrame.new(0,0,i*0.1 + -1) *CFrame.fromEulerAnglesXYZ(-i*0.1,0,0)
  2428.  
  2429. RS.C1 = CFrame.new(0,0,-i*0.1 + -1) *CFrame.fromEulerAnglesXYZ(i*0.1,0,0)
  2430.  
  2431. else
  2432.  
  2433. end
  2434.  
  2435.  
  2436.  
  2437.  
  2438.  
  2439.  
  2440.  
  2441. if i ~= 0 then wait(0.1) else end
  2442.  
  2443. end
  2444.  
  2445.  
  2446.  
  2447.  
  2448.  
  2449. end
  2450.  
  2451. until Anim ~= "Walking"
  2452.  
  2453.  
  2454.  
  2455. if Legs == true then
  2456.  
  2457. RT.C1 = CFrame.new(0,0,0) *CFrame.fromEulerAnglesXYZ(0,0,0)
  2458.  
  2459. RL.C1 = CFrame.new(0,0,0) *CFrame.fromEulerAnglesXYZ(0,0,0)
  2460.  
  2461. LT.C1 = CFrame.new(0,0,0) *CFrame.fromEulerAnglesXYZ(0,0,0)
  2462.  
  2463. LL.C1 = CFrame.new(0,0,0) *CFrame.fromEulerAnglesXYZ(0,0,0)
  2464.  
  2465. LH.C1 = CFrame.new(0,0,0) *CFrame.fromEulerAnglesXYZ(0,0,0)
  2466.  
  2467. RH.C1 = CFrame.new(0,0,0) *CFrame.fromEulerAnglesXYZ(0,0,0)
  2468.  
  2469. else
  2470.  
  2471. end
  2472.  
  2473. if Arms == true then
  2474.  
  2475. LS.C1 = CFrame.new(0,0,-1) *CFrame.fromEulerAnglesXYZ(0.2,0,0)
  2476.  
  2477. RS.C1 = CFrame.new(0,0,-1) *CFrame.fromEulerAnglesXYZ(0.2,0,0)
  2478.  
  2479. else
  2480.  
  2481. end
  2482.  
  2483.  
  2484.  
  2485. else
  2486.  
  2487. end
  2488.  
  2489.  
  2490.  
  2491.  
  2492.  
  2493. elseif key == ";" then
  2494.  
  2495. if Anim ~= "Standing" and Anim ~= "Walking" and Anim ~= "Standing" and Anim ~= "Sitting" then return else end
  2496.  
  2497. if SAnim == true then return else end
  2498.  
  2499. SAnim = true
  2500.  
  2501. SSAnim = "TrollCannon"
  2502.  
  2503. Arms = false
  2504.  
  2505. LS.C1 = CFrame.new(0,0,0) *CFrame.fromEulerAnglesXYZ(0,0,0)
  2506.  
  2507. for i = -1,12,1 do
  2508.  
  2509. LS.C1 = CFrame.new(0,i*0.2,i*0.2+ -0.8) *CFrame.fromEulerAnglesXYZ(-i*0.1,0,0)
  2510.  
  2511. wait(0.08)
  2512.  
  2513. end
  2514.  
  2515.  
  2516.  
  2517. for i=1,60 do
  2518.  
  2519. local cb = Instance.new("Part")
  2520.  
  2521. cb.Reflectance = 0.1
  2522.  
  2523. cb.Transparency = 0.4
  2524.  
  2525. cb.BrickColor = BrickColor.new("White")
  2526.  
  2527. cb.Name = "ChargeBall"
  2528.  
  2529. cb.Size = Vector3.new(2,2,2)
  2530.  
  2531. cb.formFactor = "Symmetric"
  2532.  
  2533. cb.TopSurface = 0
  2534.  
  2535. cb.BottomSurface = 0
  2536.  
  2537. cb.Shape = "Ball"
  2538.  
  2539. cb.CanCollide = false
  2540.  
  2541.  
  2542.  
  2543.  
  2544.  
  2545. local gt = Instance.new("BodyPosition")
  2546.  
  2547. gt.position = LArm.Position
  2548.  
  2549. gt.Parent = cb
  2550.  
  2551.  
  2552.  
  2553. cb.Parent = Parts
  2554.  
  2555.  
  2556.  
  2557. cb.CFrame = LArm.CFrame + Vector3.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))
  2558.  
  2559.  
  2560.  
  2561. Debris:AddItem(cb,1)
  2562.  
  2563.  
  2564.  
  2565. wait(0.01)
  2566.  
  2567. end
  2568.  
  2569.  
  2570.  
  2571.  
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577. local m = MousePos - LArm.Position
  2578.  
  2579. m = m.x+m.y+m.z/3
  2580.  
  2581.  
  2582.  
  2583.  
  2584.  
  2585. if (m < 0) then
  2586.  
  2587. m = m - (m*2)
  2588.  
  2589. else
  2590.  
  2591. end
  2592.  
  2593.  
  2594.  
  2595.  
  2596.  
  2597. --print("zzzzzzzzzzzz : " ..m)
  2598.  
  2599.  
  2600.  
  2601. if m < 1500 then
  2602.  
  2603.  
  2604.  
  2605. local zp = Instance.new("Part")
  2606.  
  2607. zp.Reflectance = 0.1
  2608.  
  2609. zp.Transparency = 0.4
  2610.  
  2611. zp.BrickColor = BrickColor.new("White")
  2612.  
  2613. zp.Name = "Laser"
  2614.  
  2615. zp.formFactor = "Symmetric"
  2616.  
  2617. zp.Shape = "Ball"
  2618.  
  2619. zp.Size = Vector3.new(12,12,12)
  2620.  
  2621. zp.CanCollide = false
  2622.  
  2623. zp.Anchored = true
  2624.  
  2625. zp.TopSurface = 0
  2626.  
  2627. zp.BottomSurface = 0
  2628.  
  2629. zp.Parent = Parts
  2630.  
  2631. zp.CFrame = LArm.CFrame
  2632.  
  2633. coroutine.resume(coroutine.create(function()
  2634.  
  2635.  
  2636.  
  2637. wait(0.4)
  2638.  
  2639. for i=0.5,1,0.1 do
  2640.  
  2641. zp.Transparency = i
  2642.  
  2643. wait(0.1)
  2644.  
  2645. end
  2646.  
  2647. zp:Remove()
  2648.  
  2649. end))
  2650.  
  2651.  
  2652.  
  2653.  
  2654.  
  2655. local yp = Instance.new("Part")
  2656.  
  2657. yp.Reflectance = 0.1
  2658.  
  2659. yp.Transparency = 0.4
  2660.  
  2661. yp.BrickColor = BrickColor.new("White")
  2662.  
  2663. yp.Name = "Laser"
  2664.  
  2665. yp.formFactor = "Symmetric"
  2666.  
  2667. yp.Shape = "Ball"
  2668.  
  2669. yp.Size = Vector3.new(5,5,5)
  2670.  
  2671. yp.Anchored = true
  2672.  
  2673. yp.TopSurface = 0
  2674.  
  2675. yp.BottomSurface = 0
  2676.  
  2677. yp.Parent = Parts
  2678.  
  2679. yp.CFrame = CFrame.new(MousePos)
  2680.  
  2681. coroutine.resume(coroutine.create(function()
  2682.  
  2683.  
  2684.  
  2685. wait(0.4)
  2686.  
  2687. for i=0.5,1,0.1 do
  2688.  
  2689. yp.Transparency = i
  2690.  
  2691. wait(0.1)
  2692.  
  2693. end
  2694.  
  2695. yp:Remove()
  2696.  
  2697. end))
  2698.  
  2699.  
  2700.  
  2701.  
  2702.  
  2703. for i=1,5 do
  2704.  
  2705.  
  2706.  
  2707. local laserspawnpos = LArm.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2708.  
  2709.  
  2710.  
  2711. local p = Instance.new("Part")
  2712.  
  2713. p.Reflectance = 0.1
  2714.  
  2715. p.Transparency = 0.4
  2716.  
  2717. p.BrickColor = BrickColor.new("White")
  2718.  
  2719. p.Name = "Laser"
  2720.  
  2721. p.Size = Vector3.new(1,1,m)
  2722.  
  2723. p.formFactor = "Symmetric"
  2724.  
  2725. p.CanCollide = false
  2726.  
  2727. p.Anchored = true
  2728.  
  2729. p.TopSurface = 0
  2730.  
  2731. p.BottomSurface = 0
  2732.  
  2733.  
  2734.  
  2735.  
  2736.  
  2737. --[[local sm = Instance.new("SpecialMesh") -- D:?!
  2738.  
  2739. sm.Scale = Vector3.new(1.25,1.25,1)
  2740.  
  2741. sm.MeshType = "Sphere"
  2742.  
  2743. sm.Parent = p --]]
  2744.  
  2745.  
  2746.  
  2747.  
  2748.  
  2749.  
  2750.  
  2751. local dir = MousePos - laserspawnpos
  2752.  
  2753.  
  2754.  
  2755. dir = computeDirection(dir)
  2756.  
  2757.  
  2758.  
  2759.  
  2760.  
  2761. local pos = laserspawnpos + (dir * m/2)
  2762.  
  2763.  
  2764.  
  2765.  
  2766.  
  2767. p.Parent = Parts
  2768.  
  2769.  
  2770.  
  2771. coroutine.resume(coroutine.create(function()
  2772.  
  2773.  
  2774.  
  2775. --[[for i=1,10 do -- D:
  2776.  
  2777. local randomlol = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2778.  
  2779. p.CFrame = p.CFrame + Vector3.new(randomlol.x/10,randomlol.y/10,randomlol.z/10)
  2780.  
  2781. wait(0.125)
  2782.  
  2783. end]]
  2784.  
  2785.  
  2786.  
  2787. wait(0.4)
  2788.  
  2789. for i=0.5,1,0.1 do
  2790.  
  2791. p.Transparency = i
  2792.  
  2793. wait(0.1)
  2794.  
  2795. end
  2796.  
  2797. p:Remove()
  2798.  
  2799. end))
  2800.  
  2801.  
  2802.  
  2803. p.CFrame = CFrame.new(pos, pos + dir)
  2804.  
  2805.  
  2806.  
  2807. end
  2808.  
  2809.  
  2810.  
  2811.  
  2812.  
  2813.  
  2814.  
  2815. else
  2816.  
  2817. end
  2818.  
  2819.  
  2820.  
  2821.  
  2822.  
  2823. wait(0.5)
  2824.  
  2825. for i = 12,-1,-1 do
  2826.  
  2827. LS.C1 = CFrame.new(0,i*0.2,i*0.2+ -0.8) *CFrame.fromEulerAnglesXYZ(-i*0.1,0,0)
  2828.  
  2829. wait(0.08)
  2830.  
  2831. end
  2832.  
  2833. --LS.C1 = CFrame.new(0,0,-2) *CFrame.fromEulerAnglesXYZ(0.2,0,0) --:P
  2834.  
  2835. SAnim = false
  2836.  
  2837. SSAnim = "None"
  2838.  
  2839. Arms = true
  2840.  
  2841.  
  2842.  
  2843.  
  2844.  
  2845. elseif key == "q" then
  2846.  
  2847. if Anim ~= "Standing" and Anim ~= "Walking" and Anim ~= "Standing" and Anim ~= "Sitting" then return else end
  2848.  
  2849. if SAnim == true then return else end
  2850.  
  2851. SAnim = true
  2852.  
  2853. SSAnim = "LaserCannon"
  2854.  
  2855. Arms = false
  2856.  
  2857. LS.C1 = CFrame.new(0,0,0) *CFrame.fromEulerAnglesXYZ(0,0,0)
  2858.  
  2859. for i = -1,12,1 do
  2860.  
  2861. LS.C1 = CFrame.new(0,i*0.2,i*0.2+ -0.8) *CFrame.fromEulerAnglesXYZ(-i*0.1,0,0)
  2862.  
  2863. wait(0.08)
  2864.  
  2865. end
  2866.  
  2867.  
  2868.  
  2869. for i=1,60 do
  2870.  
  2871. local cb = Instance.new("Part")
  2872.  
  2873. cb.Reflectance = 0.1
  2874.  
  2875. cb.Transparency = 0.4
  2876.  
  2877. cb.BrickColor = BrickColor.new(MechColor)
  2878.  
  2879. cb.Name = "ChargeBall"
  2880.  
  2881. cb.Size = Vector3.new(2,2,2)
  2882.  
  2883. cb.formFactor = "Symmetric"
  2884.  
  2885. cb.TopSurface = 0
  2886.  
  2887. cb.BottomSurface = 0
  2888.  
  2889. cb.Shape = "Ball"
  2890.  
  2891. cb.CanCollide = false
  2892.  
  2893.  
  2894.  
  2895.  
  2896.  
  2897. local gt = Instance.new("BodyPosition")
  2898.  
  2899. gt.position = LArm.Position
  2900.  
  2901. gt.Parent = cb
  2902.  
  2903.  
  2904.  
  2905. cb.Parent = Parts
  2906.  
  2907.  
  2908.  
  2909. cb.CFrame = LArm.CFrame + Vector3.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))
  2910.  
  2911.  
  2912.  
  2913. Debris:AddItem(cb,1)
  2914.  
  2915.  
  2916.  
  2917. wait(0.01)
  2918.  
  2919. end
  2920.  
  2921.  
  2922.  
  2923.  
  2924.  
  2925.  
  2926.  
  2927.  
  2928.  
  2929. local m = MousePos - LArm.Position
  2930.  
  2931. m = m.x+m.y+m.z/3
  2932.  
  2933.  
  2934.  
  2935.  
  2936.  
  2937. if (m < 0) then
  2938.  
  2939. m = m - (m*2)
  2940.  
  2941. else
  2942.  
  2943. end
  2944.  
  2945.  
  2946.  
  2947.  
  2948.  
  2949. --print("zzzzzzzzzzzz : " ..m)
  2950.  
  2951.  
  2952.  
  2953. if m < 1500 then
  2954.  
  2955.  
  2956.  
  2957. local zp = Instance.new("Part")
  2958.  
  2959. zp.Reflectance = 0.1
  2960.  
  2961. zp.Transparency = 0.4
  2962.  
  2963. zp.BrickColor = BrickColor.new(MechColor)
  2964.  
  2965. zp.Name = "Laser"
  2966.  
  2967. zp.formFactor = "Symmetric"
  2968.  
  2969. zp.Shape = "Ball"
  2970.  
  2971. zp.Size = Vector3.new(12,12,12)
  2972.  
  2973. zp.CanCollide = false
  2974.  
  2975. zp.Anchored = true
  2976.  
  2977. zp.TopSurface = 0
  2978.  
  2979. zp.BottomSurface = 0
  2980.  
  2981. zp.Parent = Parts
  2982.  
  2983. zp.CFrame = LArm.CFrame
  2984.  
  2985. coroutine.resume(coroutine.create(function()
  2986.  
  2987.  
  2988.  
  2989. wait(0.4)
  2990.  
  2991. for i=0.5,1,0.1 do
  2992.  
  2993. zp.Transparency = i
  2994.  
  2995. wait(0.1)
  2996.  
  2997. end
  2998.  
  2999. zp:Remove()
  3000.  
  3001. end))
  3002.  
  3003.  
  3004.  
  3005.  
  3006.  
  3007. local yp = Instance.new("Part")
  3008.  
  3009. yp.Reflectance = 0.1
  3010.  
  3011. yp.Transparency = 0.4
  3012.  
  3013. yp.BrickColor = BrickColor.new(MechColor)
  3014.  
  3015. yp.Name = "Laser"
  3016.  
  3017. yp.formFactor = "Symmetric"
  3018.  
  3019. yp.Shape = "Ball"
  3020.  
  3021. yp.Size = Vector3.new(5,5,5)
  3022.  
  3023. yp.Anchored = true
  3024.  
  3025. yp.TopSurface = 0
  3026.  
  3027. yp.BottomSurface = 0
  3028.  
  3029. yp.Parent = Parts
  3030.  
  3031. yp.CFrame = CFrame.new(MousePos)
  3032.  
  3033. coroutine.resume(coroutine.create(function()
  3034.  
  3035.  
  3036.  
  3037. wait(0.4)
  3038.  
  3039. for i=0.5,1,0.1 do
  3040.  
  3041. yp.Transparency = i
  3042.  
  3043. wait(0.1)
  3044.  
  3045. end
  3046.  
  3047. yp:Remove()
  3048.  
  3049. end))
  3050.  
  3051.  
  3052.  
  3053.  
  3054.  
  3055. for i=1,5 do
  3056.  
  3057.  
  3058.  
  3059. local laserspawnpos = LArm.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  3060.  
  3061.  
  3062.  
  3063. local p = Instance.new("Part")
  3064.  
  3065. p.Reflectance = 0.1
  3066.  
  3067. p.Transparency = 0.4
  3068.  
  3069. p.BrickColor = BrickColor.new(MechColor)
  3070.  
  3071. p.Name = "Laser"
  3072.  
  3073. p.Size = Vector3.new(1,1,m)
  3074.  
  3075. p.formFactor = "Symmetric"
  3076.  
  3077. p.CanCollide = false
  3078.  
  3079. p.Anchored = true
  3080.  
  3081. p.TopSurface = 0
  3082.  
  3083. p.BottomSurface = 0
  3084.  
  3085.  
  3086.  
  3087.  
  3088.  
  3089. --[[local sm = Instance.new("SpecialMesh") -- D:?!
  3090.  
  3091. sm.Scale = Vector3.new(1.25,1.25,1)
  3092.  
  3093. sm.MeshType = "Sphere"
  3094.  
  3095. sm.Parent = p --]]
  3096.  
  3097.  
  3098.  
  3099.  
  3100.  
  3101.  
  3102.  
  3103. local dir = MousePos - laserspawnpos
  3104.  
  3105.  
  3106.  
  3107. dir = computeDirection(dir)
  3108.  
  3109.  
  3110.  
  3111.  
  3112.  
  3113. local pos = laserspawnpos + (dir * m/2)
  3114.  
  3115.  
  3116.  
  3117.  
  3118.  
  3119. p.Parent = Parts
  3120.  
  3121.  
  3122.  
  3123. coroutine.resume(coroutine.create(function()
  3124.  
  3125.  
  3126.  
  3127. --[[for i=1,10 do -- D:
  3128.  
  3129. local randomlol = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3130.  
  3131. p.CFrame = p.CFrame + Vector3.new(randomlol.x/10,randomlol.y/10,randomlol.z/10)
  3132.  
  3133. wait(0.125)
  3134.  
  3135. end]]
  3136.  
  3137.  
  3138.  
  3139. wait(0.4)
  3140.  
  3141. for i=0.5,1,0.1 do
  3142.  
  3143. p.Transparency = i
  3144.  
  3145. wait(0.1)
  3146.  
  3147. end
  3148.  
  3149. p:Remove()
  3150.  
  3151. end))
  3152.  
  3153.  
  3154.  
  3155. p.CFrame = CFrame.new(pos, pos + dir)
  3156.  
  3157.  
  3158.  
  3159. end
  3160.  
  3161.  
  3162.  
  3163.  
  3164.  
  3165. local ee = Instance.new("Explosion") ee.BlastRadius = 5 ee.Position = MousePos ee.Parent = workspace
  3166.  
  3167.  
  3168.  
  3169. else
  3170.  
  3171. end
  3172.  
  3173.  
  3174.  
  3175.  
  3176.  
  3177. wait(0.5)
  3178.  
  3179. for i = 12,-1,-1 do
  3180.  
  3181. LS.C1 = CFrame.new(0,i*0.2,i*0.2+ -0.8) *CFrame.fromEulerAnglesXYZ(-i*0.1,0,0)
  3182.  
  3183. wait(0.08)
  3184.  
  3185. end
  3186.  
  3187. --LS.C1 = CFrame.new(0,0,-2) *CFrame.fromEulerAnglesXYZ(0.2,0,0) --:P
  3188.  
  3189. SAnim = false
  3190.  
  3191. SSAnim = "None"
  3192.  
  3193. Arms = true
  3194.  
  3195.  
  3196.  
  3197.  
  3198.  
  3199. elseif key == "g" then
  3200.  
  3201. if Anim ~= "Standing" and Anim ~= "Walking" and Anim ~= "Standing" then return else end
  3202.  
  3203. if SAnim == true then return else end
  3204.  
  3205. SAnim = true
  3206.  
  3207. SSAnim = "Jumping"
  3208.  
  3209. Legs = false
  3210.  
  3211. Arms = false
  3212.  
  3213.  
  3214.  
  3215. for i=0,5,1 do
  3216.  
  3217. Core.C1 = CFrame.new(0,i*0.5,-i*0.1) *CFrame.fromEulerAnglesXYZ(i*0.2 + 0.1,0,0)
  3218.  
  3219. Wai.C1 = CFrame.new(0,0,0) *CFrame.fromEulerAnglesXYZ(-i*0.1 + -0.1,0,0)
  3220.  
  3221. RT.C1 = CFrame.new(0,0,i*0.4) *CFrame.fromEulerAnglesXYZ(-i*0.2,0,0)
  3222.  
  3223. LT.C1 = CFrame.new(0,0,i*0.4) *CFrame.fromEulerAnglesXYZ(-i*0.2,0,0)
  3224.  
  3225.  
  3226.  
  3227. LL.C1 = CFrame.new(0,0,-i*0.4) *CFrame.fromEulerAnglesXYZ(i*0.2,0,0)
  3228.  
  3229. RL.C1 = CFrame.new(0,0,-i*0.4) *CFrame.fromEulerAnglesXYZ(i*0.2,0,0)
  3230.  
  3231.  
  3232.  
  3233. LH.C1 = CFrame.new(0,0,i*0.1) *CFrame.fromEulerAnglesXYZ(-i*0.1,0,0)
  3234.  
  3235. RH.C1 = CFrame.new(0,0,i*0.1) *CFrame.fromEulerAnglesXYZ(-i*0.1,0,0)
  3236.  
  3237.  
  3238.  
  3239. LS.C1 = CFrame.new(0,i*0.4,i*0.4+ -0.9) *CFrame.fromEulerAnglesXYZ(-i*0.2,0,0)
  3240.  
  3241. RS.C1 = CFrame.new(0,i*0.4,i*0.4+ -0.9) *CFrame.fromEulerAnglesXYZ(-i*0.2,0,0)
  3242.  
  3243. wait(0.1)
  3244.  
  3245. end
  3246.  
  3247.  
  3248.  
  3249. for i=5,0,-1 do
  3250.  
  3251. Core.C1 = CFrame.new(0,i*0.5,-i*0.1) *CFrame.fromEulerAnglesXYZ(i*0.2 + 0.1,0,0)
  3252.  
  3253. Wai.C1 = CFrame.new(0,0,0) *CFrame.fromEulerAnglesXYZ(-i*0.1 + -0.1,0,0)
  3254.  
  3255. RT.C1 = CFrame.new(0,0,i*0.4) *CFrame.fromEulerAnglesXYZ(-i*0.2,0,0)
  3256.  
  3257. LT.C1 = CFrame.new(0,0,i*0.4) *CFrame.fromEulerAnglesXYZ(-i*0.2,0,0)
  3258.  
  3259.  
  3260.  
  3261. LL.C1 = CFrame.new(0,0,-i*0.4) *CFrame.fromEulerAnglesXYZ(i*0.2,0,0)
  3262.  
  3263. RL.C1 = CFrame.new(0,0,-i*0.4) *CFrame.fromEulerAnglesXYZ(i*0.2,0,0)
  3264.  
  3265.  
  3266.  
  3267. LH.C1 = CFrame.new(0,0,i*0.1) *CFrame.fromEulerAnglesXYZ(-i*0.1,0,0)
  3268.  
  3269. RH.C1 = CFrame.new(0,0,i*0.1) *CFrame.fromEulerAnglesXYZ(-i*0.1,0,0)
  3270.  
  3271.  
  3272.  
  3273. LS.C1 = CFrame.new(0,i*0.4,i*0.4+ -0.9) *CFrame.fromEulerAnglesXYZ(-i*0.2,0,0)
  3274.  
  3275. RS.C1 = CFrame.new(0,i*0.4,i*0.4+ -0.9) *CFrame.fromEulerAnglesXYZ(-i*0.2,0,0)
  3276.  
  3277.  
  3278.  
  3279. if i == 3 then
  3280.  
  3281. local velojump = Instance.new("BodyVelocity")
  3282.  
  3283. velojump.maxForce = Vector3.new(0,math.huge,0)
  3284.  
  3285. velojump.velocity = Vector3.new(0,100,0)
  3286.  
  3287. velojump.Parent = Tors
  3288.  
  3289. coroutine.resume(coroutine.create(function()
  3290.  
  3291. wait(0.1)
  3292.  
  3293. velojump:Remove()
  3294.  
  3295. end))
  3296.  
  3297. else end
  3298.  
  3299. wait(0.1)
  3300.  
  3301. end
  3302.  
  3303.  
  3304.  
  3305. SAnim = false
  3306.  
  3307. SSAnim = "None"
  3308.  
  3309. Legs = true
  3310.  
  3311. Arms = true
  3312.  
  3313.  
  3314.  
  3315.  
  3316.  
  3317. elseif key == "e" then
  3318.  
  3319. if Anim ~= "Standing" and Anim ~= "Walking" and Anim ~= "Standing" then return else end
  3320.  
  3321. if SAnim == true then return else end
  3322.  
  3323. SAnim = true
  3324.  
  3325. SSAnim = "Grabbing"
  3326.  
  3327. Arms = false
  3328.  
  3329.  
  3330.  
  3331. RS.C1 = CFrame.new(0,0,0) *CFrame.fromEulerAnglesXYZ(0,0,0)
  3332.  
  3333. LS.C1 = CFrame.new(0,0,0) *CFrame.fromEulerAnglesXYZ(0,0,0)
  3334.  
  3335. for i = -1,12,1 do
  3336.  
  3337. RS.C1 = CFrame.new(0,i*0.2,i*0.2+ -0.8) *CFrame.fromEulerAnglesXYZ(-i*0.1,0,0)
  3338.  
  3339. LS.C1 = CFrame.new(0,i*0.1,i*0.1+ -0.4) *CFrame.fromEulerAnglesXYZ(-i*0.05,0,0)
  3340.  
  3341. if i > -1 and i < 8 then
  3342.  
  3343. Core.C1 = CFrame.new(0,i*0.5,-i*0.1) *CFrame.fromEulerAnglesXYZ(i*0.2 + 0.1,0,0)
  3344.  
  3345. Wai.C1 = CFrame.new(0,0,0) *CFrame.fromEulerAnglesXYZ(-i*0.2 + -0.1,0,0)
  3346.  
  3347. else
  3348.  
  3349. end
  3350.  
  3351. wait(0.08)
  3352.  
  3353. end
  3354.  
  3355.  
  3356.  
  3357. Grabbing = true
  3358.  
  3359. repeat
  3360.  
  3361. wait()
  3362.  
  3363. until Grabbing == false and AGrab ~= 0
  3364.  
  3365.  
  3366.  
  3367. if AGrab == -1 then
  3368.  
  3369.  
  3370.  
  3371.  
  3372.  
  3373. for i = 12,-1,-1 do
  3374.  
  3375. RS.C1 = CFrame.new(0,i*0.2,i*0.2+ -0.8) *CFrame.fromEulerAnglesXYZ(-i*0.1,0,0)
  3376.  
  3377. LS.C1 = CFrame.new(0,i*0.1,i*0.1+ -0.4) *CFrame.fromEulerAnglesXYZ(-i*0.05,0,0)
  3378.  
  3379. if i > -1 and i < 8 then
  3380.  
  3381. Core.C1 = CFrame.new(0,i*0.5,-i*0.1) *CFrame.fromEulerAnglesXYZ(i*0.2 + 0.1,0,0)
  3382.  
  3383. Wai.C1 = CFrame.new(0,0,0) *CFrame.fromEulerAnglesXYZ(-i*0.2 + -0.1,0,0)
  3384.  
  3385. else
  3386.  
  3387. end
  3388.  
  3389. wait(0.08)
  3390.  
  3391. end
  3392.  
  3393.  
  3394.  
  3395. else
  3396.  
  3397. PushGrab = true
  3398.  
  3399. for i = 12,-1,-1 do
  3400.  
  3401. RS.C1 = CFrame.new(0,i*0.2,i*0.2+ -0.8) *CFrame.fromEulerAnglesXYZ(-i*0.1,0,0)
  3402.  
  3403. wait(0.075)
  3404.  
  3405. end
  3406.  
  3407.  
  3408.  
  3409. end
  3410.  
  3411.  
  3412.  
  3413.  
  3414.  
  3415. SAnim = false
  3416.  
  3417. SSAnim = "None"
  3418.  
  3419. Arms = true
  3420.  
  3421.  
  3422.  
  3423.  
  3424.  
  3425.  
  3426.  
  3427.  
  3428.  
  3429. elseif key == "t" then
  3430.  
  3431.  
  3432.  
  3433. Player.Character:MoveTo(MousePos)
  3434.  
  3435.  
  3436.  
  3437. elseif key == "p" then
  3438.  
  3439. local hsound = Instance.new("Sound")
  3440.  
  3441.  
  3442.  
  3443. hsound.Name = "Music"
  3444.  
  3445. hsound.SoundId = "http://www.roblox.com/asset?id=27697735"
  3446.  
  3447. hsound.Volume = 3
  3448.  
  3449. hsound.Pitch = 3
  3450.  
  3451. hsound.Looped = false
  3452.  
  3453. hsound.archivable = false
  3454.  
  3455.  
  3456.  
  3457. hsound.Parent = Roof
  3458.  
  3459.  
  3460.  
  3461. wait(1)
  3462.  
  3463.  
  3464.  
  3465. hsound:play()
  3466.  
  3467. hsound:clone()
  3468.  
  3469.  
  3470.  
  3471. elseif key == "x" then
  3472.  
  3473. if Anim ~= "Standing" and Anim ~= "Walking" and Anim ~= "Sitting" then return else end
  3474.  
  3475. if Sitting == false then
  3476.  
  3477. Sitting = true
  3478.  
  3479. Canwalk = false
  3480.  
  3481. Anim = "Sitting"
  3482.  
  3483. for i=0,7,1 do
  3484.  
  3485. Core.C1 = CFrame.new(0,i*0.2,i*0.6) *CFrame.fromEulerAnglesXYZ(0.1,0,0) --NO U
  3486.  
  3487. Wai.C1 = CFrame.new(0,0,0) *CFrame.fromEulerAnglesXYZ(-i*0.1 + -0.1,0,0)
  3488.  
  3489. RT.C1 = CFrame.new(0,i*0.4,i*0.4) *CFrame.fromEulerAnglesXYZ(-i*0.2,0,0)
  3490.  
  3491. LT.C1 = CFrame.new(0,i*0.4,i*0.4) *CFrame.fromEulerAnglesXYZ(-i*0.2,0,0)
  3492.  
  3493.  
  3494.  
  3495. LL.C1 = CFrame.new(0,i*0.3,-i*0.4) *CFrame.fromEulerAnglesXYZ(i*0.2,0,0)
  3496.  
  3497. RL.C1 = CFrame.new(0,i*0.3,-i*0.4) *CFrame.fromEulerAnglesXYZ(i*0.2,0,0)
  3498.  
  3499.  
  3500.  
  3501. LH.C1 = CFrame.new(0,0,-i*0.1) *CFrame.fromEulerAnglesXYZ(i*0.1,0,0)
  3502.  
  3503. RH.C1 = CFrame.new(0,0,-i*0.1) *CFrame.fromEulerAnglesXYZ(i*0.1,0,0)
  3504.  
  3505.  
  3506.  
  3507. if i < 6 then
  3508.  
  3509. LS.C1 = CFrame.new(0,i*0.4,i*0.4+ -0.9) *CFrame.fromEulerAnglesXYZ(-i*0.2,0,0)
  3510.  
  3511. RS.C1 = CFrame.new(0,i*0.4,i*0.4+ -0.9) *CFrame.fromEulerAnglesXYZ(-i*0.2,0,0)
  3512.  
  3513. else
  3514.  
  3515. end
  3516.  
  3517. wait(0.1)
  3518.  
  3519. end
  3520.  
  3521. else
  3522.  
  3523. for i=7,0,-1 do
  3524.  
  3525. Core.C1 = CFrame.new(0,i*0.2,i*0.6) *CFrame.fromEulerAnglesXYZ(0.1,0,0) --NO U
  3526.  
  3527. Wai.C1 = CFrame.new(0,0,0) *CFrame.fromEulerAnglesXYZ(-i*0.1 + -0.1,0,0)
  3528.  
  3529. RT.C1 = CFrame.new(0,i*0.4,i*0.4) *CFrame.fromEulerAnglesXYZ(-i*0.2,0,0)
  3530.  
  3531. LT.C1 = CFrame.new(0,i*0.4,i*0.4) *CFrame.fromEulerAnglesXYZ(-i*0.2,0,0)
  3532.  
  3533.  
  3534.  
  3535. LL.C1 = CFrame.new(0,i*0.3,-i*0.4) *CFrame.fromEulerAnglesXYZ(i*0.2,0,0)
  3536.  
  3537. RL.C1 = CFrame.new(0,i*0.3,-i*0.4) *CFrame.fromEulerAnglesXYZ(i*0.2,0,0)
  3538.  
  3539.  
  3540.  
  3541. LH.C1 = CFrame.new(0,0,-i*0.1) *CFrame.fromEulerAnglesXYZ(i*0.1,0,0)
  3542.  
  3543. RH.C1 = CFrame.new(0,0,-i*0.1) *CFrame.fromEulerAnglesXYZ(i*0.1,0,0)
  3544.  
  3545.  
  3546.  
  3547. if i < 6 then
  3548.  
  3549. LS.C1 = CFrame.new(0,i*0.4,i*0.4+ -0.9) *CFrame.fromEulerAnglesXYZ(-i*0.2,0,0)
  3550.  
  3551. RS.C1 = CFrame.new(0,i*0.4,i*0.4+ -0.9) *CFrame.fromEulerAnglesXYZ(-i*0.2,0,0)
  3552.  
  3553. else
  3554.  
  3555. end
  3556.  
  3557. wait(0.1)
  3558.  
  3559. end
  3560.  
  3561. Sitting = false
  3562.  
  3563. Canwalk = true
  3564.  
  3565. Anim = "Standing"
  3566.  
  3567. end
  3568.  
  3569.  
  3570.  
  3571.  
  3572.  
  3573.  
  3574.  
  3575. else
  3576.  
  3577. end -- key end
  3578.  
  3579. end -- func end
  3580.  
  3581.  
  3582.  
  3583.  
  3584.  
  3585.  
  3586.  
  3587.  
  3588.  
  3589.  
  3590.  
  3591.  
  3592.  
  3593. function onKeyUp(key)
  3594.  
  3595. key:lower()
  3596.  
  3597.  
  3598.  
  3599.  
  3600.  
  3601.  
  3602.  
  3603. if key == "w" or key == "a" or key == "s" or key == "d" then
  3604.  
  3605.  
  3606.  
  3607. Wasd = Wasd - 1
  3608.  
  3609. if Anim == "Running" and Wasd == 0 then
  3610.  
  3611. if Anim == "Running" then Anim = "Standing" else end
  3612.  
  3613. elseif Anim == "Walking" and Wasd == 0 then
  3614.  
  3615. if Anim == "Walking" then
  3616.  
  3617. Anim = "Standing"
  3618.  
  3619. coroutine.resume(coroutine.create(function()
  3620.  
  3621. RunChance = true
  3622.  
  3623. wait(0.25)
  3624.  
  3625. RunChance = false
  3626.  
  3627. end))
  3628.  
  3629. else end
  3630.  
  3631.  
  3632.  
  3633. else
  3634.  
  3635. end
  3636.  
  3637.  
  3638.  
  3639.  
  3640.  
  3641. elseif key == "e" and SSAnim == "Grabbing" then
  3642.  
  3643. repeat
  3644.  
  3645. wait()
  3646.  
  3647. until Grabbing == true
  3648.  
  3649. Grabbing = false
  3650.  
  3651.  
  3652.  
  3653.  
  3654.  
  3655.  
  3656.  
  3657. else
  3658.  
  3659. end -- key end
  3660.  
  3661. end -- func end
  3662.  
  3663.  
  3664.  
  3665.  
  3666.  
  3667.  
  3668.  
  3669.  
  3670.  
  3671.  
  3672.  
  3673.  
  3674.  
  3675.  
  3676.  
  3677.  
  3678.  
  3679.  
  3680.  
  3681. function GrabBrick(hit)
  3682.  
  3683. local hitmasslol = hit:GetMass()
  3684.  
  3685. if (GrabbedOne == false) and (Grabbing == true) and (AGrab == -1) and (SSAnim == "Grabbing") and (hitmasslol < 800) and (hit.Anchored == false) then
  3686.  
  3687. AGrab = 0
  3688.  
  3689. GrabbedOne = true
  3690.  
  3691.  
  3692.  
  3693. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  3694.  
  3695. else
  3696.  
  3697. hit:BreakJoints()
  3698.  
  3699. end
  3700.  
  3701.  
  3702.  
  3703. -- joint myself to the thing i hit
  3704.  
  3705.  
  3706.  
  3707. local weld = Instance.new("Weld")
  3708.  
  3709.  
  3710.  
  3711. weld.Part0 = hit
  3712.  
  3713. weld.Part1 = RArmT
  3714.  
  3715.  
  3716.  
  3717. -- correction term to account for average skew between physics update and heartbeat
  3718.  
  3719. local HitPos = hit.Position --+ (-arrow.Velocity * (1/60)) --+ (arrow.CFrame.lookVector * .5)
  3720.  
  3721.  
  3722.  
  3723. local CJ = CFrame.new(HitPos)
  3724.  
  3725. local C0 = hit.CFrame:inverse() *CJ
  3726.  
  3727. local C1 = RArmT.CFrame:inverse() * CJ
  3728.  
  3729.  
  3730.  
  3731. weld.C0 = C0
  3732.  
  3733. weld.C1 = C1
  3734.  
  3735.  
  3736.  
  3737. weld.Parent = RArmT
  3738.  
  3739.  
  3740.  
  3741. for i = 12,-1,-1 do
  3742.  
  3743. RS.C1 = CFrame.new(0,i*0.2,i*0.2+ -0.8) *CFrame.fromEulerAnglesXYZ(-i*0.1,0,0)
  3744.  
  3745. LS.C1 = CFrame.new(0,i*0.1,i*0.1+ -0.4) *CFrame.fromEulerAnglesXYZ(-i*0.05,0,0)
  3746.  
  3747. if i > -1 and i < 8 then
  3748.  
  3749. Core.C1 = CFrame.new(0,i*0.5,-i*0.1) *CFrame.fromEulerAnglesXYZ(i*0.2 + 0.1,0,0)
  3750.  
  3751. Wai.C1 = CFrame.new(0,0,0) *CFrame.fromEulerAnglesXYZ(-i*0.2 + -0.1,0,0)
  3752.  
  3753. else
  3754.  
  3755. end
  3756.  
  3757. wait(0.08)
  3758.  
  3759. end
  3760.  
  3761. for i = -1,12,1 do
  3762.  
  3763. RS.C1 = CFrame.new(0,i*0.2,i*0.2+ -0.8) *CFrame.fromEulerAnglesXYZ(-i*0.1,0,0)
  3764.  
  3765. wait(0.08)
  3766.  
  3767. end
  3768.  
  3769. AGrab = 1
  3770.  
  3771.  
  3772.  
  3773.  
  3774.  
  3775. repeat
  3776.  
  3777. wait()
  3778.  
  3779. until PushGrab == true
  3780.  
  3781. PushGrab = false
  3782.  
  3783. weld:Remove()
  3784.  
  3785. hit.Velocity = Platform.CFrame.lookVector*150
  3786.  
  3787. AGrab = -1
  3788.  
  3789. GrabbedOne = false
  3790.  
  3791.  
  3792.  
  3793. else
  3794.  
  3795. print("Pai")
  3796.  
  3797. end
  3798.  
  3799. end
  3800.  
  3801. RArmT.Touched:connect(GrabBrick)
  3802.  
  3803.  
  3804.  
  3805.  
  3806.  
  3807. function Selected(mouse)
  3808.  
  3809. print("Selectzored")
  3810.  
  3811. Parts.Name = "Partz"
  3812.  
  3813. if (Player.Character:findFirstChild("Parts") ~= nil) then
  3814.  
  3815. Player.Character.Parts:Remove()
  3816.  
  3817. else
  3818.  
  3819. end
  3820.  
  3821.  
  3822.  
  3823.  
  3824.  
  3825.  
  3826.  
  3827. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  3828.  
  3829. mouse.Button1Up:connect(function() onButton1Up(mouse) end)
  3830.  
  3831. mouse.Move:connect(function() onMove(mouse) end)
  3832.  
  3833. mouse.KeyDown:connect(onKeyDown)
  3834.  
  3835. mouse.KeyUp:connect(onKeyUp)
  3836.  
  3837. end
  3838.  
  3839.  
  3840.  
  3841.  
  3842.  
  3843.  
  3844.  
  3845. script.Parent.Selected:connect(Selected)
  3846.  
  3847.  
  3848.  
  3849. print(lego)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement