Advertisement
SuperDragonFost

Untitled

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