Advertisement
Zebula_The_Scripter

converted to fe

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