TheProNoob2004

Shadow Shogai

Jun 21st, 2016
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 57.53 KB | None | 0 0
  1.  
  2. --[[
  3. Shadow Shogai Class Made by Fenrier.
  4. ]]
  5. Player = game:GetService("Players").LocalPlayer
  6. Character = Player.Character
  7. PlayerGui = Player.PlayerGui
  8. Backpack = Player.Backpack
  9. Torso = Character.Torso
  10. Head = Character.Head
  11. Humanoid = Character.Humanoid
  12. Face = Head.face
  13. LeftArm = Character["Left Arm"]
  14. LeftLeg = Character["Left Leg"]
  15. RightArm = Character["Right Arm"]
  16. RightLeg = Character["Right Leg"]
  17. LS = Torso["Left Shoulder"]
  18. LH = Torso["Left Hip"]
  19. RS = Torso["Right Shoulder"]
  20. RH = Torso["Right Hip"]
  21. Neck = Torso.Neck
  22. it=Instance.new
  23. vt=Vector3.new
  24. cf=CFrame.new
  25. euler=CFrame.fromEulerAnglesXYZ
  26. angles=CFrame.Angles
  27. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  28. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  29. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  30. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  31. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  32. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  33. RootPart=Character.HumanoidRootPart
  34. RootJoint=RootPart.RootJoint
  35. RootCF=euler(-1.57,0,3.14)
  36. attack = false
  37. attackdebounce = false
  38. MMouse=nil
  39. combo=0
  40. --player
  41. player = nil
  42. --save shoulders
  43. RSH, LSH = nil, nil
  44. --welds
  45. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  46. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  47. LH=Torso["Left Hip"]
  48. RH=Torso["Right Hip"]
  49. xenabled=true cenabled=true venabled=true benabled=true
  50. cloaked=false
  51.  
  52. function swait(num)
  53. if num==0 or num==nil then
  54. game:service'RunService'.RenderStepped:wait()
  55. else
  56. game:service'RunService'.Stepped:wait(num)
  57. end
  58. end
  59.  
  60. if Character:findFirstChild("Shogai",true) ~= nil then
  61. Character:findFirstChild("Shogai",true).Parent = nil
  62. end
  63. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  64. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  65. end
  66.  
  67.  
  68. function NoOutline(Part)
  69. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  70. end
  71.  
  72. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  73. local fp = it("Part")
  74. fp.formFactor = formfactor
  75. fp.Parent = parent
  76. fp.Reflectance = reflectance
  77. fp.Transparency = transparency
  78. fp.CanCollide = false
  79. fp.Locked=true
  80. fp.BrickColor = brickcolor
  81. fp.Name = name
  82. fp.Size = size
  83. fp.Position = Torso.Position
  84. NoOutline(fp)
  85. fp.Material="SmoothPlastic"
  86. fp:BreakJoints()
  87. return fp
  88. end
  89.  
  90. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  91. local mesh = it(Mesh)
  92. mesh.Parent = part
  93. if Mesh=="SpecialMesh" then
  94. mesh.MeshType = meshtype
  95. mesh.MeshId = meshid
  96. end
  97. mesh.Offset=offset
  98. mesh.Scale=scale
  99. return mesh
  100. end
  101.  
  102. function weld(parent,part0,part1,c0)
  103. local weld = it("Weld")
  104. weld.Parent = parent
  105. weld.Part0 = part0
  106. weld.Part1 = part1
  107. weld.C0 = c0
  108. return weld
  109. end
  110.  
  111. local fengui=it("GuiMain")
  112. fengui.Parent=Player.PlayerGui
  113. fengui.Name="WeaponGUI"
  114. local fenframe1=it("TextLabel")
  115. fenframe1.Parent=fengui
  116. fenframe1.BackgroundColor3=Color3.new(50/255,50/255,50/255)
  117. fenframe1.BackgroundTransparency=0.3
  118. fenframe1.BorderSizePixel=5
  119. fenframe1.BorderColor3=Color3.new(1,1,1)
  120. fenframe1.Size=UDim2.new(0.05, 0, 0.1, 0)
  121. fenframe1.Position=UDim2.new(0.325,0,0.7,0)
  122. fenframe1.Text="X"
  123. fenframe1.TextWrapped=true
  124. fenframe1.FontSize=7
  125. fenframe1.TextColor3=Color3.new(1,1,1)
  126. local fenframe1a=it("TextLabel")
  127. fenframe1a.Parent=fengui
  128. fenframe1a.BackgroundColor3=Color3.new(10/255,10/255,10/255)
  129. fenframe1a.BackgroundTransparency=0.3
  130. fenframe1a.BorderSizePixel=5
  131. fenframe1a.BorderColor3=Color3.new(1,1,1)
  132. fenframe1a.Size=UDim2.new(0.05, 0, 0.1, 0)
  133. fenframe1a.Position=UDim2.new(0.325,0,0.7,0)
  134. fenframe1a.Text=""
  135. local fenframe2=it("TextLabel")
  136. fenframe2.Parent=fengui
  137. fenframe2.BackgroundColor3=Color3.new(50/255,50/255,50/255)
  138. fenframe2.BackgroundTransparency=0.3
  139. fenframe2.BorderSizePixel=5
  140. fenframe2.BorderColor3=Color3.new(1,1,1)
  141. fenframe2.Size=UDim2.new(0.05, 0, 0.1, 0)
  142. fenframe2.Position=UDim2.new(0.425,0,0.7,0)
  143. fenframe2.Text="C"
  144. fenframe2.TextWrapped=true
  145. fenframe2.FontSize=7
  146. fenframe2.TextColor3=Color3.new(1,1,1)
  147. local fenframe2a=it("TextLabel")
  148. fenframe2a.Parent=fengui
  149. fenframe2a.BackgroundColor3=Color3.new(10/255,10/255,10/255)
  150. fenframe2a.BackgroundTransparency=0.3
  151. fenframe2a.BorderSizePixel=5
  152. fenframe2a.BorderColor3=Color3.new(1,1,1)
  153. fenframe2a.Size=UDim2.new(0.05, 0, 0.1, 0)
  154. fenframe2a.Position=UDim2.new(0.425,0,0.7,0)
  155. fenframe2a.Text=""
  156. local fenframe3=it("TextLabel")
  157. fenframe3.Parent=fengui
  158. fenframe3.BackgroundColor3=Color3.new(50/255,50/255,50/255)
  159. fenframe3.BackgroundTransparency=0.3
  160. fenframe3.BorderSizePixel=5
  161. fenframe3.BorderColor3=Color3.new(1,1,1)
  162. fenframe3.Size=UDim2.new(0.05, 0, 0.1, 0)
  163. fenframe3.Position=UDim2.new(0.525,0,0.7,0)
  164. fenframe3.Text="V"
  165. fenframe3.TextWrapped=true
  166. fenframe3.FontSize=7
  167. fenframe3.TextColor3=Color3.new(1,1,1)
  168. local fenframe3a=it("TextLabel")
  169. fenframe3a.Parent=fengui
  170. fenframe3a.BackgroundColor3=Color3.new(10/255,10/255,10/255)
  171. fenframe3a.BackgroundTransparency=0.3
  172. fenframe3a.BorderSizePixel=5
  173. fenframe3a.BorderColor3=Color3.new(1,1,1)
  174. fenframe3a.Size=UDim2.new(0.05, 0, 0.1, 0)
  175. fenframe3a.Position=UDim2.new(0.525,0,0.7,0)
  176. fenframe3a.Text=""
  177. local fenframe4=it("TextLabel")
  178. fenframe4.Parent=fengui
  179. fenframe4.BackgroundColor3=Color3.new(50/255,50/255,50/255)
  180. fenframe4.BackgroundTransparency=0.3
  181. fenframe4.BorderSizePixel=5
  182. fenframe4.BorderColor3=Color3.new(1,1,1)
  183. fenframe4.Size=UDim2.new(0.05, 0, 0.1, 0)
  184. fenframe4.Position=UDim2.new(0.625,0,0.7,0)
  185. fenframe4.Text="B"
  186. fenframe4.TextWrapped=true
  187. fenframe4.FontSize=7
  188. fenframe4.TextColor3=Color3.new(1,1,1)
  189. local fenframe4a=it("TextLabel")
  190. fenframe4a.Parent=fengui
  191. fenframe4a.BackgroundColor3=Color3.new(10/255,10/255,10/255)
  192. fenframe4a.BackgroundTransparency=0.3
  193. fenframe4a.BorderSizePixel=5
  194. fenframe4a.BorderColor3=Color3.new(1,1,1)
  195. fenframe4a.Size=UDim2.new(0.05, 0, 0.1, 0)
  196. fenframe4a.Position=UDim2.new(0.625,0,0.7,0)
  197. fenframe4a.Text=""
  198.  
  199. fenframe1a.Size=UDim2.new(0,0,0.1,0)
  200. fenframe2a.Size=UDim2.new(0,0,0.1,0)
  201. fenframe3a.Size=UDim2.new(0,0,0.1,0)
  202. fenframe4a.Size=UDim2.new(0,0,0.1,0)
  203.  
  204. local modelzorz = Instance.new("Model")
  205. modelzorz.Parent = Character
  206. modelzorz.Name = "Shogai"
  207.  
  208. local prt1=part(1,modelzorz,0,0,Torso.BrickColor,"Part1",vt(1,1,1))
  209. local prt2=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part2",vt(1,1,1))
  210. local prt3=part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part3",vt(1,1,1))
  211. local prt4=part(1,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part4",vt(1,1,1))
  212. local prt5=part(1,modelzorz,0.2,0,BrickColor.new("White"),"Part5",vt(1,1,1))
  213. local prt6=part(1,modelzorz,0.2,0,BrickColor.new("White"),"Part6",vt(1,1,1))
  214. local prt8=part(0,modelzorz,0,1,BrickColor.new("Black"),"Part8",vt(1,1,1))
  215. local prt9=part(0,modelzorz,0,1,BrickColor.new("Black"),"Part9",vt(1,1,1))
  216.  
  217. local msh1=mesh("CylinderMesh",prt1,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  218. local msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(0.49,0.8,0.49))
  219. local msh3=mesh("SpecialMesh",prt3,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(1,1,1))
  220. local msh4=mesh("SpecialMesh",prt4,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(1,0.5,0.5))
  221. local msh5=mesh("SpecialMesh",prt5,"Wedge","",vt(0,0,0),vt(0.1,1.4,0.4))
  222. local msh6=mesh("SpecialMesh",prt6,"Wedge","",vt(0,0,0),vt(0.1,1.4,0.4))
  223. local msh8=mesh("SpecialMesh",prt8,"Sphere","",vt(0,0,0),vt(1.5,1.5,1.5))
  224. local msh9=mesh("SpecialMesh",prt9,"Sphere","",vt(0,0,0),vt(1.5,1.5,1.5))
  225.  
  226. local wld1=weld(prt1,prt1,Torso,euler(0,0,-2)*cf(-1,0.8,-0.5))
  227. local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0))
  228. local wld3=weld(prt3,prt3,prt2,euler(3.14,0,0)*cf(0,0.5,0))
  229. local wld4=weld(prt4,prt4,prt2,euler(0,0,0)*cf(0,-0.5,0))
  230. local wld5=weld(prt5,prt5,prt4,euler(0,1.57,0)*cf(-0.2,-0.9,0))
  231. local wld6=weld(prt6,prt6,prt4,euler(0,-1.57,0)*cf(0.2,-0.9,0))
  232. local wld8=weld(prt8,prt8,LeftArm,euler(0,0,0)*cf(0,0.8,0))
  233. local wld9=weld(prt9,prt9,RightArm,euler(0,0,0)*cf(0,0.8,0))
  234.  
  235. numb=-0.3
  236. numb2=0.5
  237. for i=1,5 do
  238. local prt7=part(1,modelzorz,0,0,BrickColor.new("Really black"),"Part7",vt(1,1,1))
  239. local msh7=mesh("SpecialMesh",prt7,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(numb2,0.2,0.2))
  240. local wld7=weld(prt7,prt7,prt4,euler(0,0,0)*cf(0,numb,0))
  241. numb=numb-0.3
  242. numb2=numb2-0.1
  243. end
  244.  
  245. coroutine.resume(coroutine.create(function(Part,Part2)
  246. while Part2.Parent~=nil do
  247. swait()
  248. if cloaked==false then
  249. for i=1,0.1,-0.01 do
  250. swait()
  251. Part2.Transparency=i
  252. if math.random(1,10)==1 then
  253. local prt2=part(3,workspace,0,0,BrickColor.new("Black"),"Effect",vt(0.5,0.5,0.5))
  254. prt2.Anchored=true
  255. prt2.CFrame=Part2.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  256. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  257. game:GetService("Debris"):AddItem(prt2,2)
  258. coroutine.resume(coroutine.create(function(pPart,Mesh)
  259. for i=0,1,0.1 do
  260. swait()
  261. pPart.CFrame=pPart.CFrame*cf(0,0.5,0)
  262. end
  263. pPart.Parent=nil
  264. end),prt2,msh2)
  265. end
  266. end
  267. for i=0.1,1,0.01 do
  268. swait()
  269. Part2.Transparency=i
  270. if math.random(1,10)==1 then
  271. local prt2=part(3,workspace,0,0,BrickColor.new("Black"),"Effect",vt(0.5,0.5,0.5))
  272. prt2.Anchored=true
  273. prt2.CFrame=Part2.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  274. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  275. game:GetService("Debris"):AddItem(prt2,2)
  276. coroutine.resume(coroutine.create(function(pPart,Mesh)
  277. for i=0,1,0.1 do
  278. swait()
  279. pPart.CFrame=pPart.CFrame*cf(0,0.5,0)
  280. end
  281. pPart.Parent=nil
  282. end),prt2,msh2)
  283. end
  284. end
  285. end
  286. end
  287. end),LeftArm,prt8)
  288.  
  289. coroutine.resume(coroutine.create(function(Part,Part2)
  290. while Part2.Parent~=nil do
  291. swait()
  292. if cloaked==false then
  293. for i=1,0.1,-0.01 do
  294. swait()
  295. Part2.Transparency=i
  296. if math.random(1,10)==1 then
  297. local prt2=part(3,workspace,0,0,BrickColor.new("Black"),"Effect",vt(0.5,0.5,0.5))
  298. prt2.Anchored=true
  299. prt2.CFrame=Part2.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  300. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  301. game:GetService("Debris"):AddItem(prt2,2)
  302. coroutine.resume(coroutine.create(function(pPart,Mesh)
  303. for i=0,1,0.1 do
  304. swait()
  305. pPart.CFrame=pPart.CFrame*cf(0,0.5,0)
  306. end
  307. pPart.Parent=nil
  308. end),prt2,msh2)
  309. end
  310. end
  311. for i=0.1,1,0.01 do
  312. swait()
  313. Part2.Transparency=i
  314. if math.random(1,10)==1 then
  315. local prt2=part(3,workspace,0,0,BrickColor.new("Black"),"Effect",vt(0.5,0.5,0.5))
  316. prt2.Anchored=true
  317. prt2.CFrame=Part2.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  318. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  319. game:GetService("Debris"):AddItem(prt2,2)
  320. coroutine.resume(coroutine.create(function(pPart,Mesh)
  321. for i=0,1,0.1 do
  322. swait()
  323. pPart.CFrame=pPart.CFrame*cf(0,0.5,0)
  324. end
  325. pPart.Parent=nil
  326. end),prt2,msh2)
  327. end
  328. end
  329. end
  330. end
  331. end),RightArm,prt9)
  332.  
  333. local hitbox=part(1,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  334. hitbox.Anchored=false
  335.  
  336. if (script.Parent.className ~= "HopperBin") then
  337. Tool = Instance.new("HopperBin")
  338. Tool.Parent = Backpack
  339. Tool.Name = "Shadow Shogai"
  340. script.Parent = Tool
  341. end
  342. Bin = script.Parent
  343.  
  344. local Bg = it("BodyGyro")
  345. Bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  346. Bg.P = 20e+003
  347. Bg.Parent = nil
  348.  
  349. so = function(id,par,vol,pit)
  350. coroutine.resume(coroutine.create(function()
  351. local sou = Instance.new("Sound",par or workspace)
  352. sou.Volume=vol
  353. sou.Pitch=pit or 1
  354. sou.SoundId=id
  355. swait()
  356. sou:play()
  357. swait(6)
  358. sou:Remove()
  359. end))
  360. end
  361.  
  362. function hideanim()
  363. equipped=false
  364. Torso.Neck.C0=necko
  365. RootJoint.C0=RootCF
  366. RW.C0=cf(1.5,0.5,0)*euler(0,0,0)
  367. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  368. LW.C0=cf(-1.5,0.5,0)*euler(0,0,0)
  369. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  370. RH.C0=RHC0
  371. RH.C1=RHC1
  372. LH.C0=LHC0
  373. LH.C1=LHC1
  374. end
  375.  
  376. function equipanim()
  377. equipped=true
  378. --[[Torso.Neck.C0=necko*euler(0,0,1)
  379. RootJoint.C0=RootCF*cf(0,0,-0.5)*euler(0,0,-1)
  380. RW.C0=cf(1.5,0.5,0)*euler(-0.2,0,0.5)
  381. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  382. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.2)
  383. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  384. RH.C0=RHC0*cf(0.5,0.2,0)*euler(0,0.5,-0.5)
  385. RH.C1=RHC1
  386. LH.C0=LHC0*cf(0,0.3,0)*euler(0.2,1,0)
  387. LH.C1=LHC1
  388. wld1.Part1=RightArm
  389. wld1.C0=euler(-1.57,0,1.57)*cf(0,1,0)]]
  390. Torso.Neck.C0=necko*euler(0,0,1.4)
  391. Torso.Neck.C1=necko2
  392. RootJoint.C0=RootCF*cf(0,0,-0.5)*euler(0,0,-1.4)
  393. RW.C0=cf(1.5,0.5,0)*euler(-0.6,0,0.5)
  394. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  395. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.2)
  396. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  397. RH.C0=RHC0*cf(0.5,0.2,0)*euler(0,0.5,-0.5)
  398. RH.C1=RHC1
  399. LH.C0=LHC0*cf(0,0.3,0)*euler(0.2,1,0)
  400. LH.C1=LHC1
  401. --[[wld1.Part1=RightArm
  402. wld1.C0=euler(-1.57,0,1.57)*cf(0,1,0)]]
  403. end
  404.  
  405. function attackone()
  406. attack=true
  407. for i=0,1,0.1 do
  408. swait()
  409. Torso.Neck.C0=necko*euler(0,0,1.4+0.17*i)
  410. RootJoint.C0=RootCF*cf(0,0,-0.5)*euler(0,0,-1.4-0.17*i)
  411. RW.C0=cf(1.5,0.5,0)*euler(-0.6,0,0.5)
  412. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  413. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.2-1.37*i)
  414. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  415. end
  416. NewCF=Torso.CFrame*cf(-2,0.5,0)*euler(1.57,0,-1.57)
  417. local pprt=part(3,workspace,0,1,BrickColor.new("White"),"Effect",vt(0.5,0.5,0.5))
  418. pprt.Anchored=true
  419. pprt.CFrame=NewCF
  420. game:GetService("Debris"):AddItem(pprt,2)
  421. so("http://roblox.com/asset/?id=160772554",pprt,1,1)
  422. --so("http://roblox.com/asset/?id=138120853",pprt,1,1.3)
  423. MagicCircle2(BrickColor.new("Black"),NewCF*cf(0,-0.8,0),6,1,6,0.05,0,0.05,0.03)
  424. SkullEffect(BrickColor.new("White"),NewCF*cf(0,-1.2,0)*euler(-1.57,0,0),5,5,5,0.03)
  425. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,0,"Normal",RootPart,0.5) end)
  426. hitbox.Parent=modelzorz
  427. hitbox.Size=vt(2,3,2)
  428. hitbox.CFrame=NewCF
  429. for i=0,1,0.2 do
  430. swait()
  431. hitbox.CFrame=NewCF*cf(0,-1,0)
  432. end
  433. con1:disconnect()
  434. hitbox.Parent=nil
  435. attack=false
  436. end
  437.  
  438. function attacktwo()
  439. attack=true
  440. for i=0,1,0.1 do
  441. swait()
  442. Torso.Neck.C0=necko*euler(0.1*i,0,1.57-1.57*i)
  443. RootJoint.C0=RootCF*cf(0,0,-0.5)*euler(0,0,-1.57+1.57*i)
  444. RW.C0=cf(1.5-0.5*i,0.5,-0.5*i)*euler(-0.6+0.6*i,0,0.5+1.07*i)
  445. RW.C1=cf(0,0.5,0)*euler(-2*i,0,0)
  446. LW.C0=cf(-1.5+0.5*i,0.5,-0.5*i)*euler(0,0,-1.57)
  447. LW.C1=cf(0,0.5,0)*euler(-2*i,0,0)
  448. RH.C0=RHC0*cf(0.5,0.2,0)*euler(0,0.5-0.5*i,-0.5)
  449. RH.C1=RHC1
  450. LH.C0=LHC0*cf(-0.5*i,0.3,0)*euler(0.2,1-1*i,0.5*i)
  451. LH.C1=LHC1*euler(0.5*i,0,0)
  452. end
  453. NewCF=Torso.CFrame*cf(0,0.5,-2)*euler(1.57,0,0)
  454. MagicBlock(BrickColor.new("Black"),NewCF,1,1,1,0.2,0.2,0.2,0.02)
  455. MagicCircle(BrickColor.new("Black"),NewCF,0.5,3,0.5,0.1,1,0.1,0.03)
  456. WaveEffect(BrickColor.new("Black"),NewCF*euler(3.14,0,0),0.2,0.5,0.2,0.1,0.3,0.1,0.03)
  457. so("http://roblox.com/asset/?id=161006163",Torso,1,0.6)
  458. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,40,"Normal",RootPart,0.5) end)
  459. hitbox.Parent=modelzorz
  460. hitbox.Size=vt(2,5,2)
  461. hitbox.CFrame=NewCF
  462. numb=2
  463. for i=0,1,0.1 do
  464. swait()
  465. Torso.Neck.C0=necko*euler(0.1+0.1*i*numb,0,1.57-1.57)
  466. RW.C0=cf(1,0.5,-0.5)*euler(0,0,1.57)
  467. RW.C1=cf(0,0.5,0)*euler(-2-0.2*i*numb,0,0)
  468. LW.C0=cf(-1,0.5,-0.5)*euler(0,0,-1.57)
  469. LW.C1=cf(0,0.5,0)*euler(-2-0.2*i*numb,0,0)
  470. numb=numb-0.1
  471. hitbox.CFrame=NewCF*cf(0,-i*5,0)
  472. end
  473. con1:disconnect()
  474. hitbox.Parent=nil
  475. attack=false
  476. end
  477.  
  478. function attackthree()
  479. attack=true
  480. for i=0,1,0.1 do
  481. swait()
  482. Torso.Neck.C0=necko*euler(0.2,0,0)
  483. RootJoint.C0=RootCF*cf(0,0,-0.5+0.5*i)*euler(0,0,0)
  484. RW.C0=cf(1+0.5*i,0.5,-0.5+0.5*i)*euler(0,0,1.57)
  485. RW.C1=cf(0,0.5,0)*euler(-2.2+2.7*i,0,0)
  486. LW.C0=cf(-1-0.5*i,0.5,-0.5+0.5*i)*euler(0,0,-1.57)
  487. LW.C1=cf(0,0.5,0)*euler(-2.2+2.7*i,0,0)
  488. RH.C0=RHC0*cf(0.5-0.5*i,0.2-0.2*i,0)*euler(0,0,-0.5+0.5*i)
  489. RH.C1=RHC1
  490. LH.C0=LHC0*cf(-0.5+0.5*i,0.3-0.3*i,0)*euler(0.2-0.2*i,0,0.5-0.5*i)
  491. LH.C1=LHC1*euler(0.5-0.5*i,0,0)
  492. end
  493. numb=2
  494. for i=0,1,0.2 do
  495. swait()
  496. Torso.Neck.C0=necko*euler(0.2,0,0)
  497. RW.C0=cf(1.5,0.5,0)*euler(0,0,1.57)
  498. RW.C1=cf(0,0.5,0)*euler(0.5+0.2*i*numb,0,0)
  499. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-1.57)
  500. LW.C1=cf(0,0.5,0)*euler(0.5+0.2*i*numb,0,0)
  501. numb=numb-0.2
  502. end
  503. bodvel=it("BodyVelocity")
  504. bodvel.Parent=RootPart
  505. bodvel.maxForce=vt(4e+005,4e+005,4e+005)*1
  506. bodvel.velocity=RootPart.CFrame.lookVector*30
  507. local Point=LeftArm.CFrame*cf(0,-LeftArm.Size.Y,0)
  508. LastPoint=Point
  509. local Point2=RightArm.CFrame*cf(0,-RightArm.Size.Y,0)
  510. LastPoint2=Point2
  511. so("http://www.roblox.com/asset/?id=28144425",Torso,1,0.5)
  512. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,20,30,40,"Knockdown",RootPart,1) end)
  513. hitbox.Parent=modelzorz
  514. hitbox.Size=vt(7,5,5)
  515. hitbox.CFrame=Torso.CFrame
  516. for i=0,1,0.05 do
  517. swait()
  518. Torso.Neck.C0=necko*euler(0.2,0,0)
  519. RW.C0=cf(1.5-0.5*i,0.5,-0.5*i)*euler(0,0,1.57)
  520. RW.C1=cf(0,0.5,0)*euler(0.7-2.7*i,0,0)
  521. LW.C0=cf(-1.5+0.5*i,0.5,-0.5*i)*euler(0,0,-1.57)
  522. LW.C1=cf(0,0.5,0)*euler(0.7-2.7*i,0,0)
  523. local Point=LeftArm.CFrame*cf(0,-LeftArm.Size.Y,0)
  524. effect("Black",0,LastPoint,Point)
  525. LastPoint=Point
  526. local Point2=RightArm.CFrame*cf(0,-RightArm.Size.Y,0)
  527. effect("Black",0,LastPoint2,Point2)
  528. LastPoint2=Point2
  529. MagicBlock2(BrickColor.new("Black"),cf(0,2,0),LeftArm,1,1,1,0.5,0.5,0.5,0.1)
  530. MagicBlock2(BrickColor.new("Black"),cf(0,2,0),RightArm,1,1,1,0.5,0.5,0.5,0.1)
  531. hitbox.CFrame=Torso.CFrame
  532. end
  533. numb=2
  534. for i=0,1,0.1 do
  535. swait()
  536. RW.C0=cf(1,0.5,-0.5)*euler(0,0,1.57)
  537. RW.C1=cf(0,0.5,0)*euler(-2-0.2*i*numb,0,0)
  538. LW.C0=cf(-1,0.5,-0.5)*euler(0,0,-1.57)
  539. LW.C1=cf(0,0.5,0)*euler(-2-0.2*i*numb,0,0)
  540. numb=numb-0.1
  541. local Point=LeftArm.CFrame*cf(0,-LeftArm.Size.Y,0)
  542. effect("Black",0,LastPoint,Point)
  543. LastPoint=Point
  544. local Point2=RightArm.CFrame*cf(0,-RightArm.Size.Y,0)
  545. effect("Black",0,LastPoint2,Point2)
  546. LastPoint2=Point2
  547. hitbox.CFrame=Torso.CFrame
  548. end
  549. con1:disconnect()
  550. hitbox.Parent=nil
  551. bodvel.Parent=nil
  552. attack=false
  553. end
  554.  
  555. function heavyattackone()
  556. attack=true
  557. Humanoid.WalkSpeed=0
  558. for i=0,1,0.1 do
  559. swait()
  560. Torso.Neck.C0=necko*euler(0,0,1.4-2.97*i)
  561. RootJoint.C0=RootCF*cf(0,0,-0.5+0.5*i)*euler(0,0,-1.4+2.97*i)
  562. RW.C0=cf(1.5,0.5,0)*euler(-0.6+0.5*i,0,0.5+1.5*i)
  563. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  564. LW.C0=cf(-1.5,0.5,0)*euler(-0.3*i,0,-0.2-0.2*i)
  565. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  566. RH.C0=RHC0*cf(0.5-0.5*i,0.2-0.2*i,0)*euler(0,0.5-0.5*i,-0.5+0.5*i)
  567. RH.C1=RHC1
  568. LH.C0=LHC0*cf(0,0.3-0.3*i,0)*euler(0.2-0.2*i,1-1*i,0)
  569. LH.C1=LHC1
  570. end
  571. NewCF=Torso.CFrame*cf(7,3,0)*euler(0,0,0)
  572. local pprt=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(1,1,1))
  573. pprt.Anchored=true
  574. pprt.CFrame=NewCF
  575. game:GetService("Debris"):AddItem(pprt,2)
  576. MagicCircle(BrickColor.new("Really black"),NewCF,20,20,20,-0.01,-0.01,-0.01,0.01)
  577. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,15,-20,"Knockdown",hitbox,0.5) end)
  578. hitbox.Parent=modelzorz
  579. hitbox.Size=vt(10,10,10)
  580. hitbox.CFrame=NewCF
  581. so("http://roblox.com/asset/?id=169380469",pprt,1,0.6)
  582. so("http://roblox.com/asset/?id=161006069",pprt,1,0.7)
  583. for i=0,80 do
  584. swait()
  585. MagicBlock(BrickColor.new("Black"),NewCF,7,7,7,-0.5,-0.5,-0.5,0.05)
  586. MagicCircle(BrickColor.new("Black"),NewCF*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,5,0),0.5,1,0.5,0.02,1,0.02,0.05)
  587. hitbox.CFrame=NewCF
  588. end
  589. con1:disconnect()
  590. hitbox.Parent=nil
  591. Humanoid.WalkSpeed=16
  592. attack=false
  593. end
  594.  
  595. function heavyattacktwo()
  596. attack=true
  597. Humanoid.WalkSpeed=0
  598. for i=0,1,0.1 do
  599. swait()
  600. Torso.Neck.C0=necko*euler(0,0,-1.57+1.57*i)
  601. RootJoint.C0=RootCF*cf(0,0,0)*euler(0,0,1.57-1.57*i)
  602. RW.C0=cf(1.5,0.5,0)*euler(-0.1+0.1*i,0,2-0.43*i)
  603. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  604. LW.C0=cf(-1.5,0.5,0)*euler(-0.3+0.3*i,0,-0.4-1.17*i)
  605. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  606. RH.C0=RHC0*cf(0,0,0)*euler(0,0,0)
  607. RH.C1=RHC1
  608. LH.C0=LHC0*cf(0,0,0)*euler(0,0,0)
  609. LH.C1=LHC1
  610. end
  611. for i=0,1,0.1 do
  612. swait()
  613. Torso.Neck.C0=necko*euler(-0.2*i,0,0)
  614. RootJoint.C0=RootCF*cf(0,0,-1.7*i)*euler(1*i,0,0)
  615. RW.C0=cf(1.5-0.5*i,0.5,-0.5*i)*euler(0,0,1.57)
  616. RW.C1=cf(0,0.5,0)*euler(-2*i,0,0)
  617. LW.C0=cf(-1.5+0.5*i,0.5,-0.5*i)*euler(0,0,-1.57)
  618. LW.C1=cf(0,0.5,0)*euler(-2*i,0,0)
  619. RH.C0=RHC0*cf(0,0.5*i,0.1*i)*euler(0,0,-0.2*i)
  620. RH.C1=RHC1
  621. LH.C0=LHC0*cf(-0.5*i,1.6*i,0.1*i)*euler(0,0,-0.2*i)
  622. LH.C1=LHC1
  623. end
  624. NewCF=RootPart.CFrame*cf(0,0,-7)*euler(0,0,0)
  625. local pprt=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(1,1,1))
  626. pprt.Anchored=true
  627. pprt.CFrame=NewCF
  628. game:GetService("Debris"):AddItem(pprt,2)
  629. MagicCircle(BrickColor.new("Black"),NewCF*cf(0,-2,0),1,8,1,0.5,1,0.5,0.01)
  630. MagicCircle(BrickColor.new("Medium stone grey"),NewCF*cf(0,-2,0),1,8,1,0.25,0.5,0.25,0.01)
  631. MagicWaveThing(BrickColor.new("Black"),NewCF*cf(0,0,0),1,8,1,0.5,1,0.5,0.02)
  632. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,15,25,1,"Knockdown",hitbox,1) end)
  633. hitbox.Parent=modelzorz
  634. hitbox.Size=vt(7,15,7)
  635. hitbox.CFrame=NewCF
  636. so("http://roblox.com/asset/?id=161006182",pprt,1,0.4)
  637. so("http://roblox.com/asset/?id=169445602",pprt,1,0.6)
  638. for i=0,40 do
  639. swait()
  640. hitbox.CFrame=NewCF
  641. end
  642. con1:disconnect()
  643. hitbox.Parent=nil
  644. Humanoid.WalkSpeed=16
  645. attack=false
  646. end
  647.  
  648. function ShadowBlades()
  649. attack=true
  650. local sord1=part(3,modelzorz,0,1,BrickColor.new("Black"),"Sword",vt(1,1,1))
  651. sord1.CFrame=LeftArm.CFrame
  652. local sordmsh1=mesh("SpecialMesh",sord1,"FileMesh","rbxasset://fonts/sword.mesh",vt(0,0,0),vt(1.5,1.5,1.5))
  653. local sordwld1=weld(sord1,sord1,LeftArm,euler(3.14,0,1.57)*cf(0,1,2))
  654. game:GetService("Debris"):AddItem(sord1,10)
  655. so("rbxasset://sounds\\unsheath.wav",sord1,0.5,0.6)
  656. local sord2=part(3,modelzorz,0,1,BrickColor.new("Black"),"Sword",vt(1,1,1))
  657. sord2.CFrame=RightArm.CFrame
  658. local sordmsh2=mesh("SpecialMesh",sord2,"FileMesh","rbxasset://fonts/sword.mesh",vt(0,0,0),vt(1.5,1.5,1.5))
  659. local sordwld2=weld(sord2,sord2,RightArm,euler(0,0,1.57)*cf(0,1,-2))
  660. game:GetService("Debris"):AddItem(sord2,10)
  661. so("rbxasset://sounds\\unsheath.wav",sord2,0.5,0.6)
  662. coroutine.resume(coroutine.create(function(Part1,Part2)
  663. for i=1,0.4,-0.01 do
  664. swait()
  665. Part1.Transparency=i
  666. Part2.Transparency=i
  667. end
  668. end),sord1,sord2)
  669. numb=2
  670. for i=0,1,0.1 do
  671. swait()
  672. Torso.Neck.C0=necko*euler(0,0,1.4+0.1*i*numb)
  673. RootJoint.C0=RootCF*cf(0,0,-0.5)*euler(0,0,-1.4-0.1*i*numb)
  674. RW.C0=cf(1.5,0.5,0)*euler(-0.6-0.2*i*numb,0,0.5)
  675. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  676. LW.C0=cf(-1.5,0.5,0)*euler(0.4*i*numb,0,-0.2)
  677. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  678. RH.C0=RHC0*cf(0.5,0.2,0)*euler(0,0.5,-0.5)
  679. RH.C1=RHC1
  680. LH.C0=LHC0*cf(0,0.3,0)*euler(0.2,1,0)
  681. LH.C1=LHC1
  682. numb=numb-0.1
  683. end
  684. swait(10)
  685. coroutine.resume(coroutine.create(function()
  686. local numb2=2
  687. for i=0,1,0.1 do
  688. swait()
  689. RW.C0=cf(1.5,0.5,0)*euler(-0.8+0.8*i*numb2,0,0.5+1.07*i*numb2)
  690. RW.C1=cf(0,0.5,0)*euler(0.5*i*numb2,0.2*i*numb2,0)
  691. LW.C0=cf(-1.5,0.5,0)*euler(0.4-0.4*i*numb2,0,-0.2-1.37*i*numb2)
  692. LW.C1=cf(0,0.5,0)*euler(-0.5*i*numb2,-0.2*i*numb2,0)
  693. numb2=numb2-0.1
  694. end
  695. end))
  696. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,1,"Normal",hitbox,.1) end)
  697. hitbox.Parent=modelzorz
  698. hitbox.Size=vt(8,3,8)
  699. hitbox.Size=vt(1,1,5)
  700. hitbox.CFrame=sord1.CFrame
  701. hitbox.CFrame=sord2.CFrame
  702. --hitbox.Transparency=0
  703. for i=1,3 do
  704. so("http://www.roblox.com/asset/?id=28144425",Torso,1,1)
  705. local Point=sord1.CFrame*cf(0,0,3)
  706. LastPoint=Point
  707. local Point2=sord2.CFrame*cf(0,0,3)
  708. LastPoint2=Point2
  709. for i=0,1,0.1 do
  710. hitbox.CFrame=sord1.CFrame
  711. swait()
  712. RootJoint.C0=RootCF*cf(0,0,-0.5)*euler(0,0,-1.5+3.14*i)
  713. local Point=sord1.CFrame*cf(0,0,3)
  714. effect("Black",0,LastPoint,Point)
  715. LastPoint=Point
  716. local Point2=sord2.CFrame*cf(0,0,3)
  717. effect("Black",0,LastPoint2,Point2)
  718. LastPoint2=Point2
  719. hitbox.CFrame=sord2.CFrame
  720. end
  721. so("http://www.roblox.com/asset/?id=28144425",Torso,1,1)
  722. for i=0,1,0.1 do
  723. hitbox.CFrame=sord1.CFrame
  724. swait()
  725. RootJoint.C0=RootCF*cf(0,0,-0.5)*euler(0,0,-1.5+3.14+3.14*i)
  726. local Point=sord1.CFrame*cf(0,0,3)
  727. effect("Black",0,LastPoint,Point)
  728. LastPoint=Point
  729. local Point2=sord2.CFrame*cf(0,0,3)
  730. effect("Black",0,LastPoint2,Point2)
  731. LastPoint2=Point2
  732. hitbox.CFrame=sord2.CFrame
  733. end
  734. end
  735. so("http://www.roblox.com/asset/?id=28144425",Torso,1,1)
  736. for i=0,1,0.1 do
  737. hitbox.CFrame=sord1.CFrame
  738. swait()
  739. RootJoint.C0=RootCF*cf(0,0,-0.5)*euler(0,0,-1.5+3.5*i)
  740. Torso.Neck.C0=necko*euler(0,0,1.5-3*i)
  741. local Point=sord1.CFrame*cf(0,0,3)
  742. effect("Black",0,LastPoint,Point)
  743. LastPoint=Point
  744. local Point2=sord2.CFrame*cf(0,0,3)
  745. effect("Black",0,LastPoint2,Point2)
  746. LastPoint2=Point2
  747. hitbox.CFrame=sord2.CFrame
  748. end
  749. con1:disconnect()
  750. hitbox.Parent=nil
  751. numb=2
  752. for i=0,1,0.1 do
  753. swait()
  754. RootJoint.C0=RootCF*cf(0,0,-0.5)*euler(0,0,-1.5+3.5+0.2*i*numb)
  755. numb=numb-0.1
  756. end
  757. for i=1,math.random(4,8) do
  758. BreakEffect(BrickColor.new("Black"),sord1.CFrame,0.2,math.random(2,6),0.2)
  759. end
  760. for i=1,math.random(4,8) do
  761. BreakEffect(BrickColor.new("Black"),sord2.CFrame,0.2,math.random(2,6),0.2)
  762. end
  763. sord1.Parent=nil
  764. sord2.Parent=nil
  765. for i=0,1,0.1 do
  766. swait()
  767. Torso.Neck.C0=necko*euler(0,0,-1.5+2.7*i)
  768. RootJoint.C0=RootCF*cf(0,0,-0.5)*euler(0,0,2.2-3.4*i)
  769. RW.C0=cf(1.5,0.5,0)*euler(-0.5*i,0,1.57-0.97*i)
  770. RW.C1=cf(0,0.5,0)*euler(0.5-0.5*i,0.2-0.2*i,0)
  771. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-1.57+1.17*i)
  772. LW.C1=cf(0,0.5,0)*euler(-0.5+0.5*i,-0.2+0.2*i,0)
  773. end
  774. numb=2
  775. for i=0,1,0.1 do
  776. swait()
  777. Torso.Neck.C0=necko*euler(0,0,-1.5+2.7+0.2*i*numb)
  778. RootJoint.C0=RootCF*cf(0,0,-0.5)*euler(0,0,2.2-3.4-0.2*i*numb)
  779. RW.C0=cf(1.5,0.5,0)*euler(-0.5-0.1*i*numb,0,1.57-0.97-0.1*i*numb)
  780. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-1.57+1.17+0.2*i*numb)
  781. numb=numb-0.1
  782. end
  783. attack=false
  784. end
  785.  
  786. function Abscond()
  787. attack=true
  788. Clone()
  789. Cloak()
  790. so("http://roblox.com/asset/?id=157487812",ef,1,0.5)
  791. NewCF=RootPart.CFrame
  792. bodvel=it("BodyVelocity")
  793. bodvel.Parent=RootPart
  794. bodvel.maxForce=vt(4e+005,4e+005,4e+005)*1
  795. bodvel.velocity=RootPart.CFrame.lookVector*-60
  796. WaveEffect(BrickColor.new("Black"),NewCF,3,5,3,0.2,-0.02,0.2,0.01)
  797. for i=0,1,0.05 do
  798. swait()
  799. MagicBlock(BrickColor.new("Black"),NewCF,1,1,1,0.2,0.2,0.2,0.02)
  800. end
  801. MagicBlock(BrickColor.new("Black"),NewCF,4,4,4,0.2,0.2,0.2,0.01)
  802. MagicWaveThing(BrickColor.new("Black"),NewCF,4,4,4,0.2,0.2,0.2,0.01)
  803. local ef=part(3,workspace,0,0.5,BrickColor.new("Black"),"Effect",vt(1,1,1))
  804. ef.CFrame=NewCF
  805. ef.Anchored=true
  806. game:GetService("Debris"):AddItem(ef,2)
  807. so("http://roblox.com/asset/?id=169380495",ef,1,0.5)
  808. coroutine.resume(coroutine.create(function()
  809. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,20,40,50,"Normal",hitbox,1) end)
  810. hitbox.Parent=workspace
  811. hitbox.Size=vt(8,8,8)
  812. hitbox.CFrame=ef.CFrame
  813. for i=0,5 do
  814. swait()
  815. hitbox.Size=hitbox.Size+vt(1,1,1)
  816. hitbox.CFrame=ef.CFrame
  817. end
  818. for i=1,30 do
  819. swait()
  820. hitbox.CFrame=ef.CFrame
  821. end
  822. con1:disconnect()
  823. hitbox.Parent=nil
  824. end))
  825. --hitbox.Transparency=0
  826. for i=0,20 do
  827. swait(0.1)
  828. randnum=math.random(2,3)+math.random()
  829. tehr=math.random(50,100)/10000
  830. StravEffect(BrickColor.new("Black"),NewCF*euler(0,math.random(-50,50),0),-math.random(1,10),0,0,randnum,randnum,randnum,tehr)
  831. end
  832. bodvel.Parent=nil
  833. attack=false
  834. coroutine.resume(coroutine.create(function()
  835. for i=1,200 do
  836. if attack==false then
  837. swait()
  838. end
  839. end
  840. UnCloak()
  841. end))
  842. end
  843.  
  844. function Shade()
  845. attack=true
  846. Humanoid.WalkSpeed=0
  847. for i=0,1,0.1 do
  848. swait()
  849. Torso.Neck.C0=necko*euler(0,0,1.4+0.17*i)
  850. RootJoint.C0=RootCF*cf(0,0,-0.5)*euler(0,0,-1.4-0.17*i)
  851. RW.C0=cf(1.5,0.5,0)*euler(-0.6,0,0.5)
  852. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  853. LW.C0=cf(-1.5+0.5*i,0.5,-0.5*i)*euler(1.57*i,0,-0.2+1.2*i)
  854. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  855. end
  856. NewCF=Torso.CFrame*cf(-3,0.5,0)*euler(1.57,0,-1.57)
  857. local ef=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(1,1,1))
  858. ef.CFrame=NewCF
  859. ef.Anchored=true
  860. local efmshh=mesh("CylinderMesh",ef,"","",vt(0,0,0),vt(4,0.5,4))
  861. game:GetService("Debris"):AddItem(ef,5)
  862. so("http://roblox.com/asset/?id=160745944",ef,1,0.6)
  863. coroutine.resume(coroutine.create(function(Part)
  864. for i=1,0,-0.05 do
  865. swait()
  866. Part.Transparency=i
  867. end
  868. Part.Transparency=0
  869. while Part.Parent~=nil do
  870. swait(10)
  871. for i=1,10 do
  872. swait()
  873. end
  874. randnum=math.random()
  875. tehr=math.random(100,200)/10000
  876. StravEffect(BrickColor.new("Black"),Part.CFrame*euler(0,math.random(-50,50),0),-math.random(0,3)/2,0,0,randnum,randnum,randnum,tehr)
  877. end
  878. end),ef)
  879. for i=0,1,0.1 do
  880. swait()
  881. RW.C0=cf(1.5,0.5,0)*euler(-0.6,0,0.5)
  882. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  883. LW.C0=cf(-1-0.5*i,0.5,-0.5+0.5*i)*euler(1.57,0,1-2.57*i)
  884. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  885. end
  886. for i=1,10 do
  887. local refprt=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.5,0.5,0.5))
  888. refprt.CFrame=NewCF*cf(math.random(-150,150)/100,0,math.random(-150,150)/100)
  889. refprt.Anchored=true
  890. game:GetService("Debris"):AddItem(refprt,1)
  891. hit,pos = rayCast(refprt.Position, Head.CFrame.lookVector,999,Character)
  892. if hit ~= nil then
  893. Damagefunc(hit,5,10,0,"Normal",RootPart,0)
  894. end
  895. local efprt=part(3,workspace,0,0.5,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  896. efprt.Anchored=true
  897. game:GetService("Debris"):AddItem(efprt,3)
  898. local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(1,1,1))
  899. efprt.CFrame=CFrame.new((refprt.Position+pos)/2,pos)*angles(1.57,0,0)
  900. local mag=(refprt.Position-pos).magnitude
  901. efmsh.Scale=vt(0.5,mag*5,0.5)
  902. --MagicCircle(BrickColor.new("Black"),cf(pos),0,0,0,1,1,1,0.05)
  903. coroutine.resume(coroutine.create(function(Part,Mesh)
  904. for i=0,1,0.01 do
  905. swait()
  906. Mesh.Scale=Mesh.Scale+vt(0.5,0,0.5)
  907. Part.Transparency=Part.Transparency+0.05
  908. end
  909. Part.Parent=nil
  910. end),efprt,efmsh)
  911. local skul=part(3,workspace,0,0,BrickColor.new("Black"),"Effect",vt(0.5,0.5,0.5))
  912. skul.Anchored=true
  913. skul.CFrame=efprt.CFrame*cf(0,-mag/1.5,0)*euler(-1.57,0,0)
  914. local smsh=mesh("SpecialMesh",skul,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(2,2,2))
  915. game:GetService("Debris"):AddItem(skul,3)
  916. so("http://roblox.com/asset/?id=160772554",skul,0.5,1.2)
  917. coroutine.resume(coroutine.create(function(Part,Mesh)
  918. for i=0,1,0.05 do
  919. swait()
  920. Mesh.Scale=Mesh.Scale+vt(0.5,0.5,0.5)
  921. Part.Transparency=i
  922. end
  923. Part.Parent=nil
  924. end),skul,smsh)
  925. wait(.1)
  926. end
  927. coroutine.resume(coroutine.create(function(Part)
  928. for i=0,1,0.1 do
  929. swait()
  930. Part.Transparency=i
  931. end
  932. Part.Parent=nil
  933. end),ef)
  934. for i=0,1,0.1 do
  935. swait()
  936. Torso.Neck.C0=necko*euler(0,0,1.57-0.17*i)
  937. RootJoint.C0=RootCF*cf(0,0,-0.5)*euler(0,0,-1.57+0.17*i)
  938. RW.C0=cf(1.5,0.5,0)*euler(-0.6,0,0.5)
  939. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  940. LW.C0=cf(-1.5,0.5,0)*euler(1.57-1.57*i,0,-1.57+1.37*i)
  941. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  942. end
  943. Humanoid.WalkSpeed=16
  944. attack=false
  945. end
  946.  
  947. function Umbra()
  948. attack=true
  949. local umbraef=true
  950. Humanoid.WalkSpeed=0.1
  951. so("http://roblox.com/asset/?id=160867437",RootPart,1,1.5)
  952. for _,v in pairs(Torso.Parent:children()) do
  953. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  954. n=v:clone()
  955. n:BreakJoints()
  956. n.CanCollide=false
  957. n.Name="Effect"
  958. n.BrickColor=BrickColor.new("Really black")
  959. n.Parent=workspace
  960. if v.Name=="Head" then
  961. if n:findFirstChild("face")~=nil then
  962. n:findFirstChild("face").Parent=nil
  963. end
  964. local msh=mesh("SpecialMesh",n,"Head","",vt(0,0,0),vt(1.25,1.25,1.25))
  965. else
  966. local msh=mesh("BlockMesh",n,"","",vt(0,0,0),vt(1,1,1))
  967. end
  968. local wld=weld(n,n,v,euler(0,0,0)*cf(0,0,0))
  969. game:GetService("Debris"):AddItem(n,60)
  970. coroutine.resume(coroutine.create(function(Part)
  971. for i=1,0,-0.05 do
  972. swait()
  973. Part.Transparency=i
  974. end
  975. Part.Transparency=0.5
  976. while umbraef==true do
  977. swait()
  978. end
  979. for i=0,1,0.1 do
  980. swait()
  981. Part.Transparency=i
  982. end
  983. Part.Parent=nil
  984. end),n)
  985. end
  986. end
  987. coroutine.resume(coroutine.create(function()
  988. while umbraef==true do
  989. randnum=math.random(2,3)+math.random()
  990. tehr=math.random(200,300)/10000
  991. StravEffect(BrickColor.new("Black"),RootPart.CFrame*euler(0,math.random(-50,50),0),-math.random(1,10),0,0,randnum,randnum,randnum,tehr)
  992. swait(1)
  993. end
  994. end))
  995. Cloak()
  996. bodpos=Instance.new("BodyPosition")
  997. bodpos.P=4000
  998. bodpos.maxForce=Vector3.new(5000000,50000000,5000000)*5000
  999. bodpos.position=RootPart.Position+Vector3.new(0,1,0)
  1000. bodpos.Parent=RootPart
  1001. for i=0,1,0.05 do
  1002. swait()
  1003. Torso.Neck.C0=necko*euler(0.2*i,0,1.4-1.4*i)
  1004. RootJoint.C0=RootCF*cf(0,0,-0.5+0.5*i)*euler(0,0,-1.4+1.4*i)
  1005. RW.C0=cf(1.5,0.5,0)*euler(-0.6+0.6*i,0,0.5+0.1*i)
  1006. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1007. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.2-0.4*i)
  1008. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1009. RH.C0=RHC0*cf(0.5-0.5*i,0.2,0)*euler(-0.5*i,0.5-0.5*i,-0.5+0.5*i)
  1010. RH.C1=RHC1
  1011. LH.C0=LHC0*cf(0,0.3-0.1*i,0)*euler(0.2-0.7*i,1-1*i,0)
  1012. LH.C1=LHC1
  1013. MagicBlock(BrickColor.new("Black"),LeftArm.CFrame*cf(0,-2,0),1,1,1,0.5,0.5,0.5,0.2)
  1014. MagicBlock(BrickColor.new("Black"),RightArm.CFrame*cf(0,-2,0),1,1,1,0.5,0.5,0.5,0.2)
  1015. bodpos.position=RootPart.Position+Vector3.new(0,1+1*i,0)
  1016. end
  1017. for i=0,1,0.05 do
  1018. swait()
  1019. MagicBlock(BrickColor.new("Black"),LeftArm.CFrame*cf(0,-2,0),1,1,1,0.5,0.5,0.5,0.2)
  1020. MagicBlock(BrickColor.new("Black"),RightArm.CFrame*cf(0,-2,0),1,1,1,0.5,0.5,0.5,0.2)
  1021. end
  1022. RootJoint.C0=RootCF*euler(0.5,0,0)
  1023. bodpos.Parent=nil
  1024. bodvel=it("BodyVelocity")
  1025. bodvel.Parent=RootPart
  1026. bodvel.maxForce=vt(4e+005,4e+005,4e+005)*1
  1027. bodvel.velocity=RootPart.CFrame.lookVector*60
  1028. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,20,40,30,"Knockdown",RootPart,1) end)
  1029. hitbox.Parent=modelzorz
  1030. hitbox.Size=vt(7,5,7)
  1031. hitbox.CFrame=RootPart.CFrame
  1032. for i=1,300 do
  1033. swait()
  1034. hitbox.CFrame=RootPart.CFrame
  1035. if i%10==0 then
  1036. so("http://roblox.com/asset/?id=160867463",RootPart,0.5,1.5)
  1037. WaveEffect(BrickColor.new("Black"),RootPart.CFrame*euler(1.57,0,0),1,1,1,2,2,2,0.2)
  1038. end
  1039. bodvel.velocity=RootPart.CFrame.lookVector*60
  1040. MagicBlock(BrickColor.new("Black"),LeftArm.CFrame*cf(0,-1,0)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,1,1,1,0.4)
  1041. MagicBlock(BrickColor.new("Black"),RightArm.CFrame*cf(0,-1,0)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,1,1,1,0.4)
  1042. end
  1043. bodvel.Parent=nil
  1044. UnCloak()
  1045. umbraef=false
  1046. con1:disconnect()
  1047. hitbox.Parent=nil
  1048. for i=0,1,0.05 do
  1049. swait()
  1050. Torso.Neck.C0=necko*euler(0.2-0.2*i,0,1.4*i)
  1051. RootJoint.C0=RootCF*cf(0,0,-0.5*i)*euler(0,0,-1.4*i)
  1052. RW.C0=cf(1.5,0.5,0)*euler(-0.6*i,0,0.6-0.1*i)
  1053. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1054. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.6+0.4*i)
  1055. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1056. RH.C0=RHC0*cf(0.5*i,0.2,0)*euler(-0.5+0.5*i,0.5*i,-0.5*i)
  1057. RH.C1=RHC1
  1058. LH.C0=LHC0*cf(0,0.2+0.1*i,0)*euler(0.2,1*i,0)
  1059. LH.C1=LHC1
  1060. end
  1061. Humanoid.WalkSpeed=16
  1062. attack=false
  1063. end
  1064.  
  1065. function Clone()
  1066. so("http://roblox.com/asset/?id=2767090",Torso,1,1)
  1067. for _,v in pairs(Torso.Parent:children()) do
  1068. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1069. n=v:clone()
  1070. n:BreakJoints()
  1071. n.archivable=true
  1072. n.Anchored=true
  1073. n.CanCollide=false
  1074. n.Name="TRAILER"
  1075. n.BrickColor=BrickColor.new("Really black")
  1076. n.Parent=workspace
  1077. n.CFrame=v.CFrame
  1078. coroutine.resume(coroutine.create(function(ne) for i=1, 80 do ne:BreakJoints() ne.Transparency=i/80 wait() end ne.Parent=nil end),n)
  1079. elseif v.className=="Hat" then
  1080. n=v.Handle:clone()
  1081. n:BreakJoints()
  1082. n.archivable=true
  1083. n.Anchored=true
  1084. n.CanCollide=false
  1085. n.Name="TRAILER"
  1086. n.BrickColor=BrickColor.new("Really black")
  1087. n.Parent=workspace
  1088. n.CFrame=v.Handle.CFrame
  1089. coroutine.resume(coroutine.create(function(ne) for i=1, 80 do ne:BreakJoints() ne.Transparency=i/80 wait() end ne.Parent=nil end),n)
  1090. end
  1091. end
  1092. for _,v in pairs(modelzorz:children()) do
  1093. if v.className=="Part" then
  1094. n=v:clone()
  1095. n:BreakJoints()
  1096. n.archivable=true
  1097. n.Anchored=true
  1098. n.CanCollide=false
  1099. n.Name="TRAILER"
  1100. n.BrickColor=BrickColor.new("Really black")
  1101. n.Parent=workspace
  1102. n.CFrame=v.CFrame
  1103. coroutine.resume(coroutine.create(function(ne) for i=1, 80 do ne:BreakJoints() ne.Transparency=i/80 wait() end ne.Parent=nil end),n)
  1104. end
  1105. end
  1106. end
  1107.  
  1108. function Cloak()
  1109. Face.Parent=nil
  1110. cloaked=true
  1111. for _,v in pairs(Torso.Parent:children()) do
  1112. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1113. coroutine.resume(coroutine.create(function()
  1114. for i=0,1,0.2 do
  1115. wait()
  1116. v.Transparency=i
  1117. end
  1118. v.Transparency=1
  1119. end))
  1120. end
  1121. if v.className=="Hat" then
  1122. hatp=v.Handle
  1123. coroutine.resume(coroutine.create(function(derp)
  1124. for i=0,1,0.2 do
  1125. wait()
  1126. derp.Transparency=i
  1127. end
  1128. derp.Transparency=1
  1129. end),hatp)
  1130. end
  1131. end
  1132. for _,v in pairs(modelzorz:children()) do
  1133. if v.className=="Part" then
  1134. coroutine.resume(coroutine.create(function()
  1135. for i=0,1,0.2 do
  1136. wait()
  1137. v.Transparency=i
  1138. end
  1139. v.Transparency=1
  1140. end))
  1141. end
  1142. end
  1143. end
  1144.  
  1145. function UnCloak()
  1146. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1147. Face.Parent=Head
  1148. cloaked=false
  1149. for _,v in pairs(Torso.Parent:children()) do
  1150. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1151. coroutine.resume(coroutine.create(function()
  1152. for i=0,1,0.1 do
  1153. wait()
  1154. v.Transparency=v.Transparency-0.1
  1155. end
  1156. v.Transparency=0
  1157. end))
  1158. end
  1159. if v.className=="Hat" then
  1160. hatp=v.Handle
  1161. coroutine.resume(coroutine.create(function(derp)
  1162. for i=0,1,0.1 do
  1163. wait()
  1164. derp.Transparency=derp.Transparency-0.1
  1165. end
  1166. derp.Transparency=0
  1167. end),hatp)
  1168. end
  1169. end
  1170. for _,v in pairs(modelzorz:children()) do
  1171. if v.className=="Part" and v.Name~="Hitbox" then
  1172. coroutine.resume(coroutine.create(function()
  1173. for i=0,1,0.1 do
  1174. wait()
  1175. v.Transparency=v.Transparency-0.1
  1176. end
  1177. v.Transparency=0
  1178. end))
  1179. v.Transparency=0
  1180. end
  1181. end
  1182. end
  1183.  
  1184. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1185. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1186. end
  1187.  
  1188. local Point=prt5.CFrame*CFrame.new(0,prt5.Size.Y/7,0)
  1189. LastPoint=Point
  1190. function effect(Color,Ref,LP,P1,returnn)
  1191. local effectsmsh = Instance.new("BlockMesh")
  1192. effectsmsh.Scale = Vector3.new(0.2,1,0.2)
  1193. effectsmsh.Name = "Mesh"
  1194. local effectsg = Instance.new("Part")
  1195. effectsg.formFactor = 3
  1196. effectsg.CanCollide = false
  1197. effectsg.Name = "Eff"
  1198. effectsg.Locked = true
  1199. effectsg.Anchored = true
  1200. effectsg.Size = Vector3.new(0.5,1,0.5)
  1201. effectsg.Parent = workspace
  1202. effectsmsh.Parent = effectsg
  1203. effectsg.BrickColor = BrickColor.new(Color)
  1204. effectsg.Reflectance = Ref
  1205. local point1 = P1
  1206. local mg = (LP.p - point1.p).magnitude
  1207. effectsg.Size = Vector3.new(0.5,mg,0.5)
  1208. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1209. effectsmsh.Scale = Vector3.new(0.2,1,0.2)
  1210. game:GetService("Debris"):AddItem(effectsg,2)
  1211. game:GetService("Debris"):AddItem(effectsmsh,2)
  1212. if returnn then return effectsg end
  1213. coroutine.resume(coroutine.create(function(Part,Mesh)
  1214. if not returnn then
  1215. for i = 0 , 1 , 0.1 do
  1216. wait()
  1217. Part.Transparency = 1*i
  1218. Mesh.Scale = Vector3.new(1.5-1.5*i,1,1.5-1.5*i)
  1219. end
  1220. wait()
  1221. Part.Parent = nil
  1222. end
  1223. end),effectsg,effectsmsh)
  1224. end
  1225.  
  1226. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1227. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1228. prt.Anchored=true
  1229. prt.CFrame=cframe
  1230. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1231. --http://www.roblox.com/asset/?id=4770560
  1232. game:GetService("Debris"):AddItem(prt,2)
  1233. CF=prt.CFrame
  1234. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1235. for i=0,1,0.2 do
  1236. wait()
  1237. Part.CFrame=CF*cf(0,0,-0.4)
  1238. end
  1239. for i=0,1,delay do
  1240. wait()
  1241. --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)
  1242. Mesh.Scale=Mesh.Scale
  1243. end
  1244. for i=0,1,0.1 do
  1245. wait()
  1246. Part.Transparency=i
  1247. end
  1248. Part.Parent=nil
  1249. end),prt,msh,CF)
  1250. end
  1251.  
  1252. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1253. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1254. prt.Anchored=true
  1255. prt.CFrame=cframe
  1256. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1257. game:GetService("Debris"):AddItem(prt,5)
  1258. coroutine.resume(coroutine.create(function(Part,Mesh)
  1259. for i=0,1,delay do
  1260. wait()
  1261. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1262. Part.Transparency=i
  1263. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1264. end
  1265. Part.Parent=nil
  1266. end),prt,msh)
  1267. end
  1268.  
  1269. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1270. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1271. prt.Anchored=false
  1272. prt.CFrame=cframe
  1273. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1274. local wld=weld(prt,prt,Parent,cframe)
  1275. game:GetService("Debris"):AddItem(prt,5)
  1276. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1277. for i=0,1,delay do
  1278. wait()
  1279. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1280. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1281. Part.Transparency=i
  1282. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1283. end
  1284. Part.Parent=nil
  1285. end),prt,msh,wld)
  1286. end
  1287.  
  1288. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1289. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1290. prt.Anchored=false
  1291. prt.CFrame=cframe
  1292. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1293. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1294. game:GetService("Debris"):AddItem(prt,5)
  1295. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1296. for i=0,1,delay do
  1297. wait()
  1298. Weld.C0=euler(i*20,0,0)
  1299. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1300. Part.Transparency=i
  1301. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1302. end
  1303. Part.Parent=nil
  1304. end),prt,msh,wld)
  1305. end
  1306.  
  1307. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1308. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1309. prt.Anchored=true
  1310. prt.CFrame=cframe
  1311. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1312. game:GetService("Debris"):AddItem(prt,2)
  1313. coroutine.resume(coroutine.create(function(Part,Mesh)
  1314. for i=0,1,delay do
  1315. wait()
  1316. Part.CFrame=Part.CFrame
  1317. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1318. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1319. prt2.Anchored=true
  1320. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1321. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1322. game:GetService("Debris"):AddItem(prt2,2)
  1323. coroutine.resume(coroutine.create(function(Part,Mesh)
  1324. for i=0,1,0.1 do
  1325. wait()
  1326. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1327. end
  1328. Part.Parent=nil
  1329. end),prt2,msh2)
  1330. end
  1331. for i=0,1,delay*2 do
  1332. wait()
  1333. Part.CFrame=Part.CFrame
  1334. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1335. end
  1336. Part.Parent=nil
  1337. end),prt,msh)
  1338. end
  1339.  
  1340. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1341. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1342. prt.Anchored=true
  1343. prt.CFrame=cframe
  1344. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1345. game:GetService("Debris"):AddItem(prt,2)
  1346. coroutine.resume(coroutine.create(function(Part,Mesh)
  1347. for i=0,1,delay do
  1348. wait()
  1349. Part.CFrame=Part.CFrame
  1350. Part.Transparency=i
  1351. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1352. end
  1353. Part.Parent=nil
  1354. end),prt,msh)
  1355. end
  1356.  
  1357. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  1358. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1359. prt.Anchored=true
  1360. prt.CFrame=cframe*euler(x2,y2,z2)
  1361. --"http://www.roblox.com/asset/?id=168892465"
  1362. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  1363. game:GetService("Debris"):AddItem(prt,2)
  1364. coroutine.resume(coroutine.create(function(Part,Mesh)
  1365. for i=0,1,0.03 do
  1366. wait()
  1367. Part.CFrame=Part.CFrame
  1368. Part.Transparency=i
  1369. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1370. end
  1371. Part.Parent=nil
  1372. end),prt,msh)
  1373. end
  1374.  
  1375. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1376. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1377. prt.Anchored=true
  1378. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1379. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1380. game:GetService("Debris"):AddItem(prt,2)
  1381. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1382. CF=Part.CFrame
  1383. Numbb=0
  1384. randnumb=math.random()/10
  1385. rand1=math.random()/10
  1386. for i=0,1,rand1 do
  1387. wait()
  1388. CF=CF*cf(0,math.random()/2,0)
  1389. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1390. Part.CFrame=CF*euler(Numbb,0,0)
  1391. Part.Transparency=i
  1392. Numbb=Numbb+randnumb
  1393. end
  1394. Part.Parent=nil
  1395. end),prt,CF,Numbb,randnumb)
  1396. end
  1397.  
  1398. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1399. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1400. prt.Anchored=true
  1401. prt.CFrame=cframe
  1402. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1403. game:GetService("Debris"):AddItem(prt,5)
  1404. coroutine.resume(coroutine.create(function(Part,Mesh)
  1405. for i=0,1,delay do
  1406. wait()
  1407. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1408. Part.Transparency=i
  1409. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1410. end
  1411. Part.Parent=nil
  1412. end),prt,msh)
  1413. end
  1414.  
  1415. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1416. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1417. prt.Anchored=true
  1418. prt.CFrame=cframe
  1419. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1420. game:GetService("Debris"):AddItem(prt,2)
  1421. coroutine.resume(coroutine.create(function(Part,Mesh)
  1422. for i=0,1,delay do
  1423. wait()
  1424. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1425. Part.Transparency=i
  1426. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1427. end
  1428. Part.Parent=nil
  1429. end),prt,msh)
  1430. end
  1431.  
  1432. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1433. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1434. prt.Anchored=true
  1435. prt.CFrame=cframe*cf(x,y,z)
  1436. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1437. game:GetService("Debris"):AddItem(prt,5)
  1438. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1439. local num=math.random()
  1440. local num2=math.random(-3,2)+math.random()
  1441. local numm=0
  1442. for i=0,1,delay*2 do
  1443. swait()
  1444. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1445. Part.Transparency=i
  1446. numm=numm+0.01
  1447. end
  1448. Part.Parent=nil
  1449. Mesh.Parent=nil
  1450. end),prt,msh,x,y,z)
  1451. end
  1452.  
  1453. so = function(id,par,vol,pit)
  1454. coroutine.resume(coroutine.create(function()
  1455. local sou = Instance.new("Sound",par or workspace)
  1456. sou.Volume=vol
  1457. sou.Pitch=pit or 1
  1458. sou.SoundId=id
  1459. swait()
  1460. sou:play()
  1461. game:GetService("Debris"):AddItem(sou,6)
  1462. end))
  1463. end
  1464.  
  1465. function findNearestTorso(pos)
  1466. local list = game:service("Workspace"):children()
  1467. local torso = nil
  1468. local dist = 50
  1469. local temp = nil
  1470. local human = nil
  1471. local temp2 = nil
  1472. for x = 1, #list do
  1473. temp2 = list[x]
  1474. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Name ~= "Fenrier") then
  1475. temp = temp2:findFirstChild("Torso")
  1476. human = temp2:findFirstChild("Humanoid")
  1477. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1478. if (temp.Position - pos).magnitude < dist then
  1479. torso = temp
  1480. dist = (temp.Position - pos).magnitude
  1481. end
  1482. end
  1483. end
  1484. end
  1485. return torso
  1486. end
  1487.  
  1488. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,HitSound,HitPitch)
  1489. if hit.Parent==nil then
  1490. return
  1491. end
  1492. CPlayer=Bin
  1493. h=hit.Parent:FindFirstChild("Humanoid")
  1494. for _,v in pairs(hit.Parent:children()) do
  1495. if v:IsA("Humanoid") then
  1496. h=v
  1497. end
  1498. end
  1499. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1500. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1501. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1502. return
  1503. end]]
  1504. -- hs(hit,1.2)
  1505. c=Instance.new("ObjectValue")
  1506. c.Name="creator"
  1507. c.Value=game:service("Players").LocalPlayer
  1508. c.Parent=h
  1509. game:GetService("Debris"):AddItem(c,.5)
  1510. if HitSound~=nil and HitPitch~=nil then
  1511. so(HitSound,hit,1,HitPitch)
  1512. end
  1513. Damage=math.random(minim,maxim)
  1514. -- h:TakeDamage(Damage)
  1515. blocked=false
  1516. block=hit.Parent:findFirstChild("Block")
  1517. if block~=nil then
  1518. if block.className=="IntValue" then
  1519. if block.Value>0 then
  1520. blocked=true
  1521. block.Value=block.Value-1
  1522. end
  1523. end
  1524. end
  1525. if blocked==false then
  1526. -- h:TakeDamage(Damage)
  1527. h.Health=h.Health-Damage
  1528. showDamage(hit.Parent,Damage,.5,BrickColor:Red())
  1529. else
  1530. h.Health=h.Health-(Damage/2)
  1531. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1532. end
  1533. if Type=="Knockdown" then
  1534. hum=hit.Parent.Humanoid
  1535. hum.PlatformStand=true
  1536. coroutine.resume(coroutine.create(function(HHumanoid)
  1537. swait(1)
  1538. HHumanoid.PlatformStand=false
  1539. end),hum)
  1540. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1541. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1542. local bodvol=Instance.new("BodyVelocity")
  1543. bodvol.velocity=angle*knockback
  1544. bodvol.P=5000
  1545. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1546. bodvol.Parent=hit
  1547. rl=Instance.new("BodyAngularVelocity")
  1548. rl.P=3000
  1549. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1550. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1551. rl.Parent=hit
  1552. game:GetService("Debris"):AddItem(bodvol,.5)
  1553. game:GetService("Debris"):AddItem(rl,.5)
  1554. elseif Type=="Normal" then
  1555. vp=Instance.new("BodyVelocity")
  1556. vp.P=500
  1557. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1558. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1559. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1560. if knockback>0 then
  1561. vp.Parent=hit.Parent.Torso
  1562. end
  1563. game:GetService("Debris"):AddItem(vp,.5)
  1564. elseif Type=="Up" then
  1565. local bodyVelocity=Instance.new("BodyVelocity")
  1566. bodyVelocity.velocity=vt(0,20,0)
  1567. bodyVelocity.P=5000
  1568. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1569. bodyVelocity.Parent=hit
  1570. game:GetService("Debris"):AddItem(bodyVelocity,.5)
  1571. elseif Type=="Snare" then
  1572. bp=Instance.new("BodyPosition")
  1573. bp.P=2000
  1574. bp.D=100
  1575. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1576. bp.position=hit.Parent.Torso.Position
  1577. bp.Parent=hit.Parent.Torso
  1578. game:GetService("Debris"):AddItem(bp,1)
  1579. elseif Type=="Freeze" then
  1580. BodPos=Instance.new("BodyPosition")
  1581. BodPos.P=50000
  1582. BodPos.D=1000
  1583. BodPos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1584. BodPos.position=hit.Parent.Torso.Position
  1585. BodPos.Parent=hit.Parent.Torso
  1586. BodGy = it("BodyGyro")
  1587. BodGy.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  1588. BodGy.P = 20e+003
  1589. BodGy.Parent=hit.Parent.Torso
  1590. BodGy.cframe = hit.Parent.Torso.CFrame
  1591. hit.Parent.Torso.Anchored=true
  1592. coroutine.resume(coroutine.create(function(Part)
  1593. swait(1.5)
  1594. Part.Anchored=false
  1595. end),hit.Parent.Torso)
  1596. game:GetService("Debris"):AddItem(BodPos,3)
  1597. game:GetService("Debris"):AddItem(BodGy,3)
  1598. end
  1599. debounce=Instance.new("BoolValue")
  1600. debounce.Name="DebounceHit"
  1601. debounce.Parent=hit.Parent
  1602. debounce.Value=true
  1603. game:GetService("Debris"):AddItem(debounce,Delay)
  1604. c=Instance.new("ObjectValue")
  1605. c.Name="creator"
  1606. c.Value=Player
  1607. c.Parent=h
  1608. game:GetService("Debris"):AddItem(c,.5)
  1609. CRIT=false
  1610. hitDeb=true
  1611. AttackPos=6
  1612. end
  1613. end
  1614.  
  1615. showDamage=function(Char,Dealt,du,Color)
  1616. m=Instance.new("Model")
  1617. m.Name=tostring(Dealt)
  1618. h=Instance.new("Humanoid")
  1619. h.Health=0
  1620. h.MaxHealth=0
  1621. h.Parent=m
  1622. c=Instance.new("Part")
  1623. c.Transparency=0
  1624. c.BrickColor=Color
  1625. c.Name="Head"
  1626. c.TopSurface=0
  1627. c.BottomSurface=0
  1628. c.formFactor="Plate"
  1629. c.Size=Vector3.new(1,.4,1)
  1630. ms=Instance.new("CylinderMesh")
  1631. ms.Scale=Vector3.new(.8,.8,.8)
  1632. if CRIT==true then
  1633. ms.Scale=Vector3.new(1,1.25,1)
  1634. end
  1635. ms.Parent=c
  1636. c.Reflectance=0
  1637. Instance.new("BodyGyro").Parent=c
  1638. c.Parent=m
  1639. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1640. f=Instance.new("BodyPosition")
  1641. f.P=2000
  1642. f.D=100
  1643. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1644. f.position=c.Position+Vector3.new(0,3,0)
  1645. f.Parent=c
  1646. game:GetService("Debris"):AddItem(m,.5+du)
  1647. c.CanCollide=false
  1648. m.Parent=workspace
  1649. c.CanCollide=false
  1650. end
  1651.  
  1652. combo=0
  1653. function ob1d(mouse)
  1654. if attack==true then return end
  1655. hold=true
  1656. if combo==0 then
  1657. if holdz==false then
  1658. combo=1
  1659. attackone()
  1660. else
  1661. combo=4
  1662. heavyattackone()
  1663. end
  1664. elseif combo==1 then
  1665. combo=2
  1666. attacktwo()
  1667. elseif combo==2 then
  1668. combo=3
  1669. attackthree()
  1670. elseif combo==4 then
  1671. combo=5
  1672. heavyattacktwo()
  1673. else
  1674. combo=0
  1675. end
  1676. coroutine.resume(coroutine.create(function()
  1677. for i=1,50 do
  1678. if attack==false then
  1679. swait()
  1680. end
  1681. end
  1682. if attack==false then
  1683. combo=0
  1684. equipanim()
  1685. end
  1686. end))
  1687. end
  1688.  
  1689. function ob1u(mouse)
  1690. hold = false
  1691. end
  1692.  
  1693. buttonhold = false
  1694.  
  1695. eul=0
  1696. holdz=false
  1697. function key(key)
  1698. if attack==true then return end
  1699. if key=="z" then
  1700. holdz=true
  1701. end
  1702. if key=="x" and xenabled==true then
  1703. xenabled=false
  1704. coroutine.resume(coroutine.create(function()
  1705. for i=1,0,-0.002 do
  1706. swait()
  1707. fenframe1a.Size=UDim2.new(0.05*i,0,0.1,0)
  1708. end
  1709. xenabled=true
  1710. fenframe1a.Size=UDim2.new(0,0,0.1,0)
  1711. end))
  1712. ShadowBlades()
  1713. end
  1714. if key=="c" and cenabled==true then
  1715. cenabled=false
  1716. coroutine.resume(coroutine.create(function()
  1717. for i=1,0,-0.003 do
  1718. swait()
  1719. fenframe2a.Size=UDim2.new(0.05*i,0,0.1,0)
  1720. end
  1721. cenabled=true
  1722. fenframe2a.Size=UDim2.new(0,0,0.1,0)
  1723. end))
  1724. Abscond()
  1725. end
  1726. if key=="v" and venabled==true then
  1727. venabled=false
  1728. coroutine.resume(coroutine.create(function()
  1729. for i=1,0,-0.005 do
  1730. swait()
  1731. fenframe3a.Size=UDim2.new(0.05*i,0,0.1,0)
  1732. end
  1733. venabled=true
  1734. fenframe3a.Size=UDim2.new(0,0,0.1,0)
  1735. end))
  1736. Shade()
  1737. end
  1738. if key=="b" and benabled==true then
  1739. benabled=false
  1740. coroutine.resume(coroutine.create(function()
  1741. for i=1,0,-0.0008 do
  1742. swait()
  1743. fenframe4a.Size=UDim2.new(0.05*i,0,0.1,0)
  1744. end
  1745. benabled=true
  1746. fenframe4a.Size=UDim2.new(0,0,0.1,0)
  1747. end))
  1748. Umbra()
  1749. end
  1750. if key=="f" then
  1751. Neck.C0=necko*euler(-0.4,0,-0.2)
  1752. RootJoint.C0=RootCF*cf(0,0,-1.5)*euler(0.8,0,0.5)
  1753. RW.C0=cf(1.5,0.5,0)*euler(1.4,0,1.57-1.07)
  1754. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1755. LW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-1.57+1.17)
  1756. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1757. RH.C0=RHC0*cf(0,0,0)*euler(0,-0.5,-0.5)
  1758. LH.C0=LHC0*cf(-0.5,1,0)*euler(0.5,0,-0.5)
  1759. for i=0,1,0.05 do
  1760. swait()
  1761. randnum=math.random(2,3)+math.random()
  1762. tehr=math.random(50,100)/10000
  1763. StravEffect(BrickColor.new("Black"),RootPart.CFrame*euler(0,math.random(-50,50),0),-math.random(1,10),0,0,randnum,randnum,randnum,tehr)
  1764. end
  1765. end
  1766. end
  1767.  
  1768. function key2(key)
  1769. if key=="z" then
  1770. holdz=false
  1771. end
  1772. end
  1773.  
  1774. function s(mouse)
  1775. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1776. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1777. mouse.KeyDown:connect(key)
  1778. mouse.KeyUp:connect(key2)
  1779. unsheathed = true
  1780. player = Player
  1781. ch = Character
  1782. MMouse = mouse
  1783. RSH = ch.Torso["Right Shoulder"]
  1784. LSH = ch.Torso["Left Shoulder"]
  1785. --
  1786. RSH.Parent = nil
  1787. LSH.Parent = nil
  1788. --
  1789. RW.Name = "Right Shoulder"
  1790. RW.Part0 = ch.Torso
  1791. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1792. RW.C1 = CFrame.new(0, 0.5, 0)
  1793. RW.Part1 = ch["Right Arm"]
  1794. RW.Parent = ch.Torso
  1795. --_G.R = RW
  1796. --
  1797. LW.Name = "Left Shoulder"
  1798. LW.Part0 = ch.Torso
  1799. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1800. LW.C1 = CFrame.new(0, 0.5, 0)
  1801. LW.Part1 = ch["Left Arm"]
  1802. LW.Parent = ch.Torso
  1803. --_G.L = LW
  1804. --
  1805. equipanim()
  1806. end
  1807.  
  1808. function ds(mouse)
  1809. hideanim()
  1810. swait(0)
  1811. RW.Parent = nil
  1812. LW.Parent = nil
  1813. RSH.Parent = player.Character.Torso
  1814. LSH.Parent = player.Character.Torso
  1815. end
  1816.  
  1817. Bin.Selected:connect(s)
  1818. Bin.Deselected:connect(ds)
  1819. print("Shadow Shogai loaded.")
  1820.  
  1821. --[[
  1822. Copyrighted (C) Fenrier 2014
  1823. ]]
Add Comment
Please, Sign In to add comment