Advertisement
PixelDerpIsUber2

Untitled

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