Advertisement
ManOhMan

Untitled

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