Advertisement
Guest User

THE SUN IS DERRICK BAWB

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