Advertisement
voidman

Untitled

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