Advertisement
Fogdoggy

Blue Sun

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