Advertisement
ghostteen14

Untitled

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