Advertisement
SetsunaElysia

Shadow Shogai

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