Advertisement
DarkScriptZEditors

Magic Unknown Fixed

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