Advertisement
Disseya

Unknown Magic FE

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