ShutThefickUp

Untitled

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