Mr-Shadow_Cat

Deul ruin edit

Dec 10th, 2017
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 82.47 KB | None | 0 0
  1. --NoobyGames12
  2.  
  3. print'lets do this'
  4.  
  5. plr = game.Players.LocalPlayer
  6. char = plr.Character
  7. hum = char.Humanoid
  8. local cam = game.Workspace.CurrentCamera
  9. Torso = char.Torso
  10. t = char.Torso
  11. h = char.Head
  12. ra = char["Right Arm"]
  13. la = char["Left Arm"]
  14. rl = char["Right Leg"]
  15. ll = char["Left Leg"]
  16. tors = char.Torso
  17. lleg = char["Left Leg"]
  18. root = char.HumanoidRootPart
  19. hed = char.Head
  20. rleg = char["Right Leg"]
  21. rarm = char["Right Arm"]
  22. larm = char["Left Arm"]
  23. vt = Vector3.new
  24. bc = BrickColor.new
  25. br = BrickColor.random
  26. it = Instance.new
  27. cf = CFrame.new
  28.  
  29. shirt = Instance.new("Shirt", Character)
  30. shirt.Name = "Shirt"
  31. pants = Instance.new("Pants", Character)
  32. pants.Name = "Pants"
  33. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=956639020"
  34. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=745660718"
  35.  
  36. local Music = Instance.new("Sound")
  37.  
  38. Music.Name = "Sound"
  39. Music.SoundId = "http://roblox.com/asset/?id=682499163"
  40. Music.Volume = 8
  41. Music.Looped = true
  42. Music.Parent = Torso
  43.  
  44.  
  45. local m = Instance.new("Model",char)
  46. m.Name = "GaunletModel"
  47.  
  48. local maincolor = BrickColor.new("Royal purple")
  49. local maincolor2 = BrickColor.new("Really black")
  50.  
  51. function CreatePart(parent,transparency,reflectance,material,brickcolor)
  52. local p = Instance.new("Part")
  53. p.Parent = parent
  54. p.Size = Vector3.new(1,1,1)
  55. p.Transparency = transparency
  56. p.Reflectance = reflectance
  57. p.CanCollide = false
  58. p.BrickColor = brickcolor
  59. p.Material = material
  60. return p
  61. end
  62.  
  63. function CreateMesh(parent,meshtype,x1,y1,z1)
  64. local mesh = Instance.new("SpecialMesh",parent)
  65. mesh.MeshType = meshtype
  66. mesh.Scale = Vector3.new(x1,y1,z1)
  67. return mesh
  68. end
  69.  
  70. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  71. local mesh = Instance.new("SpecialMesh",parent)
  72. mesh.MeshType = "SpecialMesh"
  73. mesh.MeshId = meshid
  74. mesh.Scale = Vector3.new(x1,y1,z1)
  75. return mesh
  76. end
  77.  
  78. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  79. local mesh = Instance.new("SpecialMesh",parent)
  80. mesh.MeshType = "FileMesh"
  81. mesh.MeshId = meshid
  82. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  83. mesh.Scale = Vector3.new(x1,y1,z1)
  84. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  85. return mesh
  86. end
  87.  
  88. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  89. local weld = Instance.new("Weld")
  90. weld.Parent = parent
  91. weld.Part0 = part0
  92. weld.Part1 = part1
  93. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  94. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  95. return weld
  96. end
  97.  
  98. local llegw = CreatePart(m,1,1,"SmoothPlastic",maincolor2)
  99. CreateWeld(llegw,lleg,llegw,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  100. local rlegw = CreatePart(m,1,1,"SmoothPlastic",maincolor2)
  101. CreateWeld(rlegw,rleg,rlegw,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  102.  
  103. local sorb = CreatePart(m,1,1,"SmoothPlastic",maincolor2)
  104. CreateWeld(sorb,rarm,sorb,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  105. local sorb2 = CreatePart(m,1,1,"SmoothPlastic",maincolor2)
  106. CreateWeld(sorb2,larm,sorb2,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  107.  
  108. ---- Right arm
  109. local handle = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  110. CreateMesh(handle,"Brick",1.05,1.5,1.05)
  111. CreateWeld(handle,rarm,handle,0,-0.265,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  112. local lowhandle = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  113. CreateMesh(lowhandle,"Brick",1.025,0.3,1.025)
  114. CreateWeld(lowhandle,rarm,lowhandle,0,0.865,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  115. local lowhandleo = CreatePart(m,0,0,"Neon",maincolor)
  116. CreateMesh(lowhandleo,"Brick",1.02,0.3,1.02)
  117. CreateWeld(lowhandleo,rarm,lowhandleo,0,0.835,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  118. local handleg = CreatePart(m,0,0,"Neon",maincolor)
  119. CreateMesh(handleg,"Brick",1.025,1.5,1.025)
  120. CreateWeld(handleg,handle,handleg,0,0.1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  121. local handleo = CreatePart(m,0,0,"Neon",maincolor)
  122. CreateMesh(handleo,"Brick",0.5,0.85,1.085)
  123. CreateWeld(handleo,handle,handleo,-0.315,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  124. local handleo2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  125. CreateMesh(handleo2,"Brick",0.5,0.8,1.09)
  126. CreateWeld(handleo2,handle,handleo2,-0.3175,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  127. local zi = CreatePart(m,0,0,"Neon",maincolor)
  128. CreateMesh(zi,"Brick",0.025,1.525,1.1)
  129. CreateWeld(zi,handle,zi,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  130.  
  131. local to = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  132. CreateMesh(to,"Brick",0.5,1.5,0.5)
  133. CreateWeld(to,handle,to,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  134. local tl = CreatePart(m,0,0,"Neon",maincolor)
  135. CreateMesh(tl,"Brick",0.6,1.45,0.6)
  136. CreateWeld(tl,handle,tl,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  137.  
  138. local zo = CreatePart(m,0,0,"Neon",maincolor)
  139. CreateMesh(zo,"Brick",0.565,0.025,1.1)
  140. CreateWeld(zo,handle,zo,-0.275,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  141. local zoa = CreatePart(m,0,0,"Neon",maincolor)
  142. CreateMesh(zoa,"Brick",0.565,0.025,1.1)
  143. CreateWeld(zoa,handle,zoa,-0.275,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  144. local zob = CreatePart(m,0,0,"Neon",maincolor)
  145. CreateMesh(zob,"Brick",0.565,0.025,1.1)
  146. CreateWeld(zob,handle,zob,-0.275,0.7,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  147. local zz = CreatePart(m,0,0,"Neon",maincolor)
  148. CreateMesh(zz,"Brick",0.3,0.3,0.3)
  149. CreateWeld(zz,zoa,zz,-0.15,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  150. local zzo = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  151. CreateMesh(zzo,"Brick",0.315,0.275,0.275)
  152. CreateWeld(zzo,zz,zzo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  153.  
  154. local li = CreatePart(m,0,0,"Neon",maincolor)
  155. CreateMesh(li,"Brick",0.275,0.825,0.025)
  156. CreateWeld(li,handleo,li,-0.125,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  157.  
  158. local li1 = CreatePart(m,0,0,"Neon",maincolor)
  159. CreateMesh(li1,"Brick",0.275,0.825,0.025)
  160. CreateWeld(li1,handleo,li1,-0.125,0,0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  161. local li2 = CreatePart(m,0,0,"Neon",maincolor)
  162. CreateMesh(li2,"Brick",0.275,0.825,0.025)
  163. CreateWeld(li2,handleo,li2,-0.125,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  164.  
  165. local di = CreatePart(m,0,0,"Neon",maincolor)
  166. CreateMesh(di,"Brick",0.3,0.3,0.3)
  167. CreateWeld(di,handleo,di,-0.125,0,0,math.rad(45),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  168.  
  169. local di1 = CreatePart(m,0,0,"Neon",maincolor)
  170. CreateMesh(di1,"Brick",0.3,0.15,0.15)
  171. CreateWeld(di1,di,di1,0,0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  172. local di2 = CreatePart(m,0,0,"Neon",maincolor)
  173. CreateMesh(di2,"Brick",0.3,0.15,0.15)
  174. CreateWeld(di2,di,di2,0,0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  175. local di3 = CreatePart(m,0,0,"Neon",maincolor)
  176. CreateMesh(di3,"Brick",0.3,0.15,0.15)
  177. CreateWeld(di3,di,di3,0,-0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  178. local di4 = CreatePart(m,0,0,"Neon",maincolor)
  179. CreateMesh(di4,"Brick",0.3,0.15,0.15)
  180. CreateWeld(di4,di,di4,0,-0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  181. local dio = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  182. CreateMesh(dio,"Brick",0.325,0.275,0.275)
  183. CreateWeld(dio,di,dio,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  184. local dio1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  185. CreateMesh(dio1,"Brick",0.325,0.125,0.125)
  186. CreateWeld(dio1,di1,dio1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  187. local dio2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  188. CreateMesh(dio2,"Brick",0.325,0.125,0.125)
  189. CreateWeld(dio2,di2,dio2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  190. local dio3 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  191. CreateMesh(dio3,"Brick",0.325,0.125,0.125)
  192. CreateWeld(dio3,di3,dio3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  193. local dio4 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  194. CreateMesh(dio4,"Brick",0.325,0.125,0.125)
  195. CreateWeld(dio4,di4,dio4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  196.  
  197. local sq1 = CreatePart(m,0,0,"Neon",maincolor)
  198. CreateMesh(sq1,"Brick",0.3,0.125,0.125)
  199. CreateWeld(sq1,handleo,sq1,-0.125,0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  200. local sq2 = CreatePart(m,0,0,"Neon",maincolor)
  201. CreateMesh(sq2,"Brick",0.3,0.125,0.125)
  202. CreateWeld(sq2,handleo,sq2,-0.125,-0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  203. local sq3 = CreatePart(m,0,0,"Neon",maincolor)
  204. CreateMesh(sq3,"Brick",0.3,0.125,0.125)
  205. CreateWeld(sq3,handleo,sq3,-0.125,0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  206. local sq4 = CreatePart(m,0,0,"Neon",maincolor)
  207. CreateMesh(sq4,"Brick",0.3,0.125,0.125)
  208. CreateWeld(sq4,handleo,sq4,-0.125,-0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  209.  
  210. local sqo1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  211. CreateMesh(sqo1,"Brick",0.3115,0.1115,0.1115)
  212. CreateWeld(sqo1,sq1,sqo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  213. local sqo2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  214. CreateMesh(sqo2,"Brick",0.3115,0.1115,0.1115)
  215. CreateWeld(sqo2,sq2,sqo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  216. local sqo3 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  217. CreateMesh(sqo3,"Brick",0.3115,0.1115,0.1115)
  218. CreateWeld(sqo3,sq3,sqo3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  219. local sqo4 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  220. CreateMesh(sqo4,"Brick",0.3115,0.1115,0.1115)
  221. CreateWeld(sqo4,sq4,sqo4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  222.  
  223. local locl = CreatePart(m,0,0,"Neon",maincolor)
  224. CreateMesh(locl,"Brick",0.1,0.1,0.1)
  225. CreateWeld(locl,handle,locl,0,0,0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  226.  
  227. local dil = CreatePart(m,0,0,"Neon",maincolor)
  228. CreateMesh(dil,"Brick",0.45,0.45,0.3)
  229. CreateWeld(dil,locl,dil,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  230.  
  231. local dil1 = CreatePart(m,0,0,"Neon",maincolor)
  232. CreateMesh(dil1,"Brick",0.225,0.225,0.3)
  233. CreateWeld(dil1,dil,dil1,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  234. local dil2 = CreatePart(m,0,0,"Neon",maincolor)
  235. CreateMesh(dil2,"Brick",0.225,0.225,0.3)
  236. CreateWeld(dil2,dil,dil2,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  237.  
  238. local dilo = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  239. CreateMesh(dilo,"Brick",0.375,0.375,0.315)
  240. CreateWeld(dilo,dil,dilo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  241. local dilo1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  242. CreateMesh(dilo1,"Brick",0.175,0.175,0.315)
  243. CreateWeld(dilo1,dil1,dilo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  244. local dilo2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  245. CreateMesh(dilo2,"Brick",0.175,0.175,0.315)
  246. CreateWeld(dilo2,dil2,dilo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  247.  
  248. local locr = CreatePart(m,0,0,"Neon",maincolor)
  249. CreateMesh(locr,"Brick",0.1,0.1,0.1)
  250. CreateWeld(locr,handle,locr,0,0,-0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  251.  
  252. local dir = CreatePart(m,0,0,"Neon",maincolor)
  253. CreateMesh(dir,"Brick",0.45,0.45,0.3)
  254. CreateWeld(dir,locr,dir,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  255.  
  256. local dir1 = CreatePart(m,0,0,"Neon",maincolor)
  257. CreateMesh(dir1,"Brick",0.225,0.225,0.3)
  258. CreateWeld(dir1,dir,dir1,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  259. local dir2 = CreatePart(m,0,0,"Neon",maincolor)
  260. CreateMesh(dir2,"Brick",0.225,0.225,0.3)
  261. CreateWeld(dir2,dir,dir2,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  262.  
  263. local diro = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  264. CreateMesh(diro,"Brick",0.375,0.375,0.315)
  265. CreateWeld(diro,dir,diro,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  266. local diro1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  267. CreateMesh(diro1,"Brick",0.175,0.175,0.315)
  268. CreateWeld(diro1,dir1,diro1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  269. local diro2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  270. CreateMesh(diro2,"Brick",0.175,0.175,0.315)
  271. CreateWeld(diro2,dir2,diro2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  272.  
  273. ---- Left arm
  274. local handle = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  275. CreateMesh(handle,"Brick",1.05,1.5,1.05)
  276. CreateWeld(handle,larm,handle,0,-0.265,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  277. local lowhandle = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  278. CreateMesh(lowhandle,"Brick",1.025,0.3,1.025)
  279. CreateWeld(lowhandle,larm,lowhandle,0,0.865,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  280. local lowhandleo = CreatePart(m,0,0,"Neon",maincolor)
  281. CreateMesh(lowhandleo,"Brick",1.02,0.3,1.02)
  282. CreateWeld(lowhandleo,larm,lowhandleo,0,0.835,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  283. local handleg = CreatePart(m,0,0,"Neon",maincolor)
  284. CreateMesh(handleg,"Brick",1.025,1.5,1.025)
  285. CreateWeld(handleg,handle,handleg,0,0.1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  286. local handleo = CreatePart(m,0,0,"Neon",maincolor)
  287. CreateMesh(handleo,"Brick",0.5,0.85,1.085)
  288. CreateWeld(handleo,handle,handleo,0.315,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  289. local handleo2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  290. CreateMesh(handleo2,"Brick",0.5,0.8,1.09)
  291. CreateWeld(handleo2,handle,handleo2,0.3175,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  292. local zi = CreatePart(m,0,0,"Neon",maincolor)
  293. CreateMesh(zi,"Brick",0.025,1.525,1.1)
  294. CreateWeld(zi,handle,zi,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  295.  
  296. local to = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  297. CreateMesh(to,"Brick",0.5,1.5,0.5)
  298. CreateWeld(to,handle,to,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  299. local tl = CreatePart(m,0,0,"Neon",maincolor)
  300. CreateMesh(tl,"Brick",0.6,1.45,0.6)
  301. CreateWeld(tl,handle,tl,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  302.  
  303. local zo = CreatePart(m,0,0,"Neon",maincolor)
  304. CreateMesh(zo,"Brick",0.565,0.025,1.1)
  305. CreateWeld(zo,handle,zo,0.275,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  306. local zoa = CreatePart(m,0,0,"Neon",maincolor)
  307. CreateMesh(zoa,"Brick",0.565,0.025,1.1)
  308. CreateWeld(zoa,handle,zoa,0.275,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  309. local zob = CreatePart(m,0,0,"Neon",maincolor)
  310. CreateMesh(zob,"Brick",0.565,0.025,1.1)
  311. CreateWeld(zob,handle,zob,0.275,0.7,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  312. local zz = CreatePart(m,0,0,"Neon",maincolor)
  313. CreateMesh(zz,"Brick",0.3,0.3,0.3)
  314. CreateWeld(zz,zoa,zz,0.15,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  315. local zzo = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  316. CreateMesh(zzo,"Brick",0.315,0.275,0.275)
  317. CreateWeld(zzo,zz,zzo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  318.  
  319. local li = CreatePart(m,0,0,"Neon",maincolor)
  320. CreateMesh(li,"Brick",0.275,0.825,0.025)
  321. CreateWeld(li,handleo,li,0.125,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  322.  
  323. local li1 = CreatePart(m,0,0,"Neon",maincolor)
  324. CreateMesh(li1,"Brick",0.275,0.825,0.025)
  325. CreateWeld(li1,handleo,li1,0.125,0,0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  326. local li2 = CreatePart(m,0,0,"Neon",maincolor)
  327. CreateMesh(li2,"Brick",0.275,0.825,0.025)
  328. CreateWeld(li2,handleo,li2,0.125,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  329.  
  330. local di = CreatePart(m,0,0,"Neon",maincolor)
  331. CreateMesh(di,"Brick",0.3,0.3,0.3)
  332. CreateWeld(di,handleo,di,0.125,0,0,math.rad(45),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  333.  
  334. local di1 = CreatePart(m,0,0,"Neon",maincolor)
  335. CreateMesh(di1,"Brick",0.3,0.15,0.15)
  336. CreateWeld(di1,di,di1,0,0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  337. local di2 = CreatePart(m,0,0,"Neon",maincolor)
  338. CreateMesh(di2,"Brick",0.3,0.15,0.15)
  339. CreateWeld(di2,di,di2,0,0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  340. local di3 = CreatePart(m,0,0,"Neon",maincolor)
  341. CreateMesh(di3,"Brick",0.3,0.15,0.15)
  342. CreateWeld(di3,di,di3,0,-0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  343. local di4 = CreatePart(m,0,0,"Neon",maincolor)
  344. CreateMesh(di4,"Brick",0.3,0.15,0.15)
  345. CreateWeld(di4,di,di4,0,-0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  346. local dio = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  347. CreateMesh(dio,"Brick",0.325,0.275,0.275)
  348. CreateWeld(dio,di,dio,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  349. local dio1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  350. CreateMesh(dio1,"Brick",0.325,0.125,0.125)
  351. CreateWeld(dio1,di1,dio1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  352. local dio2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  353. CreateMesh(dio2,"Brick",0.325,0.125,0.125)
  354. CreateWeld(dio2,di2,dio2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  355. local dio3 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  356. CreateMesh(dio3,"Brick",0.325,0.125,0.125)
  357. CreateWeld(dio3,di3,dio3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  358. local dio4 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  359. CreateMesh(dio4,"Brick",0.325,0.125,0.125)
  360. CreateWeld(dio4,di4,dio4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  361.  
  362. local sq1 = CreatePart(m,0,0,"Neon",maincolor)
  363. CreateMesh(sq1,"Brick",0.3,0.125,0.125)
  364. CreateWeld(sq1,handleo,sq1,0.125,0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  365. local sq2 = CreatePart(m,0,0,"Neon",maincolor)
  366. CreateMesh(sq2,"Brick",0.3,0.125,0.125)
  367. CreateWeld(sq2,handleo,sq2,0.125,-0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  368. local sq3 = CreatePart(m,0,0,"Neon",maincolor)
  369. CreateMesh(sq3,"Brick",0.3,0.125,0.125)
  370. CreateWeld(sq3,handleo,sq3,0.125,0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  371. local sq4 = CreatePart(m,0,0,"Neon",maincolor)
  372. CreateMesh(sq4,"Brick",0.3,0.125,0.125)
  373. CreateWeld(sq4,handleo,sq4,0.125,-0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  374.  
  375. local sqo1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  376. CreateMesh(sqo1,"Brick",0.3115,0.1115,0.1115)
  377. CreateWeld(sqo1,sq1,sqo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  378. local sqo2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  379. CreateMesh(sqo2,"Brick",0.3115,0.1115,0.1115)
  380. CreateWeld(sqo2,sq2,sqo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  381. local sqo3 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  382. CreateMesh(sqo3,"Brick",0.3115,0.1115,0.1115)
  383. CreateWeld(sqo3,sq3,sqo3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  384. local sqo4 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  385. CreateMesh(sqo4,"Brick",0.3115,0.1115,0.1115)
  386. CreateWeld(sqo4,sq4,sqo4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  387.  
  388. local locl = CreatePart(m,0,0,"Neon",maincolor)
  389. CreateMesh(locl,"Brick",0.1,0.1,0.1)
  390. CreateWeld(locl,handle,locl,0,0,0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  391.  
  392. local dil = CreatePart(m,0,0,"Neon",maincolor)
  393. CreateMesh(dil,"Brick",0.45,0.45,0.3)
  394. CreateWeld(dil,locl,dil,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  395.  
  396. local dil1 = CreatePart(m,0,0,"Neon",maincolor)
  397. CreateMesh(dil1,"Brick",0.225,0.225,0.3)
  398. CreateWeld(dil1,dil,dil1,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  399. local dil2 = CreatePart(m,0,0,"Neon",maincolor)
  400. CreateMesh(dil2,"Brick",0.225,0.225,0.3)
  401. CreateWeld(dil2,dil,dil2,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  402.  
  403. local dilo = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  404. CreateMesh(dilo,"Brick",0.375,0.375,0.315)
  405. CreateWeld(dilo,dil,dilo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  406. local dilo1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  407. CreateMesh(dilo1,"Brick",0.175,0.175,0.315)
  408. CreateWeld(dilo1,dil1,dilo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  409. local dilo2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  410. CreateMesh(dilo2,"Brick",0.175,0.175,0.315)
  411. CreateWeld(dilo2,dil2,dilo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  412.  
  413. local locr = CreatePart(m,0,0,"Neon",maincolor)
  414. CreateMesh(locr,"Brick",0.1,0.1,0.1)
  415. CreateWeld(locr,handle,locr,0,0,-0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  416.  
  417. local dir = CreatePart(m,0,0,"Neon",maincolor)
  418. CreateMesh(dir,"Brick",0.45,0.45,0.3)
  419. CreateWeld(dir,locr,dir,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  420.  
  421. local dir1 = CreatePart(m,0,0,"Neon",maincolor)
  422. CreateMesh(dir1,"Brick",0.225,0.225,0.3)
  423. CreateWeld(dir1,dir,dir1,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  424. local dir2 = CreatePart(m,0,0,"Neon",maincolor)
  425. CreateMesh(dir2,"Brick",0.225,0.225,0.3)
  426. CreateWeld(dir2,dir,dir2,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  427.  
  428. local diro = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  429. CreateMesh(diro,"Brick",0.375,0.375,0.315)
  430. CreateWeld(diro,dir,diro,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  431. local diro1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  432. CreateMesh(diro1,"Brick",0.175,0.175,0.315)
  433. CreateWeld(diro1,dir1,diro1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  434. local diro2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  435. CreateMesh(diro2,"Brick",0.175,0.175,0.315)
  436. CreateWeld(diro2,dir2,diro2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  437.  
  438. Player=game:GetService("Players").LocalPlayer
  439. Character=Player.Character
  440. PlayerGui=Player.PlayerGui
  441. Backpack=Player.Backpack
  442. Torso=Character.Torso
  443. Head=Character.Head
  444. Humanoid=Character.Humanoid
  445. m=Instance.new('Model',Character)
  446. LeftArm=Character["Left Arm"]
  447. LeftLeg=Character["Left Leg"]
  448. RightArm=Character["Right Arm"]
  449. RightLeg=Character["Right Leg"]
  450. LS=Torso["Left Shoulder"]
  451. LH=Torso["Left Hip"]
  452. RS=Torso["Right Shoulder"]
  453. RH=Torso["Right Hip"]
  454. Face = Head.face
  455. Neck=Torso.Neck
  456. it=Instance.new
  457. attacktype=1
  458. vt=Vector3.new
  459. cf=CFrame.new
  460. euler=CFrame.fromEulerAnglesXYZ
  461. angles=CFrame.Angles
  462. cloaked=false
  463. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  464. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  465. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  466. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  467. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  468. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  469. RootPart=Character.HumanoidRootPart
  470. RootJoint=RootPart.RootJoint
  471. RootCF=euler(-1.57,0,3.14)
  472. attack = false
  473. attackdebounce = false
  474. deb=false
  475. equipped=true
  476. hand=false
  477. MMouse=nil
  478. combo=0
  479. mana=0
  480. trispeed=.2
  481. attackmode='none'
  482. local idle=0
  483. local Anim="Idle"
  484. local Effects={}
  485. local gun=false
  486. local shoot=false
  487. local sine = 0
  488. local change = 1
  489. player=nil
  490.  
  491. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  492. ff.Visible = false
  493. Humanoid.Name = "God Mode"
  494. Humanoid.MaxHealth = 1.0E298
  495. Humanoid.Health = 1.0E298
  496. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  497. if Humanoid.Health > 0.1 and Humanoid.Health < 1.0E298 then
  498. Humanoid.MaxHealth = 1.0E298
  499. Humanoid.Health = 1.0E298
  500. end
  501. end)
  502.  
  503. mouse=Player:GetMouse()
  504. --save shoulders
  505. RSH, LSH=nil, nil
  506. --welds
  507. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  508. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  509. LH=Torso["Left Hip"]
  510. RH=Torso["Right Hip"]
  511. TorsoColor=Torso.BrickColor
  512. function NoOutline(Part)
  513. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  514. end
  515. player=Player
  516. ch=Character
  517. RSH=ch.Torso["Right Shoulder"]
  518. LSH=ch.Torso["Left Shoulder"]
  519. --
  520. RSH.Parent=nil
  521. LSH.Parent=nil
  522. --
  523. RW.Name="Right Shoulder"
  524. RW.Part0=ch.Torso
  525. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  526. RW.C1=cf(0, 0.5, 0)
  527. RW.Part1=ch["Right Arm"]
  528. RW.Parent=ch.Torso
  529. --
  530. LW.Name="Left Shoulder"
  531. LW.Part0=ch.Torso
  532. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  533. LW.C1=cf(0, 0.5, 0)
  534. LW.Part1=ch["Left Arm"]
  535. LW.Parent=ch.Torso
  536.  
  537. local Stats=Instance.new("BoolValue")
  538. Stats.Name="Stats"
  539. Stats.Parent=Character
  540. local Atk=Instance.new("NumberValue")
  541. Atk.Name="Damage"
  542. Atk.Parent=Stats
  543. Atk.Value=1
  544. local Def=Instance.new("NumberValue")
  545. Def.Name="Defense"
  546. Def.Parent=Stats
  547. Def.Value=1
  548. local Speed=Instance.new("NumberValue")
  549. Speed.Name="Speed"
  550. Speed.Parent=Stats
  551. Speed.Value=1
  552. local Mvmt=Instance.new("NumberValue")
  553. Mvmt.Name="Movement"
  554. Mvmt.Parent=Stats
  555. Mvmt.Value=1
  556.  
  557. local donum=0
  558.  
  559.  
  560. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  561. local fp=it("Part")
  562. fp.formFactor=formfactor
  563. fp.Parent=parent
  564. fp.Reflectance=reflectance
  565. fp.Transparency=transparency
  566. fp.CanCollide=false
  567. fp.Locked=true
  568. fp.BrickColor=brickcolor
  569. fp.Name=name
  570. fp.Size=size
  571. fp.Position=Torso.Position
  572. NoOutline(fp)
  573. fp.Material="SmoothPlastic"
  574. fp:BreakJoints()
  575. return fp
  576. end
  577.  
  578. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  579. local mesh=it(Mesh)
  580. mesh.Parent=part
  581. if Mesh=="SpecialMesh" then
  582. mesh.MeshType=meshtype
  583. if meshid~="nil" then
  584. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  585. end
  586. end
  587. mesh.Offset=offset
  588. mesh.Scale=scale
  589. return mesh
  590. end
  591.  
  592. function weld(parent,part0,part1,c0)
  593. local weld=it("Weld")
  594. weld.Parent=parent
  595. weld.Part0=part0
  596. weld.Part1=part1
  597. weld.C0=c0
  598. return weld
  599. end
  600.  
  601. local Color1=Torso.BrickColor
  602.  
  603. local bodvel=Instance.new("BodyVelocity")
  604. local bg=Instance.new("BodyGyro")
  605.  
  606. function swait(num)
  607. if num==0 or num==nil then
  608. game:service'RunService'.Stepped:wait(0)
  609. else
  610. for i=0,num do
  611. game:service'RunService'.Stepped:wait(0)
  612. end
  613. end
  614. end
  615.  
  616.  
  617. so = function(id,par,vol,pit)
  618. coroutine.resume(coroutine.create(function()
  619. local sou = Instance.new("Sound",par or workspace)
  620. sou.Volume=vol
  621. sou.Pitch=pit or 1
  622. sou.SoundId=id
  623. swait()
  624. sou:play()
  625. game:GetService("Debris"):AddItem(sou,6)
  626. end))
  627. end
  628.  
  629. function clerp(a,b,t)
  630. local qa = {QuaternionFromCFrame(a)}
  631. local qb = {QuaternionFromCFrame(b)}
  632. local ax, ay, az = a.x, a.y, a.z
  633. local bx, by, bz = b.x, b.y, b.z
  634. local _t = 1-t
  635. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  636. end
  637.  
  638. function QuaternionFromCFrame(cf)
  639. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  640. local trace = m00 + m11 + m22
  641. if trace > 0 then
  642. local s = math.sqrt(1 + trace)
  643. local recip = 0.5/s
  644. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  645. else
  646. local i = 0
  647. if m11 > m00 then
  648. i = 1
  649. end
  650. if m22 > (i == 0 and m00 or m11) then
  651. i = 2
  652. end
  653. if i == 0 then
  654. local s = math.sqrt(m00-m11-m22+1)
  655. local recip = 0.5/s
  656. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  657. elseif i == 1 then
  658. local s = math.sqrt(m11-m22-m00+1)
  659. local recip = 0.5/s
  660. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  661. elseif i == 2 then
  662. local s = math.sqrt(m22-m00-m11+1)
  663. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  664. end
  665. end
  666. end
  667.  
  668. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  669. local xs, ys, zs = x + x, y + y, z + z
  670. local wx, wy, wz = w*xs, w*ys, w*zs
  671. local xx = x*xs
  672. local xy = x*ys
  673. local xz = x*zs
  674. local yy = y*ys
  675. local yz = y*zs
  676. local zz = z*zs
  677. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  678. end
  679.  
  680. function QuaternionSlerp(a, b, t)
  681. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  682. local startInterp, finishInterp;
  683. if cosTheta >= 0.0001 then
  684. if (1 - cosTheta) > 0.0001 then
  685. local theta = math.acos(cosTheta)
  686. local invSinTheta = 1/math.sin(theta)
  687. startInterp = math.sin((1-t)*theta)*invSinTheta
  688. finishInterp = math.sin(t*theta)*invSinTheta
  689. else
  690. startInterp = 1-t
  691. finishInterp = t
  692. end
  693. else
  694. if (1+cosTheta) > 0.0001 then
  695. local theta = math.acos(-cosTheta)
  696. local invSinTheta = 1/math.sin(theta)
  697. startInterp = math.sin((t-1)*theta)*invSinTheta
  698. finishInterp = math.sin(t*theta)*invSinTheta
  699. else
  700. startInterp = t-1
  701. finishInterp = t
  702. end
  703. end
  704. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  705. end
  706.  
  707. local function CFrameFromTopBack(at, top, back)
  708. local right = top:Cross(back)
  709. return CFrame.new(at.x, at.y, at.z,
  710. right.x, top.x, back.x,
  711. right.y, top.y, back.y,
  712. right.z, top.z, back.z)
  713. end
  714.  
  715. function Triangle(a, b, c)
  716. local edg1 = (c-a):Dot((b-a).unit)
  717. local edg2 = (a-b):Dot((c-b).unit)
  718. local edg3 = (b-c):Dot((a-c).unit)
  719. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  720. a, b, c = a, b, c
  721. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  722. a, b, c = b, c, a
  723. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  724. a, b, c = c, a, b
  725. else
  726. assert(false, "unreachable")
  727. end
  728.  
  729. local len1 = (c-a):Dot((b-a).unit)
  730. local len2 = (b-a).magnitude - len1
  731. local width = (a + (b-a).unit*len1 - c).magnitude
  732.  
  733. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  734.  
  735. local list = {}
  736.  
  737. if len1 > 0.01 then
  738. local w1 = Instance.new('WedgePart', m)
  739. game:GetService("Debris"):AddItem(w1,5)
  740. w1.Material = "SmoothPlastic"
  741. w1.FormFactor = 'Custom'
  742. w1.BrickColor = BrickColor.new("Really red")
  743. w1.Transparency = 0
  744. w1.Reflectance = 0
  745. w1.Material = "SmoothPlastic"
  746. w1.CanCollide = false
  747. local l1 = Instance.new("PointLight",w1)
  748. l1.Color = Color3.new(170,0,0)
  749. NoOutline(w1)
  750. local sz = Vector3.new(0.2, width, len1)
  751. w1.Size = sz
  752. local sp = Instance.new("SpecialMesh",w1)
  753. sp.MeshType = "Wedge"
  754. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  755. w1:BreakJoints()
  756. w1.Anchored = true
  757. w1.Parent = workspace
  758. w1.Transparency = 0.7
  759. table.insert(Effects,{w1,"Disappear",.01})
  760. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  761. table.insert(list,w1)
  762. end
  763.  
  764. if len2 > 0.01 then
  765. local w2 = Instance.new('WedgePart', m)
  766. game:GetService("Debris"):AddItem(w2,5)
  767. w2.Material = "SmoothPlastic"
  768. w2.FormFactor = 'Custom'
  769. w2.BrickColor = BrickColor.new("Really red")
  770. w2.Transparency = 0
  771. w2.Reflectance = 0
  772. w2.Material = "SmoothPlastic"
  773. w2.CanCollide = false
  774. local l2 = Instance.new("PointLight",w2)
  775. l2.Color = Color3.new(170,0,0)
  776. NoOutline(w2)
  777. local sz = Vector3.new(0.2, width, len2)
  778. w2.Size = sz
  779. local sp = Instance.new("SpecialMesh",w2)
  780. sp.MeshType = "Wedge"
  781. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  782. w2:BreakJoints()
  783. w2.Anchored = true
  784. w2.Parent = workspace
  785. w2.Transparency = 0.7
  786. table.insert(Effects,{w2,"Disappear",.01})
  787. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  788. table.insert(list,w2)
  789. end
  790. return unpack(list)
  791. end
  792.  
  793.  
  794. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  795. if hit.Parent==nil then
  796. return
  797. end
  798. h=hit.Parent:FindFirstChild("Humanoid")
  799. for _,v in pairs(hit.Parent:children()) do
  800. if v:IsA("Humanoid") then
  801. h=v
  802. end
  803. end
  804. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  805. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  806. end
  807. if hit.Parent.className=="Hat" then
  808. hit=hit.Parent.Parent:findFirstChild("Head")
  809. end
  810. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  811. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  812. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  813. return
  814. end]]
  815. -- hs(hit,1.2)
  816. c=Instance.new("ObjectValue")
  817. c.Name="creator"
  818. c.Value=game:service("Players").LocalPlayer
  819. c.Parent=h
  820. game:GetService("Debris"):AddItem(c,.5)
  821. Damage=math.random(minim,maxim)
  822. -- h:TakeDamage(Damage)
  823. blocked=false
  824. block=hit.Parent:findFirstChild("Block")
  825. if block~=nil then
  826. print(block.className)
  827. if block.className=="NumberValue" then
  828. if block.Value>0 then
  829. blocked=true
  830. if decreaseblock==nil then
  831. block.Value=block.Value-1
  832. end
  833. end
  834. end
  835. if block.className=="IntValue" then
  836. if block.Value>0 then
  837. blocked=true
  838. if decreaseblock~=nil then
  839. block.Value=block.Value-1
  840. end
  841. end
  842. end
  843. end
  844. if blocked==false then
  845. -- h:TakeDamage(Damage)
  846. h.Health=h.Health-Damage
  847. showDamage(hit.Parent,Damage,.5,BrickColor.new("Really red"))
  848. else
  849. h.Health=h.Health-(Damage/2)
  850. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  851. end
  852. if Type=="Knockdown" then
  853. hum=hit.Parent.Humanoid
  854. hum.PlatformStand=true
  855. coroutine.resume(coroutine.create(function(HHumanoid)
  856. swait(1)
  857. HHumanoid.PlatformStand=false
  858. end),hum)
  859. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  860. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  861. local bodvol=Instance.new("BodyVelocity")
  862. bodvol.velocity=angle*knockback
  863. bodvol.P=5000
  864. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  865. bodvol.Parent=hit
  866. rl=Instance.new("BodyAngularVelocity")
  867. rl.P=3000
  868. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  869. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  870. rl.Parent=hit
  871. game:GetService("Debris"):AddItem(bodvol,.5)
  872. game:GetService("Debris"):AddItem(rl,.5)
  873. elseif Type=="Normal" then
  874. vp=Instance.new("BodyVelocity")
  875. vp.P=500
  876. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  877. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  878. if KnockbackType==1 then
  879. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  880. elseif KnockbackType==2 then
  881. vp.velocity=Property.CFrame.lookVector*knockback
  882. end
  883. if knockback>0 then
  884. vp.Parent=hit.Parent.Torso
  885. end
  886. game:GetService("Debris"):AddItem(vp,.5)
  887. elseif Type=="Up" then
  888. local bodyVelocity=Instance.new("BodyVelocity")
  889. bodyVelocity.velocity=vt(0,60,0)
  890. bodyVelocity.P=5000
  891. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  892. bodyVelocity.Parent=hit
  893. game:GetService("Debris"):AddItem(bodyVelocity,1)
  894. rl=Instance.new("BodyAngularVelocity")
  895. rl.P=3000
  896. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  897. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  898. rl.Parent=hit
  899. game:GetService("Debris"):AddItem(rl,.5)
  900. elseif Type=="Snare" then
  901. bp=Instance.new("BodyPosition")
  902. bp.P=2000
  903. bp.D=100
  904. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  905. bp.position=hit.Parent.Torso.Position
  906. bp.Parent=hit.Parent.Torso
  907. game:GetService("Debris"):AddItem(bp,1)
  908. elseif Type=="Target" then
  909. if Targetting==false then
  910. ZTarget=hit.Parent.Torso
  911. coroutine.resume(coroutine.create(function(Part)
  912. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  913. swait(5)
  914. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  915. end),ZTarget)
  916. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  917. targetgui=Instance.new("BillboardGui")
  918. targetgui.Parent=ZTarget
  919. targetgui.Size=UDim2.new(10,100,10,100)
  920. targ=Instance.new("ImageLabel")
  921. targ.Parent=targetgui
  922. targ.BackgroundTransparency=1
  923. targ.Image="rbxassetid://4834067"
  924. targ.Size=UDim2.new(1,0,1,0)
  925. cam.CameraType="Scriptable"
  926. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  927. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  928. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  929. Targetting=true
  930. RocketTarget=ZTarget
  931. for i=1,Property do
  932. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  933. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  934. swait()
  935. end
  936. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  937. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  938. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  939. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  940. end
  941. Targetting=false
  942. RocketTarget=nil
  943. targetgui.Parent=nil
  944. cam.CameraType="Custom"
  945. end
  946. end
  947. debounce=Instance.new("BoolValue")
  948. debounce.Name="DebounceHit"
  949. debounce.Parent=hit.Parent
  950. debounce.Value=true
  951. game:GetService("Debris"):AddItem(debounce,Delay)
  952. c=Instance.new("ObjectValue")
  953. c.Name="creator"
  954. c.Value=Player
  955. c.Parent=h
  956. game:GetService("Debris"):AddItem(c,.5)
  957. CRIT=false
  958. hitDeb=true
  959. AttackPos=6
  960. end
  961. end
  962.  
  963. showDamage=function(Char,Dealt,du,Color)
  964. m=Instance.new("Model")
  965. m.Name=tostring(Dealt)
  966. h=Instance.new("Humanoid")
  967. h.Health=0
  968. h.MaxHealth=0
  969. h.Parent=m
  970. c=Instance.new("Part")
  971. c.Transparency=0
  972. c.BrickColor=Color
  973. c.Transparency = 1
  974. c.Name="Head"
  975. c.TopSurface=0
  976. c.BottomSurface=0
  977. c.formFactor="Plate"
  978. c.Size=Vector3.new(1,.4,1)
  979.  
  980. local txt = Instance.new("BillboardGui", c)
  981. txt.Adornee = c
  982. txt.Name = "_status"
  983. txt.Size = UDim2.new(2, 0, 1.2, 0)
  984. txt.StudsOffset = Vector3.new(-9, 8, 0)
  985. local text = Instance.new("TextLabel", txt)
  986. text.Size = UDim2.new(10, 0, 7, 0)
  987. text.FontSize = "Size12"
  988. text.TextScaled = true
  989. text.TextTransparency = 0.5
  990. text.BackgroundTransparency = 1
  991. text.TextTransparency = 0.5
  992. text.TextStrokeTransparency = 0.5
  993. text.Font = "SciFi"
  994. text.TextStrokeColor3 = Color3.new(0,0,0)
  995. v=Instance.new("Part")
  996. v.Name = "ColorBrick"
  997. v.Parent=c
  998. v.FormFactor="Symmetric"
  999. v.Anchored=true
  1000. v.CanCollide=false
  1001. v.BottomSurface="Smooth"
  1002. v.TopSurface="Smooth"
  1003. v.Size=Vector3.new(10,5,3)
  1004. v.Transparency=1
  1005. v.CFrame=c.CFrame
  1006. v.BrickColor=BrickColor.random()
  1007. v.Transparency=1
  1008. text.TextColor3 = maincolor.Color
  1009. v.Shape="Block"
  1010. text.Text = tostring(Dealt)
  1011. ms=Instance.new("CylinderMesh")
  1012. ms.Scale=Vector3.new(.8,.8,.8)
  1013. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1014. local dam = Instance.new("Sound",c)
  1015. local rndm=math.random(1,#hitsounds)
  1016. local r=rndm
  1017. dam.SoundId = "http://www.roblox.com/asset/?id="..hitsounds[r]
  1018. dam.Volume = 1.25
  1019. dam.Pitch = 1
  1020. dam:Play()
  1021. if CRIT==true then
  1022. ms.Scale=Vector3.new(1,1.25,1)
  1023. end
  1024. ms.Parent=c
  1025. c.Reflectance=0
  1026. Instance.new("BodyGyro").Parent=c
  1027. c.Parent=m
  1028. if Char:findFirstChild("Head")~=nil then
  1029. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1030. elseif Char.Parent:findFirstChild("Head")~=nil then
  1031. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1032. end
  1033. f=Instance.new("BodyPosition")
  1034. f.P=2000
  1035. f.D=100
  1036. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1037. f.position=c.Position+Vector3.new(0,3,0)
  1038. f.Parent=c
  1039. game:GetService("Debris"):AddItem(m,.5+du)
  1040. c.CanCollide=false
  1041. m.Parent=workspace
  1042. c.CanCollide=false
  1043. end
  1044.  
  1045. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1046. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1047. end
  1048.  
  1049. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1050. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1051. prt.Anchored=true
  1052. prt.CFrame=cframe
  1053. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1054. --http://www.roblox.com/asset/?id=4770560
  1055. game:GetService("Debris"):AddItem(prt,2)
  1056. CF=prt.CFrame
  1057. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1058. for i=0,1,0.2 do
  1059. wait()
  1060. Part.CFrame=CF*cf(0,0,-0.4)
  1061. end
  1062. for i=0,1,delay do
  1063. wait()
  1064. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  1065. Mesh.Scale=Mesh.Scale
  1066. end
  1067. for i=0,1,0.1 do
  1068. wait()
  1069. Part.Transparency=i
  1070. end
  1071. Part.Parent=nil
  1072. end),prt,msh,CF)
  1073. end
  1074.  
  1075. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1076. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1077. prt.Anchored=true
  1078. prt.Material = "Neon"
  1079. prt.CFrame=cframe
  1080. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1081. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1082. game:GetService("Debris"):AddItem(prt,5)
  1083. coroutine.resume(coroutine.create(function(Part,Mesh)
  1084. for i=0,1,delay do
  1085. swait()
  1086. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1087. Part.Transparency=i
  1088. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1089. end
  1090. Part.Parent=nil
  1091. end),prt,msh)
  1092. end
  1093.  
  1094. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1095. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1096. prt.Anchored=true
  1097. prt.Material = "Neon"
  1098. prt.CFrame=cframe
  1099. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1100. game:GetService("Debris"):AddItem(prt,5)
  1101. coroutine.resume(coroutine.create(function(Part,Mesh)
  1102. local rtype = rottype
  1103. for i=0,1,delay do
  1104. swait()
  1105. if rtype == 1 then
  1106. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1107. elseif rtype == 2 then
  1108. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1109. end
  1110. Part.Transparency=i
  1111. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1112. end
  1113. Part.Parent=nil
  1114. end),prt,msh)
  1115. end
  1116.  
  1117. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1118. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1119. prt.Anchored=true
  1120. prt.CFrame=cframe
  1121. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1122. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1123. game:GetService("Debris"):AddItem(prt,5)
  1124. coroutine.resume(coroutine.create(function(Part,Mesh)
  1125. for i=0,1,delay do
  1126. wait()
  1127. Part.Transparency=i
  1128. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1129. end
  1130. Part.Parent=nil
  1131. end),prt,msh)
  1132. end
  1133.  
  1134. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1135. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1136. prt.Anchored=false
  1137. prt.CFrame=cframe
  1138. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1139. local wld=weld(prt,prt,Parent,cframe)
  1140. game:GetService("Debris"):AddItem(prt,5)
  1141. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1142. for i=0,1,delay do
  1143. wait()
  1144. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1145. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1146. Part.Transparency=i
  1147. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1148. end
  1149. Part.Parent=nil
  1150. end),prt,msh,wld)
  1151. end
  1152.  
  1153. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1154. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1155. prt.Anchored=false
  1156. prt.CFrame=cframe
  1157. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1158. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1159. game:GetService("Debris"):AddItem(prt,5)
  1160. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1161. for i=0,1,delay do
  1162. wait()
  1163. Weld.C0=euler(i*20,0,0)
  1164. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1165. Part.Transparency=i
  1166. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1167. end
  1168. Part.Parent=nil
  1169. end),prt,msh,wld)
  1170. end
  1171.  
  1172. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1173. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1174. prt.Anchored=true
  1175. prt.CFrame=cframe
  1176. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1177. game:GetService("Debris"):AddItem(prt,2)
  1178. coroutine.resume(coroutine.create(function(Part,Mesh)
  1179. for i=0,1,delay do
  1180. wait()
  1181. Part.CFrame=Part.CFrame
  1182. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1183. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1184. prt2.Anchored=true
  1185. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1186. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1187. game:GetService("Debris"):AddItem(prt2,2)
  1188. coroutine.resume(coroutine.create(function(Part,Mesh)
  1189. for i=0,1,0.1 do
  1190. wait()
  1191. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1192. end
  1193. Part.Parent=nil
  1194. end),prt2,msh2)
  1195. end
  1196. for i=0,1,delay*2 do
  1197. wait()
  1198. Part.CFrame=Part.CFrame
  1199. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1200. end
  1201. Part.Parent=nil
  1202. end),prt,msh)
  1203. end
  1204.  
  1205. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1206. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1207. prt.Anchored=true
  1208. prt.CFrame=cframe
  1209. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1210. game:GetService("Debris"):AddItem(prt,2)
  1211. coroutine.resume(coroutine.create(function(Part,Mesh)
  1212. for i=0,1,delay do
  1213. wait()
  1214. Part.CFrame=Part.CFrame
  1215. Part.Transparency=i
  1216. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1217. end
  1218. Part.Parent=nil
  1219. end),prt,msh)
  1220. end
  1221.  
  1222. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1223. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1224. prt.Anchored=true
  1225. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1226. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1227. game:GetService("Debris"):AddItem(prt,2)
  1228. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1229. CF=Part.CFrame
  1230. Numbb=0
  1231. randnumb=math.random()/10
  1232. rand1=math.random()/10
  1233. for i=0,1,rand1 do
  1234. wait()
  1235. CF=CF*cf(0,math.random()/2,0)
  1236. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1237. Part.CFrame=CF*euler(Numbb,0,0)
  1238. Part.Transparency=i
  1239. Numbb=Numbb+randnumb
  1240. end
  1241. Part.Parent=nil
  1242. end),prt,CF,Numbb,randnumb)
  1243. end
  1244.  
  1245. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1246. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1247. prt.Anchored=true
  1248. prt.CFrame=cframe
  1249. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1250. game:GetService("Debris"):AddItem(prt,5)
  1251. coroutine.resume(coroutine.create(function(Part,Mesh)
  1252. for i=0,1,delay do
  1253. wait()
  1254. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1255. Part.Transparency=i
  1256. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1257. end
  1258. Part.Parent=nil
  1259. end),prt,msh)
  1260. end
  1261.  
  1262. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1263. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1264. prt.Anchored=true
  1265. prt.CFrame=cframe
  1266. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1267. game:GetService("Debris"):AddItem(prt,2)
  1268. coroutine.resume(coroutine.create(function(Part,Mesh)
  1269. for i=0,1,delay do
  1270. wait()
  1271. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1272. Part.Transparency=i
  1273. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1274. end
  1275. Part.Parent=nil
  1276. end),prt,msh)
  1277. end
  1278.  
  1279. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1280. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1281. prt.Anchored=true
  1282. prt.CFrame=cframe*cf(x,y,z)
  1283. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1284. game:GetService("Debris"):AddItem(prt,5)
  1285. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1286. local num=math.random()
  1287. local num2=math.random(-3,2)+math.random()
  1288. local numm=0
  1289. for i=0,1,delay*2 do
  1290. swait()
  1291. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1292. Part.Transparency=i
  1293. numm=numm+0.01
  1294. end
  1295. Part.Parent=nil
  1296. Mesh.Parent=nil
  1297. end),prt,msh,x,y,z)
  1298. end
  1299.  
  1300. function dmgstart(dmg,what)
  1301. hitcon = what.Touched:connect(function(hit)
  1302. local hum = hit.Parent:FindFirstChild("Humanoid")
  1303. if hum and not hum:IsDescendantOf(Character) then
  1304. hum:TakeDamage(dmg)
  1305. end
  1306. end)
  1307. end
  1308.  
  1309. function dmgstop()
  1310. hitcon:disconnect()
  1311. end
  1312.  
  1313. function Cloak()
  1314. Face.Parent=nil
  1315. cloaked=true
  1316. for _,v in pairs(Torso.Parent:children()) do
  1317. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1318. coroutine.resume(coroutine.create(function()
  1319. for i=0,1,0.2 do
  1320. wait()
  1321. v.Transparency=i
  1322. end
  1323. v.Transparency=1
  1324. end))
  1325. end
  1326. if v.className=="Hat" then
  1327. hatp=v.Handle
  1328. coroutine.resume(coroutine.create(function(derp)
  1329. for i=0,1,0.2 do
  1330. wait()
  1331. derp.Transparency=i
  1332. end
  1333. derp.Transparency=1
  1334. end),hatp)
  1335. end
  1336. end
  1337. for _,v in pairs(m:children()) do
  1338. if v.className=="Part" then
  1339. coroutine.resume(coroutine.create(function()
  1340. for i=0,1,0.2 do
  1341. wait()
  1342. v.Transparency=i
  1343. end
  1344. v.Transparency=1
  1345. end))
  1346. end
  1347. end
  1348. end
  1349.  
  1350. function UnCloak()
  1351. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1352. Face.Parent=Head
  1353. cloaked=false
  1354. for _,v in pairs(Torso.Parent:children()) do
  1355. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1356. coroutine.resume(coroutine.create(function()
  1357. for i=0,1,0.1 do
  1358. wait()
  1359. v.Transparency=v.Transparency-0.1
  1360. end
  1361. v.Transparency=0
  1362. end))
  1363. end
  1364. if v.className=="Hat" then
  1365. hatp=v.Handle
  1366. coroutine.resume(coroutine.create(function(derp)
  1367. for i=0,1,0.1 do
  1368. wait()
  1369. derp.Transparency=derp.Transparency-0.1
  1370. end
  1371. derp.Transparency=0
  1372. end),hatp)
  1373. end
  1374. end
  1375. for _,v in pairs(m:children()) do
  1376. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  1377. coroutine.resume(coroutine.create(function()
  1378. for i=0,1,0.1 do
  1379. wait()
  1380. v.Transparency=v.Transparency-0.1
  1381. end
  1382. v.Transparency=0
  1383. end))
  1384. v.Transparency=0
  1385. end
  1386. end
  1387. end
  1388.  
  1389. function laser()
  1390. attack = true
  1391. so("rbxassetid://588738544",sorb,1,1)
  1392. for i = 0,2,0.1 do
  1393. swait()
  1394. MagicBlock(maincolor,sorb.CFrame,1,1,1,0.25,0.25,0.25,0.1)
  1395. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  1396. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(40)),.3)
  1397. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3)
  1398. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  1399. end
  1400. local a = Instance.new("Part",Character)
  1401. a.BrickColor = maincolor
  1402. a.Name = "Lazer"
  1403. a.Anchored = true
  1404. a.Material = "Neon"
  1405. a.CanCollide = false
  1406. local hitbox = Instance.new("Part",char)
  1407. hitbox.Size = Vector3.new(5,5,5)
  1408. hitbox.CFrame = mouse.hit
  1409. hitbox.Anchored = true
  1410. hitbox.Transparency = 1
  1411. hitbox.CanCollide = false
  1412. local ray = Ray.new(
  1413. sorb.CFrame.p, -- origin
  1414. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1415. )
  1416. local ignore = Character
  1417. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1418. if hit then
  1419. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1420.  
  1421. if not humanoid then
  1422. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1423. end
  1424. if humanoid then
  1425. if humanoid.Parent:IsA"Model" then
  1426. Damagefunc(hit,10,15,math.random(10,20),"Normal",RootPart,.2,1)
  1427. end
  1428. end
  1429. end
  1430. a.BottomSurface = 10
  1431. a.TopSurface = 10
  1432. local distance = (sorb.CFrame.p - position).magnitude
  1433. a.Size = Vector3.new(1, 1, distance)
  1434. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  1435. game:GetService("Debris"):AddItem(a, 10)
  1436. game:GetService("Debris"):AddItem(hitbox, 1)
  1437. local newmesh = Instance.new("BlockMesh",a)
  1438. so("rbxassetid://553712898",sorb,1,2)
  1439. so("rbxassetid://553712898",sorb,0.5,1.5)
  1440. so("rbxassetid://588737825",sorb,0.05,1)
  1441. MagicBlock(maincolor,sorb.CFrame,1,1,1,1.5,1.25,1.25,0.15)
  1442. MagicBlock(maincolor,mouse.Hit,1,1,1,0.5,0.5,0.5,0.05)
  1443. MagicBlock(maincolor,mouse.Hit,1,1,1,1.5,1.5,1.5,0.15)
  1444. for i = 0, 19*2 do
  1445. newmesh.Scale = newmesh.Scale + Vector3.new(-0.05/2,-0.05/2,0)
  1446. a.Transparency = a.Transparency + 0.05/2
  1447. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  1448. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(40)),.3)
  1449. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3)
  1450. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  1451. swait()
  1452. end
  1453. attack = false
  1454. end
  1455.  
  1456. function weaklaser1()
  1457. attack = true
  1458. for i = 0,1,0.1 do
  1459. swait()
  1460. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1461. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3)
  1462. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1463. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  1464. end
  1465. local a = Instance.new("Part",Character)
  1466. a.BrickColor = maincolor
  1467. a.Name = "Lazer"
  1468. a.Anchored = true
  1469. a.Material = "Neon"
  1470. a.CanCollide = false
  1471. local hitbox = Instance.new("Part",char)
  1472. hitbox.Size = Vector3.new(5,5,5)
  1473. hitbox.CFrame = mouse.hit
  1474. hitbox.Anchored = true
  1475. hitbox.Transparency = 1
  1476. hitbox.CanCollide = false
  1477. local ray = Ray.new(
  1478. sorb.CFrame.p, -- origin
  1479. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1480. )
  1481. local ignore = Character
  1482. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1483. if hit then
  1484. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1485.  
  1486. if not humanoid then
  1487. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1488. end
  1489. if humanoid then
  1490. if humanoid.Parent:IsA"Model" then
  1491. Damagefunc(hit,5,8,math.random(10,20),"Normal",RootPart,.2,1)
  1492. end
  1493. end
  1494. end
  1495. a.BottomSurface = 10
  1496. a.TopSurface = 10
  1497. local distance = (sorb.CFrame.p - position).magnitude
  1498. a.Size = Vector3.new(0.85, 0.85, distance)
  1499. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  1500. game:GetService("Debris"):AddItem(a, 10)
  1501. game:GetService("Debris"):AddItem(hitbox, 1)
  1502. local newmesh = Instance.new("BlockMesh",a)
  1503. so("rbxassetid://553712898",sorb,1,2.5)
  1504. so("rbxassetid://553712898",sorb,1,2)
  1505. MagicBlock(maincolor,sorb.CFrame,1,1,1,1.5,1.25,1.25,0.15)
  1506. MagicBlock(maincolor,mouse.Hit,1,1,1,0.5,0.5,0.5,0.05)
  1507. attack = false
  1508. for i = 0, 19 do
  1509. newmesh.Scale = newmesh.Scale + Vector3.new(-0.05,-0.05,0)
  1510. a.Transparency = a.Transparency + 0.05
  1511. swait()
  1512. end
  1513. end
  1514.  
  1515. function weaklaser2()
  1516. attack = true
  1517. for i = 0,1,0.1 do
  1518. swait()
  1519. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  1520. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3)
  1521. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.3)
  1522. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1523. end
  1524. local a = Instance.new("Part",Character)
  1525. a.BrickColor = maincolor
  1526. a.Name = "Lazer"
  1527. a.Anchored = true
  1528. a.Material = "Neon"
  1529. a.CanCollide = false
  1530. local hitbox = Instance.new("Part",char)
  1531. hitbox.Size = Vector3.new(5,5,5)
  1532. hitbox.CFrame = mouse.hit
  1533. hitbox.Anchored = true
  1534. hitbox.Transparency = 1
  1535. hitbox.CanCollide = false
  1536. local ray = Ray.new(
  1537. sorb2.CFrame.p, -- origin
  1538. (mouse.Hit.p - sorb2.CFrame.p).unit * 500 -- direction
  1539. )
  1540. local ignore = Character
  1541. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1542. if hit then
  1543. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1544.  
  1545. if not humanoid then
  1546. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1547. end
  1548. if humanoid then
  1549. if humanoid.Parent:IsA"Model" then
  1550. Damagefunc(hit,5,8,math.random(10,20),"Normal",RootPart,.2,1)
  1551. end
  1552. end
  1553. end
  1554. a.BottomSurface = 10
  1555. a.TopSurface = 10
  1556. local distance = (sorb2.CFrame.p - position).magnitude
  1557. a.Size = Vector3.new(0.85, 0.85, distance)
  1558. a.CFrame = CFrame.new(sorb2.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  1559. game:GetService("Debris"):AddItem(a, 10)
  1560. game:GetService("Debris"):AddItem(hitbox, 1)
  1561. local newmesh = Instance.new("BlockMesh",a)
  1562. so("rbxassetid://553712898",sorb2,1,2.5)
  1563. so("rbxassetid://553712898",sorb2,1,2)
  1564. MagicBlock(maincolor,sorb2.CFrame,1,1,1,1.5,1.25,1.25,0.15)
  1565. MagicBlock(maincolor,mouse.Hit,1,1,1,0.5,0.5,0.5,0.05)
  1566. attack = false
  1567. for i = 0, 19 do
  1568. newmesh.Scale = newmesh.Scale + Vector3.new(-0.05,-0.05,0)
  1569. a.Transparency = a.Transparency + 0.05
  1570. swait()
  1571. end
  1572. end
  1573.  
  1574. local smeshmoveenabled = false
  1575.  
  1576. function groundwave()
  1577. attack = true
  1578. smeshmoveenabled = true
  1579. so("rbxassetid://255679384",sorb2,2,0.98)
  1580. for i = 0,10,0.1 do
  1581. swait()
  1582. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1583. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1584. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.1)
  1585. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(25 + 5 * math.cos(sine / 32))),.1)
  1586. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1.75 + 0.15 * math.cos(sine / 25))* angles(math.rad(-50),math.rad(0),math.rad(-90)),.1)
  1587. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(45),math.rad(0),math.rad(90)),.1)
  1588. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(90)), 0.1)
  1589. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.1)
  1590. end
  1591. MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.1,1)
  1592. MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.1,2)
  1593. for i = 0,2,0.1 do
  1594. swait()
  1595. MagicBlock(maincolor,sorb2.CFrame,1,1,1,0.5,0.5,0.5,0.1)
  1596. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1597. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1598. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.3)
  1599. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(25 + 5 * math.cos(sine / 32))),.3)
  1600. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1 + 0.15 * math.cos(sine / 25))* angles(math.rad(70),math.rad(0),math.rad(-90)),.3)
  1601. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(45),math.rad(0),math.rad(90)),.3)
  1602. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(120)), 0.3)
  1603. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1604. end
  1605. attack = false
  1606. smeshmoveenabled = false
  1607. so("rbxassetid://233091205",sorb2,2.25,0.95)
  1608. MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.025,1)
  1609. MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.025,2)
  1610. for i = 0, 9 do
  1611. MagicBlock(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,1,1,1,-0.025,10,-0.025,0.065)
  1612. end
  1613. local faceam = 5
  1614. for i = 0, 9 do
  1615. faceam = faceam + 10
  1616. local hitbox = Instance.new("Part",char)
  1617. so("rbxassetid://233091205",hitbox,1,2)
  1618. hitbox.Size = Vector3.new(15,15,15)
  1619. hitbox.Material = "Neon"
  1620. hitbox.BrickColor = maincolor
  1621. hitbox.CFrame = char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*faceam
  1622. hitbox.Anchored = true
  1623. hitbox.Transparency = 1
  1624. hitbox.CanCollide = false
  1625. MagicBlockSteady(maincolor,hitbox.CFrame + hitbox.CFrame.lookVector,25,25,25,15,15,-4.5,0.15,math.random(1,2))
  1626. MagicBlockSteady(maincolor,hitbox.CFrame + hitbox.CFrame.lookVector,25,25,25,1.5,1.5,0,0.05,math.random(1,2))
  1627. game:GetService("Debris"):AddItem(hitbox, 1)
  1628. hitbox.Touched:connect(function(hit)
  1629. Damagefunc(hit,10,11,math.random(10,20),"Normal",RootPart,.2,1)
  1630. end)
  1631. wait(0.1)
  1632. end
  1633. end
  1634.  
  1635. function smesh()
  1636. attack = true
  1637. smeshmoveenabled = true
  1638. hum.WalkSpeed = 8
  1639. so("rbxassetid://255679384",sorb2,2,0.98)
  1640. for i = 0,10,0.1 do
  1641. swait()
  1642. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1643. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1644. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.1)
  1645. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(25 + 5 * math.cos(sine / 32))),.1)
  1646. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1.75 + 0.15 * math.cos(sine / 25))* angles(math.rad(-50),math.rad(0),math.rad(-50)),.1)
  1647. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(45),math.rad(0),math.rad(50)),.1)
  1648. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(15)), 0.1)
  1649. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.1)
  1650. end
  1651. for i = 0,2,0.1 do
  1652. swait()
  1653. MagicBlock(maincolor,sorb2.CFrame,1,1,1,0.5,0.5,0.5,0.1)
  1654. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1655. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1656. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.3)
  1657. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(25 + 5 * math.cos(sine / 32))),.3)
  1658. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1 + 0.15 * math.cos(sine / 25))* angles(math.rad(90),math.rad(0),math.rad(-80)),.3)
  1659. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(35),math.rad(0),math.rad(80)),.3)
  1660. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(35)), 0.3)
  1661. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-170)), 0.3)
  1662. end
  1663. so("rbxassetid://165969964",sorb2,1.5,0.98)
  1664. local hitbox = Instance.new("Part",char)
  1665. hitbox.Size = Vector3.new(20,20,20)
  1666. hitbox.Material = "Neon"
  1667. hitbox.BrickColor = maincolor
  1668. hitbox.CFrame = sorb2.CFrame
  1669. hitbox.Anchored = true
  1670. hitbox.Transparency = 1
  1671. hitbox.CanCollide = false
  1672. game:GetService("Debris"):AddItem(hitbox, 1)
  1673. hitbox.Touched:connect(function(hit)
  1674. Damagefunc(hit,9,18,math.random(10,20),"Normal",RootPart,.2,1)
  1675. end)
  1676. MagicBlock(maincolor,sorb2.CFrame,5,5,5,1.25,1.25,1.25,0.015)
  1677. MagicBlock(maincolor,sorb2.CFrame,5,5,5,1.5,1.5,1.5,0.025)
  1678. MagicBlock(maincolor,sorb2.CFrame,10,10,10,5.5,5.5,5.5,0.15)
  1679. for i = 0, 9 do
  1680. MagicBlock(maincolor,sorb2.CFrame,1,1,1,-0.025,10,-0.025,0.065)
  1681. end
  1682. hum.WalkSpeed = 16
  1683. smeshmoveenabled = false
  1684. attack = false
  1685. end
  1686.  
  1687. local begonemoveenabled = false
  1688.  
  1689. function BEGONETHOT()
  1690. smeshmoveenabled = true
  1691. begonemoveenabled = true
  1692. hum.WalkSpeed = 8
  1693. so("rbxassetid://151074889",sorb2,2.5,1)
  1694. wait()
  1695. attack = true
  1696. for i = 0,8,0.1 do
  1697. swait()
  1698. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1699. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1700. RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-30)),.1)
  1701. LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(30)),.1)
  1702. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,5 + 0.15 * math.cos(sine / 25))* angles(math.rad(-50),math.rad(0),math.rad(0)),.1)
  1703. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  1704. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(-130)), 0.1)
  1705. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(130)), 0.1)
  1706. end
  1707. for i = 0,2,0.1 do
  1708. swait()
  1709. MagicBlock(maincolor,sorb2.CFrame,1,1,1,2.5,2.5,2.5,0.1)
  1710. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1711. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1712. RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-30)),.3)
  1713. LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(30)),.3)
  1714. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1 + 0.15 * math.cos(sine / 25))* angles(math.rad(90),math.rad(0),math.rad(0)),.3)
  1715. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1716. RW.C0 = clerp(RW.C0, CFrame.new(1, 1, -0.5) * angles(math.rad(0), math.rad(10), math.rad(-130)), 0.3)
  1717. LW.C0 = clerp(LW.C0, CFrame.new(-1, 1, -0.5) * angles(math.rad(0), math.rad(10), math.rad(130)), 0.3)
  1718. end
  1719. so("rbxassetid://165969964",sorb2,3.5,0.98)
  1720. local hitbox = Instance.new("Part",char)
  1721. hitbox.Size = Vector3.new(75,75,75)
  1722. hitbox.Material = "Neon"
  1723. hitbox.BrickColor = maincolor
  1724. hitbox.CFrame = sorb2.CFrame
  1725. hitbox.Anchored = true
  1726. hitbox.Transparency = 1
  1727. hitbox.CanCollide = false
  1728. game:GetService("Debris"):AddItem(hitbox, 1)
  1729. hitbox.Touched:connect(function(hit)
  1730. Damagefunc(hit,888,1337,math.random(10,20),"Normal",RootPart,.2,1)
  1731. end)
  1732. MagicBlock(maincolor,sorb2.CFrame,5*2.5,5*2.5,5*2.5,1.25*2.5,1.25*2.5,1.25*2.5,0.015)
  1733. MagicBlock(maincolor,sorb2.CFrame,5*2.5,5*2.5,5*2.5,1.5*2.5,1.5*2.5,1.5*2.5,0.025)
  1734. MagicBlock(maincolor,sorb2.CFrame,10*2.5,10*2.5,10*2.5,5.5*2.5,5.5*2.5,5.5*2.5,0.15)
  1735. for i = 0, 9 do
  1736. MagicBlock(maincolor,sorb2.CFrame,1*2.5,1*2.5,1*2.5,-0.025*2.5,10*2.5,-0.025*2.5,0.065)
  1737. end
  1738. hum.WalkSpeed = 16
  1739. begonemoveenabled = false
  1740. smeshmoveenabled = false
  1741. attack = false
  1742. end
  1743.  
  1744. function doomsdaylaser()
  1745. attack = true
  1746. for i = 0,1,0.1 do
  1747. swait()
  1748. MagicBlock(maincolor,sorb.CFrame,1,1,1,0.25,0.25,0.25,0.1)
  1749. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  1750. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.3)
  1751. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3)
  1752. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  1753. end
  1754. local a = Instance.new("Part",Character)
  1755. a.BrickColor = maincolor
  1756. a.Name = "Lazer"
  1757. a.Anchored = true
  1758. a.Transparency = 1
  1759. a.Material = "Neon"
  1760. a.CanCollide = false
  1761. local hitbox = Instance.new("Part",char)
  1762. hitbox.Size = Vector3.new(10,10,10)
  1763. hitbox.Material = "Neon"
  1764. hitbox.BrickColor = maincolor
  1765. hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0)
  1766. hitbox.Anchored = true
  1767. hitbox.Transparency = 1
  1768. hitbox.CanCollide = false
  1769. local hmesh = CreateMesh(hitbox,"Sphere",1,1,1)
  1770. so("rbxassetid://136007472",sorb,1,0.7)
  1771. for i = 0, 19 do
  1772. swait()
  1773. hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0)
  1774. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  1775. MagicBlock(maincolor,hitbox.CFrame,10,10,10,1.15,1.15,1.15,0.15)
  1776. hitbox.Transparency = hitbox.Transparency - 0.05
  1777. end
  1778. for i = 0, 49 do
  1779. swait()
  1780. hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0)
  1781. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  1782. end
  1783. a.Transparency = 0
  1784. local ray = Ray.new(
  1785. hitbox.CFrame.p, -- origin
  1786. (mouse.Hit.p - hitbox.CFrame.p).unit * 500 -- direction
  1787. )
  1788. local ignore = Character
  1789. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1790. if hit then
  1791. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1792.  
  1793. if not humanoid then
  1794. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1795. end
  1796. if humanoid then
  1797. if humanoid.Parent:IsA"Model" then
  1798. Damagefunc(hit,25,35,math.random(10,20),"Normal",RootPart,.2,1)
  1799. end
  1800. end
  1801. end
  1802. a.BottomSurface = 10
  1803. a.TopSurface = 10
  1804. local distance = (sorb.CFrame.p - position).magnitude
  1805. a.Size = Vector3.new(1, 1, distance)
  1806. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  1807. game:GetService("Debris"):AddItem(a, 15)
  1808. game:GetService("Debris"):AddItem(hitbox, 15)
  1809. local newmesh = Instance.new("BlockMesh",a)
  1810. so("rbxassetid://553712898",sorb,3.5,1)
  1811. so("rbxassetid://553712898",sorb,0.5,0.5)
  1812. so("rbxassetid://588737825",sorb,2.75,1)
  1813. MagicBlock(maincolor,sorb.CFrame,1,1,1,5,5,5,0.15)
  1814. MagicBlock(maincolor,mouse.Hit,1,1,1,2.5,2.5,2.5,0.05)
  1815. MagicBlock(maincolor,mouse.Hit,1,1,1,1.5,1.5,1.5,0.15)
  1816. local beamscale = 1.5
  1817. local sizemax = 1*10
  1818. for i = 0, 99 do
  1819. hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0)
  1820. sizemax = sizemax - 0.01*10
  1821. beamscale = beamscale - 0.01
  1822. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  1823. so("rbxassetid://553712898",sorb,0.5,2.5)
  1824. ray = Ray.new(
  1825. hitbox.CFrame.p, -- origin
  1826. (mouse.Hit.p - hitbox.CFrame.p).unit * 2000 -- direction
  1827. )
  1828. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1829. distance = (hitbox.CFrame.p - position).magnitude
  1830. if hit then
  1831. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1832.  
  1833. if not humanoid then
  1834. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1835. end
  1836. if humanoid then
  1837. if humanoid.Parent:IsA"Model" then
  1838. Damagefunc(hit,15,17,math.random(10,20),"Normal",RootPart,.2,1)
  1839. end
  1840. end
  1841. end
  1842. a.Size = Vector3.new(5, 5, distance)
  1843. hmesh.Scale = hmesh.Scale - Vector3.new(0.01,0.01,0.01)
  1844. a.CFrame = CFrame.new(hitbox.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  1845. newmesh.Scale = newmesh.Scale + Vector3.new(-0.01,-0.01,0)
  1846. MagicBlock(maincolor,mouse.Hit,sizemax,sizemax,sizemax,beamscale,beamscale,beamscale,0.05)
  1847. swait()
  1848. end
  1849. attack = false
  1850. end
  1851. local attacktype = 0
  1852. mouse.Button1Down:connect(function()
  1853. if attack == false and attacktype == 0 and begonemoveenabled == false then
  1854. attacktype = 1
  1855. weaklaser1()
  1856. elseif attack == false and attacktype == 1 and begonemoveenabled == false then
  1857. attacktype = 0
  1858. weaklaser2()
  1859. end
  1860. end)
  1861.  
  1862. mouse.KeyDown:connect(function(k)
  1863. if k == "z" and attack == false and begonemoveenabled == false then
  1864. laser()
  1865. end
  1866. if k == "x" and attack == false and begonemoveenabled == false then
  1867. groundwave()
  1868. end
  1869. if k == "c" and attack == false and begonemoveenabled == false then
  1870. smesh()
  1871. end
  1872. if k == "v" and attack == false and begonemoveenabled == false then
  1873. doomsdaylaser()
  1874. end
  1875. if k == "p" and attack == false and begonemoveenabled == false then
  1876. BEGONETHOT()
  1877. end
  1878. end)
  1879.  
  1880. Humanoid.Animator.Parent = nil
  1881.  
  1882. attack = true
  1883. hum.WalkSpeed = 0
  1884. hum.MaxHealth = math.huge
  1885. hum.Health = math.huge
  1886. for i = 0,10,0.05 do
  1887. swait()
  1888. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1889. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1890. RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-30)),.025)
  1891. LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(30)),.025)
  1892. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(-30),math.rad(0),math.rad(0)),.025)
  1893. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.025)
  1894. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(-130)), 0.025)
  1895. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(130)), 0.025)
  1896. end
  1897. MagicBlock(maincolor,t.CFrame,10,10,10,1.5,1.5,1.5,0.025)
  1898. MagicBlock(maincolor,t.CFrame,10,10,10,2,2,2,0.015)
  1899. MagicBlock(maincolor,t.CFrame,10,10,10,1.75,1.75,1.75,0.05)
  1900. MagicBlock(maincolor,t.CFrame,10,10,10,2,2,2,0.076)
  1901. so("rbxassetid://588737825",t,0.5,1)
  1902. so("rbxassetid://588737825",t,0.5,1)
  1903. so("rbxassetid://588698460",t,1,0.5)
  1904. so("rbxassetid://137473066",t,5,1) -----Laugh, Change to your liking----
  1905. so("rbxassetid://553712898",t,1,0.85)
  1906. so("rbxassetid://553712898",t,1.5,0.5)
  1907. so("rbxassetid://553712898",t,1.5,0.25)
  1908. so("rbxassetid://553712898",t,1.5,0.15)
  1909. Music:play()
  1910. for i = 0,10,0.05 do
  1911. swait()
  1912. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1913. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1914. RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.125)
  1915. LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.025)
  1916. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(20),math.rad(0),math.rad(0)),.125)
  1917. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.125)
  1918. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(85)), 0.125)
  1919. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(-85)), 0.125)
  1920. end
  1921. attack = false
  1922. hum.WalkSpeed = 16
  1923. hum.MaxHealth = 250
  1924. hum.Health = 250
  1925.  
  1926. idleanim=.4
  1927. while true do
  1928. swait()
  1929. sine = sine + change
  1930. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1931. local velderp=RootPart.Velocity.y
  1932. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1933. if equipped==true or equipped==false then
  1934. if attack==false then
  1935. idle=idle+1
  1936. else
  1937. idle=0
  1938. end
  1939. if idle>=500 then
  1940. if attack==false then
  1941. --Sheath()
  1942. end
  1943. end
  1944. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1945. Anim="Jump"
  1946. if attack==false then
  1947. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  1948. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1949. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1950. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  1951. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1952. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  1953. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1954. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  1955. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  1956. end
  1957. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1958. Anim="Fall"
  1959. if attack==false then
  1960. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  1961. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1962. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1963. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  1964. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1965. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  1966. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1967. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  1968. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  1969. end
  1970. elseif torvel<1 and hitfloor~=nil then
  1971. Anim="Idle"
  1972. if smeshmoveenabled == false then
  1973. RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(20),math.rad(0 + 5 * math.cos(sine / 32))),.3)
  1974. LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(20),math.rad(0 + 5 * math.cos(sine / 32))),.3)
  1975. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1976. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  1977. end
  1978. if attack==false then
  1979. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))*angles(math.rad(0),math.rad(-5),math.rad(-35)),.3)
  1980. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(5),math.rad(35)),.3)
  1981. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(12.5 + 2.5 * math.cos(sine / 24))),.3)
  1982. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(-12.5 - 2.5 * math.cos(sine / 32))),.3)
  1983. end
  1984. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1985. Anim="Walk"
  1986. if smeshmoveenabled == false then
  1987. RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-5 + 5 * math.cos(sine / 32))),.3)
  1988. LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-5 + 5 * math.cos(sine / 32))),.3)
  1989. MagicBlock(maincolor,llegw.CFrame,1,1,1,0.25,0.25,0.25,0.5)
  1990. MagicBlock(maincolor,rlegw.CFrame,1,1,1,0.25,0.25,0.25,0.5)
  1991. MagicBlock(maincolor,llegw.CFrame,1,1,1,-0.05,-0.05,-0.05,0.15)
  1992. MagicBlock(maincolor,rlegw.CFrame,1,1,1,-0.05,-0.05,-0.05,0.15)
  1993. end
  1994. if attack==false then
  1995. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))*angles(math.rad(15),math.rad(0),math.rad(0)),.3)
  1996. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1997. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-35),math.rad(0),math.rad(12.5 + 2.5 * math.cos(sine / 24))),.3)
  1998. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-35),math.rad(0),math.rad(-12.5 - 2.5 * math.cos(sine / 32))),.3)
  1999. end
  2000. elseif torvel>=22 and hitfloor~=nil then
  2001. Anim="Run"
  2002. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  2003. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  2004. if attack==false then
  2005. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.25 + 0.05 * math.cos(sine / 32))* angles(math.rad(35),math.rad(0),math.rad(0)),.3)
  2006. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2007. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3)
  2008. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3)
  2009. end
  2010. end
  2011. end
  2012. end
Add Comment
Please, Sign In to add comment