Advertisement
Thefrozen106

Good Guy Robot

Jul 30th, 2017
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.36 KB | None | 0 0
  1. --Good Guy Shoes : https://youtu.be/OEfOkcmXEyQ?t=1m50s
  2.  
  3. --[[
  4. Great Roi made by Fenrier.
  5. ]]
  6. Player = game:GetService("Players").LocalPlayer
  7. PlayerName=Player.Name
  8. Character = Player.Character
  9. PlayerGui = Player.PlayerGui
  10. Backpack = Player.Backpack
  11. Torso = Character.Torso
  12. Head = Character.Head
  13. Humanoid = Character.Humanoid
  14. LeftArm = Character["Left Arm"]
  15. LeftLeg = Character["Left Leg"]
  16. RightArm = Character["Right Arm"]
  17. RightLeg = Character["Right Leg"]
  18. LS = Torso["Left Shoulder"]
  19. LH = Torso["Left Hip"]
  20. RS = Torso["Right Shoulder"]
  21. RH = Torso["Right Hip"]
  22. Neck = Torso.Neck
  23. it=Instance.new
  24. vt=Vector3.new
  25. cf=CFrame.new
  26. euler=CFrame.fromEulerAnglesXYZ
  27. angles=CFrame.Angles
  28. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  29. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  30. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  31. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  32. attack = false
  33. attackdebounce = false
  34. debouncerockets=false
  35. debounceorb=false
  36. MMouse=nil
  37. idle=true
  38. doingidle=false
  39. doingwalk=false
  40. armwalk=false
  41. restarted=false
  42. holdrockets=false
  43. canidle=true
  44. aiming=false
  45. Mode="Robot"
  46. combo=0
  47. RootPart=Character.HumanoidRootPart
  48. workspace.CurrentCamera.CameraSubject=RootPart
  49. workspace.CurrentCamera.CameraType = "Track"
  50. RootJoint=RootPart.RootJoint
  51. RootCF=euler(-1.57,0,3.14)*cf(0,0,2.4)
  52. local RobotParts={}
  53. local RobotWelds={}
  54. local rocketlaunchparts={}
  55. do
  56. local PlayerColours = {
  57. BrickColor.new("Bright red"),
  58. BrickColor.new("Bright blue"),
  59. BrickColor.new("Earth green"),
  60. BrickColor.new("Bright violet"),
  61. BrickColor.new("Bright orange"),
  62. BrickColor.new("Bright yellow"),
  63. BrickColor.new("Light reddish violet"),
  64. BrickColor.new("Brick yellow"),
  65. }
  66. local GetNameValue
  67.  
  68. function GetChatColour(Name)
  69. return PlayerColours[GetNameValue(Name) + 1]
  70. end
  71.  
  72. function GetNameValue(Name)
  73. local Length = #Name
  74. local Value = 0
  75. for Index = 1, Length do
  76. local CharacterValue = string.byte(string.sub(Name, Index, Index))
  77. if (Length - Index + 1) % 4 < 2 then
  78. Value = Value + CharacterValue
  79. else
  80. Value = Value - CharacterValue
  81. end
  82. end
  83. return Value % 8
  84. end
  85. end
  86.  
  87. print(GetChatColour(PlayerName))
  88. Color1=GetChatColour(PlayerName)
  89. Color2="Medium stone grey"
  90. Color3="Dark stone grey"
  91. Color4="Black"
  92. --player
  93. player = nil
  94. --save shoulders
  95. RSH, LSH = nil, nil
  96. --welds
  97. RW, LW , RWL, LWL = it("Weld"), it("Weld"), it("Weld"), it("Weld")
  98. RW.Name="Right Shoulder"
  99. LW.Name="Left Shoulder"
  100. RWL.Name="Right Hip"
  101. LWL.Name="Left Hip"
  102.  
  103.  
  104. if Character:findFirstChild("Roi",true) ~= nil then
  105. Character:findFirstChild("Roi",true).Parent = nil
  106. end
  107. if Character:findFirstChild("Right Fist",true) ~= nil then
  108. Character:findFirstChild("Right Fist",true).Parent = nil
  109. end
  110. if Character:findFirstChild("Left Fist",true) ~= nil then
  111. Character:findFirstChild("Left Fist",true).Parent = nil
  112. end
  113. if Character:findFirstChild("Block",true) ~= nil then
  114. Character:findFirstChild("Block",true).Parent = nil
  115. end
  116.  
  117.  
  118. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  119. local fp = it("Part")
  120. fp.formFactor = formfactor
  121. fp.Parent = parent
  122. fp.Reflectance = reflectance
  123. fp.Transparency = transparency
  124. fp.CanCollide = false
  125. fp.Locked=true
  126. fp.BrickColor = brickcolor
  127. fp.Name = name
  128. fp.Size = size
  129. fp.Position = Torso.Position
  130. fp.BottomSurface="Smooth"
  131. fp.TopSurface="Smooth"
  132. fp:BreakJoints()
  133. table.insert(RobotParts,fp)
  134. return fp
  135. end
  136.  
  137. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  138. local mesh = it(Mesh)
  139. mesh.Parent = part
  140. if Mesh=="SpecialMesh" then
  141. mesh.MeshType = meshtype
  142. mesh.MeshId = meshid
  143. end
  144. mesh.Offset=offset
  145. mesh.Scale=scale
  146. return mesh
  147. end
  148.  
  149. function weld(parent,part0,part1,c0)
  150. local weld = it("Weld")
  151. weld.Parent = parent
  152. weld.Part0 = part0
  153. weld.Part1 = part1
  154. weld.C0 = c0
  155. table.insert(RobotWelds,weld)
  156. return weld
  157. end
  158.  
  159. local modelzorz = Instance.new("Model")
  160. modelzorz.Parent = Character
  161. modelzorz.Name = "Roi"
  162. fist1=Instance.new("Model")
  163. fist1.Parent=Character
  164. fist1.Name="Left Fist"
  165. fist2=Instance.new("Model")
  166. fist2.Parent=Character
  167. fist2.Name="Right Fist"
  168.  
  169. Torso.CFrame=Torso.CFrame*cf(0,10,0)
  170. tors1=part(3,modelzorz,0,0,Color1,"Torso1",vt(1,1,1))
  171. RootJoint.Part1=tors1
  172. tors2=part(3,modelzorz,0,0,Color1,"Torso2",vt(1,1,1))
  173. tors3=part(3,modelzorz,0,0,BrickColor.new(Color2),"Torso3",vt(1,1,1))
  174. tors4=part(3,modelzorz,0,0,BrickColor.new(Color2),"Torso4",vt(1,1,1))
  175. tors5=part(3,modelzorz,0,0,BrickColor.new(Color3),"Torso5",vt(1,1,1))
  176. tors6=part(3,modelzorz,0,0,BrickColor.new(Color3),"Torso6",vt(1,1,1))
  177. tors7=part(3,modelzorz,0,0,Color1,"Torso7",vt(1,1,1))
  178. tors8=part(3,modelzorz,0,0,BrickColor.new(Color3),"Torso8",vt(1,1,1))
  179. tors9=part(3,modelzorz,0,0,Color1,"Torso9",vt(1,1,1))
  180. tors10=part(3,modelzorz,0,0,BrickColor.new(Color3),"Torso10",vt(1,1,1))
  181. tors11=part(3,modelzorz,0,0,BrickColor.new(Color3),"Torso11",vt(1,1,1))
  182. tors12=part(3,modelzorz,0,0,BrickColor.new(Color3),"Torso12",vt(1,1,1))
  183. tors13=part(3,modelzorz,0,0,Color1,"Torso13",vt(1,1,1))
  184. tors14=part(3,modelzorz,0,0,BrickColor.new(Color4),"Torso14",vt(1,1,1))
  185. tors15=part(3,modelzorz,0,0,BrickColor.new(Color4),"Torso15",vt(1,1,1))
  186. tors16=part(3,modelzorz,0,0,BrickColor.new(Color4),"Torso16",vt(1,1,1))
  187. tors17=part(3,modelzorz,0,0,BrickColor.new(Color3),"Torso17",vt(1,1,1))
  188. tors18=part(3,modelzorz,0,1,BrickColor.new("Really black"),"Torso Hitbox",vt(5,4,3.5))
  189. tors18.CanCollide=true
  190.  
  191. lleg1=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Left Leg1",vt(1,1,1))
  192. lleg2=part(3,modelzorz,0,0,Color1,"Left Leg2",vt(1,1,1))
  193. lleg3=part(3,modelzorz,0,0,BrickColor.new(Color3),"Left Leg3",vt(1,1,1))
  194. lleg4=part(3,modelzorz,0,0,Color1,"Left Leg4",vt(1,1,1))
  195. lleg5=part(3,modelzorz,0,0,BrickColor.new(Color3),"Left Leg5",vt(1,1,1))
  196. lleg6=part(3,modelzorz,0,0,Color1,"Left Leg6",vt(1,1,1))
  197. lleg7=part(3,modelzorz,0,0,BrickColor.new(Color3),"Left Leg7",vt(1,1,1))
  198. lleg8=part(3,modelzorz,0,0,BrickColor.new(Color2),"Left Leg8",vt(1,1,1))
  199. lleg9=part(3,modelzorz,0,0,BrickColor.new(Color3),"Left Leg9",vt(1,1,1))
  200. lleg10=part(3,modelzorz,0,0,BrickColor.new(Color2),"Left Leg10",vt(1,1,1))
  201. lleg11=part(3,modelzorz,0,1,BrickColor.new("Really black"),"Left Leg Hitbox",vt(1.5,4,1.5))
  202.  
  203. rleg1=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Right Leg1",vt(1,1,1))
  204. rleg2=part(3,modelzorz,0,0,Color1,"Right Leg2",vt(1,1,1))
  205. rleg3=part(3,modelzorz,0,0,BrickColor.new(Color3),"Right Leg3",vt(1,1,1))
  206. rleg4=part(3,modelzorz,0,0,Color1,"Right Leg4",vt(1,1,1))
  207. rleg5=part(3,modelzorz,0,0,BrickColor.new(Color3),"Right Leg5",vt(1,1,1))
  208. rleg6=part(3,modelzorz,0,0,Color1,"Right Leg6",vt(1,1,1))
  209. rleg7=part(3,modelzorz,0,0,BrickColor.new(Color3),"Right Leg7",vt(1,1,1))
  210. rleg8=part(3,modelzorz,0,0,BrickColor.new(Color2),"Right Leg8",vt(1,1,1))
  211. rleg9=part(3,modelzorz,0,0,BrickColor.new(Color3),"Right Leg9",vt(1,1,1))
  212. rleg10=part(3,modelzorz,0,0,BrickColor.new(Color2),"Right Leg10",vt(1,1,1))
  213. rleg11=part(3,modelzorz,0,1,BrickColor.new("Really black"),"Right Leg Hitbox",vt(1.5,4,1.5))
  214.  
  215. larm1=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Left Arm1",vt(1,1,1))
  216. larm2=part(3,modelzorz,0,0,BrickColor.new(Color3),"Left Arm2",vt(1,1,1))
  217. larm3=part(3,modelzorz,0,1,BrickColor.new(Color4),"Left Arm3",vt(1,1,1)) --Scrapped to make way for new cannon
  218. numb=0.6
  219. for i=1,3 do
  220. larm4=part(3,modelzorz,0,1,BrickColor.new("Really black"),"Left Arm4",vt(1,1,1))
  221. larmmsh4=mesh("CylinderMesh",larm4,"","",vt(0,0,0),vt(0.5,1.01,0.5))
  222. larmwld4=weld(larm4,larm4,larm3,euler(1.57,0,0)*cf(numb,-0.1,0))
  223. numb=numb-0.6
  224. end
  225. larm5=part(3,modelzorz,0,1,BrickColor.new("Really black"),"Left Arm5",vt(1,1,1))
  226. larm6=part(3,modelzorz,0,0,Color1,"Left Arm6",vt(1,1,1))
  227. larm7=part(3,modelzorz,0,0,Color1,"Left Arm7",vt(1,1,1))
  228. larm8=part(3,modelzorz,0,0,Color1,"Left Arm8",vt(1,1,1))
  229. larm9=part(3,modelzorz,0,0,Color1,"Left Arm9",vt(1,1,1))
  230. larm10=part(3,modelzorz,0,0,Color1,"Left Arm10",vt(1,1,1))
  231. larm11=part(3,modelzorz,0,0,BrickColor.new(Color2),"Left Arm11",vt(1,1,1))
  232. larm12=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Left Arm12",vt(1,1,1))
  233. larm13=part(3,modelzorz,0,0,BrickColor.new(Color2),"Left Arm13",vt(1,1,1))
  234. larm14=part(3,modelzorz,0,0,BrickColor.new(Color4),"Left Arm14",vt(1,1,1))
  235. larm15=part(3,modelzorz,0,0,BrickColor.new(Color2),"Left Arm15",vt(1,1,1))
  236. larm16=part(3,modelzorz,0,0,BrickColor.new(Color2),"Left Arm16",vt(1,1,1))
  237. larm17=part(3,modelzorz,0,0,Color1,"Left Arm17",vt(1,1,1))
  238. lfist1=part(3,fist1,0,0,BrickColor.new(Color2),"Left Fist1",vt(1,1,1))
  239. lfist2=part(3,fist1,0,0,Color1,"Left Fist2",vt(1,1,1))
  240. lfist3=part(3,fist1,0,0,Color1,"Left Fist3",vt(1,1,1))
  241. lfist4=part(3,fist1,0,0,Color1,"Left Fist4",vt(1,1,1))
  242. lfist5=part(3,fist1,0,0,Color1,"Left Fist5",vt(1,1,1))
  243. lfist6=part(3,fist1,0,0,BrickColor.new(Color3),"Left Fist6",vt(1,1,1))
  244. lfist7=part(3,fist1,0,0,BrickColor.new(Color3),"Left Fist7",vt(1,1,1))
  245. lfist8=part(3,fist1,0,0,BrickColor.new(Color3),"Left Fist8",vt(1,1,1))
  246. lfist9=part(3,fist1,0,0,BrickColor.new(Color3),"Left Fist9",vt(1,1,1))
  247. lfist10=part(3,fist1,0,0,BrickColor.new(Color3),"Left Fist10",vt(1,1,1))
  248. lfist11=part(3,fist1,0,0,BrickColor.new(Color3),"Left Fist11",vt(1,1,1))
  249. lfist12=part(3,fist1,0,1,BrickColor.new("Really black"),"Left Fist Hitbox",vt(1.5,4,1.5))
  250.  
  251. rarm1=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Right Arm1",vt(1,1,1))
  252. rarm2=part(3,modelzorz,0,0,BrickColor.new(Color3),"Right Arm2",vt(1,1,1))
  253. rarm3=part(3,modelzorz,0,0,BrickColor.new(Color4),"Right Arm3",vt(1,1,1))
  254. numb=0.6
  255. for i=1,3 do
  256. rarm4=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Right Arm4",vt(1,1,1))
  257. rarmmsh4=mesh("CylinderMesh",rarm4,"","",vt(0,0,0),vt(0.5,1.01,0.5))
  258. rarmwld4=weld(rarm4,rarm4,rarm3,euler(1.57,0,0)*cf(numb,-0.1,0))
  259. table.insert(rocketlaunchparts,rarm4)
  260. numb=numb-0.6
  261. end
  262. rarm5=part(3,modelzorz,0,1,BrickColor.new("Really black"),"Right Arm5",vt(1,1,1))
  263. rarm6=part(3,modelzorz,0,0,Color1,"Right Arm6",vt(1,1,1))
  264. rarm7=part(3,modelzorz,0,0,Color1,"Right Arm7",vt(1,1,1))
  265. rarm8=part(3,modelzorz,0,0,Color1,"Right Arm8",vt(1,1,1))
  266. rarm9=part(3,modelzorz,0,0,Color1,"Right Arm9",vt(1,1,1))
  267. rarm10=part(3,modelzorz,0,0,Color1,"Right Arm10",vt(1,1,1))
  268. rarm11=part(3,modelzorz,0,0,BrickColor.new(Color2),"Right Arm11",vt(1,1,1))
  269. rarm12=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Right Arm12",vt(1,1,1))
  270. rarm13=part(3,modelzorz,0,0,BrickColor.new(Color2),"Right Arm13",vt(1,1,1))
  271. rfist1=part(3,fist2,0,0,BrickColor.new(Color2),"Right Fist1",vt(1,1,1))
  272. rfist2=part(3,fist2,0,0,Color1,"Right Fist2",vt(1,1,1))
  273. rfist3=part(3,fist2,0,0,Color1,"Right Fist3",vt(1,1,1))
  274. rfist4=part(3,fist2,0,0,Color1,"Right Fist4",vt(1,1,1))
  275. rfist5=part(3,fist2,0,0,Color1,"Right Fist5",vt(1,1,1))
  276. rfist6=part(3,fist2,0,0,BrickColor.new(Color3),"Right Fist6",vt(1,1,1))
  277. rfist7=part(3,fist2,0,0,BrickColor.new(Color3),"Right Fist7",vt(1,1,1))
  278. rfist8=part(3,fist2,0,0,BrickColor.new(Color3),"Right Fist8",vt(1,1,1))
  279. rfist9=part(3,fist2,0,0,BrickColor.new(Color3),"Right Fist9",vt(1,1,1))
  280. rfist10=part(3,fist2,0,0,BrickColor.new(Color3),"Right Fist10",vt(1,1,1))
  281. rfist11=part(3,fist2,0,0,BrickColor.new(Color3),"Right Fist11",vt(1,1,1))
  282. rfist12=part(3,fist2,0,1,BrickColor.new("Really black"),"Right Fist Hitbox",vt(1.5,4,1.5))
  283.  
  284.  
  285. torsmsh1=mesh("BlockMesh",tors1,"","",vt(0,0,0),vt(2,1.5,3))
  286. torsmsh2=mesh("BlockMesh",tors2,"","",vt(0,0,0),vt(3.3,1.3,2.8))
  287. torsmsh3=mesh("BlockMesh",tors3,"","",vt(0,0,0),vt(2.5,0.8,3))
  288. torsmsh4=mesh("BlockMesh",tors4,"","",vt(0,0,0),vt(2.4,0.7,1.5))
  289. torsmsh5=mesh("BlockMesh",tors5,"","",vt(0,0,0),vt(1,1,1.5))
  290. torsmsh6=mesh("BlockMesh",tors6,"","",vt(0,0,0),vt(2,0.6,2))
  291. torsmsh7=mesh("BlockMesh",tors7,"","",vt(0,0,0),vt(2.5,1.5,1))
  292. torsmsh8=mesh("BlockMesh",tors8,"","",vt(0,0,0),vt(2,1.5,0.9))
  293. torsmsh9=mesh("BlockMesh",tors9,"","",vt(0,0,0),vt(1.9,1,1))
  294. torsmsh10=mesh("BlockMesh",tors10,"","",vt(0,0,0),vt(1.5,1.3,1.3))
  295. torsmsh11=mesh("BlockMesh",tors11,"","",vt(0,0,0),vt(1.2,2,1.2))
  296. torsmsh12=mesh("BlockMesh",tors12,"","",vt(0,0,0),vt(1.2,1,1.4))
  297. torsmsh13=mesh("BlockMesh",tors13,"","",vt(0,0,0),vt(1,1,1.2))
  298. torsmsh14=mesh("BlockMesh",tors14,"","",vt(0,0,0),vt(0.2,1,1.2))
  299. torsmsh15=mesh("BlockMesh",tors15,"","",vt(0,0,0),vt(0.2,1,1.2))
  300. torsmsh16=mesh("BlockMesh",tors16,"","",vt(0,0,0),vt(0.2,1,1.2))
  301. torsmsh17=mesh("BlockMesh",tors17,"","",vt(0,0,0),vt(1.2,1.2,1))
  302.  
  303. llegmsh1=mesh("BlockMesh",lleg1,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  304. llegmsh2=mesh("CylinderMesh",lleg2,"","",vt(0,0,0),vt(1.3,1.3,1.3))
  305. llegmsh3=mesh("CylinderMesh",lleg3,"","",vt(0,0,0),vt(1,1.4,1))
  306. llegmsh4=mesh("BlockMesh",lleg4,"","",vt(0,0,0),vt(1.2,1,1.2))
  307. llegmsh5=mesh("BlockMesh",lleg5,"","",vt(0,0,0),vt(0.9,1,0.9))
  308. llegmsh6=mesh("BlockMesh",lleg6,"","",vt(0,0,0),vt(0.8,1.2,0.8))
  309. llegmsh7=mesh("BlockMesh",lleg7,"","",vt(0,0,0),vt(1,1.2,1.5))
  310. llegmsh8=mesh("BlockMesh",lleg8,"","",vt(0,0,0),vt(1,0.8,1.4))
  311. llegmsh9=mesh("BlockMesh",lleg9,"","",vt(0,0,0),vt(1,0.4,1.3))
  312. llegmsh10=mesh("BlockMesh",lleg10,"","",vt(0,0,0),vt(1.5,2.5,0.8))
  313.  
  314. rlegmsh1=mesh("BlockMesh",rleg1,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  315. rlegmsh2=mesh("CylinderMesh",rleg2,"","",vt(0,0,0),vt(1.3,1.3,1.3))
  316. rlegmsh3=mesh("CylinderMesh",rleg3,"","",vt(0,0,0),vt(1,1.4,1))
  317. rlegmsh4=mesh("BlockMesh",rleg4,"","",vt(0,0,0),vt(1.2,1,1.2))
  318. rlegmsh5=mesh("BlockMesh",rleg5,"","",vt(0,0,0),vt(0.9,1,0.9))
  319. rlegmsh6=mesh("BlockMesh",rleg6,"","",vt(0,0,0),vt(0.8,1.2,0.8))
  320. rlegmsh7=mesh("BlockMesh",rleg7,"","",vt(0,0,0),vt(1,1.2,1.5))
  321. rlegmsh8=mesh("BlockMesh",rleg8,"","",vt(0,0,0),vt(1,0.8,1.4))
  322. rlegmsh9=mesh("BlockMesh",rleg9,"","",vt(0,0,0),vt(1,0.4,1.3))
  323. rlegmsh10=mesh("BlockMesh",rleg10,"","",vt(0,0,0),vt(1.5,2.5,0.8))
  324.  
  325. larmmsh1=mesh("BlockMesh",larm1,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  326. larmmsh2=mesh("BlockMesh",larm2,"","",vt(0,0,0),vt(3,0.5,2))
  327. larmmsh3=mesh("BlockMesh",larm3,"","",vt(0,0,0),vt(2,1,1))
  328. larmmsh5=mesh("BlockMesh",larm5,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  329. larmmsh6=mesh("BlockMesh",larm6,"","",vt(0,0,0),vt(3.1,1,0.5))
  330. larmmsh7=mesh("BlockMesh",larm7,"","",vt(0,0,0),vt(0.5,1,2.1))
  331. larmmsh8=mesh("BlockMesh",larm8,"","",vt(0,0,0),vt(0.5,1,2.1))
  332. larmmsh9=mesh("BlockMesh",larm9,"","",vt(0,0,0),vt(3.1,1,0.5))
  333. larmmsh10=mesh("BlockMesh",larm10,"","",vt(0,0,0),vt(3.1,0.5,2.5))
  334. larmmsh11=mesh("BlockMesh",larm11,"","",vt(0,0,0),vt(1,1.5,1))
  335. larmmsh12=mesh("BlockMesh",larm12,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  336. larmmsh13=mesh("BlockMesh",larm13,"","",vt(0,0,0),vt(1.2,1.9,1.2))
  337. larmmsh14=mesh("BlockMesh",larm14,"","",vt(0,0,0),vt(1.5,0.8,1))
  338. larmmsh15=mesh("BlockMesh",larm15,"","",vt(0,0,0),vt(0.2,1,0.2))
  339. larmmsh16=mesh("BlockMesh",larm16,"","",vt(0,0,0),vt(0.2,1,0.2))
  340. larmmsh17=mesh("SpecialMesh",larm17,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  341. lfistmsh1=mesh("BlockMesh",lfist1,"","",vt(0,0,0),vt(1.3,1,1.3))
  342. lfistmsh2=mesh("BlockMesh",lfist2,"","",vt(0,0,0),vt(0.5,2,1.4))
  343. lfistmsh3=mesh("BlockMesh",lfist3,"","",vt(0,0,0),vt(0.5,2,1.4))
  344. lfistmsh4=mesh("BlockMesh",lfist4,"","",vt(0,0,0),vt(0.5,2,1.4))
  345. lfistmsh5=mesh("BlockMesh",lfist5,"","",vt(0,0,0),vt(1.2,1,1.4))
  346. lfistmsh6=mesh("BlockMesh",lfist6,"","",vt(0,0,0),vt(0.5,0.8,1.3))
  347. lfistmsh7=mesh("BlockMesh",lfist7,"","",vt(0,0,0),vt(0.3,0.8,0.3))
  348. lfistmsh8=mesh("BlockMesh",lfist8,"","",vt(0,0,0),vt(0.3,0.8,0.3))
  349. lfistmsh9=mesh("BlockMesh",lfist9,"","",vt(0,0,0),vt(0.3,0.8,0.3))
  350. lfistmsh10=mesh("BlockMesh",lfist10,"","",vt(0,0,0),vt(0.3,0.8,0.3))
  351. lfistmsh11=mesh("BlockMesh",lfist11,"","",vt(0,0,0),vt(0.3,0.6,0.3))
  352.  
  353. rarmmsh1=mesh("BlockMesh",rarm1,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  354. rarmmsh2=mesh("BlockMesh",rarm2,"","",vt(0,0,0),vt(3,0.5,2))
  355. rarmmsh3=mesh("BlockMesh",rarm3,"","",vt(0,0,0),vt(2,1,1))
  356. rarmmsh5=mesh("BlockMesh",rarm5,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  357. rarmmsh6=mesh("BlockMesh",rarm6,"","",vt(0,0,0),vt(3.1,1,0.5))
  358. rarmmsh7=mesh("BlockMesh",rarm7,"","",vt(0,0,0),vt(0.5,1,2.1))
  359. rarmmsh8=mesh("BlockMesh",rarm8,"","",vt(0,0,0),vt(0.5,1,2.1))
  360. rarmmsh9=mesh("BlockMesh",rarm9,"","",vt(0,0,0),vt(3.1,1,0.5))
  361. rarmmsh10=mesh("BlockMesh",rarm10,"","",vt(0,0,0),vt(3.1,0.5,2.5))
  362. rarmmsh11=mesh("BlockMesh",rarm11,"","",vt(0,0,0),vt(1,1.5,1))
  363. rarmmsh12=mesh("BlockMesh",rarm12,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  364. rarmmsh13=mesh("BlockMesh",rarm13,"","",vt(0,0,0),vt(1.2,1.9,1.2))
  365. rfistmsh1=mesh("BlockMesh",rfist1,"","",vt(0,0,0),vt(1.3,1,1.3))
  366. rfistmsh2=mesh("BlockMesh",rfist2,"","",vt(0,0,0),vt(0.5,2,1.4))
  367. rfistmsh3=mesh("BlockMesh",rfist3,"","",vt(0,0,0),vt(0.5,2,1.4))
  368. rfistmsh4=mesh("BlockMesh",rfist4,"","",vt(0,0,0),vt(0.5,2,1.4))
  369. rfistmsh5=mesh("BlockMesh",rfist5,"","",vt(0,0,0),vt(1.2,1,1.4))
  370. rfistmsh6=mesh("BlockMesh",rfist6,"","",vt(0,0,0),vt(0.5,0.8,1.3))
  371. rfistmsh7=mesh("BlockMesh",rfist7,"","",vt(0,0,0),vt(0.3,0.8,0.3))
  372. rfistmsh8=mesh("BlockMesh",rfist8,"","",vt(0,0,0),vt(0.3,0.8,0.3))
  373. rfistmsh9=mesh("BlockMesh",rfist9,"","",vt(0,0,0),vt(0.3,0.8,0.3))
  374. rfistmsh10=mesh("BlockMesh",rfist10,"","",vt(0,0,0),vt(0.3,0.8,0.3))
  375. rfistmsh11=mesh("BlockMesh",rfist11,"","",vt(0,0,0),vt(0.3,0.6,0.3))
  376.  
  377.  
  378.  
  379. local torswld1=weld(tors1,tors1,Torso,euler(0.2,0,0)*cf(-3,2.3,0))
  380. -- torswld1=weld(tors1,tors1,Torso,euler(0,0,0)*cf(0,-4,5))
  381. torswld2=weld(tors2,tors2,tors1,euler(0,0,0)*cf(0,0,0))
  382. torswld3=weld(tors3,tors3,tors2,euler(0,0,0)*cf(0,1,0.2))
  383. torswld4=weld(tors4,tors4,tors3,euler(0,0,0)*cf(0,0.5,-0.7))
  384. torswld5=weld(tors5,tors5,tors3,euler(0,0,0)*cf(0,0.8,0.2))
  385. torswld6=weld(tors6,tors6,tors5,euler(0,0,0)*cf(0,0.8,0))
  386. torswld7=weld(tors7,tors7,tors6,euler(0,0,0)*cf(0,0,0.8))
  387. torswld8=weld(tors8,tors8,tors7,euler(0,0,0)*cf(0,1.2,0))
  388. torswld9=weld(tors9,tors9,tors7,euler(1,0,0)*cf(0,0.2,0.3))
  389. torswld10=weld(tors10,tors10,tors8,euler(0.785,0,1.57)*cf(0,0,0))
  390. torswld11=weld(tors11,tors11,tors6,euler(0,0,0)*cf(0,0,-0.6))
  391. torswld12=weld(tors12,tors12,tors1,euler(0,0,0)*cf(0,-0.5,-0.2))
  392. torswld13=weld(tors13,tors13,tors12,euler(0,0,0)*cf(0,-0.5,0))
  393. torswld14=weld(tors14,tors14,tors13,euler(0,0,0)*cf(0.3,0.2,0.01))
  394. torswld15=weld(tors15,tors15,tors13,euler(0,0,0)*cf(0,0.2,0.01))
  395. torswld16=weld(tors16,tors16,tors13,euler(0,0,0)*cf(-0.3,0.2,0.01))
  396. torswld17=weld(tors17,tors17,tors13,euler(0,0,0)*cf(0,0,-0.4))
  397. torswld18=weld(tors18,tors18,tors1,euler(0,0,0)*cf(0,1,0))
  398.  
  399. llegwld1=weld(lleg1,lleg1,tors6,euler(0,0,0)*cf(1.5,0,-0.5))
  400. llegwld2=weld(lleg2,lleg2,lleg1,euler(0,0,1.57)*cf(0,0,0))
  401. llegwld3=weld(lleg3,lleg3,lleg2,euler(0,0,0)*cf(0,0,0))
  402. llegwld4=weld(lleg4,lleg4,lleg2,euler(0,0,-1.57)*cf(0,0.4,0.8))
  403. llegwld5=weld(lleg5,lleg5,lleg4,euler(0.785,0,0)*cf(0,-0.4,0))
  404. llegwld6=weld(lleg6,lleg6,lleg4,euler(0,0,0)*cf(0,0.2,0.4))
  405. llegwld7=weld(lleg7,lleg7,lleg4,euler(0,0,0)*cf(0,1.1,-0.4))
  406. llegwld8=weld(lleg8,lleg8,lleg7,euler(0,0,0)*cf(0,1,0))
  407. llegwld9=weld(lleg9,lleg9,lleg8,euler(0,0,0)*cf(0,0.6,0))
  408. llegwld10=weld(lleg10,lleg10,lleg7,euler(0,0,0)*cf(0,0.5,0))
  409. llegwld11=weld(lleg11,lleg11,lleg7,euler(0,0,0)*cf(0,-0.2,0))
  410.  
  411. rlegwld1=weld(rleg1,rleg1,tors6,euler(0,0,0)*cf(-1.5,0,-0.5))
  412. rlegwld2=weld(rleg2,rleg2,rleg1,euler(0,0,1.57)*cf(0,0,0))
  413. rlegwld3=weld(rleg3,rleg3,rleg2,euler(0,0,0)*cf(0,0,0))
  414. rlegwld4=weld(rleg4,rleg4,rleg2,euler(0,0,-1.57)*cf(0,-0.4,0.8))
  415. rlegwld5=weld(rleg5,rleg5,rleg4,euler(0.785,0,0)*cf(0,-0.4,0))
  416. rlegwld6=weld(rleg6,rleg6,rleg4,euler(0,0,0)*cf(0,0.2,0.4))
  417. rlegwld7=weld(rleg7,rleg7,rleg4,euler(0,0,0)*cf(0,1.1,-0.4))
  418. rlegwld8=weld(rleg8,rleg8,rleg7,euler(0,0,0)*cf(0,1,0))
  419. rlegwld9=weld(rleg9,rleg9,rleg8,euler(0,0,0)*cf(0,0.6,0))
  420. rlegwld10=weld(rleg10,rleg10,rleg7,euler(0,0,0)*cf(0,0.5,0))
  421. rlegwld11=weld(rleg11,rleg11,rleg7,euler(0,0,0)*cf(0,-0.2,0))
  422.  
  423. larmwld1=weld(larm1,larm1,tors1,euler(0,0,0)*cf(3,0,0))
  424. larmwld2=weld(larm2,larm2,larm1,euler(0,0,0)*cf(0,0.2,0))
  425. larmwld3=weld(larm3,larm3,larm2,euler(0,0,0)*cf(0,-0.4,0))
  426. larmwld5=weld(larm5,larm5,larm1,euler(0,0,0)*cf(0,-0.4,-1))
  427. larmwld6=weld(larm6,larm6,larm5,euler(0,0,0)*cf(0,0,0))
  428. larmwld7=weld(larm7,larm7,larm5,euler(0,0,0)*cf(1.29,0,1))
  429. larmwld8=weld(larm8,larm8,larm5,euler(0,0,0)*cf(-1.29,0,1))
  430. larmwld9=weld(larm9,larm9,larm5,euler(0,0,0)*cf(0,0,2))
  431. larmwld10=weld(larm10,larm10,larm5,euler(0,0,0)*cf(0,-0.7,1))
  432. larmwld11=weld(larm11,larm11,larm2,euler(-0.5,0,0.2)*cf(0,0.8,0))
  433. larmwld12=weld(larm12,larm12,larm11,euler(0.5,0,-0.2)*cf(0,0.8,0))
  434. larmwld13=weld(larm13,larm13,larm12,cf(0,1,0)*euler(-1.2,0,0.2))
  435. larmwld14=weld(larm14,larm14,larm2,euler(0,0,0)*cf(0,-0.2,0))
  436. larmwld15=weld(larm15,larm15,larm14,euler(0,0,0.5)*cf(-0.4,-0.5,0))
  437. larmwld16=weld(larm16,larm16,larm14,euler(0,0,-0.5)*cf(0.4,-0.5,0))
  438. larmwld17=weld(larm17,larm17,larm14,euler(0,0,0)*cf(0,-1,0))
  439. lfistwld1=weld(lfist1,lfist1,larm13,euler(0,0,0)*cf(0,1,0))
  440. lfistwld2=weld(lfist2,lfist2,lfist1,euler(0,0,0)*cf(0.5,-1,0))
  441. lfistwld3=weld(lfist3,lfist3,lfist1,euler(0,1.57,0)*cf(0,-1,0.5))
  442. lfistwld4=weld(lfist4,lfist4,lfist1,euler(0,1.57,0)*cf(0,-1,-0.5))
  443. lfistwld5=weld(lfist5,lfist5,lfist1,euler(-0.2,0,0)*cf(0,0.7,0))
  444. lfistwld6=weld(lfist6,lfist6,lfist5,euler(0,0,-0.2)*cf(0.2,0.7,0))
  445. lfistwld7=weld(lfist7,lfist7,lfist6,euler(0,0,-0.2)*cf(0,0.6,0.5))
  446. lfistwld8=weld(lfist8,lfist8,lfist6,euler(0,0,-0.4)*cf(-0.1,0.6,0.175))
  447. lfistwld9=weld(lfist9,lfist9,lfist6,euler(0,0,-0.4)*cf(-0.1,0.6,-0.175))
  448. lfistwld10=weld(lfist10,lfist10,lfist6,euler(0,0,-0.4)*cf(-0.1,0.6,-0.5))
  449. lfistwld11=weld(lfist11,lfist11,lfist6,euler(2.1,0.3,0)*cf(0,0.2,0.7))
  450. lfistwld12=weld(lfist12,lfist12,lfist1,euler(0,0,0)*cf(0,0,0))
  451.  
  452. rarmwld1=weld(rarm1,rarm1,tors1,euler(0,0,0)*cf(-3,0,0))
  453. rarmwld2=weld(rarm2,rarm2,rarm1,euler(0,0,0)*cf(0,0.2,0))
  454. rarmwld3=weld(rarm3,rarm3,rarm2,euler(0,0,0)*cf(0,-0.4,0))
  455. rarmwld5=weld(rarm5,rarm5,rarm1,euler(0,0,0)*cf(0,-0.4,-1))
  456. rarmwld6=weld(rarm6,rarm6,rarm5,euler(0,0,0)*cf(0,0,0))
  457. rarmwld7=weld(rarm7,rarm7,rarm5,euler(0,0,0)*cf(1.29,0,1))
  458. rarmwld8=weld(rarm8,rarm8,rarm5,euler(0,0,0)*cf(-1.29,0,1))
  459. rarmwld9=weld(rarm9,rarm9,rarm5,euler(0,0,0)*cf(0,0,2))
  460. rarmwld10=weld(rarm10,rarm10,rarm5,euler(0,0,0)*cf(0,-0.7,1))
  461. rarmwld11=weld(rarm11,rarm11,rarm2,euler(-0.5,0,-0.2)*cf(0,0.8,0))
  462. rarmwld12=weld(rarm12,rarm12,rarm11,euler(0.5,0,0.2)*cf(0,0.8,0))
  463. rarmwld13=weld(rarm13,rarm13,rarm12,cf(0,1,0)*euler(-1.2,0,-0.2))
  464. rfistwld1=weld(rfist1,rfist1,rarm13,euler(0,0,0)*cf(0,1,0))
  465. rfistwld2=weld(rfist2,rfist2,rfist1,euler(0,0,0)*cf(-0.5,-1,0))
  466. rfistwld3=weld(rfist3,rfist3,rfist1,euler(0,1.57,0)*cf(0,-1,0.5))
  467. rfistwld4=weld(rfist4,rfist4,rfist1,euler(0,1.57,0)*cf(0,-1,-0.5))
  468. rfistwld5=weld(rfist5,rfist5,rfist1,euler(-0.2,0,0)*cf(0,0.7,0))
  469. rfistwld6=weld(rfist6,rfist6,rfist5,euler(0,0,0.2)*cf(-0.2,0.7,0))
  470. rfistwld7=weld(rfist7,rfist7,rfist6,euler(0,0,0.2)*cf(0,0.6,0.5))
  471. rfistwld8=weld(rfist8,rfist8,rfist6,euler(0,0,0.4)*cf(0.1,0.6,0.175))
  472. rfistwld9=weld(rfist9,rfist9,rfist6,euler(0,0,0.4)*cf(0.1,0.6,-0.175))
  473. rfistwld10=weld(rfist10,rfist10,rfist6,euler(0,0,0.4)*cf(0.1,0.6,-0.5))
  474. rfistwld11=weld(rfist11,rfist11,rfist6,euler(2.1,-0.3,0)*cf(0,0.2,0.7))
  475. rfistwld12=weld(rfist12,rfist12,rfist1,euler(0,0,0)*cf(0,0,0))
  476.  
  477.  
  478.  
  479. player = Player
  480. ch = Character
  481. RSH = ch.Torso["Right Shoulder"]
  482. LSH = ch.Torso["Left Shoulder"]
  483. RH = ch.Torso["Right Hip"]
  484. LH = ch.Torso["Left Hip"]
  485. --
  486. RSH.Parent = nil
  487. LSH.Parent = nil
  488. RH.Parent = nil
  489. LH.Parent = nil
  490. --
  491. RW.Part0 = ch.Torso
  492. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  493. RW.C1 = CFrame.new(0, 0.5, 0)
  494. RW.Part1 = ch["Right Arm"]
  495. RW.Parent = ch.Torso
  496. --_G.R = RW
  497. --
  498. LW.Part0 = ch.Torso
  499. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  500. LW.C1 = CFrame.new(0, 0.5, 0)
  501. LW.Part1 = ch["Left Arm"]
  502. LW.Parent = ch.Torso
  503. --_G.L = LW
  504. --
  505. RWL.Part0 = ch.Torso
  506. RWL.C0 = cf(0, -1.5, 0) --* euler(1.3, 0, -0.5)
  507. RWL.C1 = cf(-0.5, 0.5, 0)
  508. RWL.Part1 = ch["Right Leg"]
  509. RWL.Parent = ch.Torso
  510. --_G.R = RW
  511. --
  512. LWL.Part0 = ch.Torso
  513. LWL.C0 = cf(0, -1.5, 0) --* euler(1.7, 0, 0.8)
  514. LWL.C1 = cf(0.5, 0.5, 0)
  515. LWL.Part1 = ch["Left Leg"]
  516. LWL.Parent = ch.Torso
  517. --_G.L = LW
  518. --
  519. Neck.C0=necko*euler(0.2,0,0)
  520. LW.C0 = cf(-1.5,0.5,0) * euler(-0.2,0,0)
  521. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  522. RW.C0 = cf(1.5,0.5,0) * euler(-0.3,0,0.1)
  523. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  524. RWL.C0 = cf(0,-0.5,0) * euler(1,0,0.1)
  525. RWL.C1 = cf(-0.5,1.5,0) * euler(0,0,0)
  526. LWL.C0 = cf(0,-0.5,0) * euler(1,0,-0.1)
  527. LWL.C1 = cf(0.5,1.5,0) * euler(0,0,0)
  528. --
  529.  
  530. if (script.Parent.className ~= "HopperBin") then
  531. Tool = Instance.new("HopperBin")
  532. Tool.Parent = Backpack
  533. Tool.Name = "Roi"
  534. script.Parent = Tool
  535. end
  536. Bin = script.Parent
  537.  
  538. local bg = it("BodyGyro")
  539. bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  540. bg.P = 20e+003
  541. bg.Parent = nil
  542. bp=it("BodyPosition")
  543. bp.P=2000
  544. bp.D=100
  545. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  546.  
  547. so = function(id,par,vol,pit)
  548. coroutine.resume(coroutine.create(function()
  549. local sou = Instance.new("Sound",par or workspace)
  550. sou.Volume=vol
  551. sou.Pitch=pit or 1
  552. sou.SoundId=id
  553. wait()
  554. sou:play()
  555. wait(6)
  556. sou:Remove()
  557. end))
  558. end
  559.  
  560. function hideanim()
  561. equipped=false
  562. wait(0.1)
  563. Torso.Neck.C0=necko
  564. RootJoint.C0=RootCF
  565. end
  566.  
  567. function equipanim()
  568. equipped=true
  569. wait(0.1)
  570. end
  571.  
  572. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  573. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  574. end
  575.  
  576. function attackone()
  577. attack=true
  578. idle=false
  579. closefistl()
  580. for i=0,1,0.1 do
  581. wait()
  582. RootJoint.C0=RootCF*euler(0,0,1*i)
  583. torswld5.C0=euler(0,1*i,0)*cf(0,0.8,0.2)
  584. larmwld11.C0=euler(-0.5,0,0.2+1.3*i)*cf(1*i,0.8-0.1*i,0)
  585. end
  586. con1=lfist12.Touched:connect(function(hit) Damagefunc1(hit,20,5) end)
  587. so("http://roblox.com/asset/?id=10209640",lfist12,1,0.5)
  588. for i=0,1,0.2 do
  589. wait()
  590. RootJoint.C0=RootCF*euler(0,0,1-2.3*i)
  591. torswld5.C0=euler(0,1-2.3*i,0)*cf(0,0.8,0.2)
  592. larmwld11.C0=euler(-0.5+0.5*i,0.5*i,1.5)*cf(1,0.8-0.1,0)
  593. end
  594. closefistr()
  595. for i=0,1,0.2 do
  596. wait()
  597. RootJoint.C0=RootCF*euler(0,0,1-2.3-0.2*i)
  598. torswld5.C0=euler(0,1-2.3-0.2*i,0)*cf(0,0.8,0.2)
  599. larmwld11.C0=euler(0,0.5,1.5)*cf(1,0.8-0.1,0)
  600. end
  601. con1:disconnect()
  602. openfistl()
  603. torswld5.C0=euler(0,0,0)*cf(0,0.8,0.2)
  604. end
  605.  
  606. function attacktwo()
  607. attack=true
  608. idle=false
  609. con1=rfist12.Touched:connect(function(hit) Damagefunc1(hit,30,30) end)
  610. so("http://roblox.com/asset/?id=10209640",rfist12,1,0.6)
  611. for i=0,1,0.2 do
  612. wait()
  613. RootJoint.C0=RootCF*euler(0,0,-1.5+2.8*i)
  614. torswld5.C0=euler(0,1-2.5+2.8*i,0)*cf(0,0.8,0.2)
  615. larmwld11.C0=euler(0,0.5,1.5)*cf(1,0.8-0.1,0)
  616. rarmwld11.C0=euler(-0.5+0.5*i,0,-0.2-1.3*i)*cf(-1*i,0.8-0.1*i,0)
  617. end
  618. for i=0,1,0.2 do
  619. wait()
  620. RootJoint.C0=RootCF*euler(0,0,-1.5+2.8+0.2*i)
  621. torswld5.C0=euler(0,1-2.5+2.8+0.2*i,0)*cf(0,0.8,0.2)
  622. larmwld11.C0=euler(0,0.5,1.5)*cf(1,0.8-0.1,0)
  623. end
  624. con1:disconnect()
  625. openfistr()
  626. for i=0,1,0.1 do
  627. wait()
  628. RootJoint.C0=RootCF*euler(0,0,1.5-1.5*i)
  629. torswld5.C0=euler(0,1.5-1.5*i,0)*cf(0,0.8,0.2)
  630. larmwld11.C0=euler(-0.5*i,0.5-0.5*i,1.5-1.3*i)*cf(1-1*i,0.8-0.1+0.1*i,0)
  631. rarmwld11.C0=euler(-0.5*i,0,-1.5+1.3*i)*cf(-1+1*i,0.8-0.1+0.1*i,0)
  632. --[[
  633. larmwld11.C0=euler(-0.5+0.2*i,0,0.2)*cf(0,0.8,0)
  634. rarmwld11.C0=euler(-0.5+0.2*i,0,-0.2)*cf(0,0.8,0)]]
  635. end
  636. torswld5.C0=euler(0,0,0)*cf(0,0.8,0.2)
  637. attack=false
  638. end
  639.  
  640. function MovingPunch()
  641. attack=true
  642. closefistr()
  643. con1=rfist12.Touched:connect(function(hit) Damagefunc1(hit,30,30) end)
  644. so("http://roblox.com/asset/?id=10209640",rfist12,1,0.4)
  645. for i=0,1,0.1 do
  646. wait()
  647. rarmwld11.C0=euler(-0.5-1.5*i,0,-1.2-0.37*i)*cf(-1+1*i,0.7,0.5*i)
  648. rarmwld12.C0=euler(0.5-0.5*i,0,0.2-0.2*i)*cf(0,0.8,0)
  649. rarmwld13.C0=cf(0,1,0)*euler(-1.2+1.2*i,0,-0.2+0.2*i)
  650. end
  651. for i=0,1,0.1 do
  652. wait()
  653. rarmwld11.C0=euler(-0.5-1.5-0.2*i,0,-1.2-0.37)*cf(-1+1,0.7,0.5)
  654. end
  655. con1:disconnect()
  656. openfistr()
  657. for i=0,1,0.1 do
  658. wait()
  659. rarmwld11.C0=euler(-0.5-1.7+1.7*i,0,-1.2-0.37+0.37*i)*cf(-1*i,0.7,0.5-0.5*i)
  660. rarmwld12.C0=euler(0.5*i,0,0.2*i)*cf(0,0.8,0)
  661. rarmwld13.C0=cf(0,1,0)*euler(-1.2*i,0,-0.2*i)
  662. end
  663. torswld5.C0=euler(0,0,0)*cf(0,0.8,0.2)
  664. rarmwld11.C0=euler(-0.5,0,-0.2-1)*cf(-1,0.8-0.1,0)
  665. rarmwld12.C0=euler(0.5,0,0.2)*cf(0,0.8,0)
  666. rarmwld13.C0=cf(0,1,0)*euler(-1.2,0,-0.2)
  667. attack=false
  668. end
  669.  
  670. function punchone()
  671. attack=true
  672. idle=false
  673. --[[
  674. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-0.2)
  675. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.2)
  676. ]]
  677. closefistl()
  678. for i=0,1,0.1 do
  679. wait()
  680. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-0.2-1.37*i)
  681. lfistwld1.C0=euler(-0.6-0.97*i,0.2,0)*cf(4,-2+2*i,1)
  682. end
  683. con1=lfist12.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  684. so("http://roblox.com/asset/?id=10209640",lfist12,1,0.5)
  685. for i=0,1,0.2 do
  686. wait()
  687. LW.C0 = cf(-1.5,0.5,0) * euler(0,-1.2*i,-1.57)
  688. lfistwld1.C0=euler(-1.57,0.2,0)*cf(4,0,1)*euler(0,1.2*i,0)
  689. end
  690. for i=0,1,0.2 do
  691. wait()
  692. LW.C0 = cf(-1.5,0.5,0) * euler(0,-1.2-0.2*i,-1.57)
  693. lfistwld1.C0=euler(-1.57,0.2,0)*cf(4,0,1)*euler(0,1.2+0.2*i,0)
  694. end
  695. con1:disconnect()
  696. openfistl()
  697. end
  698.  
  699. function punchtwo()
  700. attack=true
  701. idle=false
  702. for i=0,1,0.1 do
  703. wait()
  704. RootJoint.C0=euler(-1.57,0,3.14)*euler(0,0,1*i)
  705. lfistwld1.C0=euler(-1.57,0.2,0)*cf(4,0,1)*euler(0,1.4-1.4*i,0)
  706. end
  707. attack=false
  708. end
  709.  
  710. function RocketPunch()
  711. Humanoid.WalkSpeed=0
  712. attack=true
  713. idle=false
  714. for i=0,1,0.2 do
  715. wait()
  716. RootJoint.C0=RootCF*euler(0,0,-1*i)
  717. torswld5.C0=euler(0,-1*i,0)*cf(0,0.8,0.2)
  718. rarmwld11.C0=euler(-0.5+0.5*i,0,-0.2)*cf(0,0.8,0)
  719. rarmwld13.C0=cf(0,1,0)*euler(-1.2+1.2*i,0,-0.2+0.2*i)
  720. end
  721. for i=0,1,0.2 do
  722. wait()
  723. RootJoint.C0=RootCF*euler(0,0,-1+2.5*i)
  724. torswld5.C0=euler(0,-1+2.5*i,0)*cf(0,0.8,0.2)
  725. rarmwld11.C0=euler(-1.57*i,1.57*i,-0.2+0.2*i)*cf(0,0.8,0)
  726. rarmwld12.C0=euler(0.5-0.5*i,-1.57*i,0.2-0.2*i)*cf(0,0.8,0)
  727. --rarmwld13.C0=cf(0,1,0)*euler(-1.2+1.2*i,0,-0.2+0.2*i)
  728. end
  729. so("http://www.roblox.com/asset/?id=2697431",rfist12,1,0.2)
  730. disconnect=false
  731. con1=rfist12.Touched:connect(function(hit)
  732. disconnect=true
  733. Damagefunc1(hit,30,30) end)
  734. rfistwld1.Part1=nil
  735. rfist1.CanCollide=true
  736. rfist12.CanCollide=true
  737. rfist1.CFrame=rfist1.CFrame*cf(0,-2,0)
  738. rfist1.Velocity=MMouse.Hit.lookVector * 70
  739. bv=Instance.new("BodyVelocity")
  740. bv.Parent=rfist1
  741. bv.maxForce=Vector3.new(4e+020, 4e+020, 4e+020)
  742. bv.velocity=MMouse.Hit.lookVector * 70
  743. gy=Instance.new("BodyGyro")
  744. gy.Parent=rfist1
  745. gy.maxTorque = Vector3.new(999999999999,99999999999999999,0)
  746. gy.cframe = CFrame.new(gy.Parent.Position, MMouse.Hit.p)*euler(1.57,1.57,0)
  747. bf=Instance.new("BodyForce")
  748. bf.Parent=rfist1
  749. mass=rfist1:GetMass()+rfist2:GetMass()+rfist3:GetMass()+rfist4:GetMass()+rfist5:GetMass()+rfist6:GetMass()+rfist7:GetMass()+rfist8:GetMass()+rfist9:GetMass()+rfist10:GetMass()+rfist11:GetMass()+rfist12:GetMass()
  750. bf.force=Vector3.new(0, 196.2 * mass, 0)
  751. -- rfistwld1=weld(rfist1,rfist1,rarm13,euler(0,0,0)*cf(0,1,0))
  752. wait()
  753. rfist1.Velocity=MMouse.Hit.lookVector * 120
  754. numb=0
  755. for i=1,100 do
  756. if numb<=5 then
  757. numb=numb+1
  758. else
  759. numb=0
  760. end
  761. local target=findNearestTorso(rfist1.Position,50)
  762. if target~=nil then
  763. bv.velocity=(target.Position-rfist1.Position).unit*70
  764. gy.cframe = CFrame.new(gy.Parent.Position, target.Position)*euler(1.57,1.57,0)
  765. --rfist1.Velocity=MMouse.Hit.lookVector * 70
  766. else
  767. bv.velocity=MMouse.Hit.lookVector * 70
  768. gy.cframe = CFrame.new(gy.Parent.Position, MMouse.Hit.p)*euler(1.57,1.57,0)
  769. end
  770. if disconnect==false then
  771. wait()
  772. end
  773. end
  774. so("http://www.roblox.com/asset/?id=2101148",rfist12,1,0.6)
  775. boomcf=rfist12.CFrame
  776. MagicCircle(BrickColor.new("Bright red"),boomcf,1,1,1,5,5,5)
  777. for i=1,2 do
  778. MagicRing(BrickColor.new("Bright red"),boomcf*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,2,2,2)
  779. end
  780. con1:disconnect()
  781. bv.Parent=nil
  782. gy.Parent=nil
  783. bf.Parent=nil
  784. rfist1.CanCollide=false
  785. rfist12.CanCollide=false
  786. rfist1.Anchored=false
  787. rfistwld1.Part1=rarm13
  788. RootJoint.C0=RootCF*euler(0,0,0)
  789. torswld5.C0=euler(0,0,0)*cf(0,0.8,0.2)
  790. rarmwld11.C0=euler(-0.5,0,-0.2)*cf(0,0.8,0)
  791. rarmwld12.C0=euler(0.5,0,0.2)*cf(0,0.8,0)
  792. rarmwld13.C0=cf(0,1,0)*euler(-1.2,0,-0.2)
  793. attack=false
  794. Humanoid.WalkSpeed=16
  795. end
  796.  
  797. function Rockets()
  798. attack=true
  799. holdrockets=true
  800. for i=0,1,0.1 do
  801. wait()
  802. rarmwld5.C0=euler(-0.6*i,0,0)*cf(0,-0.4,-1)
  803. end
  804. rocketnumb=1
  805. while holdrockets==true do
  806. if rocketnumb==1 then
  807. rocketnumb=2
  808. item=rocketlaunchparts[1]
  809. shoottrail(mouse,item)
  810. elseif rocketnumb==2 then
  811. rocketnumb=3
  812. item=rocketlaunchparts[2]
  813. shoottrail(mouse,item)
  814. elseif rocketnumb==3 then
  815. rocketnumb=1
  816. item=rocketlaunchparts[3]
  817. holdrockets=false
  818. shoottrail(mouse,item)
  819. end
  820. wait(0.5)
  821. end
  822. for i=0,1,0.1 do
  823. wait()
  824. rarmwld5.C0=euler(-0.6+0.6*i,0,0)*cf(0,-0.4,-1)
  825. end
  826. attack=false
  827. end
  828.  
  829. function LightningOrb()
  830. attack=true
  831. for i=0,1,0.1 do
  832. wait()
  833. torswld1.C0=euler(0.2+2*i,0,0)*cf(-3,2.3-2*i,-3*i)
  834. LW.C0 = cf(-1.5,0.5,0) * euler(-0.2-1*i,0,0)
  835. RW.C0 = cf(1.5,0.5,0) * euler(-0.3-0.9*i,0,0.1)
  836. RWL.C0 = cf(0,-0.5,0) * euler(1+0.5*i,0,0.1-0.1*i)
  837. RWL.C1 = cf(-0.5,1.5-1.5*i,-0.5*i) * euler(-1.57*i,0,0)
  838. LWL.C0 = cf(0,-0.5,0) * euler(1+0.5*i,0,-0.1+0.1*i)
  839. LWL.C1 = cf(0.5,1.5-1.5*i,-0.5*i) * euler(-1.57*i,0,0)
  840. larmwld5.C0=euler(-0.8*i,0,0)*cf(0,-0.4,-1)
  841. end
  842. coroutine.resume(coroutine.create(function()
  843. for i=0,1,0.1 do
  844. wait()
  845. torswld1.C0=euler(0.2+2,0,0)*cf(-3,2.3-2,-3)
  846. torswld1.C1=euler(3*i,0,0)*cf(0,0,0)
  847. LW.C0 = cf(-1.5,0.5,0) * euler(-1.2+2.4*i,0,0)
  848. RW.C0 = cf(1.5,0.5,0) * euler(-1.2+2.4*i,0,0.1)
  849. RWL.C1 = cf(-0.5,1.5*i,-0.5+0.5*i) * euler(-1.57+1.57*i,0,0)
  850. LWL.C1 = cf(0.5,1.5*i,-0.5+0.5*i) * euler(-1.57+1.57*i,0,0)
  851. end
  852. for i=0,1,0.1 do
  853. wait()
  854. torswld1.C0=euler(0.2+2,0,0)*cf(-3,2.3-2,-3)
  855. torswld1.C1=euler(3+0.1*i,0,0)*cf(0,-1.5*i,0)
  856. LW.C0 = cf(-1.5,0.5,0) * euler(1.2+0.8*i,0,0)
  857. RW.C0 = cf(1.5,0.5,0) * euler(1.2+0.8*i,0,0.1)
  858. RWL.C0 = cf(0,-0.5,0) * euler(1.5-1.4*i,0,0.2*i)
  859. LWL.C0 = cf(0,-0.5,0) * euler(1.5-1.5*i,0,-0.2*i)
  860. end
  861. for i=0,1,0.1 do
  862. wait()
  863. torswld1.C0=euler(0.2+2,0,0)*cf(-3,2.3-2,-3)
  864. torswld1.C1=euler(3.1-0.7*i,0,0.5*i)*cf(1*i,-1.5,0)
  865. LW.C0 = cf(-1.5+0.5*i,0.5,-0.5*i) * euler(2-1*i,0,0.4*i)
  866. RW.C0 = cf(1.5,0.5,0) * euler(2-1*i,0,0.1+0.2*i)
  867. end
  868. end))
  869. numb=0
  870. for i=0,2,0.1 do
  871. wait(0.1)
  872. --Lightning(p0,p1,tym,ofs,col,th,tra)
  873. Lightning(larm17.Position+vt(math.random(-1,1),math.random(-1,1),math.random(-1,1)),larm17.Position+vt(math.random(-1,1),math.random(-1,1),math.random(-1,1)),3,1,"Bright yellow",0.05,0.5)
  874. if numb<=5 then
  875. numb=numb+1
  876. else
  877. numb=0
  878. MagicCircle(BrickColor.new("Bright yellow"),larm17.CFrame,0.5,0.5,0.5,1,1,1)
  879. end
  880. end
  881. shoottrail2(mouse,larm17)
  882. wait(1)
  883. for i=0,1,0.1 do
  884. wait()
  885. torswld1.C0=euler(2.2-1.5*i,0,0)*cf(-3,0.3-0.3*i,-3+3*i)
  886. torswld1.C1=euler(2.4-2.4*i,0,0.5-0.5*i)*cf(1-1*i,-1.5-0.5*i,1*i)
  887. LW.C0 = cf(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * euler(1-2*i,0,0.4-0.4*i)
  888. RW.C0 = cf(1.5,0.5,0) * euler(1-2*i,0,0.3-0.3*i)
  889. RWL.C0 = cf(0,-0.5,0) * euler(0.1+1.2*i,0,0.2-0.2*i)
  890. LWL.C0 = cf(0,-0.5,0) * euler(1.3*i,0,-0.2+0.2*i)
  891. larmwld5.C0=euler(-0.8+0.8*i,0,0)*cf(0,-0.4,-1)
  892. end
  893. for i=0,1,0.1 do
  894. wait()
  895. torswld1.C0=euler(0.7-0.5*i,0,0)*cf(-3,2.3*i,0)
  896. torswld1.C1=euler(0,0,0)*cf(0,-2+2*i,1-1*i)
  897. LW.C0 = cf(-1.5,0.5,0) * euler(-1+0.8*i,0,0)
  898. RW.C0 = cf(1.5,0.5,0) * euler(-1+0.7*i,0,0.1*i)
  899. RWL.C0 = cf(0,-0.5,0) * euler(1.3-0.3*i,0,0.1*i)
  900. LWL.C0 = cf(0,-0.5,0) * euler(1.3-0.3*i,0,-0.1*i)
  901. end
  902. attack=false
  903. end
  904.  
  905. function closefistl()
  906. coroutine.resume(coroutine.create(function()
  907. for i=0,1,0.1 do
  908. wait()
  909. lfistwld6.C0=euler(0,0,-0.2-0.4*i)*cf(0.2,0.7,0)
  910. lfistwld7.C0=euler(0,0,-0.2-0.4*i)*cf(0,0.6,0.5)
  911. lfistwld8.C0=euler(0,0,-0.4-0.2*i)*cf(-0.1,0.6,0.175)
  912. lfistwld9.C0=euler(0,0,-0.4-0.2*i)*cf(-0.1,0.6,-0.175)
  913. lfistwld10.C0=euler(0,0,-0.4-0.2*i)*cf(-0.1,0.6,-0.5)
  914. end
  915. end))
  916. end
  917. function openfistl()
  918. coroutine.resume(coroutine.create(function()
  919. for i=0,1,0.1 do
  920. wait()
  921. lfistwld6.C0=euler(0,0,-0.2-0.4+0.4*i)*cf(0.2,0.7,0)
  922. lfistwld7.C0=euler(0,0,-0.2-0.4+0.4*i)*cf(0,0.6,0.5)
  923. lfistwld8.C0=euler(0,0,-0.4-0.2+0.2*i)*cf(-0.1,0.6,0.175)
  924. lfistwld9.C0=euler(0,0,-0.4-0.2+0.2*i)*cf(-0.1,0.6,-0.175)
  925. lfistwld10.C0=euler(0,0,-0.4-0.2+0.2*i)*cf(-0.1,0.6,-0.5)
  926. end
  927. end))
  928. end
  929.  
  930. function closefistr()
  931. coroutine.resume(coroutine.create(function()
  932. for i=0,1,0.1 do
  933. wait()
  934. rfistwld6.C0=euler(0,0,0.2+0.4*i)*cf(-0.2,0.7,0)
  935. rfistwld7.C0=euler(0,0,0.2+0.4*i)*cf(0,0.6,0.5)
  936. rfistwld8.C0=euler(0,0,0.4+0.2*i)*cf(0.1,0.6,0.175)
  937. rfistwld9.C0=euler(0,0,0.4+0.2*i)*cf(0.1,0.6,-0.175)
  938. rfistwld10.C0=euler(0,0,0.4+0.2*i)*cf(0.1,0.6,-0.5)
  939. end
  940. end))
  941. end
  942. function openfistr()
  943. coroutine.resume(coroutine.create(function()
  944. for i=0,1,0.1 do
  945. wait()
  946. rfistwld6.C0=euler(0,0,0.2+0.4-0.4*i)*cf(-0.2,0.7,0)
  947. rfistwld7.C0=euler(0,0,0.2+0.4-0.4*i)*cf(0,0.6,0.5)
  948. rfistwld8.C0=euler(0,0,0.4+0.2-0.2*i)*cf(0.1,0.6,0.175)
  949. rfistwld9.C0=euler(0,0,0.4+0.2-0.2*i)*cf(0.1,0.6,-0.175)
  950. rfistwld10.C0=euler(0,0,0.4+0.2-0.2*i)*cf(0.1,0.6,-0.5)
  951. end
  952. end))
  953. end
  954.  
  955. function idlefistr()
  956. coroutine.resume(coroutine.create(function()
  957. for i=0,1,0.1 do
  958. wait()
  959. rfistwld6.C0=euler(0,0,0.2+0.4*i)*cf(-0.2+0.1*i,0.7,0)
  960. end
  961. wait(0.1)
  962. for i=0,1,0.1 do
  963. wait()
  964. rfistwld6.C0=euler(0,0,0.6-0.6*i)*cf(-0.2+0.1-0.1*i,0.7,0)
  965. end
  966. for i=0,1,0.1 do
  967. wait()
  968. rfistwld6.C0=euler(0,0,0.2*i)*cf(-0.2,0.7,0)
  969. end
  970. end))
  971. coroutine.resume(coroutine.create(function()
  972. wait(0.2)
  973. for i=0,1,0.1 do
  974. wait()
  975. rfistwld7.C0=euler(0,0,0.2+0.6*i)*cf(0.1*i,0.6,0.5)
  976. end
  977. wait(0.1)
  978. for i=0,1,0.1 do
  979. wait()
  980. rfistwld7.C0=euler(0,0,0.8-0.8*i)*cf(0.1-0.1*i,0.6,0.5)
  981. end
  982. for i=0,1,0.1 do
  983. wait()
  984. rfistwld7.C0=euler(0,0,0.2*i)*cf(0,0.6,0.5)
  985. end
  986. end))
  987. coroutine.resume(coroutine.create(function()
  988. wait(0.15)
  989. for i=0,1,0.1 do
  990. wait()
  991. rfistwld8.C0=euler(0,0,0.4+0.4*i)*cf(0.1,0.6,0.175)
  992. end
  993. wait(0.1)
  994. for i=0,1,0.1 do
  995. wait()
  996. rfistwld8.C0=euler(0,0,0.8-0.8*i)*cf(0.1-0.1*i,0.6,0.175)
  997. end
  998. for i=0,1,0.1 do
  999. wait()
  1000. rfistwld8.C0=euler(0,0,0.4*i)*cf(0.1*i,0.6,0.175)
  1001. end
  1002. end))
  1003. coroutine.resume(coroutine.create(function()
  1004. wait(0.1)
  1005. for i=0,1,0.1 do
  1006. wait()
  1007. rfistwld9.C0=euler(0,0,0.4+0.4*i)*cf(0.1,0.6,-0.175)
  1008. end
  1009. wait(0.1)
  1010. for i=0,1,0.1 do
  1011. wait()
  1012. rfistwld9.C0=euler(0,0,0.8-0.8*i)*cf(0.1-0.1*i,0.6,-0.175)
  1013. end
  1014. for i=0,1,0.1 do
  1015. wait()
  1016. rfistwld9.C0=euler(0,0,0.4*i)*cf(0.1*i,0.6,-0.175)
  1017. end
  1018. end))
  1019. coroutine.resume(coroutine.create(function()
  1020. for i=0,1,0.1 do
  1021. wait()
  1022. rfistwld10.C0=euler(0,0,0.4+0.4*i)*cf(0.1,0.6,-0.5)
  1023. end
  1024. wait(0.1)
  1025. for i=0,1,0.1 do
  1026. wait()
  1027. rfistwld10.C0=euler(0,0,0.8-0.8*i)*cf(0.1-0.1*i,0.6,-0.5)
  1028. end
  1029. for i=0,1,0.1 do
  1030. wait()
  1031. rfistwld10.C0=euler(0,0,0.4*i)*cf(0.1*i,0.6,-0.5)
  1032. end
  1033. end))
  1034. end
  1035.  
  1036. function idlefistl()
  1037. coroutine.resume(coroutine.create(function()
  1038. for i=0,1,0.1 do
  1039. wait()
  1040. lfistwld6.C0=euler(0,0,-0.2-0.4*i)*cf(0.2-0.1*i,0.7,0)
  1041. end
  1042. wait(0.1)
  1043. for i=0,1,0.1 do
  1044. wait()
  1045. lfistwld6.C0=euler(0,0,-0.6+0.6*i)*cf(0.2-0.1+0.1*i,0.7,0)
  1046. end
  1047. for i=0,1,0.1 do
  1048. wait()
  1049. lfistwld6.C0=euler(0,0,-0.2*i)*cf(0.2,0.7,0)
  1050. end
  1051. end))
  1052. coroutine.resume(coroutine.create(function()
  1053. wait(0.2)
  1054. for i=0,1,0.1 do
  1055. wait()
  1056. lfistwld7.C0=euler(0,0,-0.2-0.6*i)*cf(-0.1*i,0.6,0.5)
  1057. end
  1058. wait(0.1)
  1059. for i=0,1,0.1 do
  1060. wait()
  1061. lfistwld7.C0=euler(0,0,-0.8+0.8*i)*cf(-0.1+0.1*i,0.6,0.5)
  1062. end
  1063. for i=0,1,0.1 do
  1064. wait()
  1065. lfistwld7.C0=euler(0,0,-0.2*i)*cf(0,0.6,0.5)
  1066. end
  1067. end))
  1068. coroutine.resume(coroutine.create(function()
  1069. wait(0.15)
  1070. for i=0,1,0.1 do
  1071. wait()
  1072. lfistwld8.C0=euler(0,0,-0.4-0.4*i)*cf(-0.1,0.6,0.175)
  1073. end
  1074. wait(0.1)
  1075. for i=0,1,0.1 do
  1076. wait()
  1077. lfistwld8.C0=euler(0,0,-0.8+0.8*i)*cf(-0.1+0.1*i,0.6,0.175)
  1078. end
  1079. for i=0,1,0.1 do
  1080. wait()
  1081. lfistwld8.C0=euler(0,0,-0.4*i)*cf(-0.1*i,0.6,0.175)
  1082. end
  1083. end))
  1084. coroutine.resume(coroutine.create(function()
  1085. wait(0.1)
  1086. for i=0,1,0.1 do
  1087. wait()
  1088. lfistwld9.C0=euler(0,0,-0.4-0.4*i)*cf(-0.1,0.6,-0.175)
  1089. end
  1090. wait(0.1)
  1091. for i=0,1,0.1 do
  1092. wait()
  1093. lfistwld9.C0=euler(0,0,-0.8+0.8*i)*cf(-0.1+0.1*i,0.6,-0.175)
  1094. end
  1095. for i=0,1,0.1 do
  1096. wait()
  1097. lfistwld9.C0=euler(0,0,-0.4*i)*cf(-0.1*i,0.6,-0.175)
  1098. end
  1099. end))
  1100. coroutine.resume(coroutine.create(function()
  1101. for i=0,1,0.1 do
  1102. wait()
  1103. lfistwld10.C0=euler(0,0,-0.4-0.4*i)*cf(-0.1,0.6,-0.5)
  1104. end
  1105. wait(0.1)
  1106. for i=0,1,0.1 do
  1107. wait()
  1108. lfistwld10.C0=euler(0,0,-0.8+0.8*i)*cf(-0.1+0.1*i,0.6,-0.5)
  1109. end
  1110. for i=0,1,0.1 do
  1111. wait()
  1112. lfistwld10.C0=euler(0,0,-0.4*i)*cf(-0.1*i,0.6,-0.5)
  1113. end
  1114. end))
  1115. end
  1116.  
  1117. function Aim()
  1118. aiming=true
  1119. coroutine.resume(coroutine.create(function()
  1120. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  1121. bg.P = 9000
  1122. bg.Parent = Torso
  1123. --wld1.C0 = euler(0,0,0) * cf(0,0,0)
  1124. while aiming==true do
  1125. wait()
  1126. local pos4 = vt(workspace.CurrentCamera.CoordinateFrame.X,RootPart.Position.Y,workspace.CurrentCamera.CoordinateFrame.Z)
  1127. bg.cframe = cf(RootPart.Position,pos4) * euler(0,3.14,0) * cf(0,0,0) --cf(Torso.Position,MMouse.Hit.p) *
  1128. bg.Parent = RootPart
  1129. local pos5 = Vector3.new(MMouse.Hit.p.x,RootPart.Position.Y,MMouse.Hit.p.z)
  1130. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  1131. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  1132. offset=offset/mag
  1133. end
  1134. for i=0,1,0.1 do
  1135. wait()
  1136. bg.Parent=nil
  1137. end
  1138. end))
  1139. end
  1140.  
  1141. function NoAim()
  1142. aiming=false
  1143. end
  1144.  
  1145. spread=0
  1146. range=500
  1147. rangepower=10
  1148. function shoottrail(mouse,baseprt)
  1149. so("http://www.roblox.com/asset/?id=2697431",baseprt,1,0.5)
  1150. MagicBlock(BrickColor.new("Bright red"),baseprt.CFrame,0.1,0.1,0.1,1,1,1)
  1151. coroutine.resume(coroutine.create(function(v)
  1152. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread))) * (baseprt.Position-MMouse.Hit.p).magnitude/100
  1153. local dir = CFrame.new((baseprt.Position+MMouse.Hit.p)/2,MMouse.Hit.p+spreadvector)
  1154. local hit,pos = rayCast(baseprt.Position,dir.lookVector,10,Character)
  1155. local rangepos = range
  1156. local function drawtrail(From,To)
  1157. local effectsmsh = Instance.new("CylinderMesh")
  1158. effectsmsh.Scale = Vector3.new(1,1,1)
  1159. effectsmsh.Name = "Mesh"
  1160. local effectsg = Instance.new("Part")
  1161. effectsg.formFactor = 3
  1162. effectsg.CanCollide = false
  1163. effectsg.Name = "Eff"
  1164. effectsg.Locked = true
  1165. effectsg.Anchored = true
  1166. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1167. effectsg.Parent = modelzorz
  1168. effectsmsh.Parent = effectsg
  1169. effectsg.BrickColor = BrickColor.new("Bright red")
  1170. effectsg.Reflectance = 0.25
  1171. local LP = From
  1172. local point1 = To
  1173. --[[if target~=nil then
  1174. LP=targetted
  1175. end]]
  1176. local mg = (LP - point1).magnitude
  1177. effectsmsh.Scale = Vector3.new(3,mg*5,3)
  1178. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  1179. MagicBlock(BrickColor.new("Bright red"),effectsg.CFrame,0.1,0.1,0.1,0.5,0.5,0.5)
  1180. coroutine.resume(coroutine.create(function()
  1181. for i = 0 , 1 , 0.2 do
  1182. wait()
  1183. effectsg.Transparency = 1*i
  1184. effectsmsh.Scale = Vector3.new(3-3*i,mg*5,3-3*i)
  1185. end
  1186. effectsg.Parent = nil
  1187. end))
  1188. end
  1189. local newpos = baseprt.Position
  1190. local inc = rangepower
  1191. repeat
  1192. wait() wait()
  1193. rangepos = rangepos - 10
  1194. dir = dir * CFrame.Angles(math.rad(-0.5),0,0)
  1195. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  1196. drawtrail(newpos,pos)
  1197. newpos = newpos + (dir.lookVector * inc)
  1198. if inc >= 20 then
  1199. inc = inc - 10
  1200. end
  1201. if hit ~= nil then
  1202. rangepos = 0
  1203. end
  1204. until rangepos <= 0
  1205. if hit ~= nil then
  1206. so("http://www.roblox.com/asset/?id=2101148",hit,1,0.6)
  1207. MagicCircle(BrickColor.new("Bright red"),CFrame.new(pos),0.5,0.5,0.5,2,2,2)
  1208. MagicRing(BrickColor.new("Bright red"),CFrame.new(pos)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),0.5,0.5,0.5,0.5,0.5,0.5)
  1209. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1210. hum = hit.Parent.Humanoid
  1211. tTorso=hit.Parent.Torso
  1212. Damagefunc1(hit,10,20)
  1213. --ADmg(hum,hit)
  1214. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  1215. hum = hit.Parent.Parent.Humanoid
  1216. tTorso=hit.Parent.Parent.Torso
  1217. Damagefunc1(hit.Parent.Parent.Torso,10,20)
  1218. --ADmg(hum,hit)
  1219. end
  1220. end
  1221. end))
  1222. end
  1223.  
  1224. lightningdebounce=false
  1225. function shoottrail2(mouse,baseprt)
  1226. coroutine.resume(coroutine.create(function(v)
  1227. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread))) * (baseprt.Position-MMouse.Hit.p).magnitude/100
  1228. local dir = CFrame.new((baseprt.Position+MMouse.Hit.p)/2,MMouse.Hit.p+spreadvector)
  1229. local hit,pos = rayCast(baseprt.Position,dir.lookVector,10,Character)
  1230. local rangepos = range*2
  1231. local function drawtrail(From,To)
  1232. local effectsmsh = Instance.new("SpecialMesh")
  1233. effectsmsh.MeshType = "Sphere"
  1234. effectsmsh.Scale = Vector3.new(1,1,1)
  1235. effectsmsh.Name = "Mesh"
  1236. local effectsg = Instance.new("Part")
  1237. effectsg.formFactor = 3
  1238. effectsg.CanCollide = false
  1239. effectsg.Name = "Eff"
  1240. effectsg.Locked = true
  1241. effectsg.Anchored = true
  1242. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1243. effectsg.Parent = modelzorz
  1244. effectsmsh.Parent = effectsg
  1245. effectsg.BrickColor = BrickColor.new("Bright yellow")
  1246. effectsg.Reflectance = 0.25
  1247. local LP = From
  1248. local point1 = To
  1249. --[[if target~=nil then
  1250. LP=targetted
  1251. end]]
  1252. local mg = (LP - point1).magnitude
  1253. effectsmsh.Scale = Vector3.new(5,5,5)
  1254. Lightning(LP+vt(math.random(-1,1),math.random(-1,1),math.random(-1,1)),point1+vt(math.random(-1,1),math.random(-1,1),math.random(-1,1)),6,4,"Bright yellow",0.05,0.5)
  1255. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  1256. local target=findNearestTorso(effectsg.Position,20)
  1257. if target~=nil and lightningdebounce==false then
  1258. lightningdebounce=true
  1259. Lightning(effectsg.Position,target.Position,6,1,"Bright yellow",0.05,0.5)
  1260. Damagefunc1(target,1,0)
  1261. so("http://www.roblox.com/asset/?id=10756118",tartet,1,1)
  1262. coroutine.resume(coroutine.create(function()
  1263. wait(0.2)
  1264. lightningdebounce=false
  1265. end))
  1266. end
  1267. coroutine.resume(coroutine.create(function()
  1268. wait(0.1)
  1269. effectsg.Parent = nil
  1270. end))
  1271. end
  1272. local newpos = baseprt.Position
  1273. local inc = rangepower/10
  1274. repeat
  1275. wait() wait()
  1276. rangepos = rangepos - 10
  1277. dir = dir
  1278. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  1279. drawtrail(newpos,pos)
  1280. newpos = newpos + (dir.lookVector * inc)
  1281. if inc >= 20 then
  1282. inc = inc - 10
  1283. end
  1284. if hit ~= nil then
  1285. rangepos = 0
  1286. end
  1287. until rangepos <= 0
  1288. if hit ~= nil then
  1289. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1290. hum = hit.Parent.Humanoid
  1291. tTorso=hit.Parent.Torso
  1292. Damagefunc1(hit,10,20)
  1293. --ADmg(hum,hit)
  1294. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  1295. hum = hit.Parent.Parent.Humanoid
  1296. tTorso=hit.Parent.Parent.Torso
  1297. Damagefunc1(hit.Parent.Parent.Torso,10,20)
  1298. --ADmg(hum,hit)
  1299. end
  1300. end
  1301. end))
  1302. end
  1303.  
  1304. function ModeChange()
  1305. canidle=false
  1306. idle=false
  1307. if Mode=="Robot" then
  1308. Mode="Battle"
  1309. rfistwld1.Part1=Torso
  1310. rfistwld1.C0=euler(-1,-0.2,0)*cf(-6,5,2)
  1311. lfistwld1.Part1=Torso
  1312. lfistwld1.C0=euler(-1,0.2,0)*cf(0,5,2)
  1313. for _,v in pairs(modelzorz:children()) do
  1314. if v.className=="Part" then
  1315. coroutine.resume(coroutine.create(function(Part)
  1316. for i=0,1,0.1 do
  1317. wait(0)
  1318. Part.Transparency=Part.Transparency+0.1
  1319. end
  1320. end),v)
  1321. print(v)
  1322. end
  1323. end
  1324. for i=0,1,0.1 do
  1325. wait()
  1326. LW.C0 = cf(-1.5,0.5,0) * euler(-0.2-0.1*i,0,-1.57*i)
  1327. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1328. RW.C0 = cf(1.5,0.5,0) * euler(-0.3,0,0.1+1.47*i)
  1329. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1330. RWL.C0 = cf(0,-0.5,0) * euler(1-1*i,0,0.1)
  1331. RWL.C1 = cf(-0.5,1.5,0) * euler(0,0,0)
  1332. LWL.C0 = cf(0,-0.5,0) * euler(1-1*i,0,-0.1)
  1333. LWL.C1 = cf(0.5,1.5,0) * euler(0,0,0)
  1334. RootCF=euler(-1.57,0,3.14)*cf(0,0,2.4-2.4*i)
  1335. torswld1.C0=euler(0.2-0.2*i,0,0)*cf(-3+3*i,2.3-(2.3+2.4)*i,0)
  1336. rfistwld1.C0=euler(-1+0.4*i,-0.2,0)*cf(-6+2*i,5-7*i,2-1*i)
  1337. lfistwld1.C0=euler(-1+0.4*i,0.2,0)*cf(4*i,5-7*i,2-1*i)
  1338. end
  1339. workspace.CurrentCamera.CameraSubject=Humanoid
  1340. workspace.CurrentCamera.CameraType = "Custom"
  1341. RootJoint.Part1=Torso
  1342. RootJoint.C0=euler(-1.57,0,3.14)
  1343. RootCF=euler(-1.57,0,3.14)*cf(0,0,2.4-2.4)
  1344. modelzorz.Parent=nil
  1345. rfistwld1.C0=euler(-0.6,-0.2,0)*cf(-4,-2,1)
  1346. lfistwld1.C0=euler(-0.6,0.2,0)*cf(4,-2,1)
  1347. rfistwld1.Parent=rfist1
  1348. --rfistwld1.Part1=Torso
  1349. rfistwld1.Part1=RootPart
  1350. lfistwld1.Parent=lfist1
  1351. --lfistwld1.Part1=Torso
  1352. lfistwld1.Part1=RootPart
  1353. print(lfistwld1.Part0)
  1354. print(lfistwld1.Part1)
  1355. wait(0.1)
  1356. for i=0,1,0.1 do
  1357. wait()
  1358. LW.C0 = cf(-1.5+0.5*i,0.5,-0.5*i) * euler(-0.3+0.3*i,-2.8*i,-1.57+0.5*i)
  1359. RW.C0 = cf(1.5-0.5*i,0.5,-0.5*i) * euler(-0.3+0.3*i,2.8*i,1.57)
  1360. rfistwld1.C1=euler(0,1*i,0)*cf(0,0,0)
  1361. lfistwld1.C1=euler(0,-1*i,0)*cf(0,0,0)
  1362. rfistwld1.C0=euler(-0.6-1*i,-0.2,0)*cf(-4,-2+1*i,1+1*i)
  1363. lfistwld1.C0=euler(-0.6-0.7*i,0.2,0)*cf(4,-2+1*i,1+1*i)
  1364. end
  1365. print(lfistwld1.Part0)
  1366. print(lfistwld1.Part1)
  1367. for i=0,1,0.2 do
  1368. wait()
  1369. Neck.C0=necko*euler(0.2-0.2*i,0,0)
  1370. LW.C0 = cf(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * euler(0,-2.8+2.7*i,-1.57+0.5-0.5*i)
  1371. RW.C0 = cf(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * euler(0,2.8-2.7*i,1.57)
  1372. rfistwld1.C1=euler(0,1-1*i,0)*cf(0,0,0)
  1373. lfistwld1.C1=euler(0,-1+1*i,0)*cf(0,0,0)
  1374. rfistwld1.C0=euler(-1.6,-0.2+1.47*i,0)*cf(-4-1*i,-1,2-2*i)
  1375. lfistwld1.C0=euler(-1.3-0.3,0.2-1.47*i,0)*cf(4+1*i,-1,2-2*i)
  1376. end
  1377. for i=0,1,0.1 do
  1378. wait()
  1379. LW.C0 = cf(-1.5,0.5,0) * euler(0,-0.1+0.1*i,-1.57)
  1380. RW.C0 = cf(1.5,0.5,0) * euler(0,0.1-0.1*i,1.57)
  1381. rfistwld1.C0=euler(-1.6,1.27+0.1*i,0)*cf(-5,-1,0)
  1382. lfistwld1.C0=euler(-1.6,-1.27-0.1*i,0)*cf(5,-1,0)
  1383. end
  1384. for i=0,1,0.1 do
  1385. wait()
  1386. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57+1.37*i)
  1387. RW.C0 = cf(1.5,0.5,0) * euler(0,0,1.57-1.37*i)
  1388. RWL.C0 = cf(0,-0.5,0) * euler(0,0,0.1-0.1*i)
  1389. LWL.C0 = cf(0,-0.5,0) * euler(0,0,-0.1+0.1*i)
  1390. rfistwld1.C0=euler(-1.6+1*i,1.37-1.57*i,0)*cf(-5+1*i,-1-1*i,1*i)
  1391. lfistwld1.C0=euler(-1.6+1*i,-1.37+1.57*i,0)*cf(5-1*i,-1-1*i,1*i)
  1392. end
  1393. RWL.Parent = nil
  1394. LWL.Parent = nil
  1395. RH.Parent = player.Character.Torso
  1396. LH.Parent = player.Character.Torso
  1397. canidle=true
  1398. elseif Mode=="Battle" then
  1399. Mode="Robot"
  1400. workspace.CurrentCamera.CameraSubject=RootPart
  1401. workspace.CurrentCamera.CameraType = "Track"
  1402. modelzorz.Parent=Character
  1403. RootJoint.Part1=tors1
  1404. RootJoint.C0=euler(-1.57,0,3.14)
  1405. rfistwld1.Part1=Torso
  1406. lfistwld1.Part1=Torso
  1407. for e=1,#RobotWelds do
  1408. RobotWelds[e].Parent=Torso
  1409. end
  1410. for _,v in pairs(modelzorz:children()) do
  1411. if v.className=="Part" then
  1412. coroutine.resume(coroutine.create(function(Part)
  1413. for i=0,1,0.1 do
  1414. wait(0)
  1415. Part.Transparency=Part.Transparency-0.1
  1416. end
  1417. if Part.Name~="Torso Hitbox" and Part.Name~="Left Leg Hitbox" and Part.Name~="Right Leg Hitbox" then
  1418. Part.Transparency=0
  1419. end
  1420. end),v)
  1421. end
  1422. end
  1423. player = Player
  1424. ch = Character
  1425. RH = ch.Torso["Right Hip"]
  1426. LH = ch.Torso["Left Hip"]
  1427. --
  1428. RH.Parent = nil
  1429. LH.Parent = nil
  1430. --
  1431. RWL.Part0 = ch.Torso
  1432. RWL.C0 = cf(0, -1.5, 0) --* euler(1.3, 0, -0.5)
  1433. RWL.C1 = cf(-0.5, 0.5, 0)
  1434. RWL.Part1 = ch["Right Leg"]
  1435. RWL.Parent = ch.Torso
  1436. --_G.R = RW
  1437. --
  1438. LWL.Part0 = ch.Torso
  1439. LWL.C0 = cf(0, -1.5, 0) --* euler(1.7, 0, 0.8)
  1440. LWL.C1 = cf(0.5, 0.5, 0)
  1441. LWL.Part1 = ch["Left Leg"]
  1442. LWL.Parent = ch.Torso
  1443. --_G.L = LW
  1444. --
  1445. for i=0,1,0.1 do
  1446. wait()
  1447. Neck.C0=necko*euler(0.6*i,0,0)
  1448. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-0.2-1.37*i)
  1449. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.2+1.37*i)
  1450. RWL.C0 = cf(0,-0.5,0) * euler(1*i,0,0.1)
  1451. LWL.C0 = cf(0,-0.5,0) * euler(1*i,0,-0.1)
  1452. rfistwld1.C0=euler(-0.6-0.4*i,-0.2,0)*cf(-4-2*i,-2+7*i,1+1*i)
  1453. lfistwld1.C0=euler(-0.6-0.4*i,0.2,0)*cf(4-4*i,-2+7*i,1+1*i)
  1454. torswld1.C0=euler(0.2*i,0,0)*cf(-3*i,-2.4+(2.3+2.4)*i,0)
  1455. RootCF=euler(-1.57,0,3.14)*cf(0,0,2.4*i)
  1456. RootJoint.C0=RootCF
  1457. end
  1458. RWL.C0 = cf(0,-0.5,0) * euler(1,0,0.1)
  1459. RWL.C1 = cf(-0.5,1.5,0) * euler(0,0,0)
  1460. LWL.C0 = cf(0,-0.5,0) * euler(1,0,-0.1)
  1461. LWL.C1 = cf(0.5,1.5,0) * euler(0,0,0)
  1462. rfistwld1.Part1=rarm13
  1463. rfistwld1.C0=euler(0,0,0)*cf(0,1,0)
  1464. lfistwld1.Part1=larm13
  1465. lfistwld1.C0=euler(0,0,0)*cf(0,1,0)
  1466. wait(0.2)
  1467. closefistl()
  1468. closefistr()
  1469. for i=0,1,0.1 do
  1470. wait()
  1471. Neck.C0=necko*euler(0.6-0.4*i,0,0)
  1472. LW.C0 = cf(-1.5,0.5,0) * euler(2*i,0,-1.57+1.57*i)
  1473. RW.C0 = cf(1.5,0.5,0) * euler(2*i,0,1.57-1.57*i)
  1474. larmwld11.C0=euler(-0.5-1*i,0,0.2-0.2*i)*cf(0,0.8,0)
  1475. rarmwld11.C0=euler(-0.5-1*i,0,-0.2+0.2*i)*cf(0,0.8,0)
  1476. end
  1477. for i=0,1,0.1 do
  1478. wait()
  1479. LW.C0 = cf(-1.5,0.5,0) * euler(2-3*i,0,0)
  1480. RW.C0 = cf(1.5,0.5,0) * euler(2-3*i,0,0)
  1481. larmwld11.C0=euler(-1.5+2*i,0,0)*cf(0,0.8,0)
  1482. rarmwld11.C0=euler(-1.5+2*i,0,0)*cf(0,0.8,0)
  1483. end
  1484. openfistl()
  1485. openfistr()
  1486. for i=0,1,0.1 do
  1487. wait()
  1488. LW.C0 = cf(-1.5,0.5,0) * euler(-1+0.8*i,0,0)
  1489. RW.C0 = cf(1.5,0.5,0) * euler(-1+0.7*i,0,0.1*i)
  1490. larmwld11.C0=euler(0.5-1*i,0,0.2*i)*cf(0,0.8,0)
  1491. rarmwld11.C0=euler(0.5-1*i,0,-0.2*i)*cf(0,0.8,0)
  1492. end
  1493. LW.C0 = cf(-1.5,0.5,0) * euler(-0.2,0,0)
  1494. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1495. RW.C0 = cf(1.5,0.5,0) * euler(-0.3,0,0.1)
  1496. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1497. canidle=true
  1498. end
  1499. end
  1500.  
  1501. function findNearestTorso(pos,distance)
  1502. local list = game.Workspace:children()
  1503. local torso = nil
  1504. local dist = distance
  1505. local temp = nil
  1506. local human = nil
  1507. local temp2 = nil
  1508. for x = 1, #list do
  1509. temp2 = list[x]
  1510. if (temp2.className == "Model") and (temp2 ~= Character) then
  1511. temp = temp2:findFirstChild("Torso")
  1512. human = temp2:findFirstChild("Humanoid")
  1513. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1514. if (temp.Position - pos).magnitude < dist then
  1515. torso = temp
  1516. dist = (temp.Position - pos).magnitude
  1517. end
  1518. end
  1519. end
  1520. end
  1521. return torso
  1522. end
  1523.  
  1524. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1525. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1526. prt.Anchored=true
  1527. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1528. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1529. coroutine.resume(coroutine.create(function(Part,Mesh)
  1530. for i=0,1,0.1 do
  1531. wait()
  1532. Part.CFrame=Part.CFrame
  1533. Part.Transparency=i
  1534. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1535. end
  1536. Part.Parent=nil
  1537. end),prt,msh)
  1538. end
  1539.  
  1540. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1541. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1542. prt.Anchored=true
  1543. prt.CFrame=cframe
  1544. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1545. coroutine.resume(coroutine.create(function(Part,Mesh)
  1546. for i=0,1,0.1 do
  1547. wait()
  1548. Part.CFrame=Part.CFrame
  1549. Part.Transparency=i
  1550. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1551. end
  1552. Part.Parent=nil
  1553. end),prt,msh)
  1554. end
  1555.  
  1556. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1557. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1558. prt.Anchored=true
  1559. prt.CFrame=cframe
  1560. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  1561. coroutine.resume(coroutine.create(function(Part,Mesh)
  1562. for i=0,1,0.03 do
  1563. wait()
  1564. Part.CFrame=Part.CFrame
  1565. Part.Transparency=i
  1566. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1567. end
  1568. Part.Parent=nil
  1569. end),prt,msh)
  1570. end
  1571.  
  1572. function Lightning(p0,p1,tym,ofs,col,th,tra)
  1573. local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
  1574. for i=1,tym do
  1575. local li = Instance.new("Part",modelzorz) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col)
  1576. li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(th,th,magz/tym) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  1577. local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
  1578. if tym == i then
  1579. local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
  1580. li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
  1581. else
  1582. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
  1583. end
  1584. curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,.5)
  1585. end
  1586. end
  1587.  
  1588. Damagefunc1=function(hit,Damage,Knockback)
  1589. if hit.Parent==nil then
  1590. return
  1591. end
  1592. CPlayer=Bin
  1593. h=hit.Parent:FindFirstChild("Humanoid")
  1594. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1595. if attackdebounce == false then
  1596. attackdebounce = true
  1597. coroutine.resume(coroutine.create(function()
  1598. wait(0.2)
  1599. attackdebounce = false
  1600. end))
  1601. Damage=Damage
  1602. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1603. return
  1604. end]]
  1605. -- hs(hit,1.2)
  1606. c=Instance.new("ObjectValue")
  1607. c.Name="creator"
  1608. c.Value=game.Players.LocalPlayer
  1609. c.Parent=h
  1610. game:GetService("Debris"):AddItem(c,.5)
  1611. Damage=999e999
  1612. -- h:TakeDamage(Damage)
  1613. blocked=false
  1614. block=hit.Parent:findFirstChild("Block")
  1615. if block~=nil then
  1616. print("herp")
  1617. if block.Value>0 then
  1618. blocked=true
  1619. block.Value=block.Value-1
  1620. print(block.Value)
  1621. end
  1622. end
  1623. if blocked==false then
  1624. -- h:TakeDamage(Damage)
  1625. h.Health=h.Health-Damage
  1626. showDamage(hit.Parent,Damage,.5)
  1627. else
  1628. Damage=Damage/2
  1629. h:TakeDamage(Damage)
  1630. showDamage(hit.Parent,Damage,.5)
  1631. end
  1632. vp=Instance.new("BodyVelocity")
  1633. vp.P=500
  1634. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1635. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1636. vp.velocity=RootPart.CFrame.lookVector*Knockback+RootPart.Velocity/1.05
  1637. if Knockback>0 then
  1638. vp.Parent=hit.Parent.Torso
  1639. end
  1640. game:GetService("Debris"):AddItem(vp,.25)
  1641. game:GetService("Debris"):AddItem(r,.5)
  1642. c=Instance.new("ObjectValue")
  1643. c.Name="creator"
  1644. c.Value=Player
  1645. c.Parent=h
  1646. game:GetService("Debris"):AddItem(c,.5)
  1647. CRIT=false
  1648. hitDeb=true
  1649. AttackPos=6
  1650. end
  1651. end
  1652. end
  1653.  
  1654. showDamage=function(Char,Dealt,du)
  1655. m=Instance.new("Model")
  1656. m.Name=tostring(Dealt)
  1657. h=Instance.new("Humanoid")
  1658. h.Health=0
  1659. h.MaxHealth=0
  1660. h.Parent=m
  1661. c=Instance.new("Part")
  1662. c.Transparency=0
  1663. c.BrickColor=BrickColor:Red()
  1664. if CRIT==true then
  1665. c.BrickColor=BrickColor.new("Really red")
  1666. end
  1667. c.Name="Head"
  1668. c.TopSurface=0
  1669. c.BottomSurface=0
  1670. c.formFactor="Plate"
  1671. c.Size=Vector3.new(1,.4,1)
  1672. ms=Instance.new("CylinderMesh")
  1673. ms.Scale=Vector3.new(.8,.8,.8)
  1674. if CRIT==true then
  1675. ms.Scale=Vector3.new(1,1.25,1)
  1676. end
  1677. ms.Parent=c
  1678. c.Reflectance=0
  1679. Instance.new("BodyGyro").Parent=c
  1680. c.Parent=m
  1681. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1682. f=Instance.new("BodyPosition")
  1683. f.P=2000
  1684. f.D=100
  1685. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1686. f.position=c.Position+Vector3.new(0,3,0)
  1687. f.Parent=c
  1688. game:GetService("Debris"):AddItem(m,.5+du)
  1689. c.CanCollide=false
  1690. m.Parent=workspace
  1691. c.CanCollide=false
  1692. end
  1693.  
  1694. function ob1d(mouse)
  1695. if attack == true then return end
  1696. hold=true
  1697. if Mode=="Robot" then
  1698. if idle==false then
  1699. MovingPunch()
  1700. end
  1701. Humanoid.WalkSpeed=0
  1702. if idle==true then
  1703. canidle=false
  1704. attackone()
  1705. attacktwo()
  1706. canidle=true
  1707. end
  1708. attack=false
  1709. Humanoid.WalkSpeed=16
  1710. elseif Mode=="Battle" then
  1711. canidle=false
  1712. punchone()
  1713. punchtwo()
  1714. wait(1)
  1715. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-0.2)
  1716. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.2)
  1717. RootJoint.C0=euler(-1.57,0,3.14)
  1718. attack=false
  1719. canidle=true
  1720. end
  1721. end
  1722.  
  1723. function ob1u(mouse)
  1724. hold = false
  1725. end
  1726.  
  1727. buttonhold = false
  1728.  
  1729. function key(key)
  1730. if key=="x" then
  1731. if debouncerockets==true then return end
  1732. debouncerockets=true
  1733. Rockets()
  1734. debouncerockets=false
  1735. end
  1736. if key=="c" then
  1737. if debounceorb==true then return end
  1738. debounceorb=true
  1739. LightningOrb()
  1740. debounceorb=false
  1741. end
  1742. if attack == true then return end
  1743. if key=="q" then
  1744. if aiming==false then
  1745. Aim()
  1746. elseif aiming==true then
  1747. NoAim()
  1748. end
  1749. end
  1750. if key=="z" then
  1751. canidle=false
  1752. RocketPunch()
  1753. canidle=true
  1754. end
  1755. if key=="f" then
  1756. print("RESTART LMAO")
  1757. restarted=true
  1758. RootJoint.Part1=Torso
  1759. RootJoint.C0=euler(-1.57,0,3.14)
  1760. RW.Parent = nil
  1761. LW.Parent = nil
  1762. RWL.Parent = nil
  1763. LWL.Parent = nil
  1764. RSH.Parent = player.Character.Torso
  1765. LSH.Parent = player.Character.Torso
  1766. RH.Parent = player.Character.Torso
  1767. LH.Parent = player.Character.Torso
  1768. Neck.C0=necko
  1769. modelzorz.Parent=nil
  1770. workspace.CurrentCamera.CameraSubject=Humanoid
  1771. workspace.CurrentCamera.CameraType = "Custom"
  1772. end
  1773. if key=="g" then
  1774. ModeChange()
  1775. end
  1776. if key=="h" then
  1777. so("http://roblox.com/asset/?id=133489855",Torso,1,1)
  1778. wait(0.7)
  1779. so("http://roblox.com/asset/?id=144844438",Torso,1,1)
  1780. print("SOUND")
  1781. end
  1782. end
  1783.  
  1784. function key2(key)
  1785. if key=="e" then
  1786. holdrockets=false
  1787. end
  1788. end
  1789.  
  1790. function s(mouse)
  1791. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1792. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1793. mouse.KeyDown:connect(key)
  1794. mouse.KeyUp:connect(key2)
  1795. unsheathed = true
  1796. player = Player
  1797. ch = Character
  1798. MMouse = mouse
  1799. equipanim()
  1800. end
  1801.  
  1802. function ds(mouse)
  1803. hideanim()
  1804. wait(0)
  1805. end
  1806.  
  1807. Bin.Selected:connect(s)
  1808. Bin.Deselected:connect(ds)
  1809. print("Roi loaded.")
  1810. while restarted==false do
  1811. if Mode=="Robot" then
  1812. wait()
  1813. if canidle==true then
  1814. if (Torso.Velocity*Vector3.new(1,0,1)).magnitude < 0.2 then
  1815. idle=true
  1816. armwalk=false
  1817. if doingidle==false then
  1818. RootCF=euler(-1.57,0,3.14)*cf(0,0,2.4)
  1819. coroutine.resume(coroutine.create(function()
  1820. doingidle=true
  1821. if math.random(1,5)==1 then
  1822. idlefistr()
  1823. end
  1824. if math.random(1,5)==1 then
  1825. idlefistl()
  1826. end
  1827. for i=0,1,0.01 do
  1828. if idle==true then
  1829. wait()
  1830. RootJoint.C0=RootCF*cf(0,0,-0.5*i)
  1831. llegwld2.C0=euler(0,0,1.57)*cf(0,-0.5*i,0)
  1832. rlegwld2.C0=euler(0,0,1.57)*cf(0,-0.5*i,0)
  1833. larmwld11.C0=euler(-0.5+0.2*i,0,0.2)*cf(0,0.8,0)
  1834. rarmwld11.C0=euler(-0.5+0.2*i,0,-0.2)*cf(0,0.8,0)
  1835. end
  1836. end
  1837. if math.random(1,5)==1 then
  1838. idlefistr()
  1839. end
  1840. if math.random(1,5)==1 then
  1841. idlefistl()
  1842. end
  1843. for i=0,1,0.01 do
  1844. if idle==true then
  1845. wait()
  1846. RootJoint.C0=RootCF*cf(0,0,-0.5+0.5*i)
  1847. llegwld2.C0=euler(0,0,1.57)*cf(0,-0.5+0.5*i,0)
  1848. rlegwld2.C0=euler(0,0,1.57)*cf(0,-0.5+0.5*i,0)
  1849. larmwld11.C0=euler(-0.5+0.2-0.2*i,0,0.2)*cf(0,0.8,0)
  1850. rarmwld11.C0=euler(-0.5+0.2-0.2*i,0,-0.2)*cf(0,0.8,0)
  1851. end
  1852. end
  1853. if math.random(1,5)==1 then
  1854. idlefistr()
  1855. end
  1856. if math.random(1,5)==1 then
  1857. idlefistl()
  1858. end
  1859. doingidle=false
  1860. end))
  1861. end
  1862. end
  1863. if (Torso.Velocity*Vector3.new(1,0,1)).magnitude > 0.2 then
  1864. idle=false
  1865. if armwalk==false then
  1866. armwalk=true
  1867. coroutine.resume(coroutine.create(function()
  1868. for i=0,1,0.05 do
  1869. wait()
  1870. larmwld11.C0=euler(-0.5,0,0.2+1*i)*cf(1*i,0.8-0.1*i,0)
  1871. rarmwld11.C0=euler(-0.5,0,-0.2-1*i)*cf(-1*i,0.8-0.1*i,0)
  1872. end
  1873. while armwalk==true do
  1874. wait()
  1875. end
  1876. larmwld11.C0=euler(-0.5,0,0.2)*cf(0,0.8,0)
  1877. rarmwld11.C0=euler(-0.5,0,-0.2)*cf(0,0.8,0)
  1878. end))
  1879. end
  1880. if doingwalk==false then
  1881. coroutine.resume(coroutine.create(function()
  1882. doingwalk=true
  1883. for i=0,1,0.1 do
  1884. if idle==false then
  1885. wait()
  1886. RootJoint.C0=RootCF*cf(0,0,-0.7*i)*euler(0.1*i,0,-0.2*i)
  1887. llegwld2.C0=euler(0.5*i,1*i,1.57)*cf(0,0,0)
  1888. rlegwld2.C0=euler(0,-1*i,1.57)*cf(0,0,0)
  1889. end
  1890. end
  1891. for i=0,1,0.1 do
  1892. if idle==false then
  1893. wait()
  1894. RootJoint.C0=RootCF*cf(0,0,-0.7+0.7*i)*euler(0.1-0.1*i,0,-0.2+0.2*i)
  1895. llegwld2.C0=euler(0.5-0.5*i,1-1*i,1.57)*cf(0,0,0)
  1896. rlegwld2.C0=euler(0,-1+1*i,1.57)*cf(0,0,0)
  1897. end
  1898. end
  1899. for i=0,1,0.1 do
  1900. if idle==false then
  1901. wait()
  1902. RootJoint.C0=RootCF*cf(0,0,-0.7*i)*euler(0.1*i,0,0.2*i)
  1903. llegwld2.C0=euler(0,-1*i,1.57)*cf(0,0,0)
  1904. rlegwld2.C0=euler(-0.5*i,1*i,1.57)*cf(0,0,0)
  1905. end
  1906. end
  1907. for i=0,1,0.1 do
  1908. if idle==false then
  1909. wait()
  1910. RootJoint.C0=RootCF*cf(0,0,-0.7+0.7*i)*euler(0.1-0.1*i,0,0.2-0.2*i)
  1911. llegwld2.C0=euler(0,-1+1*i,1.57)*cf(0,0,0)
  1912. rlegwld2.C0=euler(-0.5+0.5*i,1-1*i,1.57)*cf(0,0,0)
  1913. end
  1914. end
  1915. doingwalk=false
  1916. end))
  1917. end
  1918. --RootJoint.C0=RootCF
  1919. --llegwld2.C0=euler(0,0,1.57)*cf(0,0,0)
  1920. --rlegwld2.C0=euler(0,0,1.57)*cf(0,0,0)
  1921. --larmwld11.C0=euler(-0.5,0,0.2)*cf(0,0.8,0)
  1922. --rarmwld11.C0=euler(-0.5,0,-0.2)*cf(0,0.8,0)
  1923. end
  1924. end
  1925. elseif Mode=="Battle" then
  1926. wait()
  1927. if canidle==true then
  1928. idle=true
  1929. armwalk=false
  1930. if doingidle==false then
  1931. RootCF=euler(-1.57,0,3.14)*cf(0,0,2.4)
  1932. coroutine.resume(coroutine.create(function()
  1933. doingidle=true
  1934. for i=0,1,0.01 do
  1935. if idle==true then
  1936. wait()
  1937. rfistwld1.C0=euler(-0.6+0.1*i,-0.2,0)*cf(-4,-2+0.1*i,1)
  1938. lfistwld1.C0=euler(-0.6+0.1*i,0.2,0)*cf(4,-2+0.1*i,1)
  1939. end
  1940. end
  1941. if math.random(1,5)==1 then
  1942. idlefistr()
  1943. end
  1944. if math.random(1,5)==1 then
  1945. idlefistl()
  1946. end
  1947. for i=0,1,0.01 do
  1948. if idle==true then
  1949. wait()
  1950. rfistwld1.C0=euler(-0.6+0.1-0.1*i,-0.2,0)*cf(-4,-2+0.1-0.1*i,1)
  1951. lfistwld1.C0=euler(-0.6+0.1-0.1*i,0.2,0)*cf(4,-2+0.1-0.1*i,1)
  1952. end
  1953. end
  1954. if math.random(1,5)==1 then
  1955. idlefistr()
  1956. end
  1957. if math.random(1,5)==1 then
  1958. idlefistl()
  1959. end
  1960. doingidle=false
  1961. end))
  1962. end
  1963. end
  1964. end
  1965. end
  1966. -- mediafire
  1967. --[[
  1968. Copyrighted (C) Fenrier 2014
  1969. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement