Vernlage

Untitled

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