Acc_kili

Untitled

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