carlosname

Untitled

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