Advertisement
RobloxScriptzzz

Yes

Nov 27th, 2017
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.37 KB | None | 0 0
  1. wait(1 / 60)
  2. Effects = { }
  3. local Player = game.Players.localPlayer
  4. local Character = Player.Character
  5. local Humanoid = Character.Humanoid
  6. local Mouse = Player:GetMouse()
  7. local LeftArm = Character["Left Arm"]
  8. local RightArm = Character["Right Arm"]
  9. local LeftLeg = Character["Left Leg"]
  10. local RightLeg = Character["Right Leg"]
  11. local Head = Character.Head
  12. local Torso = Character.Torso
  13. local Camera = game.Workspace.CurrentCamera
  14. local RootPart = Character.HumanoidRootPart
  15. local RootJoint = RootPart.RootJoint
  16. local attack = false
  17. local Anim = 'Idle'
  18. local attacktype = 1
  19. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  20. local velocity = RootPart.Velocity.y
  21. local sine = 0
  22. local change = 1
  23. local Create = LoadLibrary("RbxUtility").Create
  24.  
  25. local m = Create("Model"){
  26. Parent = Character,
  27. Name = "WeaponModel",
  28. }
  29.  
  30. Humanoid.Animator.Parent = nil
  31. Character.Animate.Parent = nil
  32.  
  33. local newMotor = function(part0, part1, c0, c1)
  34. local w = Create('Motor'){
  35. Parent = part0,
  36. Part0 = part0,
  37. Part1 = part1,
  38. C0 = c0,
  39. C1 = c1,
  40. }
  41. return w
  42. end
  43.  
  44. function clerp(a, b, t)
  45. return a:lerp(b, t)
  46. end
  47.  
  48. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  49. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  50.  
  51. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  52. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  53. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  54. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  55. RootJoint.C1 = CFrame.new(0, 0, 0)
  56. RootJoint.C0 = CFrame.new(0, 0, 0)
  57. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  58. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  59.  
  60. local rarmc1 = RW.C1
  61. local larmc1 = LW.C1
  62. local rlegc1 = RH.C1
  63. local llegc1 = LH.C1
  64.  
  65. local resetc1 = false
  66.  
  67. function PlayAnimationFromTable(table, speed, bool)
  68. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  69. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  70. RW.C0 = clerp(RW.C0, table[3], speed)
  71. LW.C0 = clerp(LW.C0, table[4], speed)
  72. RH.C0 = clerp(RH.C0, table[5], speed)
  73. LH.C0 = clerp(LH.C0, table[6], speed)
  74. if bool == true then
  75. if resetc1 == false then
  76. resetc1 = true
  77. RootJoint.C1 = RootJoint.C1
  78. Torso.Neck.C1 = Torso.Neck.C1
  79. RW.C1 = rarmc1
  80. LW.C1 = larmc1
  81. RH.C1 = rlegc1
  82. LH.C1 = llegc1
  83. end
  84. end
  85. end
  86.  
  87. ArtificialHB = Create("BindableEvent", script){
  88. Parent = script,
  89. Name = "Heartbeat",
  90. }
  91.  
  92. script:WaitForChild("Heartbeat")
  93.  
  94. frame = 1 / 30
  95. tf = 0
  96. allowframeloss = false
  97. tossremainder = false
  98. lastframe = tick()
  99. script.Heartbeat:Fire()
  100.  
  101. game:GetService("RunService").Heartbeat:connect(function(s, p)
  102. tf = tf + s
  103. if tf >= frame then
  104. if allowframeloss then
  105. script.Heartbeat:Fire()
  106. lastframe = tick()
  107. else
  108. for i = 1, math.floor(tf / frame) do
  109. script.Heartbeat:Fire()
  110. end
  111. lastframe = tick()
  112. end
  113. if tossremainder then
  114. tf = 0
  115. else
  116. tf = tf - frame * math.floor(tf / frame)
  117. end
  118. end
  119. end)
  120.  
  121. function swait(num)
  122. if num == 0 or num == nil then
  123. ArtificialHB.Event:wait()
  124. else
  125. for i = 0, num do
  126. ArtificialHB.Event:wait()
  127. end
  128. end
  129. end
  130.  
  131. function RemoveOutlines(part)
  132. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  133. end
  134.  
  135. CFuncs = {
  136. ["Part"] = {
  137. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  138. local Part = Create("Part"){
  139. Parent = Parent,
  140. Reflectance = Reflectance,
  141. Transparency = Transparency,
  142. CanCollide = false,
  143. Locked = true,
  144. BrickColor = BrickColor.new(tostring(BColor)),
  145. Name = Name,
  146. Size = Size,
  147. Material = Material,
  148. }
  149. RemoveOutlines(Part)
  150. return Part
  151. end;
  152. };
  153.  
  154. ["Mesh"] = {
  155. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  156. local Msh = Create(Mesh){
  157. Parent = Part,
  158. Offset = OffSet,
  159. Scale = Scale,
  160. }
  161. if Mesh == "SpecialMesh" then
  162. Msh.MeshType = MeshType
  163. Msh.MeshId = MeshId
  164. end
  165. return Msh
  166. end;
  167. };
  168.  
  169. ["Mesh"] = {
  170. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  171. local Msh = Create(Mesh){
  172. Parent = Part,
  173. Offset = OffSet,
  174. Scale = Scale,
  175. }
  176. if Mesh == "SpecialMesh" then
  177. Msh.MeshType = MeshType
  178. Msh.MeshId = MeshId
  179. end
  180. return Msh
  181. end;
  182. };
  183.  
  184. ["Weld"] = {
  185. Create = function(Parent, Part0, Part1, C0, C1)
  186. local Weld = Create("Weld"){
  187. Parent = Parent,
  188. Part0 = Part0,
  189. Part1 = Part1,
  190. C0 = C0,
  191. C1 = C1,
  192. }
  193. return Weld
  194. end;
  195. };
  196.  
  197. ["Sound"] = {
  198. Create = function(id, par, vol, pit)
  199. coroutine.resume(coroutine.create(function()
  200. local S = Create("Sound"){
  201. Volume = vol,
  202. Pitch = pit or 1,
  203. SoundId = id,
  204. Parent = par or workspace,
  205. }
  206. wait()
  207. S:play()
  208. game:GetService("Debris"):AddItem(S, 6)
  209. end))
  210. end;
  211. };
  212.  
  213. ["ParticleEmitter"] = {
  214. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  215. local fp = Create("ParticleEmitter"){
  216. Parent = Parent,
  217. Color = ColorSequence.new(Color1, Color2),
  218. LightEmission = LightEmission,
  219. Size = Size,
  220. Texture = Texture,
  221. Transparency = Transparency,
  222. ZOffset = ZOffset,
  223. Acceleration = Accel,
  224. Drag = Drag,
  225. LockedToPart = LockedToPart,
  226. VelocityInheritance = VelocityInheritance,
  227. EmissionDirection = EmissionDirection,
  228. Enabled = Enabled,
  229. Lifetime = LifeTime,
  230. Rate = Rate,
  231. Rotation = Rotation,
  232. RotSpeed = RotSpeed,
  233. Speed = Speed,
  234. VelocitySpread = VelocitySpread,
  235. }
  236. return fp
  237. end;
  238. };
  239.  
  240. CreateTemplate = {
  241.  
  242. };
  243. }
  244.  
  245. function rayCast(Position, Direction, Range, Ignore)
  246. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  247. end
  248.  
  249. FindNearestTorso = function(pos)
  250. local list = (game.Workspace:children())
  251. local torso = nil
  252. local dist = 1000
  253. local temp, human, temp2 = nil, nil, nil
  254. for x = 1, #list do
  255. temp2 = list[x]
  256. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  257. temp = temp2:findFirstChild("Torso")
  258. human = temp2:findFirstChild("Humanoid")
  259. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  260. local dohit = true
  261. if dohit == true then
  262. torso = temp
  263. dist = (temp.Position - pos).magnitude
  264. end
  265. end
  266. end
  267. end
  268. return torso, dist
  269. end
  270.  
  271. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  272. if hit.Parent == nil then
  273. return
  274. end
  275. local h = hit.Parent:FindFirstChild("Humanoid")
  276. for _, v in pairs(hit.Parent:children()) do
  277. if v:IsA("Humanoid") then
  278. h = v
  279. end
  280. end
  281. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  282. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  283. if hit.Parent.DebounceHit.Value == true then
  284. return
  285. end
  286. end
  287. local c = Create("ObjectValue"){
  288. Name = "creator",
  289. Value = game:service("Players").LocalPlayer,
  290. Parent = h,
  291. }
  292. game:GetService("Debris"):AddItem(c, .5)
  293. if HitSound ~= nil and HitPitch ~= nil then
  294. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  295. end
  296. local Damage = math.random(minim, maxim)
  297. local blocked = false
  298. local block = hit.Parent:findFirstChild("Block")
  299. if block ~= nil then
  300. if block.className == "IntValue" then
  301. if block.Value > 0 then
  302. blocked = true
  303. block.Value = block.Value - 1
  304. print(block.Value)
  305. end
  306. end
  307. end
  308. if blocked == false then
  309. h.Health = h.Health - Damage
  310. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  311. else
  312. h.Health = h.Health - (Damage / 2)
  313. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  314. end
  315. if Type == "Knockdown" then
  316. local hum = hit.Parent.Humanoid
  317. hum.PlatformStand = true
  318. coroutine.resume(coroutine.create(function(HHumanoid)
  319. swait(1)
  320. HHumanoid.PlatformStand = false
  321. end), hum)
  322. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  323. local bodvol = Create("BodyVelocity"){
  324. velocity = angle * knockback,
  325. P = 5000,
  326. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  327. Parent = hit,
  328. }
  329. local rl = Create("BodyAngularVelocity"){
  330. P = 3000,
  331. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  332. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  333. Parent = hit,
  334. }
  335. game:GetService("Debris"):AddItem(bodvol, .5)
  336. game:GetService("Debris"):AddItem(rl, .5)
  337. elseif Type == "Normal" then
  338. local vp = Create("BodyVelocity"){
  339. P = 500,
  340. maxForce = Vector3.new(math.huge, 0, math.huge),
  341. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  342. }
  343. if knockback > 0 then
  344. vp.Parent = hit.Parent.Torso
  345. end
  346. game:GetService("Debris"):AddItem(vp, .5)
  347. elseif Type == "Up" then
  348. local bodyVelocity = Create("BodyVelocity"){
  349. velocity = Vector3.new(0, 20, 0),
  350. P = 5000,
  351. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  352. Parent = hit,
  353. }
  354. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  355. elseif Type == "DarkUp" then
  356. coroutine.resume(coroutine.create(function()
  357. for i = 0, 1, 0.1 do
  358. swait()
  359. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  360. end
  361. end))
  362. local bodyVelocity = Create("BodyVelocity"){
  363. velocity = Vector3.new(0, 20, 0),
  364. P = 5000,
  365. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  366. Parent = hit,
  367. }
  368. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  369. elseif Type == "Snare" then
  370. local bp = Create("BodyPosition"){
  371. P = 2000,
  372. D = 100,
  373. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  374. position = hit.Parent.Torso.Position,
  375. Parent = hit.Parent.Torso,
  376. }
  377. game:GetService("Debris"):AddItem(bp, 1)
  378. elseif Type == "Freeze" then
  379. local BodPos = Create("BodyPosition"){
  380. P = 50000,
  381. D = 1000,
  382. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  383. position = hit.Parent.Torso.Position,
  384. Parent = hit.Parent.Torso,
  385. }
  386. local BodGy = Create("BodyGyro") {
  387. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  388. P = 20e+003,
  389. Parent = hit.Parent.Torso,
  390. cframe = hit.Parent.Torso.CFrame,
  391. }
  392. hit.Parent.Torso.Anchored = true
  393. coroutine.resume(coroutine.create(function(Part)
  394. swait(1.5)
  395. Part.Anchored = false
  396. end), hit.Parent.Torso)
  397. game:GetService("Debris"):AddItem(BodPos, 3)
  398. game:GetService("Debris"):AddItem(BodGy, 3)
  399. end
  400. local debounce = Create("BoolValue"){
  401. Name = "DebounceHit",
  402. Parent = hit.Parent,
  403. Value = true,
  404. }
  405. game:GetService("Debris"):AddItem(debounce, Delay)
  406. c = Create("ObjectValue"){
  407. Name = "creator",
  408. Value = Player,
  409. Parent = h,
  410. }
  411. game:GetService("Debris"):AddItem(c, .5)
  412. end
  413. end
  414.  
  415. function ShowDamage(Pos, Text, Time, Color)
  416. local Rate = (1 / 30)
  417. local Pos = (Pos or Vector3.new(0, 0, 0))
  418. local Text = (Text or "")
  419. local Time = (Time or 2)
  420. local Color = (Color or Color3.new(1, 0, 1))
  421. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  422. EffectPart.Anchored = true
  423. local BillboardGui = Create("BillboardGui"){
  424. Size = UDim2.new(3, 0, 3, 0),
  425. Adornee = EffectPart,
  426. Parent = EffectPart,
  427. }
  428. local TextLabel = Create("TextLabel"){
  429. BackgroundTransparency = 1,
  430. Size = UDim2.new(1, 0, 1, 0),
  431. Text = Text,
  432. Font = "SciFi",
  433. TextColor3 = Color,
  434. TextScaled = true,
  435. Parent = BillboardGui,
  436. }
  437. game.Debris:AddItem(EffectPart, (Time))
  438. EffectPart.Parent = game:GetService("Workspace")
  439. delay(0, function()
  440. local Frames = (Time / Rate)
  441. for Frame = 1, Frames do
  442. wait(Rate)
  443. local Percent = (Frame / Frames)
  444. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  445. TextLabel.TextTransparency = Percent
  446. end
  447. if EffectPart and EffectPart.Parent then
  448. EffectPart:Destroy()
  449. end
  450. end)
  451. end
  452.  
  453. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  454. for _, c in pairs(workspace:children()) do
  455. local hum = c:findFirstChild("Humanoid")
  456. if hum ~= nil then
  457. local head = c:findFirstChild("Torso")
  458. if head ~= nil then
  459. local targ = head.Position - Part.Position
  460. local mag = targ.magnitude
  461. if mag <= Magnitude and c.Name ~= Player.Name then
  462. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  463. end
  464. end
  465. end
  466. end
  467. end
  468.  
  469. EffectModel = Create("Model"){
  470. Parent = Character,
  471. Name = "Effects",
  472. }
  473.  
  474. Humanoid.WalkSpeed = 0
  475. Humanoid.JumpPower = 0
  476.  
  477. CFuncs['Sound'].Create("rbxassetid://347417588",Character,10,1)
  478. attack = true
  479.  
  480. New = function(Object, Parent, Name, Data)
  481. local Object = Instance.new(Object)
  482. for Index, Value in pairs(Data or {}) do
  483. Object[Index] = Value
  484. end
  485. Object.Parent = Parent
  486. Object.Name = Name
  487. return Object
  488. end
  489.  
  490. Deadly = New("Model",Torso,"Deadly",{})
  491. Sun = New("Part",Deadly,"Sun",{BrickColor = BrickColor.new("New Yeller"),Material = Enum.Material.Neon,Size = Vector3.new(0.5, 0.5, 0.5),CFrame = CFrame.new(-128.325043, 6.92500401, -88.5550079, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 1, 0),})
  492. SunWeld = New("Weld",Sun,"Weld",{Part0 = Sun,Part1 = Torso,C0 = CFrame.new(0,10,-10)})
  493. Mesh = New("SpecialMesh",Sun,"Mesh",{Scale = Vector3.new(25, 25, 25),MeshType = Enum.MeshType.Sphere,})
  494.  
  495.  
  496. wait(2.4)
  497. for i = 0, 5, .1 do
  498. swait()
  499. PlayAnimationFromTable({
  500. CFrame.new(0, -0, 0, 1, 0, -0, 0, 1, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  501. CFrame.new(7.62939453e-06, 1.49997127, 0, 1, 0, -0, 0, 1, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  502. CFrame.new(1.49998116, 1.30000138, -0, -0.925471961, -0.378816098, -0, 0.378816068, -0.925472021, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  503. CFrame.new(-1.49998665, -7.67409801e-07, 0, 0.996534884, 0.083175458, -0, -0.0831753537, 0.996536195, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  504. CFrame.new(0.500002444, -1.99997056, 0, 0.997888863, -0.0649460033, -0, 0.0649460033, 0.997888863, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  505. CFrame.new(-0.499981999, -1.99997056, 0, 0.998180926, 0.0602900013, -0, -0.0602900013, 0.998180926, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  506. }, .1, false)
  507. SunWeld.C0 = clerp(SunWeld.C0, CFrame.new(0,-15,-10), 0.1)
  508. end
  509. wait(0.5)
  510. Humanoid.WalkSpeed = 19
  511. Humanoid.JumpPower = 75
  512. attack = false
  513.  
  514. Effects = {
  515. Block = {
  516. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  517. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  518. prt.Anchored = true
  519. prt.CFrame = cframe
  520. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  521. game:GetService("Debris"):AddItem(prt, 10)
  522. if Type == 1 or Type == nil then
  523. table.insert(Effects, {
  524. prt,
  525. "Block1",
  526. delay,
  527. x3,
  528. y3,
  529. z3,
  530. msh
  531. })
  532. elseif Type == 2 then
  533. table.insert(Effects, {
  534. prt,
  535. "Block2",
  536. delay,
  537. x3,
  538. y3,
  539. z3,
  540. msh
  541. })
  542. end
  543. end;
  544. };
  545.  
  546. Cylinder = {
  547. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  548. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  549. prt.Anchored = true
  550. prt.CFrame = cframe
  551. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  552. game:GetService("Debris"):AddItem(prt, 10)
  553. table.insert(Effects, {
  554. prt,
  555. "Cylinder",
  556. delay,
  557. x3,
  558. y3,
  559. z3,
  560. msh
  561. })
  562. end;
  563. };
  564. Head = {
  565. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  566. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  567. prt.Anchored = true
  568. prt.CFrame = cframe
  569. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  570. game:GetService("Debris"):AddItem(prt, 10)
  571. table.insert(Effects, {
  572. prt,
  573. "Cylinder",
  574. delay,
  575. x3,
  576. y3,
  577. z3,
  578. msh
  579. })
  580. end;
  581. };
  582.  
  583. Sphere = {
  584. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  585. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  586. prt.Anchored = true
  587. prt.CFrame = cframe
  588. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  589. game:GetService("Debris"):AddItem(prt, 10)
  590. table.insert(Effects, {
  591. prt,
  592. "Cylinder",
  593. delay,
  594. x3,
  595. y3,
  596. z3,
  597. msh
  598. })
  599. end;
  600. };
  601.  
  602. Elect = {
  603. Create = function(cff, x, y, z)
  604. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  605. prt.Anchored = true
  606. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  607. prt.CFrame = CFrame.new(prt.Position)
  608. game:GetService("Debris"):AddItem(prt, 2)
  609. local xval = math.random() / 2
  610. local yval = math.random() / 2
  611. local zval = math.random() / 2
  612. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  613. table.insert(Effects, {
  614. prt,
  615. "Elec",
  616. 0.1,
  617. x,
  618. y,
  619. z,
  620. xval,
  621. yval,
  622. zval
  623. })
  624. end;
  625.  
  626. };
  627.  
  628. Ring = {
  629. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  630. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  631. prt.Anchored = true
  632. prt.CFrame = cframe
  633. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  634. game:GetService("Debris"):AddItem(prt, 10)
  635. table.insert(Effects, {
  636. prt,
  637. "Cylinder",
  638. delay,
  639. x3,
  640. y3,
  641. z3,
  642. msh
  643. })
  644. end;
  645. };
  646.  
  647.  
  648. Wave = {
  649. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  650. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  651. prt.Anchored = true
  652. prt.CFrame = cframe
  653. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  654. game:GetService("Debris"):AddItem(prt, 10)
  655. table.insert(Effects, {
  656. prt,
  657. "Cylinder",
  658. delay,
  659. x3,
  660. y3,
  661. z3,
  662. msh
  663. })
  664. end;
  665. };
  666.  
  667. Break = {
  668. Create = function(brickcolor, cframe, x1, y1, z1)
  669. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  670. prt.Anchored = true
  671. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  672. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  673. local num = math.random(10, 50) / 1000
  674. game:GetService("Debris"):AddItem(prt, 10)
  675. table.insert(Effects, {
  676. prt,
  677. "Shatter",
  678. num,
  679. prt.CFrame,
  680. math.random() - math.random(),
  681. 0,
  682. math.random(50, 100) / 100
  683. })
  684. end;
  685. };
  686.  
  687. Fire = {
  688. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  689. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  690. prt.Anchored = true
  691. prt.CFrame = cframe
  692. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  693. game:GetService("Debris"):AddItem(prt, 10)
  694. table.insert(Effects, {
  695. prt,
  696. "Fire",
  697. delay,
  698. 1,
  699. 1,
  700. 1,
  701. msh
  702. })
  703. end;
  704. };
  705.  
  706. FireWave = {
  707. Create = function(brickcolor, cframe, x1, y1, z1)
  708. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  709. prt.Anchored = true
  710. prt.CFrame = cframe
  711. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  712. local d = Create("Decal"){
  713. Parent = prt,
  714. Texture = "rbxassetid://26356434",
  715. Face = "Top",
  716. }
  717. local d = Create("Decal"){
  718. Parent = prt,
  719. Texture = "rbxassetid://26356434",
  720. Face = "Bottom",
  721. }
  722. game:GetService("Debris"):AddItem(prt, 10)
  723. table.insert(Effects, {
  724. prt,
  725. "FireWave",
  726. 1,
  727. 30,
  728. math.random(400, 600) / 100,
  729. msh
  730. })
  731. end;
  732. };
  733.  
  734. Lightning = {
  735. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  736. local magz = (p0 - p1).magnitude
  737. local curpos = p0
  738. local trz = {
  739. -ofs,
  740. ofs
  741. }
  742. for i = 1, tym do
  743. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  744. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  745. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  746. li.Material = "Neon"
  747. if tym == i then
  748. local magz2 = (curpos - p1).magnitude
  749. li.Size = Vector3.new(th, th, magz2)
  750. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  751. table.insert(Effects, {
  752. li,
  753. "Disappear",
  754. last
  755. })
  756. else
  757. do
  758. do
  759. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  760. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  761. game.Debris:AddItem(li, 10)
  762. table.insert(Effects, {
  763. li,
  764. "Disappear",
  765. last
  766. })
  767. end
  768. end
  769. end
  770. end
  771. end
  772. };
  773.  
  774. EffectTemplate = {
  775.  
  776. };
  777. }
  778.  
  779. function supernova()
  780. attack = true
  781. for i = 0, 1, 0.1 do
  782. swait()
  783. PlayAnimationFromTable({
  784. CFrame.new(0, -0, 0, 1, 0, -0, 0, 1, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  785. CFrame.new(7.62939453e-06, 1.49997127, 0, 1, 0, -0, 0, 1, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  786. CFrame.new(1.49998248, 1.03999865, 1.31132779e-07, -0.874934673, -0.48424086, -8.74230253e-08, 0.48424086, -0.874934673, 2.16521015e-13, -7.64895418e-08, -4.23336139e-08, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  787. CFrame.new(-1.45997405, 1.03999221, 0, -0.85547322, 0.5178473, -0, -0.517847538, -0.855473042, 0, 0, -0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  788. CFrame.new(0.500002444, -1.99997056, 0, 0.997888863, -0.0649460033, -0, 0.0649460033, 0.997888863, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  789. CFrame.new(-0.499981999, -1.99997056, 0, 0.998180926, 0.0602900013, -0, -0.0602900013, 0.998180926, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  790. }, .3, false)
  791. end
  792. wait(.5)
  793. for i = 0, 5, .1 do
  794. Mesh.Scale = Mesh.Scale + Vector3.new(2,2,2)
  795. swait()
  796. end
  797. --
  798. coroutine.wrap(function()
  799. repeat swait()
  800. Mesh.Scale = Mesh.Scale + Vector3.new(2,2,2)
  801. until nil
  802. end)()
  803. --CFuncs['Sound'].Create("rbxassetid://130771265",Character,10,1)
  804. local a = Instance.new("ColorCorrectionEffect",game:service'Lighting')
  805. a.TintColor = Color3.new(1,1,1)
  806. local b = Instance.new("BlurEffect",game:service'Lighting')
  807. b.Size = 0
  808.  
  809. for i = 1,0,-.1 do
  810. b.Size = b.Size + .5
  811. a.TintColor = Color3.new(1,1,i)
  812. wait()
  813. end
  814. wait(1)
  815.  
  816.  
  817. for i = 1,0,-.1 do
  818. a.TintColor = Color3.new(1,i,0)
  819. b.Size = b.Size + 1
  820. wait()
  821. end
  822.  
  823. wait(1)
  824.  
  825. for i = 1,0,-.1 do
  826. a.TintColor = Color3.new(i,0,0)
  827. wait()
  828. end
  829. wait(1)
  830.  
  831. coroutine.wrap(function()
  832. for i,v in next, workspace:children() do
  833. if v:IsA"Model" or v:IsA"Part" then
  834. if v:FindFirstChildOfClass"Humanoid"then
  835. v:BreakJoints()
  836. end
  837. end
  838. end
  839. end)()
  840. wait(1)
  841.  
  842. for i = 0,1,.1 do
  843. a.TintColor = Color3.new(1,1,i)
  844. b.Size = b.Size - 2
  845. wait()
  846. end
  847.  
  848. a:destroy()
  849. game:service'Debris':AddItem(b,3)
  850. end
  851. function attackone()
  852. CFuncs['Sound'].Create("rbxassetid://11900833",Character,10,1)
  853. local a = Instance.new("Part",Character)
  854. a.Name = "Lazer"
  855. a.Anchored = true
  856. a.CanCollide = false
  857. a.BrickColor = BrickColor.new"White"
  858. local ray = Ray.new(
  859. Sun.CFrame.p, -- origin
  860. (Mouse.Hit.p - Sun.CFrame.p).unit * 500 -- direction
  861. )
  862. local ignore = Character
  863. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  864. if hit then
  865. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  866.  
  867. if not humanoid then
  868. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  869. end
  870. if humanoid then
  871. if humanoid.Parent:IsA"Model" then
  872. humanoid.Parent:BreakJoints()
  873. end
  874. end
  875. end
  876. a.BottomSurface = 10
  877. a.TopSurface = 10
  878. local distance = (Sun.CFrame.p - position).magnitude
  879. a.Size = Vector3.new(1, 1, distance)
  880. a.CFrame = CFrame.new(Sun.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  881. game:GetService("Debris"):AddItem(a, 0.1)
  882. end
  883.  
  884. Mouse.Button1Down:connect(function()
  885. if attack == false and attacktype == 1 then
  886. attackone()
  887. end
  888. end)
  889.  
  890.  
  891. Mouse.KeyDown:connect(function(k)
  892. if attack == false and k == 'e' then
  893. supernova()
  894. end
  895. end)
  896. while true do
  897. swait()
  898. for i, v in pairs(Character:GetChildren()) do
  899. if v:IsA("Part") then
  900. v.Material = "SmoothPlastic"
  901. elseif v:IsA("Accessory") then
  902. v:WaitForChild("Handle").Material = "SmoothPlastic"
  903. end
  904. end
  905. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  906. velocity = RootPart.Velocity.y
  907. sine = sine + change
  908. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  909. if RootPart.Velocity.y > 1 and hit == nil then
  910. Anim = "Jump"
  911. if attack == false then
  912. PlayAnimationFromTable({
  913. CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  914. CFrame.new(-0.0579944476, 1.48445117, -0.000906195492, 0.999631822, -0.0259140469, -0.00804444961, 0.0262291897, 0.998776913, 0.0419151038, 0.0069484422, -0.0421099029, 0.999089062) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  915. CFrame.new(1.68067598, 0.167780995, 5.50026158e-08, 0.965881884, -0.258982956, -3.41060513e-13, 0.258982956, 0.965881884, 4.47034836e-07, 8.49010675e-08, 3.16640808e-07, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  916. CFrame.new(-1.67620921, 0.188169807, -3.04922651e-07, 0.95698452, 0.290146649, -2.61441073e-07, -0.290146649, 0.95698452, -1.0069979e-05, -2.89639524e-06, 1.04542296e-05, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  917. CFrame.new(0.537238836, -1.93797374, 0.176598221, 0.998698533, -0.0506777391, -0.00574572897, 0.0510024093, 0.992341697, 0.112511501, -6.35704041e-08, -0.112657718, 0.993634105) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  918. CFrame.new(-0.536944568, -1.94808352, 0.126473114, 0.998626292, 0.0520468242, 0.00521374354, -0.0523067154, 0.993665218, 0.0995327011, -3.84102691e-07, -0.099668026, 0.995023906) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  919. }, .3, false)
  920. end
  921. elseif RootPart.Velocity.y < -1 and hit == nil then
  922. Anim = "Fall"
  923. if attack == false then
  924. PlayAnimationFromTable({
  925. CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  926. CFrame.new(-0.0576509275, 1.50532985, -0.129091382, 0.999631822, -0.0231846143, -0.0140984114, 0.0262298863, 0.958684564, 0.283279002, 0.00694822101, -0.283544153, 0.958935201) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  927. CFrame.new(1.68622994, 0.21415168, 7.02040666e-08, 0.881990671, -0.471266806, -3.41060513e-13, 0.471266806, 0.881990671, 4.47034836e-07, 1.54493137e-07, 2.89139166e-07, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  928. CFrame.new(-1.72513735, 0.240890861, 2.54038241e-07, 0.814108491, 0.58071363, -2.61430017e-07, -0.580713034, 0.814108849, -1.00698489e-05, -6.08482924e-06, 8.98058715e-06, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  929. CFrame.new(0.536720514, -1.92783141, 0.223740995, 0.998698533, -0.0498600565, -0.0107376017, 0.0510031059, 0.976314366, 0.210260883, -3.04512355e-07, -0.210534185, 0.977587521) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  930. CFrame.new(-0.535922825, -1.92850935, 0.222419083, 0.99863112, 0.0512506701, 0.0104565797, -0.0523065142, 0.978474379, 0.199629858, -3.7062793e-07, -0.199902818, 0.97981596) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  931. }, .3, false)
  932. end
  933. elseif Torsovelocity < 1 and hit ~= nil then
  934. Anim = "Idle"
  935. if attack == false then
  936. change = 1
  937. PlayAnimationFromTable({
  938. CFrame.new(0, -0, 0, 1, 0, -0, 0, 1, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  939. CFrame.new(7.62939453e-06, 1.49997127, 0, 1, 0, -0, 0, 1, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(math.sin(sine/22)/12,0,0),
  940. CFrame.new(0.429973245, 0.490001738, -0.460011989, 0.0975494087, 0.994276762, -0.0435587466, 0.0559796244, -0.0491798446, -0.997221529, -0.993656218, 0.0948399603, -0.0604567304) * CFrame.new(0, 0, math.sin(sine/16)/14) * CFrame.Angles(0, math.sin(sine/16)/10, math.sin(sine/16)/10),
  941. CFrame.new(-0.320005357, 0.480002224, -0.539992452, 0.357028693, -0.930425704, -0.0826981664, -0.130211353, 0.0380947962, -0.990754068, 0.924973309, 0.364495993, -0.107551016) * CFrame.new(0, 0, math.sin(sine/16)/14) * CFrame.Angles(0, -math.sin(sine/16)/10, -math.sin(sine/16)/10),
  942. CFrame.new(0.500002444, -1.99997056, 0, 0.997888863, -0.0649460033, -0, 0.0649460033, 0.997888863, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  943. CFrame.new(-0.499981999, -1.99997056, 0, 0.998180926, 0.0602900013, -0, -0.0602900013, 0.998180926, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  944. }, .3, false)
  945.  
  946. end
  947. elseif Torsovelocity > 2 and hit ~= nil then
  948. Anim = "Walk"
  949. if attack == false then
  950. PlayAnimationFromTable({
  951. CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0- .08 * math.cos((sine) / 3), 0) * CFrame.Angles(0, 0, 0),
  952. CFrame.new(-0.0595112406, 1.55331731, -0.0425721854, 0.999631822, -0.0248252042, -0.010953242, 0.0262294486, 0.987443328, 0.155781403, 0.00694842171, -0.156010598, 0.987731278) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  953. CFrame.new(0.429973245, 0.490001738, -0.460011989, 0.0975494087, 0.994276762, -0.0435587466, 0.0559796244, -0.0491798446, -0.997221529, -0.993656218, 0.0948399603, -0.0604567304) * CFrame.new(0, 0, math.sin(sine/16)/14) * CFrame.Angles(0, math.sin(sine/16)/10, math.sin(sine/16)/10),
  954. CFrame.new(-0.320005357, 0.480002224, -0.539992452, 0.357028693, -0.930425704, -0.0826981664, -0.130211353, 0.0380947962, -0.990754068, 0.924973309, 0.364495993, -0.107551016) * CFrame.new(0, 0, math.sin(sine/16)/14) * CFrame.Angles(0, -math.sin(sine/16)/10, -math.sin(sine/16)/10),
  955. CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 6)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 6)), 0, 0),
  956. CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 6)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 6)), 0, 0),
  957. }, .3, false)
  958. end
  959. end
  960. if 0 < #Effects then
  961. for e = 1, #Effects do
  962. if Effects[e] ~= nil then
  963. local Thing = Effects[e]
  964. if Thing ~= nil then
  965. local Part = Thing[1]
  966. local Mode = Thing[2]
  967. local Delay = Thing[3]
  968. local IncX = Thing[4]
  969. local IncY = Thing[5]
  970. local IncZ = Thing[6]
  971. if Thing[2] == "Shoot" then
  972. local Look = Thing[1]
  973. local move = 30
  974. if Thing[8] == 3 then
  975. move = 10
  976. end
  977. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  978. if Thing[10] ~= nil then
  979. da = pos
  980. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  981. cfa = CFrame.new(Thing[4], pos)
  982. tehCF = cfa:lerp(cf2, 0.2)
  983. Thing[1] = tehCF.lookVector
  984. end
  985. local mag = (Thing[4] - pos).magnitude
  986. Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  987. if Thing[8] == 2 then
  988. Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1)
  989. end
  990. Thing[4] = Thing[4] + Look * move
  991. Thing[3] = Thing[3] - 1
  992. if 2 < Thing[5] then
  993. Thing[5] = Thing[5] - 0.3
  994. Thing[6] = Thing[6] - 0.3
  995. end
  996. if hit ~= nil then
  997. Thing[3] = 0
  998. if Thing[8] == 1 or Thing[8] == 3 then
  999. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1000. else
  1001. if Thing[8] == 2 then
  1002. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1003. if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
  1004. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1005. ref.Anchored = true
  1006. ref.CFrame = CFrame.new(pos)
  1007. CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
  1008. game:GetService("Debris"):AddItem(ref, 0.2)
  1009. Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2)
  1010. Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
  1011. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  1012. end
  1013. end
  1014. end
  1015. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1016. ref.Anchored = true
  1017. ref.CFrame = CFrame.new(pos)
  1018. Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  1019. game:GetService("Debris"):AddItem(ref, 1)
  1020. end
  1021. if Thing[3] <= 0 then
  1022. table.remove(Effects, e)
  1023. end
  1024. end
  1025. do
  1026. do
  1027. if Thing[2] == "FireWave" then
  1028. if Thing[3] <= Thing[4] then
  1029. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1030. Thing[3] = Thing[3] + 1
  1031. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1032. else
  1033. Part.Parent = nil
  1034. table.remove(Effects, e)
  1035. end
  1036. end
  1037. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1038. if Thing[1].Transparency <= 1 then
  1039. if Thing[2] == "Block1" then
  1040. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1041. Mesh = Thing[7]
  1042. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1043. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1044. else
  1045. if Thing[2] == "Block2" then
  1046. Thing[1].CFrame = Thing[1].CFrame
  1047. Mesh = Thing[7]
  1048. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1049. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1050. else
  1051. if Thing[2] == "Fire" then
  1052. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1053. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1054. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1055. else
  1056. if Thing[2] == "Cylinder" then
  1057. Mesh = Thing[7]
  1058. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1059. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1060. else
  1061. if Thing[2] == "Blood" then
  1062. Mesh = Thing[7]
  1063. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1064. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1065. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1066. else
  1067. if Thing[2] == "Elec" then
  1068. Mesh = Thing[10]
  1069. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1070. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1071. else
  1072. if Thing[2] == "Disappear" then
  1073. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1074. else
  1075. if Thing[2] == "Shatter" then
  1076. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1077. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1078. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1079. Thing[6] = Thing[6] + Thing[5]
  1080. end
  1081. end
  1082. end
  1083. end
  1084. end
  1085. end
  1086. end
  1087. end
  1088. else
  1089. Part.Parent = nil
  1090. table.remove(Effects, e)
  1091. end
  1092. end
  1093. end
  1094. end
  1095. end
  1096. end
  1097. end
  1098. end
  1099. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement