Advertisement
Wilkins1000

Untitled

Mar 5th, 2017
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 46.45 KB | None | 0 0
  1. Name = ("Wilkins1000") 1
  2.  
  3. x = 0
  4.  
  5.  
  6.  
  7. Players = game:GetService("Players")
  8.  
  9. Debris = game:GetService("Debris")
  10.  
  11. NetworkServer = game:findFirstChild("NetworkServer")
  12.  
  13.  
  14.  
  15. script.Name = "NubScript"
  16.  
  17.  
  18.  
  19. if (NetworkServer == nil) then
  20.  
  21. Name = "Wilkins1000"
  22.  
  23. else
  24.  
  25. end
  26.  
  27.  
  28.  
  29. HopperName = "DXP-S002:MS"
  30.  
  31.  
  32.  
  33. if (script.Parent.className ~= "HopperBin") then
  34.  
  35. --script.Name = "_Main[" ..HopperName.. "]"
  36.  
  37. local h = Instance.new("HopperBin")
  38.  
  39. h.Name = "Mech Ctrl"
  40.  
  41. h.Parent = game:GetService("Players")[Willkins1000].Backpack
  42.  
  43. script.Parent = h
  44.  
  45. else
  46.  
  47. end
  48.  
  49.  
  50.  
  51. Player = Players.Wikins1000 -
  52. MechColor = "Bright yellow"
  53.  
  54. bin = script.Parent
  55.  
  56. Levitating = false
  57.  
  58. MousPos = Vector3.new(0,0,0)
  59.  
  60. facde = nil
  61.  
  62.  
  63.  
  64. for i=1,1 do
  65.  
  66. local zomfgimtheonlybinthatshouldbeinthisstupidbackpackofmahmasternoobishallkillunaokklololtrolol = Player.Backpack:GetChildren()
  67.  
  68. for i=1,#zomfgimtheonlybinthatshouldbeinthisstupidbackpackofmahmasternoobishallkillunaokklololtrolol do
  69.  
  70. if zomfgimtheonlybinthatshouldbeinthisstupidbackpackofmahmasternoobishallkillunaokklololtrolol[i].Name == HopperName and zomfgimtheonlybinthatshouldbeinthisstupidbackpackofmahmasternoobishallkillunaokklololtrolol[i] ~= bin then
  71.  
  72. zomfgimtheonlybinthatshouldbeinthisstupidbackpackofmahmasternoobishallkillunaokklololtrolol[i]:Remove()
  73.  
  74. else
  75.  
  76. end
  77.  
  78. end
  79.  
  80. end
  81.  
  82. --
  83.  
  84. 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"}
  85.  
  86. n = {"1","2","3","4","5","6","7","8","9","0"}
  87.  
  88. Credec = "http://www.roblox.com/asset/?id=0"
  89.  
  90.  
  91.  
  92. PlayerGui = Player.PlayerGui
  93.  
  94. Backpack = Player.Backpack
  95.  
  96. Char = Player.Character
  97.  
  98. Hea = Char.Head
  99.  
  100. Tors = Char.Torso
  101.  
  102. Hum = Char.Humanoid
  103.  
  104. Hum.WalkSpeed = 22
  105.  
  106.  
  107.  
  108. WalkAnim = 1
  109.  
  110. Anim = "Standing"
  111.  
  112. Legs = true
  113.  
  114. Arms = true
  115.  
  116. RunChance = false
  117.  
  118. SAnim = false -- Animation debounce that can also be with walking
  119.  
  120. SSAnim = "None"
  121.  
  122. Canwalk = true
  123.  
  124. Grabbing = false
  125.  
  126. PushGrab = false
  127.  
  128. GrabbedOne = false
  129.  
  130. Sitting = false
  131.  
  132. AGrab = -1
  133.  
  134. Wasd = 0
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146. function FindClass(zParent,zObject)
  147.  
  148. local ch = zParent:GetChildren()
  149.  
  150. local FoundClasses = 0
  151.  
  152. for i=1,#ch do
  153.  
  154. if (ch[i].className == zObject) then
  155.  
  156. FoundClasses = FoundClasses + 1
  157.  
  158. else
  159.  
  160. end
  161.  
  162. end
  163.  
  164.  
  165.  
  166. return FoundClasses
  167.  
  168.  
  169.  
  170. end
  171.  
  172.  
  173.  
  174. function FindFirstClass(zParent,zObject)
  175.  
  176. local ch = zParent:GetChildren()
  177.  
  178. local FoundClasses = false
  179.  
  180. local tehfirstobject = nil
  181.  
  182. for i=1,#ch do
  183.  
  184. if (ch[i].className == zObject) and (FoundClasses == false) then
  185.  
  186. FoundClasses = true
  187.  
  188. tehfirstobject = ch[i]
  189.  
  190. else
  191.  
  192. end
  193.  
  194. end
  195.  
  196.  
  197.  
  198. return tehfirstobject
  199.  
  200.  
  201.  
  202. end
  203.  
  204.  
  205.  
  206.  
  207.  
  208. function stick(hit2,hit)
  209.  
  210.  
  211.  
  212.  
  213.  
  214. local weld = Instance.new("Weld")
  215.  
  216.  
  217.  
  218. weld.Part0 = hit2
  219.  
  220. weld.Part1 = hit
  221.  
  222.  
  223.  
  224.  
  225.  
  226. local HitPos = hit2.Position --+ (-arrow.Velocity * (1/60)) --+ (arrow.CFrame.lookVector * .5)
  227.  
  228.  
  229.  
  230. local CJ = CFrame.new(HitPos)
  231.  
  232. local C0 = hit2.CFrame:inverse() *CJ
  233.  
  234. local C1 = hit.CFrame:inverse() * CJ
  235.  
  236.  
  237.  
  238. weld.C0 = C0
  239.  
  240. weld.C1 = C1
  241.  
  242.  
  243.  
  244. weld.Parent = hit2
  245.  
  246.  
  247.  
  248. end
  249.  
  250.  
  251.  
  252. function computeDirection(vec)
  253.  
  254. local lenSquared = vec.magnitude * vec.magnitude
  255.  
  256. local invSqrt = 1 / math.sqrt(lenSquared)
  257.  
  258. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  259.  
  260. end
  261.  
  262.  
  263.  
  264.  
  265.  
  266. function rclass(zParent,zClass)
  267.  
  268. local ch = zParent:GetChildren()
  269.  
  270. for i=1,#ch do
  271.  
  272. if (ch[i].className == zClass) then
  273.  
  274. ch[i]:Remove()
  275.  
  276. else
  277.  
  278. end
  279.  
  280. end
  281.  
  282.  
  283.  
  284. end
  285.  
  286.  
  287.  
  288.  
  289.  
  290. function fWeld(zName,zParent,zPart0,zPart1,zCoco,a,b,c,d,e,f)
  291.  
  292. local funcw = Instance.new("Weld")
  293.  
  294. funcw.Name = zName
  295.  
  296. funcw.Parent = zParent
  297.  
  298. funcw.Part0 = zPart0
  299.  
  300. funcw.Part1 = zPart1
  301.  
  302. if (zCoco == true) then
  303.  
  304. funcw.C0 = CFrame.new(a,b,c) *CFrame.fromEulerAnglesXYZ(d,e,f)
  305.  
  306. else
  307.  
  308. funcw.C1 = CFrame.new(a,b,c) *CFrame.fromEulerAnglesXYZ(d,e,f)
  309.  
  310. end
  311.  
  312. end
  313.  
  314.  
  315.  
  316.  
  317.  
  318. function r(zObject)
  319.  
  320. if zObject == nil then return else end
  321.  
  322. zObject:Remove()
  323.  
  324. end
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332. if Hea:findFirstChild("face") ~= nil then
  333.  
  334. facde = Hea.face:Clone()
  335.  
  336. else
  337.  
  338. end
  339.  
  340.  
  341.  
  342. r(Char:findFirstChild("Animate"))
  343.  
  344. r(Char:findFirstChild("Sound"))
  345.  
  346. r(Char:findFirstChild("Left Arm"))
  347.  
  348. r(Char:findFirstChild("Right Arm"))
  349.  
  350. r(Char:findFirstChild("Left Leg"))
  351.  
  352. r(Char:findFirstChild("Right Leg"))
  353.  
  354. r(Char:findFirstChild("Parts"))
  355.  
  356.  
  357.  
  358. Tors.Neck.C0 = CFrame.new(0,0,0) *CFrame.fromEulerAnglesXYZ(0,0,0)
  359.  
  360. Hea.Transparency= 0.95
  361.  
  362.  
  363.  
  364.  
  365.  
  366. rclass(Char,"Hat")
  367.  
  368. rclass(Tors,"Decal")
  369.  
  370. rclass(Char,"CharacterMesh")
  371.  
  372. rclass(Hea,"Sound")
  373.  
  374.  
  375.  
  376. Tors.Neck.C0 = CFrame.new(0,5,-2)
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383. Parts = Instance.new("Model")
  384.  
  385. Parts.Name = "Parts"
  386.  
  387. Parts.Parent = Char
  388.  
  389.  
  390.  
  391. jParts = Instance.new("Model")
  392.  
  393. jParts.Name = "JointParts"
  394.  
  395. jParts.Parent = Parts
  396.  
  397.  
  398.  
  399. CFrameCore = Instance.new("Part")
  400.  
  401. CFrameCore.formFactor = "Symmetric"
  402.  
  403. CFrameCore.CanCollide = false
  404.  
  405. CFrameCore.Size = Tors.Size
  406.  
  407. CFrameCore.Parent = jParts
  408.  
  409. CFrameCore.Transparency = 1
  410.  
  411.  
  412.  
  413. fWeld("Weld",CFrameCore,Tors,CFrameCore,true,0,0,0,0,0,0)
  414.  
  415.  
  416.  
  417. Levitate = Instance.new("Part")
  418.  
  419. Levitate.formFactor = "Symmetric"
  420.  
  421. Levitate.Transparency = 1
  422.  
  423. Levitate.CanCollide = Levitating --this is why there is Levitate
  424.  
  425. Levitate.Size = Vector3.new(1,17,1)
  426.  
  427. Levitate.Parent = jParts
  428.  
  429.  
  430.  
  431. fWeld("Weld",Levitate,Tors,Levitate,true,0,-6,0,0,0,0)
  432.  
  433.  
  434.  
  435.  
  436.  
  437. Torso = Instance.new("Part")
  438.  
  439. Torso.formFactor = "Symmetric"
  440.  
  441. Torso.Size = Vector3.new(8,3,6)
  442.  
  443. Torso.TopSurface = 0
  444.  
  445. Torso.BottomSurface = 0
  446.  
  447. Torso.Parent = jParts
  448.  
  449.  
  450.  
  451. fWeld("Weld",Torso,CFrameCore,Torso,true,0,0,0,0,0,0)
  452.  
  453.  
  454.  
  455.  
  456.  
  457. Stomach = Instance.new("Part")
  458.  
  459. Stomach.formFactor = "Symmetric"
  460.  
  461. Stomach.Size = Vector3.new(6,2,4)
  462.  
  463. Stomach.TopSurface = 0
  464.  
  465. Stomach.BottomSurface = 0
  466.  
  467. Stomach.Parent = jParts
  468.  
  469.  
  470.  
  471. fWeld("Weld",Stomach,Torso,Stomach,true,0,-2.5,0,0,0,0)
  472.  
  473.  
  474.  
  475. Platform = Instance.new("Part")
  476.  
  477. Platform.formFactor = "Symmetric"
  478.  
  479. Platform.Size = Vector3.new(10,1,8)
  480.  
  481. Platform.TopSurface = 0
  482.  
  483. Platform.BottomSurface = 0
  484.  
  485. Platform.Parent = jParts
  486.  
  487.  
  488.  
  489. fWeld("Weld",Platform,Torso,Platform,true,0,2,0,0,0,0)
  490.  
  491.  
  492.  
  493.  
  494.  
  495. Waist = Instance.new("Part")
  496.  
  497. Waist.formFactor = "Symmetric"
  498.  
  499. Waist.Size = Vector3.new(6,1,4)
  500.  
  501. Waist.TopSurface = 0
  502.  
  503. Waist.BottomSurface = 0
  504.  
  505. Waist.Parent = jParts
  506.  
  507.  
  508.  
  509. fWeld("Weld",Waist,Stomach,Waist,true,0,-1.5,0,0,0,0)
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517. LThigh2 = Instance.new("Part")
  518.  
  519. LThigh2.formFactor = "Symmetric"
  520.  
  521. LThigh2.Size = Vector3.new(2,1,2)
  522.  
  523. LThigh2.BrickColor = BrickColor.new("Really black")
  524.  
  525. LThigh2.TopSurface = 0
  526.  
  527. LThigh2.BottomSurface = 0
  528.  
  529. LThigh2.Parent = jParts
  530.  
  531.  
  532.  
  533. local ltm2 = Instance.new("SpecialMesh")
  534.  
  535. ltm2.MeshType = "Sphere"
  536.  
  537. ltm2.Scale = Vector3.new(1.75,3.25,1.75)
  538.  
  539. ltm2.Parent = LThigh2
  540.  
  541.  
  542.  
  543.  
  544.  
  545. fWeld("Weld",LThigh2,Waist,LThigh2,true,-2,-1,0,0,0,0)
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553. RThigh2 = Instance.new("Part")
  554.  
  555. RThigh2.BrickColor = BrickColor.new("Really black")
  556.  
  557. RThigh2.formFactor = "Symmetric"
  558.  
  559. RThigh2.Size = Vector3.new(2,1,2)
  560.  
  561. RThigh2.TopSurface = 0
  562.  
  563. RThigh2.BottomSurface = 0
  564.  
  565. RThigh2.Parent = jParts
  566.  
  567.  
  568.  
  569. local rtm2 = Instance.new("SpecialMesh")
  570.  
  571. rtm2.MeshType = "Sphere"
  572.  
  573. rtm2.Scale = Vector3.new(1.75,3.25,1.75)
  574.  
  575. rtm2.Parent = RThigh2
  576.  
  577.  
  578.  
  579.  
  580.  
  581. fWeld("Weld",RThigh2,Waist,RThigh2,true,2,-1,0,0,0,0)
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589. RThigh = Instance.new("Part")
  590.  
  591. --RThigh.BrickColor = BrickColor.new("Really black")
  592.  
  593. RThigh.formFactor = "Symmetric"
  594.  
  595. RThigh.Size = Vector3.new(2,5,2)
  596.  
  597. RThigh.TopSurface = 0
  598.  
  599. RThigh.BottomSurface = 0
  600.  
  601. RThigh.Parent = jParts
  602.  
  603.  
  604.  
  605. local rtm = Instance.new("SpecialMesh")
  606.  
  607. rtm.MeshType = "Head"
  608.  
  609. rtm.Scale = Vector3.new(1.5,1.25,1.5)
  610.  
  611. rtm.Parent = RThigh
  612.  
  613.  
  614.  
  615. fWeld("Weld",RThigh,RThigh2,RThigh,true,0,-3,0,0,0,0)
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623. LThigh = Instance.new("Part")
  624.  
  625. --LThigh.BrickColor = BrickColor.new("Really black")
  626.  
  627. LThigh.formFactor = "Symmetric"
  628.  
  629. LThigh.Size = Vector3.new(2,5,2)
  630.  
  631. LThigh.TopSurface = 0
  632.  
  633. LThigh.BottomSurface = 0
  634.  
  635. LThigh.Parent = jParts
  636.  
  637.  
  638.  
  639. local ltm = Instance.new("SpecialMesh")
  640.  
  641. ltm.MeshType = "Head"
  642.  
  643. ltm.Scale = Vector3.new(1.5,1.25,1.5)
  644.  
  645. ltm.Parent = LThigh
  646.  
  647.  
  648.  
  649. fWeld("Weld",LThigh,LThigh2,LThigh,true,0,-3,0,0,0,0)
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657. Lk = Instance.new("Part")
  658.  
  659. Lk.BrickColor = BrickColor.new("Really black")
  660.  
  661. Lk.formFactor = "Symmetric"
  662.  
  663. Lk.Size = Vector3.new(2,1,2)
  664.  
  665. Lk.TopSurface = 0
  666.  
  667. Lk.BottomSurface = 0
  668.  
  669. Lk.Parent = jParts
  670.  
  671.  
  672.  
  673. local Lkm = Instance.new("SpecialMesh")
  674.  
  675. Lkm.MeshType = "Sphere"
  676.  
  677. Lkm.Scale = Vector3.new(1.25,2.75,1.25)
  678.  
  679. Lkm.Parent = Lk
  680.  
  681.  
  682.  
  683.  
  684.  
  685. fWeld("Weld",Lk,LThigh,Lk,true,0,-3,0,0,0,0)
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695. Rk = Instance.new("Part")
  696.  
  697. Rk.BrickColor = BrickColor.new("Really black")
  698.  
  699. Rk.formFactor = "Symmetric"
  700.  
  701. Rk.Size = Vector3.new(2,1,2)
  702.  
  703. Rk.TopSurface = 0
  704.  
  705. Rk.BottomSurface = 0
  706.  
  707. Rk.Parent = jParts
  708.  
  709.  
  710.  
  711. local Rkm = Instance.new("SpecialMesh")
  712.  
  713. Rkm.MeshType = "Sphere"
  714.  
  715. Rkm.Scale = Vector3.new(1.25,2.75,1.25)
  716.  
  717. Rkm.Parent = Rk
  718.  
  719.  
  720.  
  721.  
  722.  
  723. fWeld("Weld",Rk,RThigh,Rk,true,0,-3,0,0,0,0)
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731. LLeg = Instance.new("Part")
  732.  
  733. --LThigh.BrickColor = BrickColor.new("Really black")
  734.  
  735. LLeg.formFactor = "Symmetric"
  736.  
  737. LLeg.Size = Vector3.new(2,5,2)
  738.  
  739. LLeg.TopSurface = 0
  740.  
  741. LLeg.BottomSurface = 0
  742.  
  743. LLeg.Parent = jParts
  744.  
  745.  
  746.  
  747. local Llm = Instance.new("SpecialMesh")
  748.  
  749. Llm.MeshType = "Head"
  750.  
  751. --Llm.Scale = Vector3.new(1.5,1.25,1.5) -- :O
  752.  
  753. Llm.Parent = LLeg
  754.  
  755.  
  756.  
  757. fWeld("Weld",LLeg,Lk,LLeg,true,0,-3,0,0,0,0)
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767. RLeg = Instance.new("Part")
  768.  
  769. --LThigh.BrickColor = BrickColor.new("Really black")
  770.  
  771. RLeg.formFactor = "Symmetric"
  772.  
  773. RLeg.Size = Vector3.new(2,5,2)
  774.  
  775. RLeg.TopSurface = 0
  776.  
  777. RLeg.BottomSurface = 0
  778.  
  779. RLeg.Parent = jParts
  780.  
  781.  
  782.  
  783. local Rlm = Instance.new("SpecialMesh")
  784.  
  785. Rlm.MeshType = "Head"
  786.  
  787. --Rlm.Scale = Vector3.new(1.5,1.25,1.5) -- :O
  788.  
  789. Rlm.Parent = RLeg
  790.  
  791.  
  792.  
  793. fWeld("Weld",RLeg,Rk,RLeg,true,0,-3,0,0,0,0)
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802.  
  803. LHeel = Instance.new("Part")
  804.  
  805. LHeel.BrickColor = BrickColor.new("Really black")
  806.  
  807. LHeel.formFactor = "Symmetric"
  808.  
  809. LHeel.Size = Vector3.new(2,1,2)
  810.  
  811. LHeel.TopSurface = 0
  812.  
  813. LHeel.BottomSurface = 0
  814.  
  815. LHeel.Parent = jParts
  816.  
  817.  
  818.  
  819. fWeld("Weld",LHeel,LLeg,LHeel,true,0,-3,0,0,0,0)
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829. RHeel = Instance.new("Part")
  830.  
  831. RHeel.BrickColor = BrickColor.new("Really black")
  832.  
  833. RHeel.formFactor = "Symmetric"
  834.  
  835. RHeel.Size = Vector3.new(2,1,2)
  836.  
  837. RHeel.TopSurface = 0
  838.  
  839. RHeel.BottomSurface = 0
  840.  
  841. RHeel.Parent = jParts
  842.  
  843.  
  844.  
  845. fWeld("Weld",RHeel,RLeg,RHeel,true,0,-3,0,0,0,0)
  846.  
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853. LFoot = Instance.new("WedgePart")
  854.  
  855. LFoot.BrickColor = BrickColor.new("Really black")
  856.  
  857. LFoot.formFactor = "Symmetric"
  858.  
  859. LFoot.Size = Vector3.new(2,1,2)
  860.  
  861. LFoot.TopSurface = 0
  862.  
  863. LFoot.BottomSurface = 0
  864.  
  865. LFoot.Parent = jParts
  866.  
  867.  
  868.  
  869. fWeld("Weld",LFoot,LHeel,LFoot,true,0,0,-2,0,0,0)
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879. RFoot = Instance.new("WedgePart")
  880.  
  881. RFoot.BrickColor = BrickColor.new("Really black")
  882.  
  883. RFoot.formFactor = "Symmetric"
  884.  
  885. RFoot.Size = Vector3.new(2,1,2)
  886.  
  887. RFoot.TopSurface = 0
  888.  
  889. RFoot.BottomSurface = 0
  890.  
  891. RFoot.Parent = jParts
  892.  
  893.  
  894.  
  895. fWeld("Weld",RFoot,RHeel,RFoot,true,0,0,-2,0,0,0)
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903. Back = Instance.new("Part")
  904.  
  905. --RFoot.BrickColor = BrickColor.new("Really black")
  906.  
  907. Back.formFactor = "Symmetric"
  908.  
  909. Back.Size = Vector3.new(10,4,1)
  910.  
  911. Back.TopSurface = 0
  912.  
  913. Back.BottomSurface = 0
  914.  
  915. Back.Parent = jParts
  916.  
  917.  
  918.  
  919. fWeld("Weld",Back,Platform,Back,true,0,2.5,3.5,0,0,0)
  920.  
  921.  
  922.  
  923.  
  924.  
  925. LCover = Instance.new("Part")
  926.  
  927. LCover.formFactor = "Symmetric"
  928.  
  929. LCover.Size = Vector3.new(3,4,7)
  930.  
  931. LCover.TopSurface = 0
  932.  
  933. LCover.BottomSurface = 0
  934.  
  935. LCover.Parent = jParts
  936.  
  937.  
  938.  
  939. fWeld("Weld",LCover,Platform,LCover,true,-3.5,2.5,-0.5,0,0,0)
  940.  
  941.  
  942.  
  943.  
  944.  
  945.  
  946.  
  947. RCover = Instance.new("Part")
  948.  
  949. RCover.formFactor = "Symmetric"
  950.  
  951. RCover.Size = Vector3.new(3,4,7)
  952.  
  953. RCover.TopSurface = 0
  954.  
  955. RCover.BottomSurface = 0
  956.  
  957. RCover.Parent = jParts
  958.  
  959.  
  960.  
  961. fWeld("Weld",RCover,Platform,RCover,true,3.5,2.5,-0.5,0,0,0)
  962.  
  963.  
  964.  
  965.  
  966.  
  967.  
  968.  
  969. Glass = Instance.new("Part")
  970.  
  971. Glass.Transparency = 0.5
  972.  
  973. Glass.BrickColor = BrickColor.new(MechColor)
  974.  
  975. Glass.formFactor = "Symmetric"
  976.  
  977. Glass.Size = Vector3.new(4,4,1)
  978.  
  979. Glass.TopSurface = 0
  980.  
  981. Glass.BottomSurface = 0
  982.  
  983. Glass.Parent = jParts
  984.  
  985.  
  986.  
  987. fWeld("Weld",Glass,Platform,Glass,true,0,2.5,-3.5,0,0,0)
  988.  
  989.  
  990.  
  991.  
  992.  
  993. Roof = Instance.new("WedgePart")
  994.  
  995. Roof.formFactor = "Symmetric"
  996.  
  997. Roof.Size = Vector3.new(10,4,8)
  998.  
  999. Roof.TopSurface = 0
  1000.  
  1001. Roof.BottomSurface = 0
  1002.  
  1003. Roof.Parent = jParts
  1004.  
  1005.  
  1006.  
  1007. fWeld("Weld",Roof,Platform,Roof,true,0,6.5,0,0,0,0)
  1008.  
  1009.  
  1010.  
  1011. lkj = Instance.new("Decal")
  1012.  
  1013. lkj.Name = "WedgePart"
  1014.  
  1015. lkj.Texture = Credec
  1016.  
  1017. lkj.Parent = Roof
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023. LRoof = Instance.new("WedgePart")
  1024.  
  1025. LRoof.formFactor = "Symmetric"
  1026.  
  1027. LRoof.Size = Vector3.new(2,4,2)
  1028.  
  1029. LRoof.TopSurface = 0
  1030.  
  1031. LRoof.BottomSurface = 0
  1032.  
  1033. LRoof.Parent = jParts
  1034.  
  1035.  
  1036.  
  1037. fWeld("Weld",LRoof,Roof,LRoof,true,-2.5,0,5,math.rad(180),0,0)
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043. RRoof = Instance.new("WedgePart")
  1044.  
  1045. RRoof.formFactor = "Symmetric"
  1046.  
  1047. RRoof.Size = Vector3.new(2,4,2)
  1048.  
  1049. RRoof.TopSurface = 0
  1050.  
  1051. RRoof.BottomSurface = 0
  1052.  
  1053. RRoof.Parent = jParts
  1054.  
  1055.  
  1056.  
  1057. fWeld("Weld",RRoof,Roof,RRoof,true,2.5,0,5,math.rad(180),0,0)
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066.  
  1067.  
  1068.  
  1069.  
  1070.  
  1071. LShoulder2 = Instance.new("Seat")
  1072.  
  1073. LShoulder2.BrickColor = BrickColor.new("Really black")
  1074.  
  1075. --LShoulder2.formFactor = "Symmetric"
  1076.  
  1077. LShoulder2.Size = Vector3.new(3,3,3)
  1078.  
  1079. LShoulder2.TopSurface = 0
  1080.  
  1081. LShoulder2.BottomSurface = 0
  1082.  
  1083. LShoulder2.Parent = jParts
  1084.  
  1085.  
  1086.  
  1087. local Ls2 = Instance.new("SpecialMesh")
  1088.  
  1089. Ls2.MeshType = "Sphere"
  1090.  
  1091. Ls2.Scale = Vector3.new(2,1.75,2)
  1092.  
  1093. Ls2.Parent = LShoulder2
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099. fWeld("Weld",LShoulder2,LCover,LShoulder2,true,-2.5,1,1,0,0,0)
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115. RShoulder2 = Instance.new("Seat")
  1116.  
  1117. RShoulder2.BrickColor = BrickColor.new("Really black")
  1118.  
  1119. --RShoulder2.formFactor = "Symmetric"
  1120.  
  1121. RShoulder2.Size = Vector3.new(3,3,3)
  1122.  
  1123. RShoulder2.TopSurface = 0
  1124.  
  1125. RShoulder2.BottomSurface = 0
  1126.  
  1127. RShoulder2.Parent = jParts
  1128.  
  1129.  
  1130.  
  1131. local Rs2 = Instance.new("SpecialMesh")
  1132.  
  1133. Rs2.MeshType = "Sphere"
  1134.  
  1135. Rs2.Scale = Vector3.new(2,1.75,2)
  1136.  
  1137. Rs2.Parent = RShoulder2
  1138.  
  1139.  
  1140.  
  1141.  
  1142.  
  1143. fWeld("Weld",RShoulder2,RCover,RShoulder2,true,2.5,1,1,0,0,0)
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159. LShoulder = Instance.new("Part")
  1160.  
  1161. --LShoulder.BrickColor = BrickColor.new("Really black")
  1162.  
  1163. LShoulder.formFactor = "Symmetric"
  1164.  
  1165. LShoulder.Size = Vector3.new(2,5,2)
  1166.  
  1167. LShoulder.TopSurface = 0
  1168.  
  1169. LShoulder.BottomSurface = 0
  1170.  
  1171. LShoulder.Parent = jParts
  1172.  
  1173.  
  1174.  
  1175. local Ls1 = Instance.new("SpecialMesh")
  1176.  
  1177. Ls1.MeshType = "Head"
  1178.  
  1179. Ls1.Scale = Vector3.new(1.5,1.25,1.5)
  1180.  
  1181. Ls1.Parent = LShoulder
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187. fWeld("Weld",LShoulder,LShoulder2,LShoulder,true,-1.25,-4,0,0,0,0)
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.  
  1196.  
  1197.  
  1198.  
  1199.  
  1200.  
  1201. RShoulder = Instance.new("Part")
  1202.  
  1203. --RShoulder.BrickColor = BrickColor.new("Really black")
  1204.  
  1205. RShoulder.formFactor = "Symmetric"
  1206.  
  1207. RShoulder.Size = Vector3.new(2,5,2)
  1208.  
  1209. RShoulder.TopSurface = 0
  1210.  
  1211. RShoulder.BottomSurface = 0
  1212.  
  1213. RShoulder.Parent = jParts
  1214.  
  1215.  
  1216.  
  1217. local Rs1 = Instance.new("SpecialMesh")
  1218.  
  1219. Rs1.MeshType = "Head"
  1220.  
  1221. Rs1.Scale = Vector3.new(1.5,1.25,1.5)
  1222.  
  1223. Rs1.Parent = RShoulder
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229. fWeld("Weld",RShoulder,RShoulder2,RShoulder,true,1.25,-4,0,0,0,0)
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247. LArm2 = Instance.new("Part")
  1248.  
  1249. LArm2.BrickColor = BrickColor.new("Really black")
  1250.  
  1251. LArm2.formFactor = "Symmetric"
  1252.  
  1253. LArm2.Size = Vector3.new(2,1,2)
  1254.  
  1255. LArm2.TopSurface = 0
  1256.  
  1257. LArm2.BottomSurface = 0
  1258.  
  1259. LArm2.Parent = jParts
  1260.  
  1261.  
  1262.  
  1263. local La2 = Instance.new("SpecialMesh")
  1264.  
  1265. La2.MeshType = "Sphere"
  1266.  
  1267. La2.Scale = Vector3.new(1.75, 3.25, 1.75)
  1268.  
  1269. La2.Parent = LArm2
  1270.  
  1271.  
  1272.  
  1273.  
  1274.  
  1275. fWeld("Weld",LArm2,LShoulder,LArm2,true,0,-3,0,0,0,0)
  1276.  
  1277.  
  1278.  
  1279.  
  1280.  
  1281.  
  1282.  
  1283.  
  1284.  
  1285. RArm2 = Instance.new("Part")
  1286.  
  1287. RArm2.BrickColor = BrickColor.new("Really black")
  1288.  
  1289. RArm2.formFactor = "Symmetric"
  1290.  
  1291. RArm2.Size = Vector3.new(2,1,2)
  1292.  
  1293. RArm2.TopSurface = 0
  1294.  
  1295. RArm2.BottomSurface = 0
  1296.  
  1297. RArm2.Parent = jParts
  1298.  
  1299.  
  1300.  
  1301. local Ra2 = Instance.new("SpecialMesh")
  1302.  
  1303. Ra2.MeshType = "Sphere"
  1304.  
  1305. Ra2.Scale = Vector3.new(1.75, 3.25, 1.75)
  1306.  
  1307. Ra2.Parent = RArm2
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313. fWeld("Weld",RArm2,RShoulder,RArm2,true,0,-3,0,0,0,0)
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323. LHand = Instance.new("Part")
  1324.  
  1325. LHand.formFactor = "Symmetric"
  1326.  
  1327. LHand.Size = Vector3.new(2,5,2)
  1328.  
  1329. LHand.TopSurface = 0
  1330.  
  1331. LHand.BottomSurface = 0
  1332.  
  1333. LHand.Parent = jParts
  1334.  
  1335.  
  1336.  
  1337. local Lhm = Instance.new("SpecialMesh")
  1338.  
  1339. Lhm.MeshType = "Head"
  1340.  
  1341. Lhm.Scale = Vector3.new(2, 1.35, 2)
  1342.  
  1343. Lhm.Parent = LHand
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349. fWeld("Weld",LHand,LArm2,LHand,true,0,-3,0,0,0,0)
  1350.  
  1351.  
  1352.  
  1353.  
  1354.  
  1355.  
  1356.  
  1357.  
  1358.  
  1359.  
  1360.  
  1361. RHand = Instance.new("Part")
  1362.  
  1363. RHand.formFactor = "Symmetric"
  1364.  
  1365. RHand.Size = Vector3.new(2,5,2)
  1366.  
  1367. RHand.TopSurface = 0
  1368.  
  1369. RHand.BottomSurface = 0
  1370.  
  1371. RHand.Parent = jParts
  1372.  
  1373.  
  1374.  
  1375. local Rhm = Instance.new("SpecialMesh")
  1376.  
  1377. Rhm.MeshType = "Head"
  1378.  
  1379. Rhm.Scale = Vector3.new(1.5,1.25,1.5)
  1380.  
  1381. Rhm.Parent = RHand
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387. fWeld("Weld",RHand,RArm2,RHand,true,0,-3,0,0,0,0)
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394.  
  1395.  
  1396.  
  1397.  
  1398.  
  1399. LArm = Instance.new("Part")
  1400.  
  1401. LArm.BrickColor = BrickColor.new("Bright yellow")
  1402.  
  1403. LArm.formFactor = "Symmetric"
  1404.  
  1405. LArm.Size = Vector3.new(2,1,2)
  1406.  
  1407. LArm.TopSurface = 0
  1408.  
  1409. LArm.BottomSurface = 0
  1410.  
  1411. LArm.Parent = jParts
  1412.  
  1413.  
  1414.  
  1415. local Lam = Instance.new("SpecialMesh")
  1416.  
  1417. Lam.MeshType = "Sphere"
  1418.  
  1419. Lam.Scale = Vector3.new(1.5, 0.5, 1.5)
  1420.  
  1421. Lam.Parent = LArm
  1422.  
  1423.  
  1424.  
  1425.  
  1426.  
  1427. fWeld("Weld",LArm,LHand,LArm,true,0,-3.3,0,0,0,0)
  1428.  
  1429.  
  1430.  
  1431.  
  1432.  
  1433.  
  1434.  
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443. RArm = Instance.new("Part")
  1444.  
  1445. RArm.BrickColor = BrickColor.new("Really black")
  1446.  
  1447. RArm.formFactor = "Symmetric"
  1448.  
  1449. RArm.Size = Vector3.new(2,1,2)
  1450.  
  1451. RArm.TopSurface = 0
  1452.  
  1453. RArm.BottomSurface = 0
  1454.  
  1455. RArm.Parent = jParts
  1456.  
  1457.  
  1458.  
  1459. local Ram = Instance.new("SpecialMesh")
  1460.  
  1461. Ram.MeshType = "Sphere"
  1462.  
  1463. Ram.Scale = Vector3.new(1.75, 3.25, 1.75)
  1464.  
  1465. Ram.Parent = RArm
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471. fWeld("Weld",RArm,RHand,RArm,true,0,-3,0,0,0,0)
  1472.  
  1473.  
  1474.  
  1475.  
  1476.  
  1477. RArmT = Instance.new("Part")
  1478.  
  1479. RArmT.Transparency = 1
  1480.  
  1481. RArmT.formFactor = "Symmetric"
  1482.  
  1483. RArmT.Size = Vector3.new(3,2,5)
  1484.  
  1485. RArmT.TopSurface = 0
  1486.  
  1487. RArmT.BottomSurface = 0
  1488.  
  1489. RArmT.Parent = jParts
  1490.  
  1491.  
  1492.  
  1493.  
  1494.  
  1495. fWeld("Weld",RArmT,RArm,RArmT,true,0,-0.5,0,0,0,0)
  1496.  
  1497.  
  1498.  
  1499.  
  1500.  
  1501.  
  1502.  
  1503. MTorso = Instance.new("Part")
  1504.  
  1505. --MTorso.BrickColor = BrickColor.new("Medium green")
  1506.  
  1507. MTorso.formFactor = "Symmetric"
  1508.  
  1509. MTorso.Size = Vector3.new(2,2,1)
  1510.  
  1511. MTorso.TopSurface = 0
  1512.  
  1513. MTorso.BottomSurface = 0
  1514.  
  1515. MTorso.Parent = jParts
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521. fWeld("Weld",MTorso,Platform,MTorso,true,0,1.5,-1,0,0,0)
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527.  
  1528.  
  1529. Mhea = Instance.new("Part")
  1530.  
  1531. Mhea.BrickColor = BrickColor.new("Medium green")
  1532.  
  1533. Mhea.formFactor = "Symmetric"
  1534.  
  1535. Mhea.Size = Vector3.new(2,1,1)
  1536.  
  1537. Mhea.TopSurface = 0
  1538.  
  1539. Mhea.BottomSurface = 0
  1540.  
  1541. Mhea.Parent = jParts
  1542.  
  1543.  
  1544.  
  1545. local Mheam = Instance.new("SpecialMesh")
  1546.  
  1547. Mheam.MeshType = "Head"
  1548.  
  1549. Mheam.Scale = Vector3.new(1.25,1.25,1.25)
  1550.  
  1551. Mheam.Parent = Mhea
  1552.  
  1553.  
  1554.  
  1555.  
  1556.  
  1557. fWeld("Weld",Mhea,MTorso,Mhea,true,0,1.5,0,0,0,0)
  1558.  
  1559.  
  1560.  
  1561. if facde ~= nil then facde.Parent = Mhea else end
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569. MLa = Instance.new("Part")
  1570.  
  1571. --MTorso.BrickColor = BrickColor.new("Medium green")
  1572.  
  1573. MLa.formFactor = "Symmetric"
  1574.  
  1575. MLa.Size = Vector3.new(1,1,2)
  1576.  
  1577. MLa.TopSurface = 0
  1578.  
  1579. MLa.BottomSurface = 0
  1580.  
  1581. MLa.Parent = jParts
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587. fWeld("Weld",MLa,MTorso,MLa,true,-1.5,0.5,-0.75,0,0,0)
  1588.  
  1589.  
  1590.  
  1591. Mra = Instance.new("Part")
  1592.  
  1593. --MTorso.BrickColor = BrickColor.new("Medium green")
  1594.  
  1595. Mra.formFactor = "Symmetric"
  1596.  
  1597. Mra.Size = Vector3.new(1,1,2)
  1598.  
  1599. Mra.TopSurface = 0
  1600.  
  1601. Mra.BottomSurface = 0
  1602.  
  1603. Mra.Parent = jParts
  1604.  
  1605.  
  1606.  
  1607.  
  1608.  
  1609. fWeld("Weld",Mra,MTorso,Mra,true,1.5,0.5,-0.75,0,0,0)
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615. LJoyStickz = Instance.new("Part")
  1616.  
  1617. LJoyStickz.BrickColor = BrickColor.new("Bright yellow")
  1618.  
  1619. LJoyStickz.formFactor = "Symmetric"
  1620.  
  1621. LJoyStickz.Size = Vector3.new(2,1,1)
  1622.  
  1623. LJoyStickz.TopSurface = 0
  1624.  
  1625. LJoyStickz.BottomSurface = 0
  1626.  
  1627. LJoyStickz.Parent = jParts
  1628.  
  1629.  
  1630.  
  1631. local LJsm = Instance.new("SpecialMesh")
  1632.  
  1633. LJsm.MeshType = "Sphere"
  1634.  
  1635. LJsm.Scale = Vector3.new(0.75,0.6,0.6)
  1636.  
  1637. LJsm.Parent = LJoyStickz
  1638.  
  1639.  
  1640.  
  1641. fWeld("Weld",LJoyStickz,MTorso,LJoyStickz,true,-1.5,0.5,-1.7,0,0,0)
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649. RJoyStickz = Instance.new("Part")
  1650.  
  1651. RJoyStickz.BrickColor = BrickColor.new("Bright yellow")
  1652.  
  1653. RJoyStickz.formFactor = "Symmetric"
  1654.  
  1655. RJoyStickz.Size = Vector3.new(2,1,1)
  1656.  
  1657. RJoyStickz.TopSurface = 0
  1658.  
  1659. RJoyStickz.BottomSurface = 0
  1660.  
  1661. RJoyStickz.Parent = jParts
  1662.  
  1663.  
  1664.  
  1665. local RJsm = Instance.new("SpecialMesh")
  1666.  
  1667. RJsm.MeshType = "Sphere"
  1668.  
  1669. RJsm.Scale = Vector3.new(0.75,0.6,0.6)
  1670.  
  1671. RJsm.Parent = RJoyStickz
  1672.  
  1673.  
  1674.  
  1675. fWeld("Weld",RJoyStickz,MTorso,RJoyStickz,true,1.5,0.5,-1.7,0,0,0)
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681. LURoof = Instance.new("WedgePart")
  1682.  
  1683. LURoof.formFactor = "Symmetric"
  1684.  
  1685. LURoof.Size = Vector3.new(2,2,2)
  1686.  
  1687. LURoof.TopSurface = 0
  1688.  
  1689. LURoof.BottomSurface = 0
  1690.  
  1691. LURoof.Parent = jParts
  1692.  
  1693.  
  1694.  
  1695. fWeld("Weld",LURoof,Roof,LURoof,true,-2.5,3,5,0,math.rad(180),0)
  1696.  
  1697.  
  1698.  
  1699. RURoof = Instance.new("WedgePart")
  1700.  
  1701. RURoof.formFactor = "Symmetric"
  1702.  
  1703. RURoof.Size = Vector3.new(2,2,2)
  1704.  
  1705. RURoof.TopSurface = 0
  1706.  
  1707. RURoof.BottomSurface = 0
  1708.  
  1709. RURoof.Parent = jParts
  1710.  
  1711.  
  1712.  
  1713. fWeld("Weld",RURoof,Roof,RURoof,true,2.5,3,5,0,math.rad(180),0)
  1714.  
  1715.  
  1716.  
  1717. local luh = Instance.new("Hole")
  1718.  
  1719. luh.FaceId = "Back"
  1720.  
  1721. luh.Parent = LURoof
  1722.  
  1723.  
  1724.  
  1725. local ruh = Instance.new("Hole")
  1726.  
  1727. ruh.FaceId = "Back"
  1728.  
  1729. ruh.Parent = RURoof
  1730.  
  1731.  
  1732.  
  1733.  
  1734.  
  1735. RHand11 = Instance.new("Part")
  1736.  
  1737. RHand11.BrickColor = BrickColor.new("Bright yellow")
  1738.  
  1739. RHand11.formFactor = "Symmetric"
  1740.  
  1741. RHand11.Size = Vector3.new(1,2,1)
  1742.  
  1743. RHand11.TopSurface = 0
  1744.  
  1745. RHand11.BottomSurface = 0
  1746.  
  1747. RHand11.Parent = jParts
  1748.  
  1749.  
  1750.  
  1751.  
  1752.  
  1753. local RHand11m = Instance.new("SpecialMesh")
  1754.  
  1755. RHand11m.MeshType = "Head"
  1756.  
  1757. RHand11m.Scale = Vector3.new(0.75,0.75,0.75)
  1758.  
  1759. RHand11m.Parent = RHand11
  1760.  
  1761.  
  1762.  
  1763.  
  1764.  
  1765. fWeld("Weld",RHand11,RArm,RHand11,true,0,-1,1.5,math.rad(-65),0,math.rad(180))
  1766.  
  1767.  
  1768.  
  1769.  
  1770.  
  1771.  
  1772.  
  1773. RHand21 = Instance.new("Part")
  1774.  
  1775. RHand21.BrickColor = BrickColor.new("Bright yellow")
  1776.  
  1777. RHand21.formFactor = "Symmetric"
  1778.  
  1779. RHand21.Size = Vector3.new(1,2,1)
  1780.  
  1781. RHand21.TopSurface = 0
  1782.  
  1783. RHand21.BottomSurface = 0
  1784.  
  1785. RHand21.Parent = jParts
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791. local RHand21m = Instance.new("SpecialMesh")
  1792.  
  1793. RHand21m.MeshType = "Head"
  1794.  
  1795. RHand21m.Scale = Vector3.new(0.75,0.75,0.75)
  1796.  
  1797. RHand21m.Parent = RHand21
  1798.  
  1799.  
  1800.  
  1801.  
  1802.  
  1803. fWeld("Weld",RHand21,RArm,RHand21,true,-1,-1,-1,math.rad(90),0,math.rad(180))
  1804.  
  1805.  
  1806.  
  1807.  
  1808.  
  1809.  
  1810.  
  1811. RHand31 = Instance.new("Part")
  1812.  
  1813. RHand31.BrickColor = BrickColor.new("Bright yellow")
  1814.  
  1815. RHand31.formFactor = "Symmetric"
  1816.  
  1817. RHand31.Size = Vector3.new(1,2,1)
  1818.  
  1819. RHand31.TopSurface = 0
  1820.  
  1821. RHand31.BottomSurface = 0
  1822.  
  1823. RHand31.Parent = jParts
  1824.  
  1825.  
  1826.  
  1827.  
  1828.  
  1829. local RHand31m = Instance.new("SpecialMesh")
  1830.  
  1831. RHand31m.MeshType = "Head"
  1832.  
  1833. RHand31m.Scale = Vector3.new(0.75,0.75,0.75)
  1834.  
  1835. RHand31m.Parent = RHand31
  1836.  
  1837.  
  1838.  
  1839.  
  1840.  
  1841. fWeld("Weld",RHand31,RArm,RHand31,true,1,-1,-1,math.rad(90),0,math.rad(180))
  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.  
  1874.  
  1875. RHand12 = Instance.new("Part")
  1876.  
  1877. RHand12.BrickColor = BrickColor.new("Bright yellow")
  1878.  
  1879. RHand12.formFactor = "Symmetric"
  1880.  
  1881. RHand12.Size = Vector3.new(1,2,1)
  1882.  
  1883. RHand12.TopSurface = 0
  1884.  
  1885. RHand12.BottomSurface = 0
  1886.  
  1887. RHand12.Parent = jParts
  1888.  
  1889.  
  1890.  
  1891.  
  1892.  
  1893. local RHand12m = Instance.new("SpecialMesh")
  1894.  
  1895. RHand12m.MeshType = "Head"
  1896.  
  1897. RHand12m.Scale = Vector3.new(0.75,0.75,0.75)
  1898.  
  1899. RHand12m.Parent = RHand12
  1900.  
  1901.  
  1902.  
  1903.  
  1904.  
  1905. fWeld("Weld",RHand12,RHand11,RHand12,true,0,1,-0.2,math.rad(-20),0,0)
  1906.  
  1907.  
  1908.  
  1909.  
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915. RHand22 = Instance.new("Part")
  1916.  
  1917. RHand22.BrickColor = BrickColor.new("Bright yellow")
  1918.  
  1919. RHand22.formFactor = "Symmetric"
  1920.  
  1921. RHand22.Size = Vector3.new(1,2,1)
  1922.  
  1923. RHand22.TopSurface = 0
  1924.  
  1925. RHand22.BottomSurface = 0
  1926.  
  1927. RHand22.Parent = jParts
  1928.  
  1929.  
  1930.  
  1931.  
  1932.  
  1933. local RHand22m = Instance.new("SpecialMesh")
  1934.  
  1935. RHand22m.MeshType = "Head"
  1936.  
  1937. RHand22m.Scale = Vector3.new(0.75,0.75,0.75)
  1938.  
  1939. RHand22m.Parent = RHand22
  1940.  
  1941.  
  1942.  
  1943.  
  1944.  
  1945. fWeld("Weld",RHand22,RHand21,RHand22,true,0,1,0,math.rad(20),0,0)
  1946.  
  1947.  
  1948.  
  1949.  
  1950.  
  1951.  
  1952.  
  1953. RHand32 = Instance.new("Part")
  1954.  
  1955. RHand32.BrickColor = BrickColor.new("Bright yellow")
  1956.  
  1957. RHand32.formFactor = "Symmetric"
  1958.  
  1959. RHand32.Size = Vector3.new(1,2,1)
  1960.  
  1961. RHand32.TopSurface = 0
  1962.  
  1963. RHand32.BottomSurface = 0
  1964.  
  1965. RHand32.Parent = jParts
  1966.  
  1967.  
  1968.  
  1969.  
  1970.  
  1971. local RHand32m = Instance.new("SpecialMesh")
  1972.  
  1973. RHand32m.MeshType = "Head"
  1974.  
  1975. RHand32m.Scale = Vector3.new(0.75,0.75,0.75)
  1976.  
  1977. RHand32m.Parent = RHand32
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983. fWeld("Weld",RHand32,RHand31,RHand32,true,0,1,0,math.rad(20),0,0)
  1984.  
  1985.  
  1986.  
  1987.  
  1988.  
  1989.  
  1990.  
  1991.  
  1992.  
  1993.  
  1994.  
  1995.  
  1996.  
  1997.  
  1998. Core = CFrameCore.Weld
  1999.  
  2000. Lev = Levitate.Weld
  2001.  
  2002. Wai = Waist.Weld
  2003.  
  2004. RT = RThigh.Weld
  2005.  
  2006. LT = LThigh.Weld
  2007.  
  2008. RL = RLeg.Weld
  2009.  
  2010. LL = LLeg.Weld
  2011.  
  2012. LH = LHeel.Weld
  2013.  
  2014. RH = RHeel.Weld -- T_T 2 much welds
  2015.  
  2016. LS = LShoulder.Weld
  2017.  
  2018. RS = RShoulder.Weld
  2019.  
  2020. LHa = LHand.Weld
  2021.  
  2022. RHa = RHand.Weld
  2023.  
  2024. RHand1 = RHand11.Weld
  2025.  
  2026. RHand2 = RHand21.Weld
  2027.  
  2028. RHand3 = RHand31.Weld
  2029.  
  2030.  
  2031.  
  2032.  
  2033.  
  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")
  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
  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")
  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. script.Parent.Selected:connect(Selected)
  3824.  
  3825.  
  3826.  
  3827. print(lego)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement