Advertisement
RobloxScripting

mech

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