Advertisement
SheeityArtist

pure shogai

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