Advertisement
EquinoxDiscord

weewew

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