Advertisement
SmokeDelsin

rescripted

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