Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.85 KB | None | 0 0
  1. --[[Nocturna_A._Alteriano_Night.Owl.Inc]]-- (Edit by kiukiubol & lilh3)
  2. wait(1 / 60)
  3. p = game.Players.LocalPlayer
  4. char = p.Character
  5. torso = char.Torso
  6. neck = char.Torso.Neck
  7. hum = char.Humanoid
  8. hum.MaxHealth = 75000
  9. wait()
  10. hum.Health =hum.MaxHealth
  11. char.Head.face.Texture = "rbxassetid://405587215"
  12.  
  13. function startup()
  14. coroutine.resume(coroutine.create(function()
  15. local m = Instance.new("Model", char)
  16. m.Name = "* C"
  17. local chat = Instance.new("Part", m)
  18. chat.TopSurface = "Smooth"
  19. chat.BottomSurface = "Smooth"
  20. chat.Name = "Head"
  21. chat.FormFactor = "Custom"
  22. chat.Size = Vector3.new(0.05, 0.05, 0.1)
  23. chat.Transparency = 0.9
  24. chat.CanCollide = false
  25. local Weld7 = Instance.new("Weld", char)
  26. Weld7.Part0 = char.Head
  27. Weld7.Part1 = chat
  28. Weld7.C1 = CFrame.new(0, -2, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  29. local cy7 = Instance.new("BlockMesh", chat)
  30. local h = Instance.new("Humanoid", m)
  31. h.MaxHealth = 0
  32. m.Name = "Star Platinum"
  33. end))
  34. end
  35.  
  36. z = Instance.new("Sound", torso)
  37. z.SoundId = "rbxassetid://264396581" -- Put Music ID Here.
  38. z.Looped = true
  39. z.Volume = 1
  40. wait(.1)
  41. z:Play()
  42.  
  43.  
  44. shirt = Instance.new("Shirt", char)
  45. shirt.Name = "Shirt"
  46. pants = Instance.new("Pants", char)
  47. pants.Name = "Pants"
  48. char.Shirt.ShirtTemplate = "rbxassetid://496506720"
  49. char.Pants.PantsTemplate = "rbxassetid://496512137"
  50.  
  51. Hat = Instance.new("Model")
  52. Hat.Parent = char
  53. Hat.Name = "Hat"
  54. rh = Instance.new("Part")
  55. rh.Parent = Hat
  56. rh.BrickColor = BrickColor.new("Really black")
  57. rh.Locked = true
  58. rh.CanCollide = false
  59. mesh = Instance.new("SpecialMesh")
  60. rh.formFactor = "Symmetric"
  61. mesh.MeshType = "FileMesh"
  62. mesh.MeshId = "rbxassetid://439736904"
  63. mesh.Parent = rh
  64. local weld = Instance.new("Weld")
  65. weld.Parent = rh
  66. weld.Part0 = rh
  67. weld.Part1 =char.Head
  68. weld.C0 = CFrame.new(0, -0.5, 0.5)*CFrame.Angles(0, 3, 0)
  69. mesh.Scale = Vector3.new(0.002,0.002, 0.002)
  70.  
  71. Effects = { }
  72. local Player = game.Players.localPlayer
  73. local Character = Player.Character
  74. local Humanoid = Character.Humanoid
  75. Humanoid.WalkSpeed = 20
  76. local Mouse = Player:GetMouse()
  77. local LeftArm = Character["Left Arm"]
  78. local RightArm = Character["Right Arm"]
  79. local LeftLeg = Character["Left Leg"]
  80. local RightLeg = Character["Right Leg"]
  81. local Head = Character.Head
  82. local Torso = Character.Torso
  83. local Camera = game.Workspace.CurrentCamera
  84. local RootPart = Character.HumanoidRootPart
  85. local RootJoint = RootPart.RootJoint
  86. local attack = false
  87. local Anim = 'Idle'
  88. local attacktype = 1
  89. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  90. local velocity = RootPart.Velocity.y
  91. local sine = 0
  92. local change = 1
  93. local Create = LoadLibrary("RbxUtility").Create
  94. local TimeStop = false
  95.  
  96. local m = Create("Model"){
  97. Parent = Character,
  98. Name = "WeaponModel",
  99. }
  100.  
  101. Humanoid.Animator.Parent = nil
  102. Character.Animate.Parent = nil
  103.  
  104. local newMotor = function(part0, part1, c0, c1)
  105. local w = Create('Motor'){
  106. Parent = part0,
  107. Part0 = part0,
  108. Part1 = part1,
  109. C0 = c0,
  110. C1 = c1,
  111. }
  112. return w
  113. end
  114.  
  115. function clerp(a, b, t)
  116. return a:lerp(b, t)
  117. end
  118.  
  119. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  120. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  121.  
  122. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  123. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  124. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  125. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  126. RootJoint.C1 = CFrame.new(0, 0, 0)
  127. RootJoint.C0 = CFrame.new(0, 0, 0)
  128. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  129. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  130.  
  131. local rarmc1 = RW.C1
  132. local larmc1 = LW.C1
  133. local rlegc1 = RH.C1
  134. local llegc1 = LH.C1
  135.  
  136. local resetc1 = false
  137.  
  138. function PlayAnimationFromTable(table, speed, bool)
  139. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  140. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  141. RW.C0 = clerp(RW.C0, table[3], speed)
  142. LW.C0 = clerp(LW.C0, table[4], speed)
  143. RH.C0 = clerp(RH.C0, table[5], speed)
  144. LH.C0 = clerp(LH.C0, table[6], speed)
  145. if bool == true then
  146. if resetc1 == false then
  147. resetc1 = true
  148. RootJoint.C1 = RootJoint.C1
  149. Torso.Neck.C1 = Torso.Neck.C1
  150. RW.C1 = rarmc1
  151. LW.C1 = larmc1
  152. RH.C1 = rlegc1
  153. LH.C1 = llegc1
  154. end
  155. end
  156. end
  157.  
  158. ArtificialHB = Create("BindableEvent", script){
  159. Parent = script,
  160. Name = "Heartbeat",
  161. }
  162.  
  163. script:WaitForChild("Heartbeat")
  164.  
  165. frame = 1 / 35
  166. tf = 0
  167. allowframeloss = false
  168. tossremainder = false
  169. lastframe = tick()
  170. script.Heartbeat:Fire()
  171.  
  172. game:GetService("RunService").Heartbeat:connect(function(s, p)
  173. tf = tf + s
  174. if tf >= frame then
  175. if allowframeloss then
  176. script.Heartbeat:Fire()
  177. lastframe = tick()
  178. else
  179. for i = 1, math.floor(tf / frame) do
  180. script.Heartbeat:Fire()
  181. end
  182. lastframe = tick()
  183. end
  184. if tossremainder then
  185. tf = 0
  186. else
  187. tf = tf - frame * math.floor(tf / frame)
  188. end
  189. end
  190. end)
  191.  
  192. function swait(num)
  193. if num == 0 or num == nil then
  194. ArtificialHB.Event:wait()
  195. else
  196. for i = 0, num do
  197. ArtificialHB.Event:wait()
  198. end
  199. end
  200. end
  201.  
  202. function RemoveOutlines(part)
  203. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  204. end
  205.  
  206. CFuncs = {
  207. Part = {
  208. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  209. local Part = Create("Part"){
  210. Parent = Parent,
  211. Reflectance = Reflectance,
  212. Transparency = Transparency,
  213. CanCollide = false,
  214. Locked = true,
  215. BrickColor = BrickColor.new(tostring(BColor)),
  216. Name = Name,
  217. Size = Size,
  218. Material = Material,
  219. }
  220. RemoveOutlines(Part)
  221. return Part
  222. end;
  223. };
  224.  
  225. Mesh = {
  226. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  227. local Msh = Create(Mesh){
  228. Parent = Part,
  229. Offset = OffSet,
  230. Scale = Scale,
  231. }
  232. if Mesh == "SpecialMesh" then
  233. Msh.MeshType = MeshType
  234. Msh.MeshId = MeshId
  235. end
  236. return Msh
  237. end;
  238. };
  239.  
  240. Weld = {
  241. Create = function(Parent, Part0, Part1, C0, C1)
  242. local Weld = Create("Weld"){
  243. Parent = Parent,
  244. Part0 = Part0,
  245. Part1 = Part1,
  246. C0 = C0,
  247. C1 = C1,
  248. }
  249. return Weld
  250. end;
  251. };
  252.  
  253. Sound = {
  254. Create = function(id, par, vol, pit)
  255. local Sound = Create("Sound"){
  256. Volume = vol,
  257. Pitch = pit or 1,
  258. SoundId = "rbxassetid://" .. id,
  259. Parent = par or workspace,
  260. }
  261. Sound:play()
  262. return Sound
  263. end;
  264. };
  265.  
  266. Decal = {
  267. Create = function(Color, Texture, Transparency, Name, Parent)
  268. local Decal = Create("Decal"){
  269. Color3 = Color,
  270. Texture = "rbxassetid://" .. Texture,
  271. Transparency = Transparency,
  272. Name = Name,
  273. Parent = Parent,
  274. }
  275. return Decal
  276. end;
  277. };
  278.  
  279. BillboardGui = {
  280. Create = function(Parent, Image, Position, Size)
  281. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  282. BillPar.CFrame = CFrame.new(Position)
  283. local Bill = Create("BillboardGui"){
  284. Parent = BillPar,
  285. Adornee = BillPar,
  286. Size = UDim2.new(1, 0, 1, 0),
  287. SizeOffset = Vector2.new(Size, Size),
  288. }
  289. local d = Create("ImageLabel", Bill){
  290. Parent = Bill,
  291. BackgroundTransparency = 1,
  292. Size = UDim2.new(1, 0, 1, 0),
  293. Image = "rbxassetid://" .. Image,
  294. }
  295. return BillPar
  296. end
  297. };
  298.  
  299. ParticleEmitter = {
  300. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  301. local Particle = Create("ParticleEmitter"){
  302. Parent = Parent,
  303. Color = ColorSequence.new(Color1, Color2),
  304. LightEmission = LightEmission,
  305. Size = Size,
  306. Texture = Texture,
  307. Transparency = Transparency,
  308. ZOffset = ZOffset,
  309. Acceleration = Accel,
  310. Drag = Drag,
  311. LockedToPart = LockedToPart,
  312. VelocityInheritance = VelocityInheritance,
  313. EmissionDirection = EmissionDirection,
  314. Enabled = Enabled,
  315. Lifetime = LifeTime,
  316. Rate = Rate,
  317. Rotation = Rotation,
  318. RotSpeed = RotSpeed,
  319. Speed = Speed,
  320. VelocitySpread = VelocitySpread,
  321. }
  322. return Particle
  323. end;
  324. };
  325.  
  326. CreateTemplate = {
  327.  
  328. };
  329. }
  330.  
  331. function rayCast(Position, Direction, Range, Ignore)
  332. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  333. end
  334.  
  335. function FindNearestTorso(Position, Distance, SinglePlayer)
  336. if SinglePlayer then
  337. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  338. end
  339. local List = {}
  340. for i, v in pairs(workspace:GetChildren()) do
  341. if v:IsA("Model") then
  342. if v:findFirstChild("Torso") then
  343. if v ~= Character then
  344. if (v.Torso.Position - Position).magnitude <= Distance then
  345. table.insert(List, v)
  346. end
  347. end
  348. end
  349. end
  350. end
  351. return List
  352. end
  353.  
  354. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  355. if hit.Parent == nil then
  356. return
  357. end
  358. local h = hit.Parent:FindFirstChild("Humanoid")
  359. for _, v in pairs(hit.Parent:children()) do
  360. if v:IsA("Humanoid") then
  361. h = v
  362. end
  363. end
  364. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  365. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  366. if hit.Parent.DebounceHit.Value == true then
  367. return
  368. end
  369. end
  370. local c = Create("ObjectValue"){
  371. Name = "creator",
  372. Value = game:service("Players").LocalPlayer,
  373. Parent = h,
  374. }
  375. game:GetService("Debris"):AddItem(c, .5)
  376. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  377. local Damage = math.random(minim, maxim)
  378. local blocked = false
  379. local block = hit.Parent:findFirstChild("Block")
  380. if block ~= nil then
  381. if block.className == "IntValue" then
  382. if block.Value > 0 then
  383. blocked = true
  384. block.Value = block.Value - 1
  385. print(block.Value)
  386. end
  387. end
  388. end
  389. if TimeStop == false then
  390. h.Health = h.Health - Damage
  391. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Deep blue").Color)
  392. elseif TimeStop == true then
  393. repeat wait() until TimeStop == false
  394. h.Health = h.Health - (Damage / 2)
  395. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Deep blue").Color)
  396. end
  397. if Type == "Knockdown" then
  398. local hum = hit.Parent.Humanoid
  399. hum.PlatformStand = true
  400. coroutine.resume(coroutine.create(function(HHumanoid)
  401. swait(1)
  402. HHumanoid.PlatformStand = false
  403. end), hum)
  404. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  405. local bodvol = Create("BodyVelocity"){
  406. velocity = angle * knockback,
  407. P = 5000,
  408. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  409. Parent = hit,
  410. }
  411. local rl = Create("BodyAngularVelocity"){
  412. P = 3000,
  413. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  414. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  415. Parent = hit,
  416. }
  417. game:GetService("Debris"):AddItem(bodvol, .5)
  418. game:GetService("Debris"):AddItem(rl, .5)
  419. elseif Type == "Normal" then
  420. local vp = Create("BodyVelocity"){
  421. P = 500,
  422. maxForce = Vector3.new(math.huge, 0, math.huge),
  423. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  424. }
  425. if knockback > 0 then
  426. vp.Parent = hit.Parent.Torso
  427. end
  428. game:GetService("Debris"):AddItem(vp, .5)
  429. elseif Type == "Up" then
  430. local bodyVelocity = Create("BodyVelocity"){
  431. velocity = Vector3.new(0, 20, 0),
  432. P = 5000,
  433. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  434. Parent = hit,
  435. }
  436. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  437. elseif Type == "DarkUp" then
  438. coroutine.resume(coroutine.create(function()
  439. for i = 0, 1, 0.1 do
  440. swait()
  441. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  442. end
  443. end))
  444. local bodyVelocity = Create("BodyVelocity"){
  445. velocity = Vector3.new(0, 20, 0),
  446. P = 5000,
  447. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  448. Parent = hit,
  449. }
  450. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  451. elseif Type == "Snare" then
  452. local bp = Create("BodyPosition"){
  453. P = 2000,
  454. D = 100,
  455. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  456. position = hit.Parent.Torso.Position,
  457. Parent = hit.Parent.Torso,
  458. }
  459. game:GetService("Debris"):AddItem(bp, 1)
  460. elseif Type == "Freeze" then
  461. local BodPos = Create("BodyPosition"){
  462. P = 50000,
  463. D = 1000,
  464. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  465. position = hit.Parent.Torso.Position,
  466. Parent = hit.Parent.Torso,
  467. }
  468. local BodGy = Create("BodyGyro") {
  469. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  470. P = 20e+003,
  471. Parent = hit.Parent.Torso,
  472. cframe = hit.Parent.Torso.CFrame,
  473. }
  474. hit.Parent.Torso.Anchored = true
  475. coroutine.resume(coroutine.create(function(Part)
  476. swait(1.5)
  477. Part.Anchored = false
  478. end), hit.Parent.Torso)
  479. game:GetService("Debris"):AddItem(BodPos, 3)
  480. game:GetService("Debris"):AddItem(BodGy, 3)
  481. end
  482. local debounce = Create("BoolValue"){
  483. Name = "DebounceHit",
  484. Parent = hit.Parent,
  485. Value = true,
  486. }
  487. game:GetService("Debris"):AddItem(debounce, Delay)
  488. c = Create("ObjectValue"){
  489. Name = "creator",
  490. Value = Player,
  491. Parent = h,
  492. }
  493. game:GetService("Debris"):AddItem(c, .5)
  494. end
  495. end
  496.  
  497. function ShowDamage(Pos, Text, Time, Color)
  498. local Rate = (1 / 30)
  499. local Pos = (Pos or Vector3.new(0, 0, 0))
  500. local Text = (Text or "")
  501. local Time = (Time or 2)
  502. local Color = (Color or Color3.new(1, 0, 1))
  503. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  504. EffectPart.Anchored = true
  505. local BillboardGui = Create("BillboardGui"){
  506. Size = UDim2.new(3, 0, 3, 0),
  507. Adornee = EffectPart,
  508. Parent = EffectPart,
  509. }
  510. local TextLabel = Create("TextLabel"){
  511. BackgroundTransparency = 1,
  512. Size = UDim2.new(1, 0, 1, 0),
  513. Text = Text,
  514. Font = "SciFi",
  515. TextColor3 = Color,
  516. TextScaled = true,
  517. Parent = BillboardGui,
  518. }
  519. game.Debris:AddItem(EffectPart, (Time))
  520. EffectPart.Parent = game:GetService("Workspace")
  521. delay(0, function()
  522. local Frames = (Time / Rate)
  523. for Frame = 1, Frames do
  524. wait(Rate)
  525. local Percent = (Frame / Frames)
  526. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  527. TextLabel.TextTransparency = Percent
  528. end
  529. if EffectPart and EffectPart.Parent then
  530. EffectPart:Destroy()
  531. end
  532. end)
  533. end
  534.  
  535. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  536. for _, c in pairs(workspace:children()) do
  537. local hum = c:findFirstChild("Humanoid")
  538. if hum ~= nil then
  539. local head = c:findFirstChild("Torso")
  540. if head ~= nil then
  541. local targ = head.Position - Part.Position
  542. local mag = targ.magnitude
  543. if mag <= Magnitude and c.Name ~= Player.Name then
  544. for i = 1, 10 do
  545. Effects.Elect.Create(head.CFrame, 10, 10, 10)
  546. end
  547. CFuncs.Sound.Create("0", head, 1, 1)
  548. Effects.Sphere.Create(BrickColor.new("Deep blue"), head.CFrame, .5, .5, .5, .5, .5, .5, .05)
  549. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, HitSound, HitPitch)
  550. end
  551. end
  552. end
  553. end
  554. end
  555.  
  556. HandleR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HandleR", Vector3.new(0.403949469, 0.452220112, 0.425030977))
  557. HandleRWeld = CFuncs.Weld.Create(m, Character["Right Arm"], HandleR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.637853563, -0.00997161865, 0.00182324648, 0, -1, 0, 1, 0, 0, 0, -0, 1))
  558. HitboxR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HitboxR", Vector3.new(1.00394952, 1.05222011, 1.02503109))
  559. HitboxRWeld = CFuncs.Weld.Create(m, HandleR, HitboxR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0999999642, 0, 5.96046448e-008, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  560. HandleL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HandleL", Vector3.new(0.403949469, 0.452220112, 0.425030977))
  561. HandleLWeld = CFuncs.Weld.Create(m, Character["Left Arm"], HandleL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.637853563, -0.00997924805, 0.00182324648, 0, -1, 0, 1, 0, 0, 0, -0, 1))
  562. HitboxL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Deep blue", "HitboxL", Vector3.new(1.00394952, 1.05222011, 1.02503109))
  563. HitboxLWeld = CFuncs.Weld.Create(m, HandleL, HitboxL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0999999642, 3.81469727e-006, 5.96046448e-008, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  564. sref = CFuncs.Part.Create(Character, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new())
  565. sref.Anchored = true
  566.  
  567. EffectModel = Create("Model"){
  568. Parent = Character,
  569. Name = "Effects",
  570. }
  571.  
  572. Effects = {
  573. Block = {
  574. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  575. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  576. prt.Anchored = true
  577. prt.CFrame = cframe
  578. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  579. game:GetService("Debris"):AddItem(prt, 10)
  580. if Type == 1 or Type == nil then
  581. table.insert(Effects, {
  582. prt,
  583. "Block1",
  584. delay,
  585. x3,
  586. y3,
  587. z3,
  588. msh
  589. })
  590. elseif Type == 2 then
  591. table.insert(Effects, {
  592. prt,
  593. "Block2",
  594. delay,
  595. x3,
  596. y3,
  597. z3,
  598. msh
  599. })
  600. end
  601. end;
  602. };
  603.  
  604. Cylinder = {
  605. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  606. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  607. prt.Anchored = true
  608. prt.CFrame = cframe
  609. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  610. game:GetService("Debris"):AddItem(prt, 2)
  611. table.insert(Effects, {
  612. prt,
  613. "Cylinder",
  614. delay,
  615. x3,
  616. y3,
  617. z3,
  618. msh
  619. })
  620. end;
  621. };
  622.  
  623. Head = {
  624. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  625. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  626. prt.Anchored = true
  627. prt.CFrame = cframe
  628. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  629. game:GetService("Debris"):AddItem(prt, 10)
  630. table.insert(Effects, {
  631. prt,
  632. "Cylinder",
  633. delay,
  634. x3,
  635. y3,
  636. z3,
  637. msh
  638. })
  639. end;
  640. };
  641.  
  642. Sphere = {
  643. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  644. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  645. prt.Anchored = true
  646. prt.CFrame = cframe
  647. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  648. game:GetService("Debris"):AddItem(prt, 10)
  649. table.insert(Effects, {
  650. prt,
  651. "Cylinder",
  652. delay,
  653. x3,
  654. y3,
  655. z3,
  656. msh
  657. })
  658. end;
  659. };
  660.  
  661. Elect = {
  662. Create = function(cff, x, y, z)
  663. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Deep blue"), "Part", Vector3.new(1, 1, 1))
  664. prt.Anchored = true
  665. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  666. prt.CFrame = CFrame.new(prt.Position)
  667. game:GetService("Debris"):AddItem(prt, 2)
  668. local xval = math.random() / 2
  669. local yval = math.random() / 2
  670. local zval = math.random() / 2
  671. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  672. table.insert(Effects, {
  673. prt,
  674. "Elec",
  675. 0.1,
  676. x,
  677. y,
  678. z,
  679. xval,
  680. yval,
  681. zval
  682. })
  683. end;
  684.  
  685. };
  686.  
  687. Ring = {
  688. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  689. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  690. prt.Anchored = true
  691. prt.CFrame = cframe
  692. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  693. game:GetService("Debris"):AddItem(prt, 10)
  694. table.insert(Effects, {
  695. prt,
  696. "Cylinder",
  697. delay,
  698. x3,
  699. y3,
  700. z3,
  701. msh
  702. })
  703. end;
  704. };
  705.  
  706.  
  707. Wave = {
  708. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  709. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  710. prt.Anchored = true
  711. prt.CFrame = cframe
  712. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  713. game:GetService("Debris"):AddItem(prt, 10)
  714. table.insert(Effects, {
  715. prt,
  716. "Cylinder",
  717. delay,
  718. x3,
  719. y3,
  720. z3,
  721. msh
  722. })
  723. end;
  724. };
  725.  
  726. Break = {
  727. Create = function(brickcolor, cframe, x1, y1, z1)
  728. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  729. prt.Anchored = true
  730. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  731. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  732. local num = math.random(10, 50) / 1000
  733. game:GetService("Debris"):AddItem(prt, 10)
  734. table.insert(Effects, {
  735. prt,
  736. "Shatter",
  737. num,
  738. prt.CFrame,
  739. math.random() - math.random(),
  740. 0,
  741. math.random(50, 100) / 100
  742. })
  743. end;
  744. };
  745.  
  746. Fire = {
  747. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  748. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  749. prt.Anchored = true
  750. prt.CFrame = cframe
  751. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  752. game:GetService("Debris"):AddItem(prt, 10)
  753. table.insert(Effects, {
  754. prt,
  755. "Fire",
  756. delay,
  757. 1,
  758. 1,
  759. 1,
  760. msh
  761. })
  762. end;
  763. };
  764.  
  765. FireWave = {
  766. Create = function(brickcolor, cframe, x1, y1, z1)
  767. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  768. prt.Anchored = true
  769. prt.CFrame = cframe
  770. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  771. local d = Create("Decal"){
  772. Parent = prt,
  773. Texture = "rbxassetid://26356434",
  774. Face = "Top",
  775. }
  776. local d = Create("Decal"){
  777. Parent = prt,
  778. Texture = "rbxassetid://26356434",
  779. Face = "Bottom",
  780. }
  781. game:GetService("Debris"):AddItem(prt, 10)
  782. table.insert(Effects, {
  783. prt,
  784. "FireWave",
  785. 1,
  786. 30,
  787. math.random(400, 600) / 100,
  788. msh
  789. })
  790. end;
  791. };
  792.  
  793. Lightning = {
  794. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  795. local magz = (p0 - p1).magnitude
  796. local curpos = p0
  797. local trz = {
  798. -ofs,
  799. ofs
  800. }
  801. for i = 1, tym do
  802. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  803. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  804. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  805. li.Material = "Neon"
  806. if tym == i then
  807. local magz2 = (curpos - p1).magnitude
  808. li.Size = Vector3.new(th, th, magz2)
  809. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  810. table.insert(Effects, {
  811. li,
  812. "Disappear",
  813. last
  814. })
  815. else
  816. do
  817. do
  818. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  819. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  820. game.Debris:AddItem(li, 10)
  821. table.insert(Effects, {
  822. li,
  823. "Disappear",
  824. last
  825. })
  826. end
  827. end
  828. end
  829. end
  830. end
  831. };
  832.  
  833. EffectTemplate = {
  834.  
  835. };
  836. }
  837.  
  838. local DORARA = false
  839.  
  840. function ORA()
  841. attack = true
  842. for i = 0, 1, 0.2 do
  843. swait()
  844. PlayAnimationFromTable({
  845. CFrame.new(4.76837158e-007, -0.107780606, -0.0868092626, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  846. CFrame.new(0, 1.4999913, 2.38418608e-007, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  847. CFrame.new(1.50214899, 0.590444803, 0.195881441, 0.965925872, 3.76027884e-007, 0.258818895, 0.257834077, -0.0871552154, -0.962250412, 0.0225570519, 0.99619478, -0.0841855928) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  848. CFrame.new(-1.60470915, 0.600643516, 0.204860806, 0.937436998, -0.0449436344, -0.345242023, -0.345831364, -0.00582624972, -0.938278675, 0.0401581824, 0.998972595, -0.0210046768) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  849. CFrame.new(0.636808395, -1.93472588, -0.370165229, 0.936116338, -0.0517791435, -0.347858071, 0.0266665779, 0.996705353, -0.0765988752, 0.350678325, 0.0624292716, 0.934412897) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  850. CFrame.new(-0.6665681, -1.92173398, -0.343467057, 0.962250233, 0.0613082647, 0.265171379, -0.0410595685, 0.99584806, -0.0812460929, -0.269051433, 0.0672912449, 0.960772276) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  851. }, .3, false)
  852. end
  853. local DORA = CFuncs.Sound.Create("161823027", Torso, 1, 1)
  854. Instance.new("DistortionSoundEffect", DORA).Level = .45
  855. DORA.Looped = true
  856. local Con1 = HitboxL.Touched:connect(function(hit) Damage(HitboxL, hit, 1, 5, 0, "Normal", RootPart, 0, "260430117", 1) end)
  857. local Con2 = HitboxR.Touched:connect(function(hit) Damage(HitboxR, hit, 1, 5, 0, "Normal", RootPart, 0, "260430117", 1) end)
  858. while DORARA == true do
  859. RootPart.Velocity = RootPart.CFrame.lookVector * 5
  860. for i = 0, 1, 0.7 do
  861. swait()
  862. Effects.Elect.Create(HitboxL.CFrame, 4, 4, 4)
  863. Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxL.CFrame, .5, .5, .5, 1.5, 1.5, 1.5, .15)
  864. PlayAnimationFromTable({
  865. CFrame.new(-0.0223142356, -0.107780628, -0.249816686, 0.906307876, 0.0733869597, -0.416197479, 0, 0.98480773, 0.173648462, 0.422617942, -0.157378972, 0.892539084) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  866. CFrame.new(-2.22850417e-007, 1.49999118, 1.16660271e-006, 0.906307936, 1.49011612e-008, 0.422617972, -7.27595761e-009, 1, 0, -0.422618032, 0, 0.906308055) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  867. CFrame.new(1.5318948, 0.588474631, 0.207054406, 0.899958313, 0.340718478, 0.272003621, 0.314965397, -0.0767233223, -0.945997, -0.301449746, 0.9370296, -0.176362336) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  868. CFrame.new(-1.27977741, 0.723447502, -1.20010054, 0.726744413, 0.46058476, -0.509611845, -0.503104627, -0.148215696, -0.851421177, -0.46768418, 0.875153661, 0.124007396) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  869. CFrame.new(0.636807501, -1.93472636, -0.370165735, 0.868198872, -0.0517790169, 0.493507534, 0.075819321, 0.996705353, -0.0288097262, -0.490389913, 0.0624299645, 0.869264364) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  870. CFrame.new(-0.666569352, -1.92173386, -0.343467534, 0.86083132, 0.0613082871, 0.505183935, -0.018632248, 0.995848, -0.0891051888, -0.508549333, 0.0672918186, 0.858399451) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  871. }, .9, false)
  872. end
  873. CFuncs.Sound.Create("200632136", HitboxL, 1, 1)
  874. Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxL.CFrame, .5, .5, .5, 2, 2, 2, .15)
  875. RootPart.Velocity = RootPart.CFrame.lookVector * 5
  876. for i = 0, 1, 0.7 do
  877. swait()
  878. Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxR.CFrame, .5, .5, .5, 1.5, 1.5, 1.5, .2)
  879. PlayAnimationFromTable({
  880. CFrame.new(0.0767437443, -0.107780531, -0.279432267, 0.866025388, -0.0868241936, 0.492404073, 0, 0.98480773, 0.173648342, -0.500000238, -0.150383845, 0.852868438) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  881. CFrame.new(-2.61076184e-006, 1.4999913, -6.19508683e-007, 0.866025209, 2.98023224e-007, -0.500000656, -2.56928615e-007, 1, 1.1920929e-007, 0.500000596, 2.98023224e-008, 0.866025209) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  882. CFrame.new(1.40606534, 0.812639356, -1.14933658, 0.82139349, -0.422619373, 0.383021921, 0.349686205, -0.157378837, -0.923553765, 0.450591207, 0.892538428, 0.0185142085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  883. CFrame.new(-1.64197171, 0.599264741, 0.212680459, 0.807513177, -0.456930667, -0.373010725, -0.413006425, 0.0134942085, -0.9106282, 0.421127379, 0.889400065, -0.177818552) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  884. CFrame.new(0.636808515, -1.93472552, -0.37016958, 0.814187765, -0.0517790765, -0.578288436, 0.00593282748, 0.996705353, -0.0808905214, 0.580571651, 0.0624291934, 0.811812401) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  885. CFrame.new(-0.666569233, -1.92173398, -0.343468547, 0.867917657, 0.0613080971, -0.492910266, -0.0864830092, 0.99584806, -0.0284160972, 0.489121556, 0.0672912076, 0.869616032) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  886. }, .9, false)
  887. end
  888.  
  889. fat = Instance.new("BindableEvent", script)
  890. fat.Name = "Heartbeat"
  891. script:WaitForChild("Heartbeat")
  892. frame = 0.013333333333333
  893. tf = 0
  894. allowframeloss = false
  895. tossremainder = false
  896. lastframe = tick()
  897. script.Heartbeat:Fire()
  898. local ss = Instance.new("Sound",char)
  899. ss.Volume = 3
  900. ss.Looped = true
  901. ss.Pitch = 1
  902. ss.SoundId = "rbxassetid://0"
  903. ss:Play()
  904. function sbchat(msg,displayname)
  905. if not displayname then
  906. displayname = 'bela'
  907. end
  908. for i,v in pairs(game:GetService('Players'):GetChildren()) do
  909. local st = Instance.new('StringValue')
  910. st.Name = 'SB_Chat'
  911. st.Value = displayname..'/'..msg
  912. delay(0.2,function() st.Parent = v end)
  913. end
  914. end
  915.  
  916. sbchat("ORA ORA ORA",'[Star Platinum]')
  917. CFuncs.Sound.Create("200632136", HitboxR, 1, 1)
  918. Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxR.CFrame, .5, .5, .5, 2, 2, 2, .2)
  919. end
  920. Con1:disconnect()
  921. Con2:disconnect()
  922. DORA:Stop()
  923. attack = false
  924. end
  925.  
  926. local stoppedParts = {}
  927.  
  928.  
  929. function getAllParts()
  930. local rtn = {}
  931.  
  932. local function recurse(object)
  933. for q,e in next, object:children() do
  934. if e:isA'BasePart' and e.Name ~= "HumanoidRootPart" then
  935. table.insert(rtn, e)
  936. end
  937. recurse(e)
  938. end
  939. end
  940.  
  941. recurse(workspace)
  942. return rtn
  943. end
  944.  
  945. function stopParts(distance)
  946. stoppedParts = {}
  947. for nada, part in next, getAllParts() do
  948. local dist = (Torso.Position-part.Position).magnitude
  949. if dist <= distance and part.Name ~='Base' and part.Name ~= 'Baseplate' and not part:isDescendantOf(Torso.Parent) and part.Anchored ~= true then
  950. table.insert(stoppedParts, part)
  951. if part.Name ~= "Torso" and part.Anchored ~= true then
  952. part.Anchored = true
  953. end
  954. end
  955. end
  956. end
  957.  
  958.  
  959. function freeParts()
  960. for q,e in next, stoppedParts do
  961. stoppedParts[q] = nil
  962. e.Anchored = false
  963. end
  964. end
  965.  
  966. local effect = Instance.new('ColorCorrectionEffect')
  967. function TheWorld(Mode)
  968. if Mode == "Time Start" then
  969. Effects.Sphere.Create(BrickColor.new("Deep blue"), HitboxL.CFrame, .5, .5, .5, 1.5, 1.5, 1.5, .15)
  970. for i = 1,50 do
  971. if effect.Saturation <= 0 then
  972. effect.Saturation = effect.Saturation + i/50
  973. end
  974. swait(1/30)
  975. end
  976. freeParts()
  977. effect.Saturation = 0
  978. effect.Contrast = 0
  979. effect.Parent = nil
  980. workspace.Gravity = 196.2
  981. end
  982. if Mode == "Quick Stop" then
  983.  
  984. fat = Instance.new("BindableEvent", script)
  985. fat.Name = "Heartbeat"
  986. script:WaitForChild("Heartbeat")
  987. frame = 0.013333333333333
  988. tf = 0
  989. allowframeloss = false
  990. tossremainder = false
  991. lastframe = tick()
  992. script.Heartbeat:Fire()
  993. local ss = Instance.new("Sound",char)
  994. ss.Volume = 3
  995. ss.Looped = true
  996. ss.Pitch = 1
  997. ss.SoundId = "rbxassetid://0"
  998. ss:Play()
  999. function sbchat(msg,displayname)
  1000. if not displayname then
  1001. displayname = 'bela'
  1002. end
  1003. for i,v in pairs(game:GetService('Players'):GetChildren()) do
  1004. local st = Instance.new('StringValue')
  1005. st.Name = 'SB_Chat'
  1006. st.Value = displayname..'/'..msg
  1007. delay(0.2,function() st.Parent = v end)
  1008. end
  1009. end
  1010.  
  1011. sbchat("THE WORLD!",'[Star Platinum]')
  1012. local zawarudo = CFuncs.Sound.Create("735067173", workspace, 1, 1)
  1013. Instance.new("DistortionSoundEffect", zawarudo).Level = .67
  1014. swait(60)
  1015. Effects.Sphere.Create(BrickColor.new("Institutional white"), RootPart.CFrame, 1, 1, 1, 50, 50, 50, .01)
  1016. effect.Parent = game.Lighting
  1017. for i = 1,50 do
  1018. effect.Saturation = -(i/10)
  1019. swait()
  1020. end
  1021. stopParts(5555)
  1022. end
  1023. end
  1024.  
  1025. Mouse.Button1Down:connect(function()
  1026. if attack == false and DORARA == false then
  1027. DORARA = true
  1028. ORA()
  1029. end
  1030. end)
  1031.  
  1032. Mouse.Button1Up:connect(function()
  1033. if attack == true and DORARA == true then
  1034. DORARA = false
  1035. end
  1036. end)
  1037.  
  1038. Mouse.KeyDown:connect(function(k)
  1039. k = k:lower()
  1040. if attack == false and k == 'g' and TimeStop == false then
  1041. TimeStop = true
  1042. TheWorld("Quick Stop")
  1043. elseif attack == false and k == 'g' and TimeStop == true then
  1044. TimeStop = false
  1045. TheWorld("Time Start")
  1046. end
  1047. end)
  1048.  
  1049. while true do
  1050. swait()
  1051. sref.CFrame = RightArm.CFrame * CFrame.new(0, -1.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0)
  1052. for i, v in pairs(Character:GetChildren()) do
  1053. if v:IsA("Part") then
  1054. v.Material = "SmoothPlastic"
  1055. elseif v:IsA("Accessory") then
  1056. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1057. end
  1058. end
  1059. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1060. velocity = RootPart.Velocity.y
  1061. sine = sine + change
  1062. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1063. if RootPart.Velocity.y > 1 and hit == nil then
  1064. Anim = "Jump"
  1065. if attack == false then
  1066. PlayAnimationFromTable({
  1067. CFrame.new(0, 0.0486936681, -0.0429394133, 1, 0, -0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1068. CFrame.new(0, 1.48698187, -0.0992434025, 1, 0, 0, 0, 0.98480767, 0.173648626, -0, -0.173648626, 0.98480767) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1069. CFrame.new(1.66118193, 0.583681226, 0.430878729, 0.556951106, -0.772693694, -0.30454877, 0.830109596, 0.506009281, 0.234249175, -0.026898358, -0.383274168, 0.923242927) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1070. CFrame.new(-1.65963519, 0.695907593, 0.339572817, 0.482961893, 0.810776234, 0.330741376, -0.866026103, 0.498096228, 0.0435779653, -0.129409045, -0.307477146, 0.94271481) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1071. CFrame.new(0.499997795, -1.71809137, -0.102601528, 0.984807849, 3.55863392e-007, -0.173647791, 0.0593907312, 0.939692557, 0.336824298, 0.163175657, -0.342020214, 0.925416589) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1072. CFrame.new(-0.599241376, -1.29528463, -0.396836221, 0.992403984, 0.086823605, 0.0871558413, -0.118890785, 0.858931601, 0.498097867, -0.0316142589, -0.504676282, 0.862729669) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1073. }, .3, false)
  1074. end
  1075. elseif RootPart.Velocity.y < -1 and hit == nil then
  1076. Anim = "Fall"
  1077. if attack == false then
  1078. PlayAnimationFromTable({
  1079. CFrame.new(-0, -0.0520263538, -0.0354017057, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1080. CFrame.new(0, 1.51533091, -0.10684365, 1, 0, 0, 0, 0.965925872, 0.258819342, 0, -0.258819342, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1081. CFrame.new(1.67554009, 0.885679007, 0.385592818, 0.374123871, -0.696466088, -0.61234498, 0.914592147, 0.386364758, 0.119345918, 0.153468132, -0.604696095, 0.781530797) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1082. CFrame.new(-1.67474985, 0.999329269, 0.296636045, 0.250219911, 0.753912985, 0.607457995, -0.927206695, 0.367205799, -0.0738086402, -0.278707415, -0.544770718, 0.79091537) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1083. CFrame.new(0.504494727, -1.81757987, -0.0935191363, 0.984807849, -0.0449431092, -0.167730823, 0.059390761, 0.99484998, 0.0821366012, 0.163175508, -0.0908504426, 0.982405365) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1084. CFrame.new(-0.623603821, -1.49203336, -0.421764404, 0.992403865, 0.122534379, 0.0109562073, -0.118891656, 0.978150725, -0.17054674, -0.0316146575, 0.167948633, 0.985288799) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1085. }, .3, false)
  1086. end
  1087. elseif Torsovelocity < 1 and hit ~= nil then
  1088. Anim = "Idle"
  1089. if attack == false then
  1090. change = 1
  1091. PlayAnimationFromTable({
  1092. CFrame.new(-0.0254490171, -0.100000001, -0.0245252885, 0.965925872, 0, 0.258818984, 0, 1, 0, -0.258818984, 0, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1093. CFrame.new(-5.58793545e-008, 1.49999201, 2.23517418e-007, 0.965925872, 0.02255762, -0.257834077, 0, 0.996194661, 0.087155968, 0.258818984, -0.0841862038, 0.962250173) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1094. CFrame.new(1.18608475, 0.561332762, -0.668662548, 0.815707564, 0.397307515, 0.420437992, 0.567439079, -0.408345699, -0.71502924, -0.112402454, 0.821827531, -0.558538496) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1095. CFrame.new(-1.18486226, 0.664583206, -0.703545451, 0.801997423, -0.384815574, -0.456855893, -0.595755875, -0.459863067, -0.658483863, 0.0433037281, 0.800276875, -0.598065078) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1096. CFrame.new(0.602607846, -1.89999723, -0.281901717, 0.938264608, -0.0318391919, -0.344450235, 0.0551190265, 0.996793628, 0.0580029301, 0.341499031, -0.0734078437, 0.937011182) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1097. CFrame.new(-0.68740654, -1.99010217, 0.313043743, 0.998308659, 0.0566585623, -0.0130319893, -0.0526040196, 0.975744903, 0.212496698, 0.0247556716, -0.211451754, 0.977074862) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1098. }, .3, false)
  1099. end
  1100. elseif Torsovelocity > 2 and hit ~= nil then
  1101. Anim = "Walk"
  1102. if attack == false then
  1103. change = 2
  1104. PlayAnimationFromTable({
  1105. CFrame.new(-0, -0.331043243, -0.246173918, 1, 0, 0, 0, 0.906307876, 0.422617942, 0, -0.422617942, 0.906307876) * CFrame.new(0, .1, 0) * CFrame.Angles(0, math.rad(-5 * math.cos(sine / 7)), 0),
  1106. CFrame.new(0, 1.4999913, 6.55651093e-007, 1, 0, 0, 0, 0.965925813, -0.258818924, 0, 0.258818924, 0.965925813) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(5 * math.cos(sine / 7)), 0),
  1107. CFrame.new(1.14562762, 0.526349247, -0.591056466, 0.825674891, 0.469375819, 0.312965363, 0.547643542, -0.533675969, -0.644419432, -0.135452792, 0.703474402, -0.697693527) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1108. CFrame.new(-1.14244175, 0.534408689, -0.582344949, 0.825674295, -0.469376504, -0.312966168, -0.547644734, -0.533675849, -0.644418597, 0.13545242, 0.703474045, -0.697693944) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1109. CFrame.new(.5, -1.64 - 0.5 * math.cos(sine / 8) / 2, 0 + 2 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(-70 * math.sin(sine / 8)), math.rad(-3), math.rad(0)),
  1110. CFrame.new(-.5, -1.64 + 0.5 * math.cos(sine / 8) / 2, 0 - 2 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(70 * math.sin(sine / 8)), math.rad(3), math.rad(0)),
  1111. }, .3, false)
  1112. end
  1113. end
  1114. if 0 < #Effects then
  1115. for e = 1, #Effects do
  1116. if Effects[e] ~= nil then
  1117. local Thing = Effects[e]
  1118. if Thing ~= nil then
  1119. local Part = Thing[1]
  1120. local Mode = Thing[2]
  1121. local Delay = Thing[3]
  1122. local IncX = Thing[4]
  1123. local IncY = Thing[5]
  1124. local IncZ = Thing[6]
  1125. if Thing[2] == "Shoot" then
  1126. local Look = Thing[1]
  1127. local move = 5
  1128. local hit, pos = rayCast(Thing[4], Thing[1], move, Character)
  1129. if Thing[10] ~= nil then
  1130. da = pos
  1131. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1132. cfa = CFrame.new(Thing[4], pos)
  1133. tehCF = cfa:lerp(cf2, 0.2)
  1134. Thing[1] = tehCF.lookVector
  1135. end
  1136. local mag = (Thing[4] - pos).magnitude
  1137. Effects.Elect.Create(CFrame.new((Thing[4] + pos) / 2, pos), 4, 4, 4)
  1138. Effects.Sphere.Create(BrickColor.new("Deep blue"), CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, 3, 3, 5, 5, 5, 0.15)
  1139. Thing[4] = Thing[4] + Look * move
  1140. Thing[3] = Thing[3] - 1
  1141. if 2 < Thing[5] then
  1142. Thing[5] = Thing[5] - 0.3
  1143. Thing[6] = Thing[6] - 0.3
  1144. end
  1145. if hit ~= nil then
  1146. Thing[3] = 0
  1147. MagnitudeDamage(hit, 5, 10, 15, 0, "Normal", "161006093", 0.8)
  1148. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1149. ref.Anchored = true
  1150. ref.CFrame = CFrame.new(pos)
  1151. Effects.Block.Create(BrickColor.new("Deep blue"), CFrame.new(pos), 1, 1, 1, 2, 2, 2, .05)
  1152. Effects.Sphere.Create(BrickColor.new("Deep blue"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.03)
  1153. game:GetService("Debris"):AddItem(ref, 1)
  1154. end
  1155. if Thing[3] <= 0 then
  1156. table.remove(Effects, e)
  1157. end
  1158. end
  1159. do
  1160. do
  1161. if Thing[2] == "FireWave" then
  1162. if Thing[3] <= Thing[4] then
  1163. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1164. Thing[3] = Thing[3] + 1
  1165. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1166. else
  1167. Part.Parent = nil
  1168. table.remove(Effects, e)
  1169. end
  1170. end
  1171. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1172. if Thing[1].Transparency <= 1 then
  1173. if Thing[2] == "Block1" then
  1174. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1175. Mesh = Thing[7]
  1176. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1177. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1178. else
  1179. if Thing[2] == "Block2" then
  1180. Thing[1].CFrame = Thing[1].CFrame
  1181. Mesh = Thing[7]
  1182. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1183. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1184. else
  1185. if Thing[2] == "Fire" then
  1186. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1187. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1188. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1189. else
  1190. if Thing[2] == "Cylinder" then
  1191. Mesh = Thing[7]
  1192. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1193. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1194. else
  1195. if Thing[2] == "Blood" then
  1196. Mesh = Thing[7]
  1197. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1198. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1199. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1200. else
  1201. if Thing[2] == "Elec" then
  1202. Thing[1].Size = Thing[1].Size + Vector3.new(Thing[7], Thing[8], Thing[9])
  1203. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1204. else
  1205. if Thing[2] == "Disappear" then
  1206. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1207. end
  1208. end
  1209. end
  1210. end
  1211. end
  1212. end
  1213. end
  1214. else
  1215. Part.Parent = nil
  1216. table.remove(Effects, e)
  1217. end
  1218. end
  1219. end
  1220. end
  1221. end
  1222. end
  1223. end
  1224. end
  1225. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement