Advertisement
RyanDaCoder

Great Roi

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