sneakydodge123

my admin

Aug 28th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 88.00 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  2. do
  3. script.Parent = owner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5. local function NewFakeEvent()
  6. local Bind = Instance.new("BindableEvent")
  7. local Fake;Fake = {Connections = {},
  8. fakeEvent=true;
  9. Connect=function(self,Func)
  10. Bind.Event:connect(Func)
  11. self.Connections[Bind] = true
  12. return setmetatable({Connected = true},{
  13. __index = function (self,Index)
  14. if Index:lower() == "disconnect" then
  15. return function() Fake.Connections[Bind] = false;self.Connected = false end
  16. end
  17. return Fake[Index]
  18. end;
  19. __tostring = function() return "Connection" end;
  20. })
  21. end}
  22. Fake.connect = Fake.Connect;return Fake;
  23. end
  24. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29. local function TriggerEvent(self,Event,...)
  30. local Trigger = Mouse[Event]
  31. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33. end
  34. end
  35. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36. Event.OnServerEvent:Connect(function(FiredBy,Input)
  37. if FiredBy.Name ~= owner.Name then return end
  38. if Input.MouseEvent then
  39. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40. else
  41. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43. for _,Action in pairs(ContextActionService.Actions) do
  44. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45. end
  46. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48. end
  49. end)
  50. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51. Event.Parent = NLS([[
  52. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53. local Input = function(Input,gameProcessedEvent)
  54. if gameProcessedEvent then return end
  55. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56. end
  57. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58. local Hit,Target
  59. while wait(1/30) do
  60. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62. end
  63. end
  64. ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67. __index = function (self,Index)
  68. local Sandbox = function (Thing)
  69. if Thing:IsA("Player") then
  70. local RealPlayer = Thing
  71. return setmetatable({},{
  72. __index = function (self,Index)
  73. local Type = type(RealPlayer[Index])
  74. if Type == "function" then
  75. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76. return function (self)return InternalData["Mouse"] end
  77. end
  78. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79. end
  80. return RealPlayer[Index]
  81. end;
  82. __tostring = function(self) return RealPlayer.Name end
  83. })
  84. end
  85. end
  86. if RealGame[Index] then
  87. local Type = type(RealGame[Index])
  88. if Type == "function" then
  89. if Index:lower() == "getservice" or Index:lower() == "service" then
  90. return function (self,Service)
  91. local FakeServices = {
  92. ["players"] = function()
  93. return setmetatable({},{
  94. __index = function (self2,Index2)
  95. local RealService = RealGame:GetService(Service)
  96. local Type2 = type(Index2)
  97. if Type2 == "function" then
  98. return function (self,...) return RealService[Index2](RealService,...)end
  99. else
  100. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101. return RealService[Index2]
  102. end
  103. end;
  104. __tostring = function(self) return RealGame:GetService(Service).Name end
  105. })
  106. end;
  107. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109. ["runservice"] = function()
  110. return setmetatable({},{
  111. __index = function(self2,Index2)
  112. local RealService = RealGame:GetService(Service)
  113. local Type2 = type(Index2)
  114. if Type2 == "function" then
  115. return function (self,...) return RealService[Index2](RealService,...) end
  116. else
  117. local RunServices = {
  118. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119. ["renderstepped"] = function() return RealService["Stepped"] end
  120. }
  121. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122. return RealService[Index2]
  123. end
  124. end
  125. })
  126. end
  127. }
  128. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129. return RealGame:GetService(Service)
  130. end
  131. end
  132. return function (self,...) return RealGame[Index](RealGame,...) end
  133. else
  134. if game:GetService(Index) then return game:GetService(Index) end
  135. return RealGame[Index]
  136. end
  137. end
  138. return nil
  139. end
  140. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  141.  
  142. --//Paste script below this line.
  143.  
  144. Player = game:GetService"direk1".GLUDZ
  145. Character = Player.Character
  146. PlayerGui = Player.PlayerGui
  147. Backpack = Player.Backpack
  148. Torso = Character.Torso
  149. Head = Character.Head
  150. LeftArm = Character["Left Arm"]
  151. LeftLeg = Character["Left Leg"]
  152. RightArm = Character["Right Arm"]
  153. RightLeg = Character["Right Leg"]
  154. LS = Torso["Left Shoulder"]
  155. LH = Torso["Left Hip"]
  156. RS = Torso["Right Shoulder"]
  157. RH = Torso["Right Hip"]
  158. ModelName = "Weapon"
  159. ToolName = "Yamato"
  160. attack = false
  161. attacktype = 1
  162. mindamage = 153333333333333333333333333333666666663333333333
  163. maxdamage = 253333333333333333333333336666666666666
  164. crtmaxdamage = 45333333333333333333333333333333
  165. omindamage = 15333333333333333333333333366666666666666666
  166. omaxdamage = 2533333333333333333366666666666666666666666
  167. ocrtmaxdamage = 4533333333333333333333333333333366666666
  168. crtrate = 1266666666666666666666666666666666666
  169. fireboost = 3333333333333333333333333333333333333333333332
  170. iceboost = 66666666666666666666666666666666666666666666666
  171. darkboost = 666666666666666666666666666666666666666666666666666
  172. Mode = "None"
  173. ssh = false
  174. atktypez = 1
  175. Hitdeb = 0
  176. ammo = 1
  177. MMouse = nil
  178. point = false
  179. offset = 0
  180. radv = 90
  181. ----------------------------
  182. --Customize
  183. DarkFire = true
  184. MaxFT = 40
  185.  
  186.  
  187.  
  188. ---------------------------------------------------------------------------------------------------------------------------------------
  189. if Character:findFirstChild("EquippedVal",true) ~= nil then
  190. Character:findFirstChild("EquippedVal",true).Parent = nil
  191. end
  192. ev = Instance.new("BoolValue")
  193. ev.Parent = Character
  194. ev.Name = "EquippedVal"
  195. ev.Value = false
  196. --player
  197. player = nil
  198. --welds
  199. RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
  200. --what anim
  201. anim = "none"
  202. --other var
  203. player = Player
  204. ch = Character
  205. --save shoulders
  206. AoETrue = {}
  207. RSH, LSH , RHL, LHL = ch.Torso["Right Shoulder"], ch.Torso["Left Shoulder"] , ch.Torso["Right Hip"] , ch.Torso["Left Hip"]
  208.  
  209. function RWFunc()
  210. RW.Part1 = ch["Right Arm"]
  211. RSH.Part1 = nil
  212. end
  213. function LWFunc()
  214. LW.Part1 = ch["Left Arm"]
  215. LSH.Part1 = nil
  216. end
  217. function RWLFunc()
  218. RWL.Part1 = ch["Right Leg"]
  219. RHL.Part1 = nil
  220. ch["Right Leg"].Name = "RightLeg"
  221. RightLeg.CanCollide = false
  222. end
  223. function LWLFunc()
  224. LWL.Part1 = ch["Left Leg"]
  225. LHL.Part1 = nil
  226. ch["Left Leg"].Name = "LeftLeg"
  227. LeftLeg.CanCollide = true
  228. end
  229. function RWLRem()
  230. RightLeg.Name = "Right Leg"
  231. RWL.Part1 = nil
  232. RHL.Part1 = ch["Right Leg"]
  233. RightLeg.CanCollide = false
  234. end
  235. function LWLRem()
  236. LeftLeg.Name = "Left Leg"
  237. LWL.Part1 = nil
  238. LHL.Part1 = ch["Left Leg"]
  239. LeftLeg.CanCollide = false
  240. end
  241. function RWRem()
  242. RW.Part1 = nil
  243. RSH.Part1 = ch["Right Arm"]
  244. end
  245. function LWRem()
  246. LW.Part1 = nil
  247. LSH.Part1 = ch["Left Arm"]
  248. end
  249.  
  250.  
  251. if Character:findFirstChild(ModelName,true) ~= nil then
  252. Character:findFirstChild(ModelName,true).Parent = nil
  253. RHL.Part1 = ch["Right Leg"]
  254. LHL.Part1 = ch["Left Leg"]
  255. RSH.Part1 = ch["Right Arm"]
  256. LSH.Part1 = ch["Left Arm"]
  257. end
  258.  
  259.  
  260.  
  261. local swordholder = Instance.new("Model")
  262. swordholder.Name = ModelName
  263. swordholder.Parent = Character
  264. --derp
  265. RW.Part0 = ch.Torso
  266. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  267. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  268. RW.Parent = swordholder
  269. --
  270. LW.Part0 = ch.Torso
  271. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  272. LW.C1 = CFrame.new(0, 0.5, 0)
  273. LW.Parent = swordholder
  274. --
  275. RWL.Part0 = ch.Torso
  276. RWL.C0 = CFrame.new(1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  277. RWL.C1 = CFrame.new(0.5, 1, 0)
  278. RWL.Parent = swordholder
  279. --
  280. LWL.Part0 = ch.Torso
  281. LWL.C0 = CFrame.new(-1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  282. LWL.C1 = CFrame.new(-0.5, 1, 0)
  283. LWL.Parent = swordholder
  284. handlecolor = BrickColor.new("Really black")
  285. scndryclr = BrickColor.new("Bright violet")
  286. firepri = BrickColor.new("Bright red")
  287. icepri = BrickColor.new("Bright blue")
  288. local msh1 = Instance.new("CylinderMesh")
  289. msh1.Scale = Vector3.new(1,1,1)
  290. local msh2 = Instance.new("BlockMesh")
  291. msh2.Scale = Vector3.new(1,1,1)
  292. --
  293. local msh3 = Instance.new("BlockMesh")
  294. msh3.Scale = Vector3.new(1,1,1)
  295. local msh3a = Instance.new("SpecialMesh")
  296. msh3a.Scale = Vector3.new(1,1,1)
  297. msh3a.MeshType = "Wedge"
  298. local msh4 = Instance.new("BlockMesh")
  299. msh4.Scale = Vector3.new(1,1,1)
  300. local msh4a = Instance.new("SpecialMesh")
  301. msh4a.Scale = Vector3.new(1,1,1)
  302. msh4a.MeshType = "Wedge"
  303. --
  304. local msh5 = Instance.new("SpecialMesh")
  305. msh5.Scale = Vector3.new(1,1,2)
  306. msh5.MeshId = "http://www.roblox.com/asset/?id=3270017"
  307. local msh6 = Instance.new("BlockMesh")
  308. msh6.Scale = Vector3.new(1,1,0.5)
  309. local msh7 = Instance.new("BlockMesh")
  310. msh7.Scale = Vector3.new(1,1,1)
  311. local msh8 = Instance.new("BlockMesh")
  312. msh8.Scale = Vector3.new(0.5,1,1)
  313. local prt1 = Instance.new("Part")
  314. prt1.formFactor = 3
  315. prt1.CanCollide = false
  316. prt1.Name = "Handle"
  317. prt1.Locked = true
  318. prt1.Size = Vector3.new(0.2,1.5,0.2)
  319. prt1.Parent = swordholder
  320. msh1.Parent = prt1
  321. prt1.BrickColor = handlecolor
  322. local prt2 = Instance.new("Part")
  323. prt2.formFactor = 3
  324. prt2.CanCollide = false
  325. prt2.Name = "HandleTop"
  326. prt2.Locked = true
  327. prt2.Size = Vector3.new(1.6,0.2,0.5)
  328. prt2.Parent = swordholder
  329. msh2.Parent = prt2
  330. prt2.BrickColor = scndryclr
  331. ---
  332. local prt3 = Instance.new("Part")
  333. prt3.formFactor = 3
  334. prt3.CanCollide = false
  335. prt3.Name = "FlameBlade"
  336. prt3.Locked = true
  337. prt3.Size = Vector3.new(0.4,3,0.2)
  338. prt3.Parent = swordholder
  339. msh3.Parent = prt3
  340. prt3.BrickColor = firepri
  341. prt3.Reflectance = 0
  342. local prt3a = Instance.new("Part")
  343. prt3a.formFactor = 3
  344. prt3a.CanCollide = false
  345. prt3a.Name = "FlameBladeP1"
  346. prt3a.Locked = true
  347. prt3a.Size = Vector3.new(0.2,1,0.4)
  348. prt3a.Parent = swordholder
  349. msh3a.Parent = prt3a
  350. prt3a.BrickColor = firepri
  351. prt3a.Reflectance = 0
  352. --
  353. local prt4 = Instance.new("Part")
  354. prt4.formFactor = 3
  355. prt4.CanCollide = false
  356. prt4.Name = "FrostBlade"
  357. prt4.Locked = true
  358. prt4.Size = Vector3.new(0.4,3,0.2)
  359. prt4.Parent = swordholder
  360. msh4.Parent = prt4
  361. prt4.BrickColor = icepri
  362. prt4.Reflectance = 0.5
  363. local prt4a = Instance.new("Part")
  364. prt4a.formFactor = 3
  365. prt4a.CanCollide = false
  366. prt4a.Name = "FrostBladeP1"
  367. prt4a.Locked = true
  368. prt4a.Size = Vector3.new(0.2,1,0.4)
  369. prt4a.Parent = swordholder
  370. msh4a.Parent = prt4a
  371. prt4a.BrickColor = icepri
  372. prt4a.Reflectance = 0.5
  373. --
  374. local prt5 = Instance.new("Part")
  375. prt5.formFactor = 3
  376. prt5.CanCollide = false
  377. prt5.Name = "HandleRing"
  378. prt5.Locked = true
  379. prt5.Size = Vector3.new(1,1,0.2)
  380. prt5.Parent = swordholder
  381. msh5.Parent = prt5
  382. prt5.BrickColor = scndryclr
  383. prt5.Reflectance = 0
  384. local DFlame = Instance.new("Fire")
  385. DFlame.Parent = prt5
  386. DFlame.Color = Color3.new(0.5,0,0.5)
  387. DFlame.SecondaryColor = Color3.new(0.5,0,0.5)
  388. DFlame.Heat = 25
  389. DFlame.Size = 1
  390. DFlame.Enabled = DarkFire
  391. local prt6 = Instance.new("Part")
  392. prt6.formFactor = 3
  393. prt6.CanCollide = false
  394. prt6.Name = "HandleP1"
  395. prt6.Locked = true
  396. prt6.Size = Vector3.new(0.2,1.5,0.2)
  397. prt6.Parent = swordholder
  398. msh6.Parent = prt6
  399. prt6.BrickColor = scndryclr
  400. prt6.Reflectance = 0
  401. local prt7 = Instance.new("Part")
  402. prt7.formFactor = 3
  403. prt7.CanCollide = false
  404. prt7.Name = "HandleP2"
  405. prt7.Locked = true
  406. prt7.Size = Vector3.new(0.7,0.2,0.2)
  407. prt7.Parent = swordholder
  408. msh7.Parent = prt7
  409. prt7.BrickColor = scndryclr
  410. prt7.Reflectance = 0
  411. local prt8 = Instance.new("Part")
  412. prt8.formFactor = 3
  413. prt8.CanCollide = false
  414. prt8.Name = "DarkBlade"
  415. prt8.Locked = true
  416. prt8.Size = Vector3.new(0.2,4,0.2)
  417. prt8.Parent = swordholder
  418. msh8.Parent = prt8
  419. prt8.BrickColor = handlecolor
  420. prt8.Transparency = 1
  421. local hitbox = Instance.new("Part")
  422. hitbox.formFactor = 3
  423. hitbox.CanCollide = false
  424. hitbox.Name = "Hitbox"
  425. hitbox.Locked = true
  426. hitbox.Size = Vector3.new(1,4,0.2)
  427. hitbox.Parent = swordholder
  428. hitbox.Transparency = 1
  429. local hbw = Instance.new("Weld")
  430. hbw.Parent = hitbox
  431. hbw.Part0 = hitbox
  432. hbw.Part1 = prt1
  433. hbw.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  434. hbw.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0, -2.95, 0)
  435.  
  436. local w1 = Instance.new("Weld")
  437. w1.Parent = prt1
  438. w1.Part0 = prt1
  439. local w2 = Instance.new("Weld")
  440. w2.Parent = prt2
  441. w2.Part0 = prt2
  442. w2.Part1 = prt1
  443. w2.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  444. w2.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0, -0.85, 0)
  445. --
  446. local w3 = Instance.new("Weld")
  447. w3.Parent = prt3
  448. w3.Part0 = prt3
  449. w3.Part1 = prt1
  450. w3.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  451. w3.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0.25, -2.45, 0)
  452. local w3a = Instance.new("Weld")
  453. w3a.Parent = prt3a
  454. w3a.Part0 = prt3a
  455. w3a.Part1 = prt1
  456. w3a.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  457. w3a.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(-90),0) * CFrame.new(0.25, -4.45, 0)
  458. local w4 = Instance.new("Weld")
  459. w4.Parent = prt4
  460. w4.Part0 = prt4
  461. w4.Part1 = prt1
  462. w4.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  463. w4.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0.25, -2.45, 0)
  464. local w4a = Instance.new("Weld")
  465. w4a.Parent = prt4a
  466. w4a.Part0 = prt4a
  467. w4a.Part1 = prt1
  468. w4a.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  469. w4a.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90),0) * CFrame.new(-0.25, -4.45, 0)
  470. --
  471. local w5 = Instance.new("Weld")
  472. w5.Parent = prt5
  473. w5.Part0 = prt5
  474. w5.Part1 = prt1
  475. w5.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  476. w5.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0, -0.85, 0)
  477. local w6 = Instance.new("Weld")
  478. w6.Parent = prt6
  479. w6.Part0 = prt6
  480. w6.Part1 = prt1
  481. w6.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  482. w6.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0.5, -0, 0)
  483. local w7 = Instance.new("Weld")
  484. w7.Parent = prt7
  485. w7.Part0 = prt7
  486. w7.Part1 = prt1
  487. w7.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  488. w7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0.25, 0.75, 0)
  489. local w8 = Instance.new("Weld")
  490. w8.Parent = prt8
  491. w8.Part0 = prt8
  492. w8.Part1 = prt1
  493. w8.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  494. w8.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0, -2.95, 0)
  495. for ringi = 0 , math.rad(350) , math.rad(50) do
  496. local ringm = Instance.new("BlockMesh")
  497. ringm.Scale = Vector3.new(1,1.5,1)
  498. local ringp = Instance.new("Part")
  499. ringp.formFactor = 3
  500. ringp.CanCollide = false
  501. ringp.Name = "HandleRingP"..ringi
  502. ringp.Locked = true
  503. ringp.Size = Vector3.new(0.2,0.2,0.2)
  504. ringp.Parent = swordholder
  505. ringm.Parent = ringp
  506. ringp.BrickColor = scndryclr
  507. ringp.Reflectance = 0.1
  508. local ringw = Instance.new("Weld")
  509. ringw.Parent = ringp
  510. ringw.Part0 = ringp
  511. ringw.Part1 = prt5
  512. ringw.C1 = CFrame.fromEulerAnglesXYZ(math.rad(90), -ringi, 0) * CFrame.new(0, 0 , 0)
  513. ringw.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(-msh5.Scale.x/1.625, 0, 0) --* CFrame.new(-0.6, 0, 0) ---msh5.Scale.z/3.25
  514. end
  515.  
  516. local Objects = {}
  517. function getAllObjects(obj)
  518. for a,v in pairs(obj:GetChildren()) do
  519. if v:IsA("BasePart") then
  520. table.insert(Objects,v)
  521. end
  522. if #v:GetChildren() > 0 then
  523. getAllObjects(v)
  524. end
  525. end
  526. end
  527. getAllObjects(Workspace)
  528. function Raycast(Start,End,Range)
  529. --
  530. for ii = 0 , #Objects do
  531. table.remove(Objects,ii)
  532. end
  533. getAllObjects(Workspace)
  534. local MA = math.abs
  535. local CF = CFrame.new(Start,End)
  536. local CP = Start
  537. for i = 1, Range do--(Start - End).magnitude do
  538. for b,v in pairs(Objects) do
  539. if v.Parent ~= nil then
  540. local pos = Start + (CF.lookVector*i)
  541. local dist = v.CFrame:pointToObjectSpace(pos)
  542. if MA(dist.x) < v.Size.x/2 and MA(dist.y) < v.Size.y/2 and MA(dist.z) < v.Size.z/2 then
  543. if v.Parent ~= Character or v.Parent ~= swordholder or v.Parent.Parent ~= Character then
  544. return v,Start,pos
  545. end
  546. end
  547. end
  548. end
  549. end
  550. return nil,Start,End
  551. end
  552. local RAP = Instance.new("Part")
  553. RAP.formFactor = 0
  554. RAP.CanCollide = false
  555. RAP.Name = "RAPart"
  556. RAP.Locked = true
  557. RAP.Size = Vector3.new(1,1,1)
  558. RAP.Parent = swordholder
  559. RAP.Transparency = 1
  560. local w = Instance.new("Weld")
  561. w.Parent = RAP
  562. w.Part0 = RAP
  563. w.Part1 = RightArm
  564. w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  565. w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 1, 0)
  566.  
  567. function unequipweld()
  568. w1.Part1 = Torso
  569. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), math.rad(0)) * CFrame.new(0, 0,0)
  570. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(180), math.rad(-150)) * CFrame.new(-1, -1.5, -0.6)
  571. end
  572. unequipweld()
  573.  
  574. function equipweld()
  575. w1.Part1 = RAP
  576. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  577. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
  578. end
  579.  
  580. function ss(parent,p) --Slash
  581. local SlashSound = Instance.new("Sound")
  582. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  583. SlashSound.Parent = parent
  584. SlashSound.Volume = .7
  585. SlashSound.Pitch = p
  586. SlashSound.PlayOnRemove = true
  587. coroutine.resume(coroutine.create(function()
  588. wait()
  589. SlashSound.Parent = nil
  590. end))
  591. end
  592. function uss(parent,p) --unsheath
  593. local SlashSound = Instance.new("Sound")
  594. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  595. SlashSound.Parent = parent
  596. SlashSound.Volume = .7
  597. SlashSound.Pitch = p
  598. SlashSound.PlayOnRemove = true
  599. coroutine.resume(coroutine.create(function()
  600. wait()
  601. SlashSound.Parent = nil
  602. end))
  603. end
  604. function cs(parent,p) --Magic Charge
  605. local SlashSound = Instance.new("Sound")
  606. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137"
  607. SlashSound.Parent = parent
  608. SlashSound.Volume = .7
  609. SlashSound.Pitch = p
  610. SlashSound.PlayOnRemove = true
  611. coroutine.resume(coroutine.create(function()
  612. wait()
  613. SlashSound.Parent = nil
  614. end))
  615. end
  616. function ls(parent,p) --Lazer Sound
  617. local SlashSound = Instance.new("Sound")
  618. SlashSound.SoundId = "http://www.roblox.com/asset?id=1369158"
  619. SlashSound.Parent = parent
  620. SlashSound.Volume = .7
  621. SlashSound.Pitch = p
  622. SlashSound.PlayOnRemove = true
  623. coroutine.resume(coroutine.create(function()
  624. wait()
  625. SlashSound.Parent = nil
  626. end))
  627. end
  628. function is(parent,p) --Ice Sound
  629. local SlashSound = Instance.new("Sound")
  630. local rndm = math.random(1,3)
  631. if rndm == 1 then
  632. SlashSound.SoundId = "rbxasset://sounds\\ice.ogg"
  633. elseif rndm == 2 then
  634. SlashSound.SoundId = "rbxasset://sounds\\ice2.ogg"
  635. elseif rndm == 3 then
  636. SlashSound.SoundId = "rbxasset://sounds\\ice3.ogg"
  637. end
  638. SlashSound.Parent = parent
  639. SlashSound.Volume = .7
  640. SlashSound.Pitch = p
  641. SlashSound.PlayOnRemove = true
  642. coroutine.resume(coroutine.create(function()
  643. wait()
  644. SlashSound.Parent = nil
  645. end))
  646. end
  647. function fs(parent,p) --Fire Sound
  648. local SlashSound = Instance.new("Sound")
  649. SlashSound.SoundId = "http://www.roblox.com/asset/?id=31758982"
  650. SlashSound.Parent = parent
  651. SlashSound.Volume = .7
  652. SlashSound.Pitch = p
  653. SlashSound.PlayOnRemove = true
  654. coroutine.resume(coroutine.create(function()
  655. wait()
  656. SlashSound.Parent = nil
  657. end))
  658. end
  659. function bs(parent,p) --Boom Sound
  660. local SlashSound = Instance.new("Sound")
  661. SlashSound.SoundId = "rbxasset://sounds/Rocket shot.wav"
  662. SlashSound.Parent = parent
  663. SlashSound.Volume = .7
  664. SlashSound.Pitch = p
  665. SlashSound.PlayOnRemove = true
  666. coroutine.resume(coroutine.create(function()
  667. wait()
  668. SlashSound.Parent = nil
  669. end))
  670. end
  671. --
  672.  
  673.  
  674. function hideanim()
  675. attack = true
  676. for i = 0 , 1 , 0.2 do
  677. wait()
  678. RW.C0 = CFrame.new(1+0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+67*i), math.rad(45), math.rad(-45+90*i))
  679. LW.C0 = CFrame.new(-1-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80-80*i),math.rad(-45+45*i),math.rad(45-45*i))
  680. end
  681. LWRem()
  682. for i = 0 , 1 , 0.15 do
  683. wait()
  684. RW.C0 = CFrame.new(1.5,0.5+0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(147+103*i), math.rad(45), math.rad(45-35*i))
  685. end
  686. unequipweld()
  687. wait(0.1)
  688. for i = 0 , 1 , 0.1 do
  689. wait()
  690. RW.C0 = CFrame.new(1.5,1-0.5*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(250-250*i), math.rad(45-45*i), math.rad(10-10*i))
  691. end
  692. RWRem()
  693. attack = false
  694. end
  695.  
  696. function equipanim()
  697. attack = true
  698. RWFunc()
  699. for i = 0 , 1 , 0.1 do
  700. wait()
  701. RW.C0 = CFrame.new(1.5,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(250*i), math.rad(45*i), math.rad(-10*i))
  702. end
  703. equipweld()
  704. uss(Head,1)
  705. for i = 0 , 1 , 0.2 do
  706. wait()
  707. RW.C0 = CFrame.new(1.5,0.5+0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(250-102.5*i), math.rad(45), math.rad(-10+27.5*i))
  708. end
  709. for i = 0 , 1 , 0.15 do
  710. wait()
  711. RW.C0 = CFrame.new(1.5,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(147-67*i), math.rad(45), math.rad(17.5+27.5*i))
  712. end
  713. LWFunc()
  714. for i = 0 , 1 , 0.1 do
  715. wait()
  716. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(45-90*i))
  717. LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80*i),math.rad(-45*i),math.rad(45*i))
  718. end
  719. attack = false
  720. end
  721.  
  722. if (script.Parent.className ~= "HopperBin") then
  723. Tool = Instance.new("HopperBin")
  724. Tool.Parent = Backpack
  725. Tool.Name = ToolName
  726. script.Parent = Tool
  727. end
  728. Bin = script.Parent
  729.  
  730. function damagesplat(dmg,hit,critornot,healornot)
  731. local OffsetX = -2.5
  732. local OffsetY = 5
  733. local OffsetZ = 0
  734. local bill = Instance.new("BillboardGui")
  735. bill.Size = UDim2.new(1,0,1,0)
  736. bill.Adornee = hit
  737. bill.StudsOffset = Vector3.new(OffsetX,OffsetY,OffsetZ)
  738. bill.Parent = hit.Parent
  739. bill.Name = "DamageSplat"
  740. local tex = Instance.new("TextLabel")
  741. tex.Size = UDim2.new(5,0,2.5,0)
  742. tex.Parent = bill
  743. tex.Text = dmg
  744. tex.BackgroundTransparency = 1
  745. tex.ZIndex = 4
  746. tex.FontSize = "Size24"
  747. local tex2 = Instance.new("ImageLabel")
  748. tex2.Size = UDim2.new(1,0,1,0)
  749. tex2.Parent = tex
  750. tex2.BackgroundTransparency = 1
  751. tex2.Image = "http://www.roblox.com/asset/?id=42611276"
  752. if critornot == true then
  753. tex.TextColor3 = Color3.new(1,0.2,0.2)
  754. elseif critornot == false then
  755. tex.TextColor3 = Color3.new(0,0,0)
  756. end
  757. if healornot == true then
  758. tex.TextColor3 = Color3.new(0.2,0.5,0.5)
  759. end
  760. coroutine.resume(coroutine.create(function()
  761. wait(0.25)
  762. for i = 0 , 1 , 0.075 do
  763. wait()
  764. bill.StudsOffset = Vector3.new(OffsetX,OffsetY+5*i,OffsetZ)
  765. tex.TextTransparency = 1*i
  766. end
  767. bill.Parent = nil
  768. end))
  769. end
  770. function FireEff(Part,Time,Color1,Color2,Color3)
  771. local Firee = Part
  772. local Spawn = Part
  773. local colors = {}
  774. if Color1 ~= nil then
  775. table.insert(colors,BrickColor.new(Color1))
  776. end
  777. if Color2 ~= nil then
  778. table.insert(colors,BrickColor.new(Color2))
  779. end
  780. if Color3 ~= nil then
  781. table.insert(colors,BrickColor.new(Color3))
  782. end
  783. if Color4 ~= nil then
  784. table.insert(colors,BrickColor.new(Color4))
  785. end
  786. local Embers = {}
  787. local modelz = Instance.new("Model",Firee)
  788. modelz.Name = "FireHolder"
  789. for X = 1, 3 do
  790. local f = Instance.new("Part")
  791. f.Parent = nil
  792. f.BrickColor = colors[math.random(1, # colors)]
  793. f.Size = Vector3.new(1,1,1)
  794. f.formFactor = 1
  795. f.Anchored = true
  796. f.Locked = true
  797. f.CanCollide = false
  798. f.Transparency = 0.5
  799. f.Name = "Fire"
  800. f.TopSurface = 0
  801. f.BottomSurface = 0
  802. table.insert(Embers, f)
  803. end
  804. local R = 0
  805. coroutine.resume(coroutine.create(function ()
  806. repeat
  807. wait()
  808. R = R + 1
  809. for X = 1, # Embers do
  810. Embers[X].Parent = modelz
  811. local FM = math.fmod(R + X, # Embers)
  812. if FM == 1 then
  813. RandPos = Vector3.new(math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10, Spawn.Size.y / 2, math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10)
  814. RandDir = Vector3.new(math.random(-100,100), math.random(-100,100), math.random(-100,100))
  815. Embers[X].CFrame = CFrame.new(Spawn.Position + RandPos, Spawn.Position + RandPos + RandDir)
  816. else
  817. Embers[X].CFrame = CFrame.new(Embers[X].Position + Vector3.new(0,0.5,0), Embers[X].Position + Vector3.new(0,0.5,0) + Embers[X].CFrame.lookVector)
  818. end
  819. end
  820. until R == Time
  821. for i = 0 ,1 , 0.1 do
  822. wait(0.2)
  823. for X = 1, # Embers do
  824. Embers[X].Transparency = 0.5+0.5*i
  825. end
  826. end
  827. for X = 1, # Embers do
  828. Embers[X].Parent = nil
  829. end
  830. end))
  831. end
  832.  
  833. function OT(hit) --Normal Damage
  834. if Hitdeb == 1 then return end
  835. if hit.Parent == nil then return end
  836. local hum = hit.Parent:findFirstChild("Humanoid")
  837. if hum ~= nil and hum ~= Character.Humanoid then
  838. local critrandomizer = math.random(1,crtrate)
  839. if critrandomizer ~= 1 then
  840. local rndmdamage = math.random(mindamage,maxdamage)
  841. damagesplat(rndmdamage,hit,false)
  842. hum:TakeDamage(rndmdamage)
  843. elseif critrandomizer == 1 then
  844. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  845. damagesplat(rndmdamage,hit,true)
  846. hum:TakeDamage(rndmdamage)
  847. end
  848. Hitdeb = 1
  849. end
  850. end
  851.  
  852. function OTND(part) --No Debounce Damage
  853. coroutine.resume(coroutine.create(function()
  854. local dd = false
  855. while part.Parent ~= nil and not dd do
  856. wait()
  857. local c = game.Workspace:GetChildren();
  858. for i = 1, #c do
  859. local hum = c[i]:findFirstChild("Humanoid")
  860. if hum ~= nil and hum.Health ~= 0 then
  861. local head = c[i]:findFirstChild("Torso");
  862. if head ~= nil then
  863. local targ = head.Position - part.Position; ------------------------------------------------Local
  864. local mag = targ.magnitude;
  865. if mag <= 5 and c[i].Name ~= Player.Name then
  866. dd = true
  867. local rndmdamage = math.random(1,7+5*math.random()) + fireboost
  868. damagesplat(rndmdamage,head,false)
  869. hum:TakeDamage(rndmdamage)
  870. FireEff(head,150,"Bright red","Bright orange","Cool yellow")
  871. part.Parent = nil
  872.  
  873. end
  874. end
  875. end
  876. end
  877. end
  878. end))
  879. end
  880.  
  881. function AoE(p,magnitude,damage,critornot)
  882. local c = game.Workspace:GetChildren();
  883. for i = 1, #c do
  884. local hum = c[i]:findFirstChild("Humanoid")
  885. if hum ~= nil and hum.Health ~= 0 then
  886. local head = c[i]:findFirstChild("Head");
  887. if head ~= nil then
  888. local targ = head.Position - p;
  889. local mag = targ.magnitude;
  890. if mag <= magnitude and c[i].Name ~= Character.Name then
  891. local foundd = false
  892. for ii = 1 , #AoETrue do
  893. if AoETrue[ii] == c[i].Name then
  894. --delay(1,function() table.remove(AoETrue,ii) end)
  895. --blast(2.5,0.5,"Bright red",prt2,false)
  896. foundd = true
  897. end
  898. end
  899. if foundd then
  900. end
  901. --
  902. if not foundd then
  903. hum:TakeDamage(damage)
  904. damagesplat(damage,head,critornot)
  905. table.insert(AoETrue,c[i].Name)
  906. --blast(2.5,0.5,"Bright red",prt2)
  907. end
  908. end
  909. end
  910. end
  911. end
  912. end
  913. function AoEP(p,magnitude,damage,critornot)
  914. local c = game.Workspace:GetChildren();
  915. for i = 1, #c do
  916. local hum = c[i]:findFirstChild("Humanoid")
  917. if hum ~= nil and hum.Health ~= 0 then
  918. local head = c[i]:findFirstChild("Head");
  919. if head ~= nil then
  920. local targ = head.Position - p;
  921. local mag = targ.magnitude;
  922. if mag <= magnitude and c[i].Name ~= Character.Name then
  923. local foundd = false
  924. for ii = 1 , #AoETrue do
  925. if AoETrue[ii] == c[i].Name then
  926. --delay(1,function() table.remove(AoETrue,ii) end)
  927. --blast(2.5,0.5,"Bright red",prt2,false)
  928. foundd = true
  929. end
  930. end
  931. if foundd then
  932. end
  933. --
  934. if not foundd then
  935. hum:TakeDamage(damage)
  936. damagesplat(damage,head,critornot)
  937. c[i].Humanoid.Sit = true
  938. coroutine.resume(coroutine.create(function()
  939. local bp = Instance.new("BodyVelocity",c[i].Torso)
  940. bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  941. bp.P = bp.P*2
  942. bp.velocity = CFrame.new(c[i].Torso.Position , p).lookVector * 150 + Vector3.new(0,25,0)
  943. coroutine.resume(coroutine.create(function()
  944. for i=1,
  945. bp.velocity.y/3 do
  946. bp.velocity = bp.velocity+Vector3.new(0,-4.25,0)
  947. wait()
  948. end
  949. bp.Parent = nil
  950. end))
  951. c[i].Torso.RotVelocity = CFrame.new(c[i].Torso.Position , p).lookVector * 25
  952. wait(0.4) c[i].Humanoid.Sit = false end))
  953. table.insert(AoETrue,c[i].Name)
  954. end
  955. end
  956. end
  957. end
  958. end
  959. end
  960. --
  961.  
  962. local LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  963. function effect(Color,Ref,LP,P1,returnn)
  964. local effectsmsh = Instance.new("BlockMesh")
  965. effectsmsh.Scale = Vector3.new(0.5,1,0.5)
  966. effectsmsh.Name = "Mesh"
  967. local effectsg = Instance.new("Part")
  968. effectsg.formFactor = 3
  969. effectsg.CanCollide = false
  970. effectsg.Name = "Eff"
  971. effectsg.Locked = true
  972. effectsg.Anchored = true
  973. effectsg.Size = Vector3.new(0.2,1,0.2)
  974. effectsg.Parent = swordholder
  975. effectsmsh.Parent = effectsg
  976. effectsg.BrickColor = BrickColor.new(Color)
  977. effectsg.Reflectance = Ref
  978. local point1 = P1
  979. local mg = (LP.p - point1.p).magnitude
  980. effectsg.Size = Vector3.new(0.2,mg,0.2)
  981. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  982. if returnn then return effectsg end
  983. coroutine.resume(coroutine.create(function()
  984. if not returnn then
  985. for i = 0 , 1 , 0.1 do
  986. wait()
  987. effectsg.Transparency = 1*i
  988. end
  989. wait()
  990. effectsg.Parent = nil
  991. end
  992. end))
  993. end
  994.  
  995. con = nil
  996. function dmgcnnct(p)
  997. con = p.Touched:connect(OT)
  998. end
  999. function dmgdc()
  1000. if con ~= nil then
  1001. con:disconnect()
  1002. Hitdeb = 0
  1003. end
  1004. end
  1005. function atktype(s,e)
  1006. coroutine.resume(coroutine.create(function ()
  1007. attacktype = e
  1008. wait(0.5)
  1009. repeat wait() until attack
  1010. attacktype = s
  1011. end))
  1012. end
  1013.  
  1014. hold = false
  1015. function Combo1a()
  1016. attack=true
  1017. for i = 0 , 1 , 0.1 do
  1018. wait()
  1019. RW.C0 = CFrame.new(1-0.5*i,0.5,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i), math.rad(45+45*i), math.rad(-45+45*i))
  1020. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45*i), math.rad(10*i), math.rad(0))
  1021. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i),math.rad(-45+45*i),math.rad(45-20*i))
  1022. end
  1023. dmgcnnct(hitbox)
  1024. ss(Head,1.5)
  1025. for i = 0 , 1 , 0.2 do
  1026. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1027. wait()
  1028. RW.C0 = CFrame.new(0.5+1*i,0.5,-1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0))
  1029. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+135*i), math.rad(10+35*i), math.rad(0))
  1030. LW.C0 = CFrame.new(-1+1*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(25+65*i))
  1031. effect("Bright blue",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  1032. end
  1033. dmgdc()
  1034. for i = 0 , 1 , 0.2 do
  1035. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1036. wait()
  1037. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0))
  1038. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+20*i), math.rad(45+5*i), math.rad(0))
  1039. LW.C0 = CFrame.new(-0.25*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(90+10*i))
  1040. effect("Bright blue",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  1041. end
  1042. attacktype = 2
  1043. coroutine.resume(coroutine.create(function ()
  1044. wait(0.25)
  1045. attacktype = 1
  1046. end))
  1047. attack=false
  1048. wait(0.15)
  1049. wait()
  1050. for i = 0 , 1 , 0.1 do
  1051. if not attack then
  1052. wait()
  1053. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i), math.rad(90-45*i), math.rad(-45*i))
  1054. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(110-110*i), math.rad(50-50*i), math.rad(0))
  1055. LW.C0 = CFrame.new(-0.25-0.75*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i),math.rad(-45*i),math.rad(100-55*i))
  1056. end
  1057. end
  1058.  
  1059. end
  1060. function Combo1b()
  1061. attack=true
  1062. for i = 0 , 1 , 0.1 do
  1063. wait()
  1064. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0))
  1065. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(110-155*i), math.rad(50-40*i), math.rad(0))
  1066. LW.C0 = CFrame.new(-0.25-0.75*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(100-50*i))
  1067. end
  1068.  
  1069. cs(Head,1.5)
  1070. local tempmod = Instance.new("Model",swordholder)
  1071. for l = 1 , 20 do
  1072. local meshz = Instance.new("SpecialMesh")
  1073. meshz.Scale = Vector3.new(0.5,0.5,0.5)
  1074. meshz.MeshType = "Sphere"
  1075. local shellz = Instance.new("Part")
  1076. meshz.Parent = shellz
  1077. shellz.Anchored = false
  1078. shellz.formFactor = 0
  1079. shellz.Size = Vector3.new(1,1,1)
  1080. shellz.CFrame = hitbox.CFrame * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  1081. shellz.Parent = tempmod
  1082. shellz.Transparency = 0.5
  1083. shellz.BrickColor = BrickColor.new("Bright violet")
  1084. shellz.CanCollide = false
  1085. shellz.Reflectance = 0.25
  1086. local bv = Instance.new("BodyPosition")
  1087. bv.Parent = shellz
  1088. bv.maxForce = Vector3.new(200000,200000,200000)
  1089. bv.position = shellz.Position
  1090. coroutine.resume(coroutine.create(function()
  1091. for i = 0 , 1 , 0.025 do
  1092. wait()
  1093. shellz.Transparency = 1-1*i
  1094. end
  1095. shellz.Transparency = 0
  1096. end))
  1097. coroutine.resume(coroutine.create(function()
  1098. wait(0.05)
  1099. bv.position = hitbox.Position
  1100. for i = 1 , 20 do
  1101. wait(0.1)
  1102. bv.position = shell.Position
  1103. end
  1104. shellz.Parent = nil
  1105. end))
  1106. wait(0.01)
  1107. end
  1108. coroutine.resume(coroutine.create(function ()
  1109. wait(0.25)
  1110. tempmod.Parent = nil
  1111. end))
  1112. for i = 0 , 1 , 0.2 do
  1113. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1114. wait()
  1115. RW.C0 = CFrame.new(1-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0))
  1116. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+135*i), math.rad(10), math.rad(0))
  1117. LW.C0 = CFrame.new(-1+1.5*i,0.5,-1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(50+40*i))
  1118. effect("Really red",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  1119. end
  1120. local gyro = Instance.new("BodyGyro")
  1121. gyro.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1122. gyro.P = gyro.P + 10000
  1123. local CF = Torso.CFrame
  1124. gyro.cframe = CF
  1125. gyro.Parent = Torso
  1126. dmgcnnct(hitbox)
  1127. ss(Head,1)
  1128. for i = 0 , 1 , 0.1 do
  1129. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1130. wait()
  1131. gyro.cframe = CF * CFrame.Angles(0,math.rad(-360*i),0)
  1132. effect("Really red",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  1133. end
  1134. ss(Head,1)
  1135. Hitdeb = 0
  1136. for i = 0 , 1 , 0.1 do
  1137. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1138. wait()
  1139. gyro.cframe = CF * CFrame.Angles(0,math.rad(-360*i),0)
  1140. effect("Really red",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  1141. end
  1142. dmgdc()
  1143. attacktype = 3
  1144. coroutine.resume(coroutine.create(function ()
  1145. wait(0.5)
  1146. attacktype = 1
  1147. end))
  1148. wait(0.15)
  1149. wait()
  1150. gyro.Parent = nil
  1151. attack=false
  1152. for i = 0 , 1 , 0.1 do
  1153. if not attack then
  1154. wait()
  1155. RW.C0 = CFrame.new(0.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i), math.rad(90-45*i), math.rad(-45*i))
  1156. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90-90*i), math.rad(10-10*i), math.rad(0))
  1157. LW.C0 = CFrame.new(0.5-1.5*i,0.5,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i),math.rad(-45*i),math.rad(50-5*i))
  1158. end
  1159. end
  1160. end
  1161.  
  1162. function Combo1c()
  1163. attack=true
  1164. local bp = Instance.new("BodyPosition")
  1165. bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1166. bp.P = bp.P + 10000
  1167. local CF = Torso.CFrame
  1168. bp.position = CF.p
  1169. bp.Parent = Torso
  1170. RWLFunc()
  1171. LWLFunc()
  1172. for zz = 1 , 2 do
  1173. local mesh = Instance.new("SpecialMesh")
  1174. mesh.MeshType = "FileMesh"
  1175. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1176. mesh.Scale = Vector3.new(10,5,10) * Vector3.new(0.01,0.01,0.01)
  1177. local shell = Instance.new("Part")
  1178. mesh.Parent = shell
  1179. shell.Anchored = true
  1180. shell.formFactor = 1
  1181. shell.Size = Vector3.new(1,1,1)
  1182. shell.CFrame = Torso.CFrame * CFrame.Angles(0,0.5*zz,0) + Vector3.new(0,-2.5,0) -- + shellspawn.CFrame.lookVector * 2
  1183. shell.Parent = swordholder
  1184. shell.Transparency = 0
  1185. shell.BrickColor = BrickColor.new("White")
  1186. shell.CanCollide = false
  1187. coroutine.resume(coroutine.create(function()
  1188. for i = 0 , 1 , 0.05 do
  1189. wait()
  1190. mesh.Scale = Vector3.new(10,5,10) * Vector3.new(i,1,i)
  1191. shell.Transparency = 1*i
  1192. end
  1193. shell.Transparency = 1
  1194. shell.Parent = nil
  1195. end))
  1196. end
  1197. for i = 0 , 1 , 0.1 do
  1198. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1199. wait()
  1200. RW.C0 = CFrame.new(0.5+0.5*i,0.5+1*i,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+100*i), math.rad(90-90*i), math.rad(-45*i))
  1201. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90-90*i), math.rad(10-10*i), math.rad(0))
  1202. LW.C0 = CFrame.new(0.5-1.5*i,0.5+1*i,-1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90+100*i),math.rad(0),math.rad(50-5*i))
  1203. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  1204. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90-45*i)) * CFrame.new(0, 0, 0.2)
  1205. bp.position = CF.p + Vector3.new(0,10,0)
  1206. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-20*i), math.rad(0), math.rad(0))
  1207. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-20*i), math.rad(0), math.rad(0))
  1208. prt8.Transparency = 1-1*i
  1209. effect("Really black",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  1210. end
  1211. cs(Head,1.5)
  1212. coroutine.resume(coroutine.create(function ()
  1213. local tempmod = Instance.new("Model",swordholder)
  1214. for l = 1 , 20 do
  1215. local meshz = Instance.new("SpecialMesh")
  1216. meshz.Scale = Vector3.new(1.5,1.5,1.5)
  1217. meshz.MeshType = "Sphere"
  1218. local shellz = Instance.new("Part")
  1219. meshz.Parent = shellz
  1220. shellz.Anchored = false
  1221. shellz.formFactor = 0
  1222. shellz.Size = Vector3.new(1,1,1)
  1223. shellz.CFrame = hitbox.CFrame * CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))
  1224. shellz.Parent = tempmod
  1225. shellz.Transparency = 0.5
  1226. shellz.BrickColor = BrickColor.new("Really black")
  1227. shellz.CanCollide = false
  1228. shellz.Reflectance = 0
  1229. local bv = Instance.new("BodyPosition")
  1230. bv.Parent = shellz
  1231. bv.maxForce = Vector3.new(200000,200000,200000)
  1232. bv.position = shellz.Position
  1233. local hx = false
  1234. coroutine.resume(coroutine.create(function()
  1235. for i = 0 , 1 , 0.05 do
  1236. wait()
  1237. shellz.Transparency = 1-1*i
  1238. end
  1239. shellz.Transparency = 0
  1240. end))
  1241. coroutine.resume(coroutine.create(function()
  1242. wait(0.05)
  1243. bv.position = hitbox.Position
  1244. for i = 1 , 20 do
  1245. wait(0.1)
  1246. bv.position = shell.Position
  1247. end
  1248. shellz.Parent = nil
  1249. end))
  1250. wait(0.01)
  1251. end
  1252. coroutine.resume(coroutine.create(function ()
  1253. repeat wait() until hx
  1254. tempmod.Parent = nil
  1255. end))
  1256. end))
  1257. for i = 0 , 1 , 0.1 do
  1258. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1259. wait()
  1260. RW.C0 = CFrame.new(1,1.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(190+20*i), math.rad(0), math.rad(-45))
  1261. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1262. LW.C0 = CFrame.new(-1,1.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(190+20*i),math.rad(0),math.rad(45))
  1263. effect("Really black",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  1264. end
  1265. for i = 0 , 1 , 0.1 do
  1266. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1267. wait()
  1268. RW.C0 = CFrame.new(1,1.5-1*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(210-130*i), math.rad(0), math.rad(-45))
  1269. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1270. LW.C0 = CFrame.new(-1,1.5-1*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(210-130*i),math.rad(0),math.rad(45))
  1271. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  1272. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(45)) * CFrame.new(0, 0, 0.2)
  1273. bp.position = CF.p + CF.lookVector * 2.5 + Vector3.new(0,-1,0)
  1274. RWL.C0 = CFrame.new(1, -1+1*i, -1*i) * CFrame.fromEulerAnglesXYZ(math.rad(-20+20*i), math.rad(0), math.rad(0))
  1275. LWL.C0 = CFrame.new(-1, -1+1*i, -1*i) * CFrame.fromEulerAnglesXYZ(math.rad(-20+20*i), math.rad(0), math.rad(0))
  1276. effect("Really black",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  1277. end
  1278. hx = true
  1279. wait(0.1)
  1280. local Hit,A, B = Raycast(hitbox.Position + Vector3.new(0,3,0) + Torso.CFrame.lookVector * 1 ,hitbox.Position + Vector3.new(0,3,0) + Torso.CFrame.lookVector * 101 ,100)
  1281. local effectsmsh = Instance.new("CylinderMesh")
  1282. effectsmsh.Scale = Vector3.new(1,1,1)
  1283. local effectsg = Instance.new("Part")
  1284. effectsg.formFactor = 3
  1285. effectsg.CanCollide = false
  1286. effectsg.Name = "LAZOR"
  1287. effectsg.Locked = true
  1288. effectsg.Anchored = true
  1289. effectsg.Parent = swordholder
  1290. effectsmsh.Parent = effectsg
  1291. effectsg.BrickColor = BrickColor.new("Black")
  1292. effectsg.Reflectance = 0.5
  1293. local point1 = B
  1294. local point0 = A
  1295. for zz = 1 , 5 do
  1296. local mesh = Instance.new("SpecialMesh")
  1297. mesh.MeshType = "FileMesh"
  1298. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1299. mesh.Scale = Vector3.new(10,5,10) * Vector3.new(0.01,0.01,0.01)
  1300. local shell = Instance.new("Part")
  1301. mesh.Parent = shell
  1302. shell.Anchored = true
  1303. shell.formFactor = 1
  1304. shell.Size = Vector3.new(1,1,1)
  1305. shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /-2) + Torso.CFrame.lookVector * 2
  1306. shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90),0.5*zz,0)
  1307. shell.Parent = swordholder
  1308. shell.Transparency = 0
  1309. if math.fmod(zz,2) == 0 then
  1310. shell.BrickColor = BrickColor.new("Really black")
  1311. else
  1312. shell.BrickColor = BrickColor.new("Bright violet")
  1313. end
  1314. shell.CanCollide = false
  1315. coroutine.resume(coroutine.create(function()
  1316. for i = 0 , 1 , 0.01 do
  1317. wait()
  1318. mesh.Scale = Vector3.new(10,5,10) * Vector3.new(i,1,i)
  1319. shell.Transparency = 1*i
  1320. end
  1321. shell.Transparency = 1
  1322. shell.Parent = nil
  1323. end))
  1324. end
  1325. for zz = 1 , 1 do
  1326. local mesh = Instance.new("SpecialMesh")
  1327. mesh.MeshType = "Sphere"
  1328. mesh.Scale = Vector3.new(20,15,10) * Vector3.new(0.01,0.01,0.01)
  1329. local shell = Instance.new("Part")
  1330. mesh.Parent = shell
  1331. shell.Anchored = true
  1332. shell.formFactor = 1
  1333. shell.Size = Vector3.new(1,1,1)
  1334. shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /-2) + Torso.CFrame.lookVector * 10
  1335. shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90),0,0)
  1336. shell.Parent = swordholder
  1337. shell.Transparency = 0
  1338. shell.BrickColor = BrickColor.new("Bright violet")
  1339. shell.CanCollide = false
  1340. coroutine.resume(coroutine.create(function()
  1341. for i = 0 , 1 , 0.02 do
  1342. wait()
  1343. mesh.Scale = Vector3.new(10,15,15) * Vector3.new(i,1,i)
  1344. shell.CFrame = shell.CFrame * CFrame.Angles(0,i,0)
  1345. shell.Transparency = 1-1*i
  1346. end
  1347. for i = 0 , 1 , 0.05 do
  1348. wait()
  1349. shell.CFrame = shell.CFrame * CFrame.Angles(0,i,0)
  1350. shell.Transparency = 1*i
  1351. end
  1352. shell.Transparency = 1
  1353. shell.Parent = nil
  1354. end))
  1355. end
  1356. for zz = 1 , 1 do
  1357. local mesh = Instance.new("CylinderMesh")
  1358. mesh.Scale = Vector3.new(20,0.5,10) * Vector3.new(0.01,0.01,0.01)
  1359. local shell = Instance.new("Part")
  1360. mesh.Parent = shell
  1361. shell.Anchored = true
  1362. shell.formFactor = 1
  1363. shell.Size = Vector3.new(1,1,1)
  1364. shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /-2) + Torso.CFrame.lookVector * -0.5
  1365. shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90),0,0)
  1366. shell.Parent = swordholder
  1367. shell.Transparency = 0
  1368. shell.BrickColor = BrickColor.new("Bright violet")
  1369. shell.CanCollide = false
  1370. coroutine.resume(coroutine.create(function()
  1371. for i = 0 , 1 , 0.02 do
  1372. wait()
  1373. mesh.Scale = Vector3.new(20,0.5,20) * Vector3.new(i,1,i)
  1374. shell.Transparency = 1-1*i
  1375. end
  1376. for i = 0 , 1 , 0.02 do
  1377. wait()
  1378. shell.Transparency = 1*i
  1379. end
  1380. shell.Transparency = 1
  1381. shell.Parent = nil
  1382. end))
  1383. end
  1384. for zz = 1 , 10 do
  1385. local mesh = Instance.new("SpecialMesh")
  1386. mesh.MeshType = "FileMesh"
  1387. mesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  1388. mesh.Scale = Vector3.new(5,5,5) * Vector3.new(0.01,0.01,0.01)
  1389. local shell = Instance.new("Part")
  1390. mesh.Parent = shell
  1391. shell.Anchored = true
  1392. shell.formFactor = 1
  1393. shell.Size = Vector3.new(1,1,1)
  1394. shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /2)
  1395. shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90)+2*math.random(),2*math.random(),2*math.random())
  1396. shell.Parent = swordholder
  1397. shell.Transparency = 0
  1398. if math.fmod(zz,2) == 0 then
  1399. shell.BrickColor = BrickColor.new("Really black")
  1400. else
  1401. shell.BrickColor = BrickColor.new("Bright violet")
  1402. end
  1403. shell.CanCollide = false
  1404. coroutine.resume(coroutine.create(function()
  1405. for i = 0 , 1 , 0.01 do
  1406. wait()
  1407. mesh.Scale = Vector3.new(25,25,25) * Vector3.new(i,i,i)
  1408. shell.Transparency = 1*i
  1409. end
  1410. shell.Transparency = 1
  1411. shell.Parent = nil
  1412. end))
  1413. end
  1414. coroutine.resume(coroutine.create(function()
  1415. effectsg.Transparency = 1
  1416. for i = 0 , 1 , 0.1 do
  1417. wait()
  1418. effectsg.Transparency = 1-1*i
  1419. end
  1420. wait(2)
  1421. for i = 0 , 1 , 0.1 do
  1422. wait()
  1423. effectsg.Transparency = 1*i
  1424. end
  1425. effectsg.Parent = nil
  1426. end))
  1427. local mg = 100
  1428. if Hit ~= nil then
  1429. mg = (point0-point1).magnitude
  1430. elseif Hit == nil then
  1431. mg = 100
  1432. end
  1433. ls(Head,0.5)
  1434. ls(Head,0.75)
  1435. cs(Head,0.25)
  1436. ls(Head,1)
  1437. ls(Head,3)
  1438. cs(Head,0.15)
  1439. for mgg = 0 , 1,0.1 do
  1440. wait()
  1441. effectsg.Size = Vector3.new(5,(mg*mgg)+0.2,5)
  1442. local durr = CFrame.new((point0+(point1))/2,(point1))
  1443. effectsg.CFrame = CFrame.new((point0+(point1-durr.lookVector * (mg*(1-mgg))))/2,(point1)) * CFrame.Angles(math.rad(90),0,0)
  1444. end
  1445. local critrandomizer = math.random(1,crtrate)
  1446. if critrandomizer ~= 1 then
  1447. local rndmdamage = math.random(mindamage+30,maxdamage+30)
  1448. AoEP((CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /2)).p,15,rndmdamage+darkboost,false)
  1449. elseif critrandomizer == 1 then
  1450. local rndmdamage = math.random(maxdamage+30,crtmaxdamage+30)
  1451. AoEP((CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /2)).p,15,rndmdamage+darkboost,true)
  1452. end
  1453. bp.Parent = nil
  1454. for i = 0 , 1 , 0.1 do
  1455. wait()
  1456. RW.C0 = CFrame.new(1,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(90-45*i), math.rad(-45))
  1457. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1458. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45*i),math.rad(45))
  1459. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  1460. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(45+45*i)) * CFrame.new(0, 0, 0.2)
  1461. RWL.C0 = CFrame.new(1, -1*i, -1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1462. LWL.C0 = CFrame.new(-1, -1*i, -1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1463. prt8.Transparency = 1*i
  1464. end
  1465. for ii = 1 , #AoETrue do
  1466. table.remove(AoETrue,#AoETrue)
  1467. end
  1468. RWLRem()
  1469. LWLRem()
  1470. attack = false
  1471. attacktype = 1
  1472. end
  1473. function BlizzardSword()
  1474. attack=true
  1475. for i = 0 , 1 , 0.2 do
  1476. wait()
  1477. RW.C0 = CFrame.new(1,0.5+1*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i), math.rad(45-45*i), math.rad(-45))
  1478. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1479. LW.C0 = CFrame.new(-1,0.5+1*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i),math.rad(-45+45*i),math.rad(45))
  1480. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1481. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90-45*i)) * CFrame.new(0, 0, 0.2)
  1482. end
  1483. local wssave = Character.Humanoid.WalkSpeed
  1484. Character.Humanoid.WalkSpeed = 0
  1485. ss(Head,1.5)
  1486. local efftab = {}
  1487. for i = 0 , 1 , 0.2 do
  1488. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1489. wait()
  1490. RW.C0 = CFrame.new(1,1.5-1.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(135-135*i), math.rad(0), math.rad(-45))
  1491. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1492. LW.C0 = CFrame.new(-1,1.5-1.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(135-135*i),math.rad(0),math.rad(45))
  1493. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1494. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(45)) * CFrame.new(0, 0, 0.2)
  1495. local eff = effect("Bright blue",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
  1496. table.insert(efftab,eff)
  1497. end
  1498. local trspos = Torso.Position
  1499. Character.Humanoid.WalkSpeed = wssave
  1500. for _,efff in pairs(efftab) do
  1501. wait()
  1502. coroutine.resume(coroutine.create(function()
  1503. for i = 0 , 1 , 0.15 do
  1504. wait()
  1505. efff.Transparency = 1*i
  1506. end
  1507. wait()
  1508. efff.Transparency = 1
  1509. end))
  1510. end
  1511. for io,eff in pairs(efftab) do
  1512. wait()
  1513. for zz = 1 , 1 do
  1514. local mesh = Instance.new("CylinderMesh")
  1515. mesh.Scale = Vector3.new(0.1,0.5,0.1)
  1516. local shell = Instance.new("Part")
  1517. mesh.Parent = shell
  1518. shell.Anchored = true
  1519. shell.formFactor = 1
  1520. shell.Size = Vector3.new(1,1,1)
  1521. local dur = CFrame.new(trspos,eff.Position)
  1522. local CF1 = dur * CFrame.Angles(math.rad(90),0,0) * CFrame.new(0,-6,0)
  1523. shell.CFrame = CF1
  1524. shell.Parent = eff
  1525. shell.Transparency = 1
  1526. shell.Reflectance = 0.25
  1527. shell.BrickColor = BrickColor.new("Bright blue")
  1528. shell.CanCollide = false
  1529. is(shell,0.5)
  1530. coroutine.resume(coroutine.create(function()
  1531. for i = 0 , 1 , 0.1 do
  1532. wait()
  1533. shell.Transparency = 1-1*i
  1534. mesh.Scale = Vector3.new(0.1+4.9*i,0.5,0.1+4.9*i)
  1535. end
  1536. wait(0.25)
  1537. for i = 0 , 1 , 0.1 do
  1538. wait()
  1539. shell.Transparency = 1*i
  1540. mesh.Scale = Vector3.new(5-5*i,0.5-0.5*i,5-5*i)
  1541. end
  1542. shell.Parent = nil
  1543. end))
  1544. end
  1545. end
  1546. for io,eff in pairs(efftab) do
  1547. wait()
  1548. for zz = 1 , 1 do
  1549. local mesh = Instance.new("SpecialMesh")
  1550. mesh.MeshType = "FileMesh"
  1551. mesh.Scale = Vector3.new(5,2,1)
  1552. mesh.MeshId = "rbxasset://fonts/sword.mesh"
  1553. local shell = Instance.new("Part")
  1554. mesh.Parent = shell
  1555. shell.Anchored = true
  1556. shell.formFactor = 1
  1557. shell.Size = Vector3.new(2,2,5)
  1558. local dur = CFrame.new(trspos,eff.Position)
  1559. local CF1 = dur * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,0,6.5)* CFrame.Angles(0,0,math.rad(90))
  1560. shell.CFrame = CF1
  1561. shell.Parent = eff
  1562. shell.Transparency = 1
  1563. shell.Reflectance = 0.25
  1564. shell.BrickColor = BrickColor.new("Bright blue")
  1565. shell.CanCollide = false
  1566. local hitd = 0
  1567. coroutine.resume(coroutine.create(function()
  1568. local dd = false
  1569. while shell.Parent ~= nil and not dd do
  1570. wait()
  1571. local c = game.Workspace:GetChildren();
  1572. for i = 1, #c do
  1573. local hum = c[i]:findFirstChild("Humanoid")
  1574. if hum ~= nil and hum.Health ~= 0 then
  1575. local head = c[i]:findFirstChild("Torso");
  1576. if head ~= nil then
  1577. local targ = head.Position - shell.Position;
  1578. local mag = targ.magnitude;
  1579. if mag <= 3 and c[i].Name ~= Player.Name then
  1580. dd = true
  1581. local critrandomizer = math.random(1,crtrate)
  1582. if critrandomizer ~= 1 then
  1583. local rndmdamage = math.random(mindamage+iceboost,maxdamage+iceboost)
  1584. damagesplat(rndmdamage,head,false)
  1585. hum:TakeDamage(rndmdamage)
  1586. elseif critrandomizer == 1 then
  1587. local rndmdamage = math.random(maxdamage+iceboost,crtmaxdamage+iceboost)
  1588. damagesplat(rndmdamage,head,true)
  1589. hum:TakeDamage(rndmdamage)
  1590. end
  1591. end
  1592. end
  1593. end
  1594. end
  1595. end
  1596. end))
  1597. coroutine.resume(coroutine.create(function()
  1598. uss(eff,1)
  1599.  
  1600. for i = 0 , 1 , 0.1 do
  1601. wait()
  1602. shell.Transparency = 1-1*i
  1603. CF1 = dur * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,0,6.5+2*i)* CFrame.Angles(0,0,math.rad(90))
  1604. shell.CFrame = CF1
  1605. mesh.Scale = Vector3.new(5,2,1+0.5*i)
  1606. end
  1607. wait(0.25)
  1608. ss(eff,2)
  1609. for i = 0 , 1 , 0.1 do
  1610. wait()
  1611. shell.Transparency = 1*i
  1612. CF1 = dur * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,0,8.5+25*i)* CFrame.Angles(0,0,math.rad(90))
  1613. shell.CFrame = CF1
  1614. mesh.Scale = Vector3.new(5-5*i,2-2*i,1.5-1.5*i*i)
  1615. end
  1616. shell.Parent = nil
  1617. end))
  1618. end
  1619. end
  1620. coroutine.resume(coroutine.create(function()
  1621. wait(1.5)
  1622. for _,eff in pairs(efftab) do
  1623. wait()
  1624. eff.Parent = nil
  1625. end end))
  1626. for i = 0 , 1 , 0.1 do
  1627. wait()
  1628. RW.C0 = CFrame.new(1,0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80*i), math.rad(45*i), math.rad(-45))
  1629. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1630. LW.C0 = CFrame.new(-1,0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80*i),math.rad(-45*i),math.rad(45))
  1631. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1632. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(45+45*i)) * CFrame.new(0, 0, 0.2)
  1633. end
  1634. attack=false
  1635. end
  1636. local FTCount = 0
  1637. function FlameTrail()
  1638. attack=true
  1639. for i = 0 , 1 , 0.15 do
  1640. wait()
  1641. RW.C0 = CFrame.new(1-0.5*i,0.5,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i), math.rad(45+45*i), math.rad(-45+55*i))
  1642. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45*i), math.rad(0), math.rad(0))
  1643. LW.C0 = CFrame.new(-1+0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45+20*i))
  1644. end
  1645. wait(0.1)
  1646. ss(Head,1.5)
  1647. fs(Head,0.5+1.5*math.random())
  1648. local efftab = {}
  1649. RW.C0 = CFrame.new(0.5,0.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(10))
  1650. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45), math.rad(0), math.rad(0))
  1651. LW.C0 = CFrame.new(-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(65))
  1652. dmgcnnct(hitbox)
  1653. for i = 0 , 1 , 0.15 do
  1654. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1655. wait()
  1656. RW.C0 = CFrame.new(0.5+1*i,0.5,-1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(10))
  1657. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+135*i*i), math.rad(0), math.rad(0))
  1658. LW.C0 = CFrame.new(-0.5-1*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+20*i),math.rad(-45),math.rad(65-155*i))
  1659. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1660. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1661. if FTCount <= MaxFT then
  1662. local eff = effect("Bright red",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
  1663. eff.Transparency = 1
  1664. table.insert(efftab,eff)
  1665. FTCount = FTCount + 1
  1666. OTND(eff)
  1667. coroutine.resume(coroutine.create(function()
  1668. for i = 0 , 1 , 0.15 do
  1669. wait()
  1670. eff.Transparency = 1-0.5*i
  1671. end
  1672. wait()
  1673. eff.Transparency = 0.5
  1674. end))
  1675. end
  1676. end
  1677. local rndmneg = math.random(1,2)
  1678. if rndmneg == 1 then
  1679. rndmdec1 = 13 * math.random()
  1680. else
  1681. rndmdec1 = -13 * math.random()
  1682. end
  1683. for i = 0 , 1 , 0.1 do
  1684. wait()
  1685. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90-rndmdec1*i), math.rad(90), math.rad(10-(rndmdec1*2)*i))
  1686. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+20*i), math.rad(0), math.rad(0))
  1687. LW.C0 = CFrame.new(-1.5,0.5,-0) * CFrame.fromEulerAnglesXYZ(math.rad(100),math.rad(-45),math.rad(-90))
  1688. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1689. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1690. end
  1691. ss(Head,1.5)
  1692. fs(Head,0.5+1.5*math.random())
  1693. Hitdeb = 0
  1694. for i = 0 , 1 , 0.15 do
  1695. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1696. wait()
  1697. RW.C0 = CFrame.new(1.5-1.5*i,0.5,-1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-rndmdec1), math.rad(90), math.rad(10-(rndmdec1*2)))
  1698. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(110-200*i), math.rad(0), math.rad(0))
  1699. LW.C0 = CFrame.new(-1.5+1*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(100-80*i),math.rad(-45),math.rad(-90+135*i))
  1700. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1701. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1702. if FTCount <= MaxFT then
  1703. local eff = effect("Bright red",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
  1704. eff.Transparency = 1
  1705. table.insert(efftab,eff)
  1706. FTCount = FTCount + 1
  1707. OTND(eff)
  1708. coroutine.resume(coroutine.create(function()
  1709. for i = 0 , 1 , 0.15 do
  1710. wait()
  1711. eff.Transparency = 1-0.5*i
  1712. end
  1713. wait()
  1714. eff.Transparency = 0.5
  1715. end))
  1716. end
  1717. end
  1718. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1719. for i = 0 , 1 , 0.2 do
  1720. wait()
  1721. local rndmd = rndmdec1-rndmdec1*i
  1722. RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad((90-rndmd)), math.rad(90), math.rad((10-(rndmd*2))-20*i))
  1723. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-90-10*i), math.rad(0), math.rad(0))
  1724. LW.C0 = CFrame.new(-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45))
  1725. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1726. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1727. end
  1728. for i = 0 , 1 , 0.1 do
  1729. wait()
  1730. RW.C0 = CFrame.new(1*i,0.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad(90-20*i), math.rad(90-90*i), math.rad(-10-35*i))
  1731. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-100+100*i), math.rad(0), math.rad(0))
  1732. LW.C0 = CFrame.new(-0.5-0.5*i,0.5,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80-10*i),math.rad(-45+45*i),math.rad(45))
  1733. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1734. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(90-45*i)) * CFrame.new(0, 0, 0.2)
  1735. end
  1736. ss(Head,1.5)
  1737. fs(Head,0.5+1.5*math.random())
  1738. wait(0.1)
  1739. Hitdeb = 0
  1740. for i = 0 , 1 , 0.2 do
  1741. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1742. wait()
  1743. RW.C0 = CFrame.new(1,0.5+1*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(70+65*i), math.rad(0), math.rad(-45))
  1744. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1745. LW.C0 = CFrame.new(-1,0.5+1*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(70+65*i),math.rad(0),math.rad(45))
  1746. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1747. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(45)) * CFrame.new(0, 0, 0.2)
  1748. if FTCount <= MaxFT then
  1749. local eff = effect("Bright red",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
  1750. eff.Transparency = 1
  1751. table.insert(efftab,eff)
  1752. FTCount = FTCount + 1
  1753. OTND(eff)
  1754. coroutine.resume(coroutine.create(function()
  1755. for i = 0 , 1 , 0.15 do
  1756. wait()
  1757. eff.Transparency = 1-0.5*i
  1758. end
  1759. wait()
  1760. eff.Transparency = 0.5
  1761. end))
  1762. end
  1763. end
  1764. coroutine.resume(coroutine.create(function()
  1765. wait(5)
  1766. for _,eff in pairs(efftab) do
  1767. wait()
  1768. eff.Parent = nil
  1769. FTCount = FTCount - 1
  1770. end end))
  1771. for i = 0 , 1 , 0.1 do
  1772. wait()
  1773. RW.C0 = CFrame.new(1,1.5-1*i,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(135-55*i), math.rad(45*i), math.rad(-45))
  1774. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1775. LW.C0 = CFrame.new(-1,1.5-1*i,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(135-55*i),math.rad(-45*i),math.rad(45))
  1776. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1777. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(45+45*i)) * CFrame.new(0, 0, 0.2)
  1778. end
  1779. dmgdc()
  1780. attack=false
  1781. end
  1782.  
  1783.  
  1784. function LifeDrain()
  1785. attack=true
  1786. for i = 0 , 1 , 0.1 do
  1787. wait()
  1788. RW.C0 = CFrame.new(1,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i), math.rad(45), math.rad(-45+90*i))
  1789. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90*i), math.rad(0))
  1790. LW.C0 = CFrame.new(-1+1.25*i,0.5+0.25*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+25*i),math.rad(-45+90*i),math.rad(45+25*i))
  1791. LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90*i), math.rad(0))
  1792. w1.C1 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 0,0)
  1793. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1794. end
  1795. ------
  1796. local nrmag = 50
  1797. local nrprsn = nil
  1798. wait()
  1799. --
  1800. local c = game.Workspace:GetChildren();
  1801. for i = 1, #c do
  1802. local hum = c[i]:findFirstChild("Humanoid")
  1803. if hum ~= nil and hum.Health ~= 0 then
  1804. local head = c[i]:findFirstChild("Torso");
  1805. if head ~= nil then
  1806. local targ = head.Position - Torso.Position;
  1807. local mag = targ.magnitude;
  1808. if mag <= 50 and c[i].Name ~= Player.Name then
  1809. if mag < nrmag then
  1810. nrmag = mag
  1811. nrprsn = c[i]
  1812. end
  1813. end end end end
  1814. --
  1815. if nrprsn == nil then
  1816. attack = false
  1817. return end
  1818. local C = 0
  1819. local bp = Instance.new("BodyPosition")
  1820. local bg = Instance.new("BodyGyro")
  1821. bp.Parent = Torso
  1822. bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1823. bp.P = bp.P + 10000
  1824. local CF = nrprsn.Torso.CFrame
  1825. bp.position = CF.p + CFrame.new(Torso.Position,CF.p).lookVector * -3
  1826. bg.Parent = Torso
  1827. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1828. bg.P = bg.P + 100000
  1829. bg.cframe = CFrame.new(Torso.Position,CF.p) * CFrame.Angles(math.rad(0),0,0)
  1830. ss(Head,2)
  1831. wait(0.1)
  1832. local FirstP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1833. local LastP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1834. for i = 0 , 1 , 0.2 do
  1835. wait()
  1836. C = C + 1
  1837. RW.C0 = CFrame.new(1-1*i,0.5,-1*i) * CFrame.fromEulerAnglesXYZ(math.rad(135-90*i), math.rad(45), math.rad(45-135*i))
  1838. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(0))
  1839. LW.C0 = CFrame.new(0.25-1.75*i,0.75-0.25*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(105-60*i),math.rad(45),math.rad(70-125*i))
  1840. LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(0))
  1841. w1.C1 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 0,0)
  1842. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1843. if C == 3 then
  1844. bp.P = bp.P + 10000
  1845. bp.position = CF.p + CFrame.new(Torso.Position,CF.p).lookVector * 6
  1846. bg.cframe = CFrame.new(Torso.Position,CF.p) * CFrame.Angles(math.rad(-45),0,0)
  1847. end
  1848. if C == 2 then
  1849. FirstP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1850. elseif C == 5 then
  1851. LastP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1852. end
  1853. end
  1854. local effectsmsh = Instance.new("SpecialMesh")
  1855. effectsmsh.Scale = Vector3.new(5,1,5)
  1856. effectsmsh.MeshType = "Sphere"
  1857. local effectsg = Instance.new("Part")
  1858. effectsg.formFactor = 3
  1859. effectsg.CanCollide = false
  1860. effectsg.Name = "Eff"
  1861. effectsg.Locked = true
  1862. effectsg.Anchored = true
  1863. effectsg.Size = Vector3.new(0.2,1,0.2)
  1864. effectsg.Parent = swordholder
  1865. effectsmsh.Parent = effectsg
  1866. effectsg.BrickColor = BrickColor.new("White")
  1867. effectsg.Reflectance = Ref
  1868. local point1 = FirstP
  1869. local LP = LastP
  1870. local mg = (LP.p - point1.p).magnitude
  1871. effectsg.Size = Vector3.new(0.2,mg,0.2)
  1872. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1873. if returnn then return effectsg end
  1874. coroutine.resume(coroutine.create(function()
  1875. if not returnn then
  1876. for i = 0 , 1 , 0.1 do
  1877. wait()
  1878. effectsg.Transparency = 1*i
  1879. end
  1880. wait()
  1881. effectsg.Parent = nil
  1882. end
  1883. end))
  1884. local critrandomizer = math.random(1,crtrate)
  1885. local rndmdamage = 0
  1886. if critrandomizer ~= 1 then
  1887. rndmdamage = math.random(mindamage,maxdamage)
  1888. damagesplat(rndmdamage,nrprsn.Head,false)
  1889. nrprsn.Humanoid:TakeDamage(rndmdamage)
  1890. elseif critrandomizer == 1 then
  1891. rndmdamage = math.random(maxdamage,crtmaxdamage)
  1892. damagesplat(rndmdamage,nrprsn.Head,true)
  1893. nrprsn.Humanoid:TakeDamage(rndmdamage)
  1894. end
  1895. local tempmod = Instance.new("Model",Workspace)
  1896. for l = 1 , rndmdamage/5 do
  1897. local meshz = Instance.new("SpecialMesh")
  1898. meshz.Scale = Vector3.new(1.5,1.5,1.5)
  1899. meshz.MeshType = "Sphere"
  1900. local shellz = Instance.new("Part")
  1901. meshz.Parent = shellz
  1902. shellz.Anchored = false
  1903. shellz.formFactor = 0
  1904. shellz.Size = Vector3.new(1,1,1)
  1905. shellz.CFrame = hitbox.CFrame
  1906. shellz.Parent = tempmod
  1907. shellz.Transparency = 0.5
  1908. shellz.BrickColor = BrickColor.new("White")
  1909. shellz.CanCollide = false
  1910. shellz.Reflectance = 0
  1911. local bv = Instance.new("BodyPosition")
  1912. bv.Parent = shellz
  1913. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1914. bv.P = bv.P + 10000
  1915. bv.position = shellz.Position + Vector3.new(math.random(-25,25),math.random(-2.5,7.5),math.random(-25,25))
  1916. coroutine.resume(coroutine.create(function()
  1917. wait(3)
  1918. bv.maxForce = Vector3.new(0,math.huge,0)
  1919. coroutine.resume(coroutine.create(function()
  1920. local dd = false
  1921. while shellz.Transparency ~= 1 and not dd do
  1922. wait(0.1)
  1923. local cc = game.Workspace:GetChildren();
  1924. for i = 1, #c do
  1925. local hum = cc[i]:findFirstChild("Humanoid")
  1926. if hum ~= nil and hum.Health ~= 0 then
  1927. local head = cc[i]:findFirstChild("Head");
  1928. if head ~= nil then
  1929. local targ = head.Position - shellz.Position;
  1930. local mag = targ.magnitude;
  1931. if mag <= 5 then
  1932. dd = true
  1933. damagesplat(5+darkboost,head,false)
  1934. hum.Health = hum.Health + 5 + darkboost
  1935. for i = 0 , 1 , 0.05 do
  1936. wait()
  1937. shellz.Transparency = 1*i
  1938. end
  1939. shellz.Parent = nil
  1940. end
  1941. end
  1942. end
  1943. end
  1944. end
  1945. end))
  1946.  
  1947. end))
  1948. local hx = false
  1949. coroutine.resume(coroutine.create(function()
  1950. for i = 0 , 1 , 0.05 do
  1951. wait()
  1952. shellz.Transparency = 1-1*i
  1953. end
  1954. shellz.Transparency = 0
  1955. end))
  1956. coroutine.resume(coroutine.create(function()
  1957. wait(60)
  1958. for ii,shellz in pairs(tempmod:GetChildren()) do
  1959. for i = 0 , 1 , 0.1 do
  1960. wait()
  1961. shellz.Transparency = 1*i
  1962. end
  1963. shellz.Parent = nil
  1964. end
  1965. tempmod.Parent = nil
  1966. end))
  1967. end
  1968. wait(0.5)
  1969. ----
  1970. RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(-45))
  1971. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1972. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45))
  1973. LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1974. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  1975. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1976. attack=false
  1977. bp.Parent = nil bg.Parent = nil
  1978. end
  1979.  
  1980.  
  1981. --TEST
  1982.  
  1983. hammer = Torso
  1984.  
  1985. function doDamage(hit)
  1986. local humanoid = hit.Parent:findFirstChild("Humanoid")
  1987. local hum = Player.Character:findFirstChild("Humanoid") -- non-nil if tool held by a character
  1988. if humanoid~=nil and humanoid ~= hum and hum ~= nil then
  1989. local foundd = false
  1990. for ii = 1 , #AoETrue do
  1991. if AoETrue[ii] == hit.Parent.Name then
  1992. foundd = true
  1993. end
  1994. end
  1995. if foundd then
  1996. end
  1997. --
  1998. if not foundd then
  1999. humanoid:TakeDamage(5)
  2000. if Mode == "Fire" then
  2001. end
  2002. damagesplat(5,humanoid.Parent.Torso,false)
  2003. table.insert(AoETrue,hit.Parent)
  2004. end
  2005.  
  2006. if humanoid.Health <= 0 then
  2007. local c = hit.CFrame
  2008. hit.CFrame = CFrame.new(hit.Position)
  2009. hit.CFrame = c
  2010. end
  2011. delay(1, function() end)
  2012. else
  2013. local c = hit.CFrame hit.CFrame = CFrame.new(hit.Position) hit.CFrame = c
  2014. end
  2015. end
  2016. function bewm(obj, pos, notme)
  2017. if (obj ~= notme) then
  2018. if (obj.className == "Part") or (obj.className == "Seat") then
  2019. if (not obj.Anchored) and (((pos - obj.Position) * Vector3.new(1, 0, 1)).magnitude < 24) and (pos.y <= obj.Position.y + 2) and (pos.y >= obj.Position.y - 2) then
  2020. delay((pos - obj.Position).magnitude / 24, function() obj.Velocity = ((obj.Position - pos).unit + Vector3.new(0, 0.5, 0)) * 96 + obj.Velocity obj.RotVelocity = obj.RotVelocity + Vector3.new(obj.Position.z - pos.z, 0, pos.x - obj.Position.x).unit * 40 doDamage(obj) end)
  2021. end
  2022. elseif (obj.className == "Model") or (obj.className == "Hat") or (obj.className == "Tool") or (obj == workspace) then
  2023. local list = obj:GetChildren()
  2024. for x = 1, #list do
  2025. bewm(list[x], pos, notme)
  2026. end
  2027. end
  2028. end
  2029. end
  2030.  
  2031. function attackr()
  2032. local shockRing = Instance.new("Part")
  2033. shockRing.formFactor = 2
  2034. shockRing.Size = Vector3.new(1, 0.4, 1)
  2035. shockRing.Anchored = true
  2036. shockRing.Locked = true
  2037. shockRing.CanCollide = false
  2038. shockRing.archivable = false
  2039. shockRing.TopSurface = 0
  2040. shockRing.BottomSurface = 0
  2041. shockRing.Transparency = 0
  2042. if Mode == "Fire" then
  2043. shockRing.BrickColor = BrickColor.new("Really red")
  2044. elseif Mode == "Dark" then
  2045. shockRing.BrickColor = BrickColor.new("Bright violet")
  2046. elseif Mode == "Ice" then
  2047. shockRing.BrickColor = BrickColor.new("Bright blue")
  2048. shockRing.Reflectance = 0.2
  2049. end
  2050. local decal = Instance.new("CylinderMesh")
  2051. decal.Parent = shockRing
  2052. decal.Scale = Vector3.new(1,0.1,1)
  2053. wait(0.2)
  2054. local pos = hammer.CFrame * (Vector3.new(0, -2.5, 0))
  2055. bewm(game.Workspace, pos, Player.Character)
  2056. shockRing.CFrame = CFrame.new(pos)
  2057. for x = 0, 1 , 0.0625 do
  2058. delay((x*16) / 30, function() shockRing.Parent = nil shockRing.Size = Vector3.new(0, 0.4, 0) + Vector3.new(3.2, 0, 3.2) * (x*16) shockRing.Transparency = 1*x shockRing.Parent = Player.Character end)
  2059. end
  2060. delay(1, function()
  2061. shockRing.Parent = nil
  2062. for ii = 1 , #AoETrue do
  2063. table.remove(AoETrue,#AoETrue)
  2064. end end)
  2065. end
  2066. local modemodel = Instance.new("Model",swordholder)
  2067. local mrdychng = false
  2068. function FireMode()
  2069. attack=true
  2070. Mode = "Fire"
  2071. fireboost = 5
  2072. mrdychng = true
  2073. for i = 0 , 1 , 0.1 do
  2074. wait()
  2075. RW.C0 = CFrame.new(1+0.5*i,0.5+1*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i), math.rad(45-45*i), math.rad(-45+45*i))
  2076. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  2077. LW.C0 = CFrame.new(-1+1*i,0.5+1*i,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80-80*i),math.rad(-45+45*i),math.rad(45+65*i))
  2078. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2079. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  2080. end
  2081. cs(Head,1.5)
  2082. local tempmod = Instance.new("Model",swordholder)
  2083. for l = 1 , 20 do
  2084. local meshz = Instance.new("SpecialMesh")
  2085. meshz.Scale = Vector3.new(0.5,0.5,0.5)
  2086. meshz.MeshType = "Sphere"
  2087. local shellz = Instance.new("Part")
  2088. meshz.Parent = shellz
  2089. shellz.Anchored = false
  2090. shellz.formFactor = 0
  2091. shellz.Size = Vector3.new(1,1,1)
  2092. shellz.CFrame = hitbox.CFrame * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2093. shellz.Parent = tempmod
  2094. shellz.Transparency = 0.5
  2095. shellz.BrickColor = BrickColor.new("Really red")
  2096. shellz.CanCollide = false
  2097. shellz.Reflectance = 0
  2098. local bv = Instance.new("BodyPosition")
  2099. bv.Parent = shellz
  2100. bv.maxForce = Vector3.new(200000,200000,200000)
  2101. bv.position = shellz.Position
  2102. coroutine.resume(coroutine.create(function()
  2103. for i = 0 , 1 , 0.025 do
  2104. wait()
  2105. shellz.Transparency = 1-1*i
  2106. end
  2107. shellz.Transparency = 0
  2108. end))
  2109. coroutine.resume(coroutine.create(function()
  2110. wait(0.05)
  2111. bv.position = hitbox.Position
  2112. for i = 1 , 20 do
  2113. wait(0.1)
  2114. bv.position = shell.Position
  2115. end
  2116. shellz.Parent = nil
  2117. end))
  2118. wait(0.01)
  2119. end
  2120. coroutine.resume(coroutine.create(function ()
  2121. wait(0.25)
  2122. tempmod.Parent = nil
  2123. end))
  2124. for i = 0 , 1 , 0.2 do
  2125. wait()
  2126. RW.C0 = CFrame.new(1.5,1.5-1*i,0) * CFrame.fromEulerAnglesXYZ(math.rad(135-45*i), math.rad(0), math.rad(0))
  2127. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  2128. LW.C0 = CFrame.new(0,1.5-1*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(110-45*i))
  2129. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2130. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(90)) * CFrame.new(0, 0, 0.2)
  2131. end
  2132. bs(Head,0.75)
  2133. attackr()
  2134. for zz = 1 , 1 do
  2135. local mesh = Instance.new("SpecialMesh")
  2136. mesh.MeshType = "FileMesh"
  2137. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2138. mesh.Scale = Vector3.new(10,5,10) * Vector3.new(0.01,0.01,0.01)
  2139. local shell = Instance.new("Part")
  2140. mesh.Parent = shell
  2141. shell.Anchored = true
  2142. shell.formFactor = 1
  2143. shell.Size = Vector3.new(1,1,1)
  2144. shell.CFrame = Torso.CFrame * CFrame.new(0,-1.5,0)
  2145. shell.Parent = swordholder
  2146. shell.Transparency = 0
  2147. shell.BrickColor = BrickColor.new("Really red")
  2148. shell.CanCollide = false
  2149. coroutine.resume(coroutine.create(function()
  2150. for i = 0 , 1 , 0.075 do
  2151. wait()
  2152. mesh.Scale = Vector3.new(20,5,20) * Vector3.new(i,1,i)
  2153. shell.Transparency = 1*i
  2154. end
  2155. shell.Transparency = 1
  2156. shell.Parent = nil
  2157. end))
  2158. end
  2159. for zz = 1 , 1 do
  2160. local mesh = Instance.new("SpecialMesh")
  2161. mesh.MeshType = "FileMesh"
  2162. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2163. mesh.Scale = Vector3.new(10,20,10) * Vector3.new(0.01,0.01,0.01)
  2164. local shell = Instance.new("Part")
  2165. mesh.Parent = shell
  2166. shell.Anchored = true
  2167. shell.formFactor = 1
  2168. shell.Size = Vector3.new(1,1,1)
  2169. shell.CFrame = Torso.CFrame * CFrame.new(0,1,0)
  2170. shell.Parent = swordholder
  2171. shell.Transparency = 0
  2172. shell.BrickColor = BrickColor.new("Really red")
  2173. shell.CanCollide = false
  2174. coroutine.resume(coroutine.create(function()
  2175. for i = 0 , 1 , 0.05 do
  2176. wait()
  2177. mesh.Scale = Vector3.new(10,20,10) * Vector3.new(i,1,i)
  2178. shell.Transparency = 1*i
  2179. end
  2180. shell.Transparency = 1
  2181. shell.Parent = nil
  2182. end))
  2183. end
  2184. for zz = 1 , 3 do
  2185. local mesh = Instance.new("SpecialMesh")
  2186. mesh.MeshType = "Sphere"
  2187. mesh.Scale = Vector3.new(5*zz,5*zz,5*zz) * Vector3.new(0.01,0.01,0.01)
  2188. local shell = Instance.new("Part")
  2189. mesh.Parent = shell
  2190. shell.Anchored = true
  2191. shell.formFactor = 3
  2192. shell.Size = Vector3.new(1,1,1)
  2193. shell.CFrame = Torso.CFrame * CFrame.new(0,-1,0)
  2194. shell.Parent = swordholder
  2195. shell.Transparency = 0
  2196. if math.fmod(zz,2) == 1 then
  2197. shell.BrickColor = BrickColor.new("Bright orange")
  2198. elseif math.fmod(zz,2) == 0.5 then
  2199. shell.BrickColor = BrickColor.new("Bright red")
  2200. else
  2201. shell.BrickColor = BrickColor.new("Bright yellow")
  2202. end
  2203. shell.CanCollide = false
  2204. coroutine.resume(coroutine.create(function()
  2205. for i = 0 , 1 , 0.025 do
  2206. wait()
  2207. mesh.Scale = Vector3.new(10*zz,10*zz,10*zz) * Vector3.new(i,i,i)
  2208. shell.Transparency = 1*i
  2209. end
  2210. shell.Transparency = 1
  2211. shell.Parent = nil
  2212. end))
  2213. end
  2214.  
  2215.  
  2216. for ii,z in pairs(modemodel:GetChildren()) do
  2217. z.Parent = nil
  2218. end
  2219.  
  2220. local wing1m = Instance.new("BlockMesh")
  2221. wing1m.Scale = Vector3.new(1,1,1)
  2222. local wing1p = Instance.new("Part")
  2223. wing1p.formFactor = 3
  2224. wing1p.CanCollide = false
  2225. wing1p.Name = "FlameWingP1"
  2226. wing1p.Locked = true
  2227. wing1p.Size = Vector3.new(0.2,0.2,0.2)
  2228. wing1p.Parent = modemodel
  2229. wing1m.Parent = wing1p
  2230. wing1p.BrickColor = BrickColor.new("Bright red")
  2231. wing1p.Transparency = 1
  2232. local wing1w = Instance.new("Weld")
  2233. wing1w.Parent = wing1p
  2234. wing1w.Part0 = wing1p
  2235. wing1w.Part1 = Torso
  2236. wing1w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0 , 0)
  2237. wing1w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(-1, 0, 0)
  2238. local wing2m = Instance.new("BlockMesh")
  2239. wing2m.Scale = Vector3.new(1,1,1)
  2240. local wing2p = Instance.new("Part")
  2241. wing2p.formFactor = 3
  2242. wing2p.CanCollide = false
  2243. wing2p.Name = "FlameWingP2"
  2244. wing2p.Locked = true
  2245. wing2p.Size = Vector3.new(0.2,0.2,0.2)
  2246. wing2p.Parent = modemodel
  2247. wing2m.Parent = wing2p
  2248. wing2p.BrickColor = BrickColor.new("Bright red")
  2249. wing2p.Transparency = 1
  2250. local wing2w = Instance.new("Weld")
  2251. wing2w.Parent = wing2p
  2252. wing2w.Part0 = wing2p
  2253. wing2w.Part1 = Torso
  2254. wing2w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0 , 0)
  2255. wing2w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(1, 0, 0)
  2256. coroutine.resume(coroutine.create(function()
  2257. for ringi = math.rad(-20) , math.rad(130) , math.rad(10) do
  2258. wait(0.1)
  2259. local ringm = Instance.new("BlockMesh")
  2260. ringm.Scale = Vector3.new(1,1,1)
  2261. local ringp = Instance.new("Part")
  2262. ringp.formFactor = 3
  2263. ringp.CanCollide = false
  2264. ringp.Name = "FlameWing"..ringi
  2265. ringp.Locked = true
  2266. ringp.Size = Vector3.new(0.2,2,0.8)
  2267. ringp.Parent = modemodel
  2268. ringm.Parent = ringp
  2269. ringp.BrickColor = BrickColor.new("Bright red")
  2270. ringp.Reflectance = 0.1
  2271. ringp.Transparency = 1
  2272. local ringw = Instance.new("Weld")
  2273. ringw.Parent = ringp
  2274. ringw.Part0 = ringp
  2275. ringw.Part1 = wing1p
  2276. ringw.C1 = CFrame.fromEulerAnglesXYZ(ringi, 0, 0) * CFrame.new(0, ringp.Size.y/4 , 0)
  2277. ringw.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(45)) * CFrame.new(0, -1, 0) --* CFrame.new(-0.6, 0, 0) ---msh5.Scale.x/1.625
  2278. coroutine.resume(coroutine.create(function()
  2279. for i = 0 , 1 , 0.025 do
  2280. wait()
  2281. ringp.Transparency = 1-1*i
  2282. end
  2283. ringp.Transparency = 0
  2284. end))
  2285. end end))
  2286. coroutine.resume(coroutine.create(function()
  2287. for ringi = math.rad(-20) , math.rad(130) , math.rad(10) do
  2288. wait(0.1)
  2289. local ringm = Instance.new("BlockMesh")
  2290. ringm.Scale = Vector3.new(1,1,1)
  2291. local ringp = Instance.new("Part")
  2292. ringp.formFactor = 3
  2293. ringp.CanCollide = false
  2294. ringp.Name = "FlameWing2_"..ringi
  2295. ringp.Locked = true
  2296. ringp.Size = Vector3.new(0.2,2,0.8)
  2297. ringp.Parent = modemodel
  2298. ringm.Parent = ringp
  2299. ringp.BrickColor = BrickColor.new("Bright red")
  2300. ringp.Reflectance = 0.1
  2301. ringp.Transparency = 1
  2302. local ringw = Instance.new("Weld")
  2303. ringw.Parent = ringp
  2304. ringw.Part0 = ringp
  2305. ringw.Part1 = wing2p
  2306. ringw.C1 = CFrame.fromEulerAnglesXYZ(ringi+math.rad(0), 0, 0) * CFrame.new(-0, ringp.Size.y/4 , 0)
  2307. ringw.C0 = CFrame.fromEulerAnglesXYZ(0, 0,math.rad(-45)) * CFrame.new(-0, -1, 0)
  2308. coroutine.resume(coroutine.create(function()
  2309. for i = 0 , 1 , 0.025 do
  2310. wait()
  2311. ringp.Transparency = 1-1*i
  2312. end
  2313. ringp.Transparency = 0
  2314. end))
  2315. end end))
  2316. local wingp1m = Instance.new("SpecialMesh")
  2317. wingp1m.Scale = Vector3.new(1,1,1)
  2318. wingp1m.MeshType = "Sphere"
  2319. local wingp1p = Instance.new("Part")
  2320. wingp1p.formFactor = 3
  2321. wingp1p.CanCollide = false
  2322. wingp1p.Name = "FlameOrb"
  2323. wingp1p.Locked = true
  2324. wingp1p.Size = Vector3.new(1,1,1)
  2325. wingp1p.Parent = modemodel
  2326. wingp1m.Parent = wingp1p
  2327. wingp1p.Reflectance = 0.2
  2328. wingp1p.BrickColor = BrickColor.new("Bright red")
  2329. local wingp1w = Instance.new("Weld")
  2330. wingp1w.Parent = wingp1p
  2331. wingp1w.Part0 = wingp1p
  2332. wingp1w.Part1 = Torso
  2333. wingp1w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0 , 0)
  2334. wingp1w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(0, -0.5, 0.5)
  2335. coroutine.resume(coroutine.create(function()
  2336. for i = 0 , 1 , 0.025 do
  2337. wait()
  2338. wingp1p.Transparency = 1-1*i
  2339. end
  2340. wingp1p.Transparency = 0
  2341. end))
  2342. local Firee = modemodel
  2343. local Spawn = wingp1p
  2344. local colors = {BrickColor.new("Bright red"),BrickColor.new("Bright yellow"),BrickColor.new("Bright orange")}
  2345. local Embers = {}
  2346. local modelz = Instance.new("Model",Firee)
  2347. modelz.Name = "FireHolder"
  2348. for X = 1, 15 do
  2349. local f = Instance.new("Part")
  2350. f.Parent = nil
  2351. f.BrickColor = colors[math.random(1, # colors)]
  2352. f.Size = Vector3.new(1,1,1)
  2353. f.formFactor = 3
  2354. f.Anchored = true
  2355. f.Locked = true
  2356. f.CanCollide = false
  2357. f.Transparency = 0.5
  2358. f.Name = "Fire"
  2359. f.TopSurface = 0
  2360. f.BottomSurface = 0
  2361. Instance.new("BlockMesh",f)
  2362. table.insert(Embers, f)
  2363. end
  2364. local R = 0
  2365. coroutine.resume(coroutine.create(function ()
  2366. repeat
  2367. wait()
  2368. R = R + 1
  2369. for X = 1, # Embers do
  2370. Embers[X].Parent = modelz
  2371. local FM = math.fmod(R + X, # Embers)
  2372. if FM == 1 then
  2373. RandPos = Vector3.new(math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10, Spawn.Size.y / 2, math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10)
  2374. RandDir = Vector3.new(math.random(-100,100), math.random(-100,100), math.random(-100,100))
  2375. Embers[X].CFrame = CFrame.new(Spawn.Position + RandPos, (Spawn.Position * rndm) + RandPos + RandDir)
  2376. Embers[X].Mesh.Scale = Vector3.new(1,1,1)
  2377. else
  2378. Embers[X].CFrame = Embers[X].CFrame + Embers[X].CFrame.lookVector*0.5
  2379. Embers[X].Mesh.Scale = Embers[X].Mesh.Scale - Vector3.new(0.1,0.1,0.1)
  2380. end
  2381. end
  2382. until wingp1p.Parent == nil
  2383. for i = 0 ,1 , 0.1 do
  2384. wait(0.2)
  2385. for X = 1, # Embers do
  2386. Embers[X].Transparency = 0.5+0.5*i
  2387. end
  2388. end
  2389. for X = 1, # Embers do
  2390. Embers[X].Parent = nil
  2391. end
  2392. end))
  2393. for ii = 1 , #AoETrue do
  2394. table.remove(AoETrue,#AoETrue)
  2395. end
  2396. wait(0.25)
  2397. for i = 0 , 1 , 0.1 do
  2398. wait()
  2399. RW.C0 = CFrame.new(1.5,0.5+0.5*i,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+25*i), math.rad(0), math.rad(0))
  2400. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  2401. LW.C0 = CFrame.new(0,0.5+0.5*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(65+25*i))
  2402. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2403. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(90)) * CFrame.new(0, 0, 0.2)
  2404. end
  2405. for i = 0 , 1 , 0.1 do
  2406. wait()
  2407. RW.C0 = CFrame.new(1.5,1-0.5*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(115-35*i), math.rad(45*i), math.rad(-45*i))
  2408. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  2409. LW.C0 = CFrame.new(-1*i,1-0.5*i,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80*i),math.rad(0),math.rad(90-45*i))
  2410. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2411. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  2412. end
  2413. RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(-45))
  2414. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  2415. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45))
  2416. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2417. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
  2418. attack=false
  2419. wait(1.5)
  2420. mrdychng = false
  2421. end
  2422. function NeutralMode()
  2423. attack=true
  2424. Mode = "None"
  2425. fireboost = 0
  2426. iceboost = 0
  2427. darkboost = 0
  2428. ss(Head,1)
  2429. cs(Head,2)
  2430. mrdychng = true
  2431. for i = 0 , 1 , 0.2 do
  2432. wait()
  2433. RW.C0 = CFrame.new(1+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i), math.rad(45), math.rad(-45+45*i))
  2434. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100*i), math.rad(0), math.rad(0))
  2435. LW.C0 = CFrame.new(-1-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i),math.rad(-45),math.rad(45-45*i))
  2436. LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100*i), math.rad(0), math.rad(0))
  2437. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2438. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(70*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  2439. end
  2440. coroutine.resume(coroutine.create(function()
  2441. for ii,z in pairs(modemodel:GetChildren()) do
  2442. if string.sub(z.Name,0,string.len(z.Name)-1) ~= "FlameWingP" then
  2443. wait()
  2444. coroutine.resume(coroutine.create(function()
  2445. for i = 0 , 1 , 0.1 do
  2446. wait()
  2447. z.Transparency = (1-z.Transparency)*i
  2448. end
  2449. z.Parent = nil
  2450. end))
  2451. end
  2452. end
  2453. wait(0.5)
  2454. for ii,z in pairs(modemodel:GetChildren()) do
  2455. wait()
  2456. z.Parent = nil
  2457. end
  2458. end))
  2459. for i = 0 , 1 , 0.1 do
  2460. wait()
  2461. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(45), math.rad(0))
  2462. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100+20*i), math.rad(0), math.rad(0))
  2463. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(-45),math.rad(0))
  2464. LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100+20*i), math.rad(0), math.rad(0))
  2465. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2466. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(70+20*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  2467. end
  2468.  
  2469. wait(0.25)
  2470. for i = 0 , 1 , 0.1 do
  2471. wait()
  2472. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i), math.rad(45), math.rad(-45*i))
  2473. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(120-120*i), math.rad(0), math.rad(0))
  2474. LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i),math.rad(-45),math.rad(45*i))
  2475. LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(120-120*i), math.rad(0), math.rad(0))
  2476. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2477. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90-90*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  2478. end
  2479. RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(-45))
  2480. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  2481. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45))
  2482. LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  2483. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2484. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
  2485. attack=false
  2486. wait(0.5)
  2487. mrdychng = false
  2488. end
  2489.  
  2490. function ob1d(mouse)
  2491. hold = true
  2492. if attack == true then return end
  2493. end
  2494. function ob1u(mouse)
  2495. end
  2496. buttonhold = false
  2497. function key(key)
  2498. if attack == true then return end
  2499. if key == "q" then
  2500. if attacktype == 1 then
  2501. Combo1a()
  2502. elseif attacktype == 2 then
  2503. Combo1b()
  2504. elseif attacktype == 3 then
  2505. Combo1c()
  2506. end
  2507. end
  2508. if key == "e" then
  2509. if attacktype == 1 then
  2510. BlizzardSword()
  2511. end
  2512. end
  2513. if key == "r" then
  2514. FlameTrail()
  2515. end
  2516. if key == "t" then
  2517. LifeDrain()
  2518. end
  2519. if Mode == "None" and not mrdychng then
  2520. if key == "z" then
  2521. FireMode()
  2522. end
  2523. elseif not mrdychng then
  2524. if key == "z" or key == "x" or key == "c" then
  2525. NeutralMode()
  2526. end
  2527. end
  2528. end
  2529.  
  2530. function key2(key)
  2531. end
  2532. function s(mouse)
  2533. repeat wait() until not attack
  2534. while ev.Value ~= false do
  2535. wait(0.1)
  2536. end
  2537. MMouse = mouse
  2538. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2539. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2540. mouse.KeyDown:connect(key)
  2541. mouse.KeyUp:connect(key2)
  2542. equipanim()
  2543. ev.Value = true
  2544. --[[
  2545. script.Parent = Bin.Parent
  2546. Bin:remove()]]
  2547. end
  2548. function ds(mouse)
  2549. repeat wait() until not attack
  2550. while ev.Value == false do
  2551. wait(0.1)
  2552. end
  2553.  
  2554. hideanim()
  2555. wait(0.1)
  2556. ev.Value = false
  2557. end
  2558. Bin.Selected:connect(s)
  2559. Bin.Deselected:connect(ds)
  2560.  
  2561.  
  2562. --lego
Add Comment
Please, Sign In to add comment