00fjg

Untitled

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