Advertisement
WinslowMau

Untitled

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