hecknes

Roblox The sun is a deadly laser two

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