Advertisement
deathsignature2

shadow shogai

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