Advertisement
kebbyfan

FE Magic unknown

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