Advertisement
doryna2281337

Untitled

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