Advertisement
DylanD2003

Untitled

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