Advertisement
memberhero

Magic

Aug 7th, 2018
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 = {}InternalData.RealOwner = owner;InternalData.Version = "v1.0.0"
  2. do
  3. script.Parent = InternalData.RealOwner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5. local function createObject (connections, index)
  6. local proxy = newproxy (true);local meta = getmetatable (proxy);
  7. local runbind = function (self, i, ...) connections[i]:Fire (...); end;
  8. while (#connections > 0) do connections [table.remove (connections, 1)] = Instance.new ('BindableEvent');end;
  9. meta.__index = function (self, i)
  10. if (i == 'TriggerEvent') then return runbind end;
  11. return connections[i] and connections[i].Event or index[i];
  12. end;
  13. meta.__newindex = index;meta.__metatable = false;return proxy
  14. end;
  15. local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
  16. local UserInputService = createObject({"InputBegan","InputEnded"},{})
  17. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  18. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  19. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  20. Event.OnServerEvent:Connect(function(FiredBy,Input)
  21. if FiredBy.Name ~= InternalData.RealOwner.Name then return end
  22. if Input.MouseEvent then
  23. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  24. else
  25. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  26. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
  27. for _,Action in pairs(ContextActionService.Actions) do
  28. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  29. end
  30. Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  31. end
  32. end)
  33. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  34. Event.Parent = NLS([[
  35. local Player = owner;
  36. local Event = script:WaitForChild("UserInput");
  37. local UserInputService = game:GetService("UserInputService");
  38. local Mouse = Player:GetMouse();
  39. local Input = function(Input,gameProcessedEvent)
  40. if gameProcessedEvent then return end
  41. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  42. end
  43. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  44. local Hit,Target
  45. while wait(1/60) do
  46. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  47. Hit = Mouse.Hit;Target = Mouse.Target;
  48. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  49. end
  50. end
  51. ]],InternalData.RealOwner.Character)
  52. end
  53. InternalData.RealInstance = Instance;Instance = setmetatable({},{
  54. __index = function (self,Index)
  55. if Index:lower() == 'new' then
  56. return function (Type, Parent)
  57. local Real = InternalData.RealInstance.new(Type,Parent)
  58. if not Type then return end
  59. if Type == "BillboardGui" then
  60. return setmetatable({},{
  61. __index = function (self,Index)
  62. return Real[Index]
  63. end;
  64. __newindex = function (self,Index,Value)
  65. if Index:lower() == "playertohidefrom" then
  66. if Value.Name == owner.Name then Real[Index] = InternalData.RealOwner else Real[Index] = Value end
  67. else
  68. Real[Index] = Value
  69. end
  70. end;
  71. __tostring = function(self) return tostring(Real) end;
  72. })
  73. end
  74. return Real
  75. end
  76. end
  77. return InternalData.RealInstance[Index]
  78. end;
  79. __tostring = function(self) return tostring(InternalData.RealInstance) end;
  80. });
  81. InternalData.RealGame = game;game = setmetatable({},{
  82. __index = function (self,Index)
  83. local Sandbox = function (Thing)
  84. if Thing:IsA("Player") then
  85. local RealPlayer = Thing
  86. return setmetatable({},{
  87. __index = function (self,Index)
  88. local Type = type(RealPlayer[Index])
  89. if Type == "function" then
  90. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  91. return function (self)return InternalData["Mouse"] end
  92. end
  93. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  94. elseif Index == "FakePlayer" then
  95. return true
  96. end
  97. return RealPlayer[Index]
  98. end;
  99. __tostring = function(self) return tostring(RealPlayer) end
  100. })
  101. end
  102. end
  103. if InternalData.RealGame[Index] then
  104. local Type = type(InternalData.RealGame[Index])
  105. if Type == "function" then
  106. if Index:lower() == "getservice" or Index:lower() == "service" then
  107. return function (self,Service)
  108. local FakeServices = {
  109. ["players"] = function()
  110. return setmetatable({},{
  111. __index = function (self2,Index2)
  112. local RealService = InternalData.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. if Index2:lower() == "localplayer" then return Sandbox(InternalData.RealOwner) end
  118. return RealService[Index2]
  119. end
  120. end;
  121. __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
  122. })
  123. end;
  124. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  125. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  126. ["runservice"] = function()
  127. return setmetatable({},{
  128. __index = function(self2,Index2)
  129. local RealService = InternalData.RealGame:GetService(Service)
  130. local Type2 = type(Index2)
  131. if Type2 == "function" then
  132. return function (self,...) return RealService[Index2](RealService,...) end
  133. else
  134. local RunServices = {
  135. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  136. ["renderstepped"] = function() return RealService["Stepped"] end
  137. }
  138. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  139. return RealService[Index2]
  140. end
  141. end;
  142. __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
  143. })
  144. end
  145. }
  146. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  147. return InternalData.RealGame:GetService(Service)
  148. end
  149. end
  150. return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
  151. else
  152. if game:GetService(Index) then return game:GetService(Index) end
  153. return InternalData.RealGame[Index]
  154. end
  155. end
  156. return nil
  157. end;
  158. __tostring = function(self) return tostring(InternalData.game) end
  159. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
  160.  
  161. --//Paste script below this line.
  162. --[[Magic Unknown, By KillerDarkness0105/Codex#6685.]]--
  163.  
  164.  
  165.  
  166.  
  167.  
  168. Player=game:GetService("Players").LocalPlayer
  169. Character=Player.Character
  170. PlayerGui=Player.PlayerGui
  171. Backpack=Player.Backpack
  172. Torso=Character.Torso
  173. Head=Character.Head
  174. Humanoid=Character.Humanoid
  175. LeftArm=Character["Left Arm"]
  176. LeftLeg=Character["Left Leg"]
  177. RightArm=Character["Right Arm"]
  178. RightLeg=Character["Right Leg"]
  179. LS=Torso["Left Shoulder"]
  180. LH=Torso["Left Hip"]
  181. RS=Torso["Right Shoulder"]
  182. RH=Torso["Right Hip"]
  183. Face = Head.face
  184. Neck=Torso.Neck
  185. it=Instance.new
  186. attacktype=1
  187. attacktype2=1
  188. vt=Vector3.new
  189. it=Instance.new
  190. cf=CFrame.new
  191. cn=CFrame.new
  192. euler=CFrame.fromEulerAnglesXYZ
  193. angles=CFrame.Angles
  194. combo = 0
  195. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  196. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  197. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  198. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  199. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  200. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  201. RootPart=Character.HumanoidRootPart
  202. RootJoint=RootPart.RootJoint
  203. RootCF=euler(-1.57,0,3.14)
  204. attack = false
  205. attackdebounce = false
  206. trispeed=.2
  207. attackmode='none'
  208. local idle=0
  209. local Anim="Idle"
  210. stance = false
  211. local ff = 2
  212. noleg = false
  213. evadecooldown = false
  214. Humanoid.Animator.Parent = nil
  215. local equip = false
  216. local Effects = {}
  217. attackspeed = 0.14
  218. df = false
  219. Swing = 1
  220. local sine = 0
  221. local change = 1
  222. local val = 0
  223. local speed = 0
  224. local rs = game:GetService("RunService").RenderStepped
  225. cam = workspace.CurrentCamera
  226. local RbxUtility = LoadLibrary("RbxUtility")
  227. local Create = RbxUtility.Create
  228. deb = game:GetService("Debris")
  229. Face:Destroy()
  230.  
  231. --game.Lighting.TimeOfDay = 210
  232.  
  233. local eye1 = Instance.new("Part")
  234. eye1.Parent = Character
  235. eye1.Size = Vector3.new(0.2,0.2,0.2)
  236. eye1.Archivable = true
  237. eye1.Transparency = 0
  238. eye1.CanCollide = false
  239. eye1.Material = "Neon"
  240. eye1.Color = Color3.fromRGB(48,0,211)
  241. local eye1mesh = Instance.new("SpecialMesh",eye1)
  242. eye1mesh.MeshType = "Sphere"
  243. eye1mesh.Scale = Vector3.new(0.66,1.22,0.66)
  244. ko2 = eye1mesh.Scale
  245. local eye1weld = Instance.new("Weld")
  246. eye1weld.Parent = eye1
  247. eye1weld.Part0 = Head
  248. eye1weld.Part1 = eye1
  249. eye1weld.C0 = CFrame.new(.13,.19,-.55)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  250. eye1weld.Part0 = Head
  251.  
  252.  
  253.  
  254.  
  255. local eye2 = Instance.new("Part")
  256. eye2.Parent = Character
  257. eye2.Size = Vector3.new(0.2,0.2,0.2)
  258. eye2.Archivable = true
  259. eye2.Transparency = 0
  260. eye2.CanCollide = false
  261. eye2.Material = "Neon"
  262. eye2.Color = Color3.fromRGB(48,0,211)
  263. local eye2mesh = Instance.new("SpecialMesh",eye2)
  264. eye2mesh.MeshType = "Sphere"
  265. eye2mesh.Scale = Vector3.new(0.66,1.22,0.66)
  266. local eye2weld = Instance.new("Weld")
  267. eye2weld.Parent = eye2
  268. eye2weld.Part0 = Head
  269. eye2weld.Part1 = eye2
  270. eye2weld.C0 = CFrame.new(-.13,.19,-.55)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  271. eye2weld.Part0 = Head
  272.  
  273.  
  274.  
  275.  
  276. music = Instance.new("Sound",PlayerGui)
  277. music.Volume = 1
  278. music.TimePosition = 0
  279. music.Pitch = 1
  280. music.SoundId = "rbxassetid://1849245030"
  281. music.Looped = true
  282. music:Play()
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303. so = function(id,par,vol,pit)
  304. coroutine.resume(coroutine.create(function()
  305. local sou = Instance.new("Sound",par or workspace)
  306. sou.Volume=vol
  307. sou.Pitch=pit or 1
  308. sou.SoundId=id
  309. sou:play()
  310. game:GetService("Debris"):AddItem(sou,8)
  311. end))
  312. end
  313.  
  314. --save shoulders
  315. RSH, LSH=nil, nil
  316. --welds
  317. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  318. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  319. LH=Torso["Left Hip"]
  320. RH=Torso["Right Hip"]
  321. TorsoColor=Torso.BrickColor
  322. function NoOutline(Part)
  323. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  324. end
  325. player=Player
  326. ch=Character
  327. RSH=ch.Torso["Right Shoulder"]
  328. LSH=ch.Torso["Left Shoulder"]
  329. --
  330. RSH.Parent=nil
  331. LSH.Parent=nil
  332. --
  333. RW.Name="Right Shoulder"
  334. RW.Part0=ch.Torso
  335. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  336. RW.C1=cf(0, 0.5, 0)
  337. RW.Part1=ch["Right Arm"]
  338. RW.Parent=ch.Torso
  339. --
  340. LW.Name="Left Shoulder"
  341. LW.Part0=ch.Torso
  342. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  343. LW.C1=cf(0, 0.5, 0)
  344. LW.Part1=ch["Left Arm"]
  345. LW.Parent=ch.Torso
  346.  
  347.  
  348. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  349. local wld = Instance.new("Weld", wp1)
  350. wld.Part0 = wp0
  351. wld.Part1 = wp1
  352. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  353. end
  354. local rs = game:GetService("RunService").RenderStepped
  355.  
  356. newWeld(RootPart, Torso, 0, -1, 0)
  357. Torso.Weld.C1 = CFrame.new(0, -1, 0)
  358. newWeld(Torso, LeftLeg, -0.5, -1, 0)
  359. LeftLeg.Weld.C1 = CFrame.new(0, 1, 0)
  360. newWeld(Torso, RightLeg, 0.5, -1, 0)
  361. RightLeg.Weld.C1 = CFrame.new(0, 1, 0)
  362.  
  363. Player=game:GetService('Players').LocalPlayer
  364. Character=Player.Character
  365. mouse=Player:GetMouse()
  366. m=Instance.new('Model',Character)
  367.  
  368.  
  369. local function weldBetween(a, b)
  370. local weldd = Instance.new("ManualWeld")
  371. weldd.Part0 = a
  372. weldd.Part1 = b
  373. weldd.C0 = CFrame.new()
  374. weldd.C1 = b.CFrame:inverse() * a.CFrame
  375. weldd.Parent = a
  376. return weldd
  377. end
  378.  
  379. ArtificialHB = Instance.new("BindableEvent", script)
  380. ArtificialHB.Name = "Heartbeat"
  381.  
  382. script:WaitForChild("Heartbeat")
  383.  
  384. frame = 1 / 80
  385. tf = 0
  386. allowframeloss = false
  387. tossremainder = false
  388. lastframe = tick()
  389. script.Heartbeat:Fire()
  390. game:GetService("RunService").Heartbeat:connect(function(s, p)
  391. tf = tf + s
  392. if tf >= frame then
  393. if allowframeloss then
  394. script.Heartbeat:Fire()
  395. lastframe = tick()
  396. else
  397. for i = 1, math.floor(tf / frame) do
  398. script.Heartbeat:Fire()
  399. end
  400. lastframe = tick()
  401. end
  402. if tossremainder then
  403. tf = 0
  404. else
  405. tf = tf - frame * math.floor(tf / frame)
  406. end
  407. end
  408. end)
  409.  
  410. --[[]
  411. function swait(num)
  412. if num == 0 or num == nil then
  413. ArtificialHB.Event:wait()
  414. else
  415. for i = 0, num do
  416. ArtificialHB.Event:wait()
  417. end
  418. end
  419. end
  420.  
  421. ]]
  422.  
  423.  
  424. function swait(num)
  425. if num == 0 or num == nil then
  426. game:service("RunService").Stepped:wait()
  427. else
  428. for i = 0, num do
  429. game:service("RunService").Stepped:wait()
  430. end
  431. end
  432. end
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441. function RemoveOutlines(part)
  442. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  443. end
  444.  
  445.  
  446. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  447. local fp = it("Part")
  448. fp.formFactor = formfactor
  449. fp.Parent = parent
  450. fp.Reflectance = reflectance
  451. fp.Transparency = transparency
  452. fp.CanCollide = false
  453. fp.Locked = true
  454. fp.BrickColor = brickcolor
  455. fp.Name = name
  456. fp.Size = size
  457. fp.Position = Torso.Position
  458. NoOutline(fp)
  459. if fp.BrickColor == BrickColor.new("Dark indigo") then
  460. fp.Material = "Neon"
  461. else
  462. if fp.BrickColor == BrickColor.new("Really black") then
  463. fp.BrickColor = BrickColor.new("Really black")
  464. fp.Material = "Metal"
  465. else
  466. fp.Material = "Neon"
  467. end
  468. end
  469. fp:BreakJoints()
  470. return fp
  471. end
  472.  
  473. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  474. local mesh = it(Mesh)
  475. mesh.Parent = part
  476. if Mesh == "SpecialMesh" then
  477. mesh.MeshType = meshtype
  478. if meshid ~= "nil" then
  479. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  480. end
  481. end
  482. mesh.Offset = offset
  483. mesh.Scale = scale
  484. return mesh
  485. end
  486. weld = function(parent, part0, part1, c0)
  487. local weld = it("Weld")
  488. weld.Parent = parent
  489. weld.Part0 = part0
  490. weld.Part1 = part1
  491. weld.C0 = c0
  492. return weld
  493. end
  494.  
  495. F1 = Instance.new("Folder", Character)
  496. F1.Name = "Effects Folder"
  497. F2 = Instance.new("Folder", F1)
  498. F2.Name = "Effects"
  499. Triangle = function(a, b, c)
  500. end
  501.  
  502. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, parent)
  503. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  504. prt.Anchored = true
  505. prt.CFrame = cframe
  506. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  507. game:GetService("Debris"):AddItem(prt, 10)
  508. if Type == 1 or Type == nil then
  509. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  510. else
  511. if Type == 2 then
  512. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  513. else
  514. if Type == 3 then
  515. table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh, prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0})
  516. end
  517. end
  518. end
  519. end
  520. MagicSkull = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe)
  521. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  522. prt.Anchored = true
  523. prt.CFrame = cframe
  524. msh = mesh("SpecialMesh", prt, "FileMesh", "14028428", vt(0, 0, 0), vt(x1, y1, z1))
  525. game:GetService("Debris"):AddItem(prt, 10)
  526. table.insert(Effects, {prt, "Skull", delay, x3, y3, z3, msh, goe})
  527. end
  528. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  529. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  530. prt.Anchored = true
  531. prt.CFrame = cframe
  532. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  533. game:GetService("Debris"):AddItem(prt, 10)
  534. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  535. end
  536. MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  537. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  538. prt.Anchored = true
  539. prt.CFrame = cframe * cf(x2, y2, z2)
  540. local msh = mesh("SpecialMesh", prt, "FileMesh", "3270017", vt(0, 0, 0), vt(x1, y1, z1))
  541. game:GetService("Debris"):AddItem(prt, 10)
  542. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  543. end
  544. MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push)
  545. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  546. prt.Anchored = true
  547. prt.CFrame = cframe
  548. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  549. game:GetService("Debris"):AddItem(prt, 10)
  550. table.insert(Effects, {prt, "Blood", delay, x3, y3, z3, msh, push})
  551. end
  552. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  553. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  554. prt.Anchored = true
  555. prt.CFrame = cframe
  556. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  557. game:GetService("Debris"):AddItem(prt, 10)
  558. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  559. end
  560. MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe)
  561. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  562. prt.Anchored = true
  563. prt.CFrame = cframe
  564. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  565. game:GetService("Debris"):AddItem(prt, 10)
  566. table.insert(Effects, {prt, "Cylinder2", delay, x3, y3, z3, msh, goe})
  567. end
  568. MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  569. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  570. prt.Anchored = true
  571. prt.CFrame = cframe
  572. local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  573. game:GetService("Debris"):AddItem(prt, 10)
  574. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  575. end
  576. ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
  577. local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
  578. prt.Anchored = true
  579. prt.CFrame = cframe
  580. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
  581. game:GetService("Debris"):AddItem(prt, 10)
  582. table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
  583. end
  584. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  585. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  586. prt.Anchored = true
  587. prt.CFrame = cframe
  588. local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  589. game:GetService("Debris"):AddItem(prt, 10)
  590. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  591. end
  592. MagicFire = function(brickcolor, cframe, x1, y1, z1, delay)
  593. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  594. prt.Anchored = true
  595. prt.CFrame = cframe
  596. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  597. game:GetService("Debris"):AddItem(prt, 10)
  598. table.insert(Effects, {prt, "Fire", delay, 1, 1, 1, msh})
  599. end
  600. MagicFireWave = function(brickcolor, cframe, x1, y1, z1)
  601. local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
  602. prt.Anchored = true
  603. prt.CFrame = cframe
  604. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  605. d = Instance.new("Decal")
  606. d.Parent = prt
  607. d.Texture = "http://www.roblox.com/asset/?id=26356434"
  608. d.Face = "Top"
  609. d = Instance.new("Decal")
  610. d.Parent = prt
  611. d.Texture = "http://www.roblox.com/asset/?id=26356434"
  612. d.Face = "Bottom"
  613. game:GetService("Debris"):AddItem(prt, 10)
  614. table.insert(Effects, {prt, "FireWave", 1, 30, math.random(400, 600) / 100, msh})
  615. end
  616. ElecEffect = function(cff, x, y, z)
  617. local prt = part(3, workspace, 0, 0, BrickColor.new("White"), "Part", vt(1, 1, 1))
  618. prt.Anchored = true
  619. prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  620. prt.CFrame = cf(prt.Position)
  621. game:GetService("Debris"):AddItem(prt, 10)
  622. xval = math.random() / 3
  623. yval = math.random() / 3
  624. zval = math.random() / 3
  625. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
  626. Effects[#Effects + 1] = {prt, "Elec", 0.2, x, y, z, xval, yval, zval, msh}
  627. end
  628.  
  629. function FindNearestTorso(Position, Distance, SinglePlayer)
  630. if SinglePlayer then
  631. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  632. end
  633. local List = {}
  634. for i, v in pairs(workspace:GetChildren()) do
  635. if v:IsA("Model") then
  636. if v:findFirstChild("Torso") then
  637. if v ~= Character then
  638. if (v.Torso.Position - Position).magnitude <= Distance then
  639. table.insert(List, v)
  640. end
  641. end
  642. end
  643. end
  644. end
  645. return List
  646. end
  647.  
  648.  
  649. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  650. local Part = Create("Part"){
  651. Parent = Parent,
  652. Reflectance = Reflectance,
  653. Transparency = Transparency,
  654. CanCollide = false,
  655. Locked = true,
  656. BrickColor = BrickColor.new(tostring(BColor)),
  657. Name = Name,
  658. Size = Size,
  659. Material = Material,
  660. }
  661. RemoveOutlines(Part)
  662. return Part
  663. end
  664.  
  665. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  666. local Msh = Create(Mesh){
  667. Parent = Part,
  668. Offset = OffSet,
  669. Scale = Scale,
  670. }
  671. if Mesh == "SpecialMesh" then
  672. Msh.MeshType = MeshType
  673. Msh.MeshId = MeshId
  674. end
  675. return Msh
  676. end
  677.  
  678.  
  679.  
  680. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  681. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  682. prt.Anchored = true
  683. prt.CFrame = cframe
  684. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  685. game:GetService("Debris"):AddItem(prt, 10)
  686. if Type == 1 or Type == nil then
  687. table.insert(Effects, {
  688. prt,
  689. "Block1",
  690. delay,
  691. x3,
  692. y3,
  693. z3,
  694. msh
  695. })
  696. elseif Type == 2 then
  697. table.insert(Effects, {
  698. prt,
  699. "Block2",
  700. delay,
  701. x3,
  702. y3,
  703. z3,
  704. msh
  705. })
  706. end
  707. end
  708.  
  709. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  710. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  711. prt.Anchored = true
  712. prt.CFrame = cframe
  713. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  714. game:GetService("Debris"):AddItem(prt, 10)
  715. table.insert(Effects, {
  716. prt,
  717. "Cylinder",
  718. delay,
  719. x3,
  720. y3,
  721. z3,
  722. msh
  723. })
  724. end
  725.  
  726. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  727. local prt=CreatePart(workspace,"Neon",0,0,brickcolor,"Effect",vt(.5,.5,.5))--part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  728. prt.Anchored=true
  729. prt.CFrame=cframe
  730. msh=CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  731. game:GetService("Debris"):AddItem(prt,2)
  732. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  733. for i=0,1,delay do
  734. swait()
  735. Part.Transparency=i
  736. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  737. end
  738. Part.Parent=nil
  739. end),prt,msh,(math.random(0,1)+math.random())/5)
  740. end
  741.  
  742. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  743. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  744. prt.Anchored = true
  745. prt.CFrame = cframe
  746. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  747. game:GetService("Debris"):AddItem(prt, 10)
  748. table.insert(Effects, {
  749. prt,
  750. "Cylinder",
  751. delay,
  752. x3,
  753. y3,
  754. z3,
  755. msh
  756. })
  757. end
  758.  
  759. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  760. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  761. prt.Anchored = true
  762. prt.CFrame = cframe
  763. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  764. game:GetService("Debris"):AddItem(prt, 10)
  765. table.insert(Effects, {
  766. prt,
  767. "Cylinder",
  768. delay,
  769. x3,
  770. y3,
  771. z3,
  772. msh
  773. })
  774. end
  775.  
  776. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  777. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  778. prt.Anchored = true
  779. prt.CFrame = cframe
  780. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  781. game:GetService("Debris"):AddItem(prt, 10)
  782. table.insert(Effects, {
  783. prt,
  784. "Cylinder",
  785. delay,
  786. x3,
  787. y3,
  788. z3,
  789. msh
  790. })
  791. end
  792.  
  793.  
  794. function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  795. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  796. prt.Anchored = true
  797. prt.CFrame = cframe
  798. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  799. game:GetService("Debris"):AddItem(prt, 10)
  800. table.insert(Effects, {
  801. prt,
  802. "Cylinder",
  803. delay,
  804. x3,
  805. y3,
  806. z3,
  807. msh
  808. })
  809. end
  810.  
  811. function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  812. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  813. prt.Anchored = true
  814. prt.CFrame = cframe
  815. local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  816. game:GetService("Debris"):AddItem(prt, 10)
  817. table.insert(Effects, {
  818. prt,
  819. "Cylinder",
  820. delay,
  821. x3,
  822. y3,
  823. z3,
  824. msh
  825. })
  826. end
  827.  
  828. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  829. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  830. prt.Anchored = true
  831. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  832. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  833. local num = math.random(10, 50) / 1000
  834. game:GetService("Debris"):AddItem(prt, 10)
  835. table.insert(Effects, {
  836. prt,
  837. "Shatter",
  838. num,
  839. prt.CFrame,
  840. math.random() - math.random(),
  841. 0,
  842. math.random(50, 100) / 100
  843. })
  844. end
  845.  
  846. function FindNearestHead(Position, Distance, SinglePlayer)
  847. if SinglePlayer then
  848. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  849. end
  850. local List = {}
  851. for i, v in pairs(workspace:GetChildren()) do
  852. if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
  853. table.insert(List, v)
  854. end
  855. end
  856. return List
  857. end
  858.  
  859.  
  860.  
  861. function clerp(a,b,t)
  862. local qa = {QuaternionFromCFrame(a)}
  863. local qb = {QuaternionFromCFrame(b)}
  864. local ax, ay, az = a.x, a.y, a.z
  865. local bx, by, bz = b.x, b.y, b.z
  866. local _t = 1-t
  867. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  868. end
  869.  
  870. function QuaternionFromCFrame(cf)
  871. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  872. local trace = m00 + m11 + m22
  873. if trace > 0 then
  874. local s = math.sqrt(1 + trace)
  875. local recip = 0.5/s
  876. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  877. else
  878. local i = 0
  879. if m11 > m00 then
  880. i = 1
  881. end
  882. if m22 > (i == 0 and m00 or m11) then
  883. i = 2
  884. end
  885. if i == 0 then
  886. local s = math.sqrt(m00-m11-m22+1)
  887. local recip = 0.5/s
  888. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  889. elseif i == 1 then
  890. local s = math.sqrt(m11-m22-m00+1)
  891. local recip = 0.5/s
  892. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  893. elseif i == 2 then
  894. local s = math.sqrt(m22-m00-m11+1)
  895. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  896. end
  897. end
  898. end
  899. local lerp = function(a, b, t)
  900. return a * (1 - t) + b * t
  901. end
  902.  
  903.  
  904.  
  905.  
  906. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  907. local xs, ys, zs = x + x, y + y, z + z
  908. local wx, wy, wz = w*xs, w*ys, w*zs
  909. local xx = x*xs
  910. local xy = x*ys
  911. local xz = x*zs
  912. local yy = y*ys
  913. local yz = y*zs
  914. local zz = z*zs
  915. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  916. end
  917. function QuaternionSlerp(a, b, t)
  918. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  919. local startInterp, finishInterp;
  920. if cosTheta >= 0.0001 then
  921. if (1 - cosTheta) > 0.0001 then
  922. local theta = math.acos(cosTheta)
  923. local invSinTheta = 1/math.sin(theta)
  924. startInterp = math.sin((1-t)*theta)*invSinTheta
  925. finishInterp = math.sin(t*theta)*invSinTheta
  926. else
  927. startInterp = 1-t
  928. finishInterp = t
  929. end
  930. else
  931. if (1+cosTheta) > 0.0001 then
  932. local theta = math.acos(-cosTheta)
  933. local invSinTheta = 1/math.sin(theta)
  934. startInterp = math.sin((t-1)*theta)*invSinTheta
  935. finishInterp = math.sin(t*theta)*invSinTheta
  936. else
  937. startInterp = t-1
  938. finishInterp = t
  939. end
  940. end
  941. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  942. end
  943.  
  944. function weld5(part0, part1, c0, c1)
  945. weeld=Instance.new("Weld", part0)
  946. weeld.Part0=part0
  947. weeld.Part1=part1
  948. weeld.C0=c0
  949. weeld.C1=c1
  950. return weeld
  951. end
  952.  
  953. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  954.  
  955. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  956. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  957. end
  958.  
  959.  
  960. function Bullets(thinggy,place,size,color,velocity,damage,bounce,collide,rotation)
  961. swait()
  962. local Bullet = Instance.new("Part",Workspace)
  963. Bullet.Locked = true
  964. Bullet.Name = "Bullet"
  965. Bullet.Anchored = bounce
  966. Bullet.CanCollide = collide
  967. Bullet.Transparency = 0.24
  968. Bullet.Reflectance = 0
  969. Bullet.BottomSurface = 0
  970. Bullet.TopSurface = 0
  971. Bullet.Shape = 0
  972. Bullet.BrickColor = BrickColor.new(color)
  973. Bullet.Size = Vector3.new(size,size,size)
  974. Bullet.Material = "Neon"
  975. Bullet.Orientation = vt(-90,0,0)
  976. local Bulletthing = Instance.new("SpecialMesh",Bullet)
  977. Bulletthing.MeshType = "Sphere"
  978. local Bulletforce = Instance.new("BodyForce")
  979. Bulletforce.force = Vector3.new(0,Bullet:GetMass()*166.2,0)
  980. Bulletforce.Parent = Bullet
  981. Bullet.CFrame = thinggy.CFrame*CFrame.new(math.random(-place,place),math.random(-place,place),math.random(-place,place))
  982. local bv = Instance.new("BodyVelocity",Bullet)
  983. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  984. Bullet.CFrame = CFrame.new(Bullet.Position,mouse.Hit.p)
  985. bv.velocity = Bullet.CFrame.lookVector*velocity
  986.  
  987.  
  988. Bullet.Touched:connect(function(hit)
  989.  
  990. if (hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "prt" and hit.Name ~= "Effect" and hit.Name ~= "orb" and Bullet.Anchored == false) then
  991. local orbexplode = Instance.new("Sound", Bullet)
  992. orbexplode.Volume = 4
  993. orbexplode.PlayOnRemove = true
  994. orbexplode.SoundId = "http://roblox.com/asset/?id=142070127"
  995. orbexplode.Pitch = 1
  996. orbexplode:Destroy()
  997. deb:AddItem(orbexplode, 4)
  998. Bullet.Anchored = true
  999. Bullet.Transparency = 1
  1000. deb:AddItem(Bullet, 4)
  1001. local Explode = Instance.new("Explosion")
  1002. Explode.Position = Bullet.Position
  1003. Explode.Parent = Workspace
  1004. Explode.BlastPressure = 0
  1005. Explode.BlastRadius = Bullet.Size.X *5.6
  1006. Explode.Visible = false
  1007.  
  1008. Explode.Hit:connect(function(hit)
  1009. if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil and hit.Parent ~= Character then
  1010. if hit.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 500 then
  1011. hit.Parent:FindFirstChildOfClass("Humanoid").MaxHealth = 100
  1012. hit.Parent:FindFirstChildOfClass("Humanoid").Health = 100
  1013. end
  1014. if attackdebounce == false then
  1015. attackdebounce = true
  1016. hit.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(damage/2,damage))
  1017. wait(0.02)
  1018. attackdebounce = false
  1019. end
  1020. end
  1021. end)
  1022. coroutine.resume(coroutine.create(function()
  1023.  
  1024. MagicCircle(BrickColor.new("Royal purple"), cf(Bullet.Position), 10, 10, 10, 50, 50, 50, 0.065)
  1025. MagicCircle(BrickColor.new("Royal purple"), cf(Bullet.Position), 0, 1, 0, 15, 0, 15, 0.025)
  1026. MagicRing(BrickColor.new("Royal purple"), cf(Bullet.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 4, 4, 4, 0, 0.025)
  1027. MagicRing(BrickColor.new("Royal purple"), cf(Bullet.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 0.5, -1, -1, 0, 0.025)
  1028. end))
  1029. end
  1030. end)
  1031. coroutine.resume(coroutine.create(function()
  1032. for i = 0,16,0.1 do
  1033. swait()
  1034. end
  1035. if Bullet.Anchored == false then
  1036. Bullet:Destroy()
  1037. end
  1038. end))
  1039.  
  1040. end
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046. local bl = Instance.new("BlurEffect",cam)
  1047. bl.Size = 0
  1048.  
  1049.  
  1050. function Dash()
  1051. evadecooldown = true
  1052. attack = true
  1053. so("http://www.roblox.com/asset/?id=231917788", Torso, 1, 1)
  1054.  
  1055. so("http://www.roblox.com/asset/?id=231917788", Torso, 1, 1)
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066. bl.Size = 84
  1067.  
  1068.  
  1069. MagicCircle(BrickColor.new("White"), cf(RootPart.Position), 800, 5, 800, 0, 0, 0, 0.05)
  1070. MagicCircle(BrickColor.new("Royal purple"), cf(RootPart.Position), 800, 10, 800, -40, 0, -40, 0.025)
  1071. MagicCircle(BrickColor.new("White"), cf(RootPart.Position), 800, 10, 800, -42, 1000, -42, 0.05)
  1072. MagicCircle(BrickColor.new("Royal purple"), cf(RootPart.Position), 1000, 10, 1000, -62, 1200, -62, 0.05)
  1073.  
  1074. RootPart.CFrame = RootPart.CFrame*CFrame.new(0,0,-96)
  1075. RootPart.Velocity = RootPart.CFrame.lookVector *280
  1076.  
  1077. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  1078. if v:FindFirstChild("Torso") and v:FindFirstChild("Humanoid") then
  1079.  
  1080. so("http://www.roblox.com/asset/?id=138186576", v.Torso, 10, 1)
  1081. v:FindFirstChild("Humanoid"):TakeDamage(math.random(18,36))
  1082. SphereEffect(BrickColor.new("Royal purple"), cf(v.Torso.Position) , 1, 1, 1, 6.8, 6.8, 6.8, 0.04)
  1083. MagicBlock(BrickColor.new("White"), cf(v.Torso.Position), 2000, 2000, 2000, -100, -100, -100, 0.05, 1)
  1084. MagicBlock(BrickColor.new("Royal purple"), cf(v.Torso.Position), 2500, 2500, 2500, -150, -150, -150, 0.05, 1)
  1085. MagicBlock(BrickColor.new("White"), cf(v.Torso.Position), 3000, 3000, 3000, -200, -200, -200, 0.05, 1)
  1086. MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 800, 2, 800, 150, 2, 150, 0.05)
  1087. MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 800, 2, 800, 100, 4, 100, 0.05)
  1088. MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 800, 2, 800, 50, 6, 50, 0.05)
  1089. MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 0, 0, 0, 100, 100, 100, 0.05)
  1090. MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 0, 0, 0, 200, 200, 200, 0.05)
  1091. MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 0, 0, 0, 300, 300, 300, 0.05)
  1092. MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 0, 0, 0, 400, 400, 400, 0.05)
  1093. MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 800, 2, 800, 4, 350, 4, 0.005)
  1094. MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 600, 2, 600, 4, 300, 4, 0.005)
  1095. MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 400, 2, 400, 4, 250, 4, 0.005)
  1096. end
  1097. end
  1098.  
  1099. for i = 0,1,0.064 do
  1100. swait()
  1101. cam.FieldOfView = lerp(cam.FieldOfView, 110, 0.5)
  1102. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,12),0.24)
  1103. RootPart.Velocity = RootPart.CFrame.lookVector * 175
  1104. bl.Size = bl.Size - 8.5
  1105. SphereEffect(BrickColor.new("Royal purple"),RootPart.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,5.5,10,5.5,0.03)
  1106. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, -12) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.4)
  1107. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
  1108. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)),.4)
  1109. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.4)
  1110. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, -0.4) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.8)
  1111. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.7, -0.7) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.8)
  1112.  
  1113.  
  1114.  
  1115. end
  1116.  
  1117.  
  1118.  
  1119. attack = false
  1120. attackdebounce = false
  1121. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.1)
  1122. wait(.2)
  1123. bl.Size = 0
  1124. evadecooldown = false
  1125.  
  1126.  
  1127.  
  1128. end
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140.  
  1141. local shooting = false
  1142.  
  1143.  
  1144.  
  1145. function shoot()
  1146. attack = true
  1147. shooting = true
  1148.  
  1149.  
  1150. local thing = Instance.new("BodyGyro",RootPart)
  1151. thing.D = 50
  1152. thing.P = 6000
  1153. thing.MaxTorque = vt(100000,math.huge,0)
  1154. thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
  1155. for i = 0,2,0.16 do
  1156. swait()
  1157. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.2)
  1158. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.2)
  1159. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.2)
  1160. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
  1161. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.73, -1.0, 0) * CFrame.Angles(math.rad(-25), math.rad(-66), math.rad(-25)), 0.1)
  1162. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.6, -1.0, 0) * CFrame.Angles(math.rad(0), math.rad(-83), math.rad(0)), 0.1)
  1163. end
  1164.  
  1165.  
  1166. while shooting == true do
  1167. swait(1)
  1168.  
  1169. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.2)
  1170. so("http://roblox.com/asset/?id=200633327",Torso,2,1)
  1171. thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
  1172. Torso.Velocity = RootPart.CFrame.lookVector * -13
  1173. Bullets(RightArm,0,1.5,"Royal purple",700,25.5,false,false)
  1174. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(40), math.rad(80)),.2)
  1175. coroutine.resume(coroutine.create(function()
  1176. for i = 0, 0.5, 0.1 do
  1177. swait()
  1178. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.24)
  1179. end
  1180. end))
  1181. end
  1182.  
  1183. attack = false
  1184. thing:Destroy()
  1185. end
  1186.  
  1187.  
  1188.  
  1189. function dshoot()
  1190. attack = true
  1191. shooting = true
  1192.  
  1193.  
  1194. local thing = Instance.new("BodyGyro",RootPart)
  1195. thing.D = 50
  1196. thing.P = 6000
  1197. thing.MaxTorque = vt(100000,math.huge,0)
  1198. thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
  1199. so("http://roblox.com/asset/?id=1268159756",Torso,5,1)
  1200. for i = 0,3,0.16 do
  1201. swait()
  1202. MagicRing(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,0,-8), 9, 9, 1, -0.7, -0.7, 0, 0.07)
  1203. MagicCircle(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,0,-8), 9, 9, 9, -0.7, -0.7, -0.7, 0.07)
  1204. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1205. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1206. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * angles(math.rad(90), math.rad(0), math.rad(-20)),.2)
  1207. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -0.4) * angles(math.rad(90), math.rad(0), math.rad(20)),.2)
  1208. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(-25)), 0.1)
  1209. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(25)), 0.1)
  1210. end
  1211.  
  1212.  
  1213.  
  1214. while shooting == true do
  1215. swait(0.5)
  1216. coroutine.resume(coroutine.create(function()
  1217. MagicRing(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,0,-8), 3, 3, 1, 10.2, 10.2, 0, 0.07)
  1218. end))
  1219. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(-25)), 0.3)
  1220. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(25)), 0.3)
  1221. so("http://roblox.com/asset/?id=200633327",Torso,2,1)
  1222. thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
  1223. Torso.Velocity = RootPart.CFrame.lookVector * -63
  1224.  
  1225.  
  1226. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.4)
  1227. Bullets(RightArm,0,2.5,"Royal purple",1200,45.5,false,false)
  1228. coroutine.resume(coroutine.create(function()
  1229. for i = 0, 0.5, 0.1 do
  1230. swait()
  1231. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8)),0.44)
  1232. end
  1233. end))
  1234.  
  1235. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.2)
  1236. Bullets(LeftArm,0,2.5,"Royal purple",1200,45.5,false,false)
  1237. coroutine.resume(coroutine.create(function()
  1238. for i = 0, 0.5, 0.1 do
  1239. swait()
  1240. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.24)
  1241. end
  1242. end))
  1243.  
  1244. end
  1245.  
  1246. attack = false
  1247. thing:Destroy()
  1248. end
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254. function finaldev()
  1255. attack = true
  1256. so("http://roblox.com/asset/?id=815032096",Head,6,0.84)
  1257. so("http://roblox.com/asset/?id=200633529",Workspace,3,0.84)
  1258.  
  1259. for i = 0,14,0.1 do
  1260. swait()
  1261. WaveEffect(BrickColor.new("White"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0+90*i),0) , 1, 1, 1, 7, 0.8, 7, 0.09)
  1262. WaveEffect(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0-90*i),0) , 1, 1, 1, 5, 0.8, 5, 0.05)
  1263. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.25*2.8,0.25*2.8),math.random(-0.25*2.8,0.25*2.8),math.random(-0.25*2.8,0.25*2.8)),0.16)
  1264. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.15)
  1265. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(14),math.rad(0),math.rad(0)),.15)
  1266. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(87)),.15)
  1267. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0) * angles(math.rad(0), math.rad(0), math.rad(-87)),.15)
  1268. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, 0, -0.5) * CFrame.Angles(math.rad(16), math.rad(0), math.rad(0)), 0.15)
  1269. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.14, 0.2) * CFrame.Angles(math.rad(-17), math.rad(0), math.rad(0)), 0.15)
  1270.  
  1271. end
  1272. so("http://roblox.com/asset/?id=197161452",Torso,7,1)
  1273. for i = 0,6,0.1 do
  1274. swait()
  1275. WaveEffect(BrickColor.new("White"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0+90*i),0) , 1, 1, 1, 7, 0.8, 7, 0.09)
  1276. WaveEffect(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0-90*i),0) , 1, 1, 1, 5, 0.8, 5, 0.05)
  1277. Head.Velocity = Vector3.new(0,320,0)
  1278. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0+260*i), math.rad(0), math.rad(0)), 0.6)
  1279. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  1280. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  1281. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  1282. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  1283. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  1284. end
  1285.  
  1286.  
  1287. local bel = part(3, Character, 0, 1, BrickColor.new("Royal purple"), "Ball", vt(0.126,0.126,0.126))
  1288. local belmsh = mesh("SpecialMesh", bel, "Sphere", "nil", vt(0, 0, 0), vt(10, 10, 10))
  1289.  
  1290.  
  1291.  
  1292. local Charge = Instance.new("Sound", bel)
  1293. Charge.Volume = 10
  1294. Charge.SoundId = "http://roblox.com/asset/?id=244578827"
  1295. Charge.Pitch = 0.8
  1296. Charge.PlayOnRemove = true
  1297. Charge:Play()
  1298. Charge:Destroy()
  1299. bel.Anchored = true
  1300. for i = 0,47,0.1 do
  1301. swait()
  1302. bel.CFrame = RootPart.CFrame * cf(0, 90*i/3.5, 0)
  1303. bel.Transparency = bel.Transparency - 0.0034
  1304. belmsh.Scale = belmsh.Scale + Vector3.new(24,24,24)
  1305. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0+1*i,0+1*i),0.15)
  1306. cam.FieldOfView = lerp(cam.FieldOfView, 40+1*i, 0.15)
  1307. Head.Velocity = Vector3.new(0,2.4+0.8*i,0)
  1308. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(35), math.rad(0), math.rad(0)), 0.2)
  1309. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-13),math.rad(0),math.rad(0)),.2)
  1310. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(140)),.2)
  1311. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(-140)),.2)
  1312. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(-45), math.rad(34), math.rad(-25)), 0.1)
  1313. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0) * CFrame.Angles(math.rad(-45), math.rad(-34), math.rad(25)), 0.1)
  1314. end
  1315. so("http://roblox.com/asset/?id=160212892",Head,10,0.84)
  1316. for i = 0,4,0.1 do
  1317. swait()
  1318. Head.Velocity = Vector3.new(0,2.4,0)
  1319. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1320. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(35), math.rad(0), math.rad(0)), 0.2)
  1321. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(13),math.rad(0),math.rad(0)),.2)
  1322. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(140)),.2)
  1323. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(-140)),.2)
  1324. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(-45), math.rad(34), math.rad(-25)), 0.1)
  1325. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0) * CFrame.Angles(math.rad(-45), math.rad(-34), math.rad(25)), 0.1)
  1326. end
  1327.  
  1328.  
  1329.  
  1330.  
  1331.  
  1332. bel.Anchored = false
  1333. local bv = Instance.new("BodyVelocity",bel)
  1334. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1335. bel.CFrame = CFrame.new(bel.Position,mouse.Hit.p)
  1336. bv.velocity = bel.CFrame.lookVector*350
  1337.  
  1338.  
  1339.  
  1340. --[[
  1341. bel.Touched:connect(function(hit)
  1342.  
  1343. if hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "prt" and hit.Name ~= "Effect" and hit.Name ~= "orb" and Bullet.Anchored == false then
  1344. local orbexplode = Instance.new("Sound", bel)
  1345. orbexplode.Volume = 10
  1346. orbexplode.PlayOnRemove = true
  1347. orbexplode.SoundId = "http://roblox.com/asset/?id=142070127"
  1348. orbexplode.Pitch = 1
  1349. orbexplode:Destroy()
  1350. deb:AddItem(orbexplode, 4)
  1351. bel.Anchored = true
  1352. bel.Transparency = 1
  1353. deb:AddItem(bel, 4)
  1354. local Explode = Instance.new("Explosion")
  1355. Explode.Position = bel.Position
  1356. Explode.Parent = Workspace
  1357. Explode.BlastPressure = 90
  1358. Explode.BlastRadius = Bullet.Size.X *25.6
  1359. Explode.Visible = false
  1360.  
  1361. coroutine.resume(coroutine.create(function()
  1362.  
  1363.  
  1364.  
  1365. MagicBlock(BrickColor.new("White"), cf(bel.Position), 2000, 2000, 2000, -100, -100, -100, 0.05, 1)
  1366. MagicBlock(BrickColor.new("Royal purple"), cf(bel.Position), 2500, 2500, 2500, -150, -150, -150, 0.05, 1)
  1367. MagicBlock(BrickColor.new("White"), cf(bel.Position), 3000, 3000, 3000, -200, -200, -200, 0.05, 1)
  1368. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800, 2, 1800, 1150, 2, 1150, 0.05)
  1369. MagicCircle(BrickColor.new("White"), cf(bel.Position), 1800, 2, 1800, 1100, 4, 1100, 0.05)
  1370. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800, 2, 1800, 150, 16, 150, 0.05)
  1371. MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1100, 4100, 1100, 0.05)
  1372. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1200, 1200, 1200, 0.05)
  1373. MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1300, 1300,1300, 0.05)
  1374. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1400, 1400, 1400, 0.05)
  1375. MagicCircle(BrickColor.new("White"), cf(bel.Position), 4800, 2, 1800, 4, 1350, 4, 0.005)
  1376. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1600, 2, 1600, 4, 1300, 4, 0.005)
  1377. MagicCircle(BrickColor.new("White"), cf(bel.Position), 1400, 2, 1400, 4, 1250, 4, 0.005)
  1378.  
  1379.  
  1380. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 10, 10, 10, 50, 50, 50, 0.065)
  1381. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 1, 0, 15, 0, 15, 0.025)
  1382. MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 4, 4, 4, 0, 0.025)
  1383. MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 0.5, -1, -1, 0, 0.025)
  1384. end))
  1385. end
  1386. end)
  1387.  
  1388. ]]
  1389.  
  1390. con5=bel.Touched:connect(function(hit)
  1391.  
  1392. local orbexplode = Instance.new("Sound", bel)
  1393. orbexplode.Volume = 10
  1394. orbexplode.PlayOnRemove = true
  1395. orbexplode.SoundId = "http://roblox.com/asset/?id=167115397"
  1396. orbexplode.Pitch = 1
  1397. orbexplode:Destroy()
  1398. deb:AddItem(orbexplode, 4)
  1399. bel.Anchored = true
  1400. bel.Transparency = 1
  1401. deb:AddItem(bel, 5.2)
  1402.  
  1403.  
  1404.  
  1405.  
  1406. coroutine.resume(coroutine.create(function()
  1407. so("http://www.roblox.com/asset/?id=167115397", Workspace, 6, 1)
  1408. so("http://www.roblox.com/asset/?id=138186576", Workspace, 6, 1)
  1409. for i = 0, 0.4, 0.1 do
  1410. swait()
  1411.  
  1412.  
  1413. for i, v in pairs(FindNearestHead(bel.CFrame.p, 252.5)) do
  1414. if v:FindFirstChild("Torso") and v:FindFirstChild("Humanoid") then
  1415. if v:FindFirstChildOfClass("Humanoid").MaxHealth > 500 then
  1416. v:FindFirstChildOfClass("Humanoid").MaxHealth = 100
  1417. v:FindFirstChildOfClass("Humanoid").Health = 100
  1418. end
  1419. v.Humanoid:TakeDamage(math.random(43,86))
  1420. coroutine.resume(coroutine.create(function()
  1421. for i = 0,2,0.1 do
  1422. swait()
  1423. v.Head.Velocity = -v.Head.CFrame.lookVector*660 + Vector3.new(0,684,0)
  1424. end
  1425. end))
  1426. end
  1427. end
  1428.  
  1429. coroutine.resume(coroutine.create(function()
  1430. for i = 0, 2.4, 0.1 do
  1431. swait()
  1432. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8)),0.44)
  1433. end
  1434. end))
  1435.  
  1436. MagicBlock(BrickColor.new("White"), cf(bel.Position), 2000, 2000, 2000, -100, -100, -100, 0.05, 1)
  1437. MagicBlock(BrickColor.new("Royal purple"), cf(bel.Position), 2500, 2500, 2500, -150, -150, -150, 0.05, 1)
  1438. MagicBlock(BrickColor.new("White"), cf(bel.Position), 3000, 3000, 3000, -200, -200, -200, 0.05, 1)
  1439. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800,222, 1800, 1150, 222, 1150, 0.05)
  1440. MagicCircle(BrickColor.new("White"), cf(bel.Position), 1800, 222, 1800, 1100, 224, 1100, 0.05)
  1441. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800, 222, 1800, 150, 216, 150, 0.05)
  1442. MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1100, 4100, 1100, 0.05)
  1443. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1200, 1200, 1200, 0.05)
  1444. MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1300, 1300,1300, 0.05)
  1445. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1400, 1400, 1400, 0.05)
  1446. MagicCircle(BrickColor.new("White"), cf(bel.Position), 4800, 222, 1800, 224, 1350, 224, 0.005)
  1447. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1600, 222, 1600, 224, 1300, 224, 0.005)
  1448. MagicCircle(BrickColor.new("White"), cf(bel.Position), 1400, 222, 1400, 224, 1250, 224, 0.005)
  1449.  
  1450. WaveEffect(BrickColor.new("White"), cf(bel.Position)*angles(0,math.rad(0+90*i),0) , 1, 1, 1, 24, 5.4, 24, 0.09)
  1451. WaveEffect(BrickColor.new("Royal purple"), cf(bel.Position)*angles(0,math.rad(0-90*i),0) , 1, 1, 1, 22, 4.8, 22, 0.05)
  1452.  
  1453. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 10, 10, 10, 50, 50, 50, 0.065)
  1454. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 1, 0, 15, 0, 15, 0.025)
  1455. MagicRing(BrickColor.new("White"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 12, 12, 0, 0.015)
  1456. MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 12, 12, 0, 0.015)
  1457. MagicRing(BrickColor.new("White"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 8, 8, 0, 0.015)
  1458. MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 12, 12, 0, 0.015)
  1459. end
  1460. end))
  1461.  
  1462.  
  1463. end)
  1464.  
  1465.  
  1466.  
  1467.  
  1468. for i = 0,32,0.1 do
  1469. swait()
  1470. Head.Velocity = Vector3.new(0,2.4,0)
  1471. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-35), math.rad(0), math.rad(0)), 0.2)
  1472. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(43),math.rad(0),math.rad(0)),.2)
  1473. RW.C0 = clerp(RW.C0, CFrame.new(1.0, 0.5, -0.4) * angles(math.rad(80), math.rad(12), math.rad(-30)),.2)
  1474. LW.C0 = clerp(LW.C0, CFrame.new(-1., 0.5, -0.4) * angles(math.rad(80), math.rad(-12), math.rad(30)),.2)
  1475. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(75), math.rad(34), math.rad(-35)), 0.2)
  1476. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0) * CFrame.Angles(math.rad(75), math.rad(-34), math.rad(35)), 0.2)
  1477. end
  1478.  
  1479. coroutine.resume(coroutine.create(function()
  1480. for i = 0, 63, 0.1 do
  1481. swait()
  1482. end
  1483. if bel.Anchored == false then
  1484. bel:Destroy()
  1485. end
  1486. end))
  1487.  
  1488.  
  1489.  
  1490.  
  1491. attack = false
  1492. end
  1493.  
  1494.  
  1495.  
  1496. mouse.Button1Down:connect(function(key)
  1497. if attack == false then
  1498. shoot()
  1499. end
  1500. end)
  1501.  
  1502.  
  1503.  
  1504.  
  1505. mouse.Button1Up:connect(function(key)
  1506. if shooting == true then
  1507. shooting = false
  1508. end
  1509. end)
  1510.  
  1511.  
  1512.  
  1513.  
  1514. mouse.KeyDown:connect(function(key)
  1515. if key == 'e' and attack == false then
  1516. dshoot()
  1517. end
  1518. end)
  1519.  
  1520.  
  1521.  
  1522.  
  1523. mouse.KeyDown:connect(function(key)
  1524. if key == 'q' and attack == false then
  1525. finaldev()
  1526. end
  1527. end)
  1528.  
  1529. mouse.KeyUp:connect(function(key)
  1530. if key == 'e' and shooting == true then
  1531. shooting = false
  1532. end
  1533. end)
  1534.  
  1535.  
  1536.  
  1537. mouse.KeyDown:connect(function(key)
  1538. if key == 'f' and attack == false and evadecooldown == false then
  1539. Dash()
  1540. end
  1541. end)
  1542.  
  1543.  
  1544. local orb = part(3, Character, 0, 0.9, BrickColor.new("White"), "Effect", vt())
  1545. local msh = mesh("SpecialMesh", orb, "Sphere", "nil", vt(0, 0, 0), vt(15, 15, 15))
  1546.  
  1547. local orb2 = part(3, Character, 0, 0.9, BrickColor.new("White"), "Effect", vt())
  1548. local msh = mesh("SpecialMesh", orb2, "Sphere", "nil", vt(0, 0, 0), vt(15, 15, 15))
  1549. orb.Anchored = true
  1550. orb2.Anchored = true
  1551. Humanoid.WalkSpeed = 32
  1552.  
  1553.  
  1554. local f = 0
  1555. game:GetService("RunService"):BindToRenderStep("W0tT", 0, function()
  1556.  
  1557.  
  1558. f = f+1
  1559. cam.FieldOfView = lerp(cam.FieldOfView, 70, 0.076)
  1560. if f >= 6 then
  1561. f=0
  1562. SphereEffect(BrickColor.new("Royal purple"),cf(orb.Position)*angles(math.random(-360, 360),math.random(-360, 360),math.random(-360, 360)),1,5,1,.05,4,.05,0.03)
  1563. SphereEffect(BrickColor.new("Royal purple"),cf(orb2.Position)*angles(math.random(-360, 360),math.random(-360, 360),math.random(-360, 360)),1,5,1,.05,4,.05,0.03)
  1564. MagicRing(BrickColor.new("Royal purple"), cf(orb.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 3, 3, 1, -0.2, -0.2, 0, 0.07)
  1565. MagicCircle(BrickColor.new("Royal purple"), cf(orb.Position), 0, 0, 0, 1.25, 1.25, 1.25, 0.05)
  1566. MagicRing(BrickColor.new("Royal purple"), cf(orb2.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 3, 3, 1, -0.2, -0.2, 0, 0.07)
  1567. MagicCircle(BrickColor.new("Royal purple"), cf(orb2.Position), 0, 0, 0, 1.25, 1.25, 1.25, 0.05)
  1568. MagicBlock(BrickColor.new("Royal purple"), cf(orb.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 1, 1, 1, 1, 1, 1, 0.1, 2)
  1569. MagicBlock(BrickColor.new("Royal purple"), cf(orb2.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 1, 1, 1, 1, 1, 1, 0.1, 2)
  1570.  
  1571. end
  1572. end)
  1573.  
  1574. Humanoid.MaxHealth = 400
  1575.  
  1576. print("Move list")
  1577. print("---------")
  1578. print("F: Time Dash")
  1579. print("Hold Click: Lesser Bullets")
  1580. print("Hold E: Mega Bullets")
  1581. print("Q: Final Devastator")
  1582.  
  1583.  
  1584.  
  1585.  
  1586. while true do
  1587. swait()
  1588. sine = sine + change
  1589. --speed = speed + music.PlaybackLoudness/90
  1590. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1591. local velderp=RootPart.Velocity.y
  1592. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1593. local TiltVelocity = CFrame.new(RootPart.CFrame:vectorToObjectSpace(RootPart.Velocity))
  1594. if attack==true or attack==false then
  1595. if attack==false then
  1596. idle=idle+1
  1597. else
  1598. idle=0
  1599. end
  1600. if idle>=500 then
  1601. if attack==false then
  1602. end
  1603. end
  1604.  
  1605. Humanoid.Health = Humanoid.Health + 4
  1606.  
  1607. orb.CFrame = RightArm.CFrame * cf(0, -1, 0)
  1608. orb2.CFrame = LeftArm.CFrame * cf(0, -1, 0)
  1609. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1610. Anim="Jump"
  1611.  
  1612.  
  1613.  
  1614.  
  1615.  
  1616. if attack==false then
  1617. change = 1
  1618. look = 0
  1619. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1620. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(4), math.rad(0), math.rad(0)), 0.07)
  1621. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10+2.05*math.cos(sine/5)),math.rad(0),math.rad(0)),0.07)
  1622. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(50-2.05*math.cos(sine/5))), 0.07)
  1623. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(-50+2.05*math.cos(sine/5))), 0.07)
  1624. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, -0.6) * CFrame.Angles(math.rad(-25+3.05*math.cos(sine/5)), math.rad(-3), math.rad(0)), 0.1)
  1625. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12+3.05*math.cos(sine/5)), math.rad(0), math.rad(0)), 0.1)
  1626. end
  1627.  
  1628. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1629. Anim="Fall"
  1630. change = 1
  1631.  
  1632.  
  1633.  
  1634. if attack==false then
  1635. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1636. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(7+4*math.sin(sine/1.3)), math.rad(0), math.rad(0)),0.07)
  1637. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(140+12*math.cos(sine/1.3))), 0.07)
  1638. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(-140+12*math.cos(sine/1.3))), 0.07)
  1639. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40+7*math.sin(sine/1.3)),math.rad(0),math.rad(0)),0.07)
  1640. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.17*math.cos(sine/1.3), -0.13) * CFrame.Angles(math.rad(18+7*math.cos(sine/1.3)), math.rad(3), math.rad(0)), 0.1)
  1641. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.37+0.17*math.cos(sine/1.3), -0.2) * CFrame.Angles(math.rad(32+7*math.cos(sine/1.3)), math.rad(0), math.rad(0)), 0.1)
  1642. end
  1643.  
  1644. elseif torvel<1 and hitfloor~=nil then
  1645. Anim="Idle"
  1646. change = 1
  1647. if attack==false and equip == false then
  1648. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1649.  
  1650.  
  1651.  
  1652. orb.CFrame = orb.CFrame:lerp(RightArm.CFrame*cf(0+2*math.cos(sine/40), -5+2*math.sin(sine/40), 0),0.1)
  1653. orb2.CFrame = orb2.CFrame:lerp(LeftArm.CFrame*cf(0-2*math.cos(sine/40), -5+2*math.sin(sine/40), 0),0.1)
  1654.  
  1655. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.04*math.cos(sine/40), -0) * CFrame.Angles(math.rad(0), math.rad(-70), math.rad(0)), 0.25)
  1656. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10+2.6*math.sin(sine/40)),math.rad(0),math.rad(60)),0.25)
  1657. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.55+0.04*math.sin(sine/40), 0.2) * angles(math.rad(-32+1.3*math.cos(sine/40)), math.rad(0+4*math.sin(sine/40)), math.rad(-22.3+2.2*math.cos(sine/40))),0.25)
  1658. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.55+0.04*math.sin(sine/40), -0.3-0.04*math.cos(sine/40)) * angles(math.rad(28+1.3*math.cos(sine/40)), math.rad(0-4*math.sin(sine/40)), math.rad(26.3-2.2*math.cos(sine/40))),0.25)
  1659. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.04*math.cos(sine/40), 0) * CFrame.Angles(math.rad(0), math.rad(8), math.rad(-7)),0.25)
  1660. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.57, -1+0.04*math.cos(sine/40), 0) * CFrame.Angles(math.rad(0), math.rad(-2), math.rad(3)),0.25)
  1661. end
  1662.  
  1663.  
  1664.  
  1665. elseif torvel>1.5 and torvel<22 and hitfloor~=nil then
  1666. Anim="Walk"
  1667. change = 0.84
  1668. look = 0
  1669. if attack==false and equip == false then
  1670. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02)
  1671. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1+0.14*math.cos(sine/5), -0.3) * angles(math.rad(-2)*-math.rad(TiltVelocity.z)*9.5, math.rad(0+2*math.cos(sine/10)), math.rad(8)*-math.rad(TiltVelocity.x)*7.5+ RootPart.RotVelocity.Y / 46), 0.08)
  1672. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(4-3*math.sin(sine/5)),math.rad(0),math.rad(2) + RootPart.RotVelocity.Y / 13), 0.08)
  1673. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0+0.34*math.sin(sine/10)) * angles(math.rad(0-26*math.sin(sine/10))+ RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(6+8*math.cos(sine/5))- RootPart.RotVelocity.Y / 34), 0.08)
  1674. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0-0.34*math.sin(sine/10)) * angles(math.rad(0+26*math.sin(sine/10))+ RootPart.RotVelocity.Y / 34, math.rad(0), math.rad(-6-8*math.cos(sine/5))+ RootPart.RotVelocity.Y / -34), 0.08)
  1675. --LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.21*math.cos(sine/10), -0.03+0.19*math.cos(sine/10)) * CFrame.Angles(math.rad(-8-25*math.sin(sine/10)*-math.rad(TiltVelocity.z)*12.5), math.rad(0)- RootPart.RotVelocity.Y / -24, math.rad(0-25*math.sin(sine/10)*math.rad(TiltVelocity.x)*11.5+ RootPart.RotVelocity.Y / -34)), 0.08)
  1676. --RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.21*math.cos(sine/10),-0.03-0.19*math.cos(sine/10)) * CFrame.Angles(math.rad(-8+25*math.sin(sine/10)*-math.rad(TiltVelocity.z)*12.5), math.rad(0)+ RootPart.RotVelocity.Y / 24, math.rad(0-25*math.sin(sine/10)*-math.rad(TiltVelocity.x)*11.5- RootPart.RotVelocity.Y / 34)), 0.08)
  1677. end
  1678. if attack == false or attack==true and noleg == false then
  1679. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.21*math.cos(sine/10), -0.03+0.19*math.cos(sine/10)) * CFrame.Angles(math.rad(-8-25*math.sin(sine/10)*-math.rad(TiltVelocity.z)*9.5), math.rad(0)- RootPart.RotVelocity.Y / -24, math.rad(0-25*math.sin(sine/10)*math.rad(TiltVelocity.x)*6.5- RootPart.RotVelocity.Y / 34)), 0.08)
  1680. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.21*math.cos(sine/10),-0.03-0.19*math.cos(sine/10)) * CFrame.Angles(math.rad(-8+25*math.sin(sine/10)*-math.rad(TiltVelocity.z)*9.5), math.rad(0)+ RootPart.RotVelocity.Y / 24, math.rad(0-25*math.sin(sine/10)*-math.rad(TiltVelocity.x)*6.5- RootPart.RotVelocity.Y / 34)), 0.08)
  1681. end
  1682.  
  1683. elseif torvel>=22 and hitfloor~=nil then
  1684. Anim="Run"
  1685. change = 0.84+ Character.Humanoid.WalkSpeed/112
  1686. if attack==false and equip == false then
  1687. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02)
  1688. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.5*math.cos(sine/2.5), -.8) * angles(math.rad(-23+4*math.cos(sine/5)), math.rad(0+4*math.sin(sine/5)), math.rad(0)+ RootPart.RotVelocity.Y / 26), .1)
  1689. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12+20*math.sin(sine/2.5)),math.rad(0),math.rad(0+5*math.sin(sine/5)) + RootPart.RotVelocity.Y / 13),.1)
  1690. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0-0.34*math.cos(sine/5)) * angles(math.rad(10+57*math.cos(sine/5))+ RootPart.RotVelocity.Y / -34, math.rad(0+43*math.cos(sine/5)), math.rad(5)- RootPart.RotVelocity.Y / 34),.25)
  1691. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0+0.34*math.cos(sine/5))*angles(math.rad(10-57*math.cos(sine/5))+ RootPart.RotVelocity.Y / 34,math.rad(0+43*math.cos(sine/5)),math.rad(-5)+ RootPart.RotVelocity.Y / -34),.25)
  1692.  
  1693.  
  1694. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.56*math.cos(sine/5), 0-0.48*math.cos(sine/5)) * CFrame.Angles(math.rad(0+73*math.sin(sine/5)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.3)
  1695. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1-0.56*math.cos(sine/5),0+0.48*math.cos(sine/5)) * CFrame.Angles(math.rad(0-73*math.sin(sine/5)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.3)
  1696. end
  1697.  
  1698. --[[
  1699. if attack==false then
  1700. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/5.5)/2, 0 *math.sin(sine/6.6)/2) * CFrame.Angles(math.rad(0) + -math.sin(sine/5.5)/1.2, math.rad(0), 0), .8)
  1701. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/5.5)/2,0 *-math.sin(sine/6.6)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/5.5)/1.2, math.rad(0), 0), .8)
  1702. end
  1703. ]]
  1704. if attack==true and noleg == false then
  1705. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.24*math.cos(sine/5), 0.+0.24*math.cos(sine/5)) * CFrame.Angles(math.rad(0-74*math.sin(sine/5)), math.rad(0), math.rad(0)), 0.3)
  1706. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.24*math.cos(sine/5),0.-0.24*math.cos(sine/5)) * CFrame.Angles(math.rad(0+74*math.sin(sine/5)), math.rad(0), math.rad(0)), 0.3)
  1707. end
  1708.  
  1709.  
  1710. end
  1711. end
  1712.  
  1713.  
  1714.  
  1715. if 0 < #Effects then
  1716. for e = 1, #Effects do
  1717. if Effects[e] ~= nil then
  1718. local Thing = Effects[e]
  1719. if Thing ~= nil then
  1720. local Part = Thing[1]
  1721. local Mode = Thing[2]
  1722. local Delay = Thing[3]
  1723. local IncX = Thing[4]
  1724. local IncY = Thing[5]
  1725. local IncZ = Thing[6]
  1726. if Thing[2] == "CylinderClang" then
  1727. if Thing[3] <= 1 then
  1728. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1729. Thing[7] = Thing[1].CFrame
  1730. effect("New Yeller", 0, Thing[8], Thing[7])
  1731. Thing[8] = Thing[7]
  1732. Thing[3] = Thing[3] + Thing[4]
  1733. else
  1734. Part.Parent = nil
  1735. table.remove(Effects, e)
  1736. end
  1737. end
  1738. if Thing[2] == "showDamage" then
  1739. if Thing[6] < Thing[5] then
  1740. Thing[6] = Thing[6] + 1
  1741. else
  1742. if Thing[6] < Thing[7] then
  1743. Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
  1744. Thing[6] = Thing[6] + 1
  1745. else
  1746. if Thing[6] < Thing[8] then
  1747. Thing[6] = Thing[6] + 1
  1748. else
  1749. if Thing[6] < Thing[9] then
  1750. Thing[6] = Thing[6] + 1
  1751. Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
  1752. Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
  1753. Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
  1754. else
  1755. Thing[1].Parent = nil
  1756. table.remove(Effects, e)
  1757. end
  1758. end
  1759. end
  1760. end
  1761. end
  1762. if Thing[2] == "PartiEmi" then
  1763. Thing[3] = Thing[3] - 1
  1764. if Thing[3] <= 0 then
  1765. Thing[1].Enabled = false
  1766. table.remove(Effects, e)
  1767. end
  1768. end
  1769. if Thing[2] == "AdjuEff" then
  1770. if 0 < Thing[3] then
  1771. Thing[3] = Thing[3] - 1
  1772. Thing[1].Size = Thing[1].Size + UDim2.new(0.2, 0, 0.2, 0)
  1773. Thing[1].StudsOffset = Thing[1].StudsOffset + vt(0, -0.2, 0)
  1774. Thing[4].ImageTransparency = Thing[4].ImageTransparency + 0.1
  1775. else
  1776. Thing[1].Parent = nil
  1777. table.remove(Effects, e)
  1778. end
  1779. end
  1780. if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" and Thing[2] ~= "showDamage" and Thing[2] ~= "PartiEmi" and Thing[2] ~= "AdjuEff" then
  1781. if Thing[1].Transparency <= 1 then
  1782. if Thing[2] == "Block1" then
  1783. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1784. Mesh = Thing[7]
  1785. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1786. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1787. else
  1788. if Thing[2] == "Block2" then
  1789. Thing[1].CFrame = Thing[1].CFrame
  1790. Mesh = Thing[7]
  1791. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1792. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1793. else
  1794. if Thing[2] == "Block3" then
  1795. Thing[9] = Thing[9] + 0.5
  1796. Thing[1].CFrame = Thing[8] * cf(0, Thing[9], 0)
  1797. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1798. Mesh = Thing[7]
  1799. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1800. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1801. else
  1802. if Thing[2] == "Skull" then
  1803. Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8] / 2, -Thing[8])
  1804. Mesh = Thing[7]
  1805. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1806. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1807. else
  1808. if Thing[2] == "Cylinder" then
  1809. Mesh = Thing[7]
  1810. Mesh.Scale = Mesh.Scale + vt(Thing[4]-Thing[1].Transparency, Thing[5]-Thing[1].Transparency, Thing[6]-Thing[1].Transparency)
  1811. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1812. else
  1813. if Thing[2] == "Cylinder2" then
  1814. Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0)
  1815. Mesh = Thing[7]
  1816. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1817. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1818. else
  1819. if Thing[2] == "Blood" then
  1820. Mesh = Thing[7]
  1821. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  1822. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1823. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1824. else
  1825. if Thing[2] == "Elec" then
  1826. Mesh = Thing[10]
  1827. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  1828. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1829. else
  1830. if Thing[2] == "Disappear" then
  1831. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1832. end
  1833. end
  1834. end
  1835. end
  1836. end
  1837. end
  1838. end
  1839. end
  1840. end
  1841. else
  1842. Part.Parent = nil
  1843. table.remove(Effects, e)
  1844. end
  1845. end
  1846. end
  1847. end
  1848. end
  1849. end
  1850. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement