Guest User

Untitled

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