Advertisement
UltimateGate

THE WORLD

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