TheProNoob2004

Great Roi

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