XxmadmaxgamexX

Untitled

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