StarzoZero

Roblox FE Magic Unknown

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