Corrundum

Untitled

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