Advertisement
memberhero

black magic shogai leaked

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