Magic Unknown Fixed

Download Raw Clone


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

Raw paste data: