Advertisement
refrop

cuby v9

Jun 7th, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.33 KB | None | 0 0
  1. -------------------------------------
  2. ---CUBY-- Made by refrop
  3. -------------------------------------
  4. repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild('Head') and game.Players.LocalPlayer:GetMouse()
  5. local plr = game.Players.LocalPlayer
  6. local char = plr.Character
  7. local head = char.Head
  8. local mouse = plr:GetMouse()
  9. local Hum = char.Humanoid
  10. local p = game.Players.LocalPlayer
  11.  
  12. local HealthBarParts = Instance.new("Folder", char)
  13. HealthBarParts.Name = "BlockdomHealthBar"
  14.  
  15. local Effects = Instance.new("Folder", char)
  16. Effects.Name = "BlockdomEffects"
  17.  
  18. local BodyParts = Instance.new("Folder", char)
  19. BodyParts.Name = "BlockdomBodyParts"
  20.  
  21.  
  22. local BlockSpeed = 0.2 -- Lower = Slower, Higher = Faster [0.0001 - 1]
  23.  
  24.  
  25. local EM = Enum.Material
  26. local CF = CFrame
  27. local V3 = Vector3
  28. local Ins = Instance
  29. local Col = Color3
  30. local UD = UDim
  31. local UD2 = UDim2
  32. local mr = math.rad
  33. local mra = math.random
  34. local mh = math.huge
  35.  
  36.  
  37. -------------------------------------
  38. local Head = char.Head
  39. local RArm = char["Right Arm"]
  40. local LArm = char["Left Arm"]
  41. local Torso = char.Torso
  42. local LLeg = char["Left Leg"]
  43. local RLeg = char["Right Leg"]
  44. -------------------------------------
  45.  
  46.  
  47. local clerp = function(a, b, t)
  48. return a:lerp(b, t)
  49. end
  50. human = char.Humanoid
  51. hrp = char.HumanoidRootPart
  52. anim = human.Animator
  53. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  54. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  55. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  56. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  57. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  58. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  59. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  60. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  61. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  62. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  63. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  64. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  65. RS = Torso:FindFirstChild("Right Shoulder")
  66. LS = Torso:FindFirstChild("Left Shoulder")
  67. RH = Torso:FindFirstChild("Right Hip")
  68. LH = Torso:FindFirstChild("Left Hip")
  69. RJ = hrp:FindFirstChild("RootJoint")
  70. NK = Torso:FindFirstChild("Neck")
  71. local RunS = game:GetService("RunService")
  72. local Mouse = p:GetMouse()
  73. local animen = true
  74. local Player = game.Players.localPlayer
  75. local Character = Player.Character
  76. local Humanoid = Character.Humanoid
  77. local Mouse = Player:GetMouse()
  78. local LeftArm = Character["Left Arm"]
  79. local RightArm = Character["Right Arm"]
  80. local LeftLeg = Character["Left Leg"]
  81. local RightLeg = Character["Right Leg"]
  82. local Head = Character.Head
  83. local Torso = Character.Torso
  84. local Camera = game.Workspace.CurrentCamera
  85. local RootPart = Character.HumanoidRootPart
  86. local RootJoint = RootPart.RootJoint
  87. local Pause = false
  88. local attack = false
  89. local LOL = false
  90. local Anim = 'Idle'
  91. local attacktype = 1
  92. local delays = false
  93. local play = true
  94. local targetted = nil
  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 doe = 0
  100. local Create = LoadLibrary("RbxUtility").Create
  101.  
  102.  
  103.  
  104.  
  105.  
  106. local HealthBase = Instance.new("Part", HealthBarParts)
  107. HealthBase.Material = "Neon"
  108. HealthBase.Color = Color3.fromRGB(0, 0, 0)
  109. HealthBase.Size = Vector3.new(0.05, 0.05, 0.05)
  110. HealthBase.CanCollide = false
  111. HealthBase.Anchored = false
  112. HealthBase.Name = "HealthMain"
  113.  
  114.  
  115. local Health = Instance.new("Part", HealthBarParts)
  116. Health.Material = "Neon"
  117. Health.Color = Color3.fromRGB(3, 236, 0)
  118. Health.Size = Vector3.new(0.05, 0.05, 0.05)
  119. Health.CanCollide = false
  120. Health.Anchored = false
  121. Health.Name = "Health"
  122.  
  123.  
  124. local RS = game:GetService("RunService")
  125.  
  126.  
  127. for _, i in pairs(char:GetChildren()) do
  128. if i:IsA("Part") then
  129. i.Transparency = 1
  130. end
  131. if i.Name == "Health" then
  132. i:Destroy()
  133. end
  134. if i:IsA("Accessory") then
  135. i:Destroy()
  136. end
  137. end
  138. char.Head.face:Destroy()
  139. Hum.HipHeight = 0.4
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146. local RoarS = Instance.new("Sound", char.Head)
  147. RoarS.SoundId = "rbxassetid://id"
  148. RoarS.Volume = 1
  149.  
  150. local Punch = Instance.new("Sound", char.Head)
  151. Punch.SoundId = "rbxassetid://id"
  152. Punch.Volume = 1
  153.  
  154. local Theme = Instance.new("Sound", char.Head)
  155. Theme.SoundId = "rbxassetid://391120393"
  156. Theme.Volume = 10
  157. Theme.Looped = true
  158. Theme.MaxDistance = 100
  159. Theme:Play()
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166. local TouchSensor = Instance.new("Part", char)
  167. TouchSensor.Size = Vector3.new(0.5,0.5,0.5)
  168. TouchSensor.Material = "Neon"
  169. TouchSensor.Transparency = 1
  170. TouchSensor.CanCollide = false
  171.  
  172. local TouchSensorWeld = Instance.new("Weld", TouchSensor)
  173. TouchSensorWeld.Part0 = char.HumanoidRootPart
  174. TouchSensorWeld.Part1 = TouchSensor
  175. TouchSensorWeld.C0 = CFrame.new(0,-4,0)
  176.  
  177. local LastMaterial = "Grass"
  178. local LastColor = Color3.fromRGB(0,0,0)
  179. local LastTrans = 0
  180.  
  181. TouchSensor.Touched:Connect(function(hit)
  182. if hit.Parent:FindFirstChildOfClass("Humanoid") == nil and hit:IsA("Part") and hit.Parent ~= Effects and hit.Parent ~= BodyParts and hit.Parent ~= HealthBarParts then
  183. LastMaterial = hit.Material
  184. LastColor = hit.Color
  185. LastTrans = hit.Transparency
  186. end
  187. end)
  188.  
  189. local BlockHead = Instance.new("Part", BodyParts)
  190. BlockHead.Size = Vector3.new(0.05, 0.05, 0.05)
  191. BlockHead.Material = "Neon"
  192.  
  193. local HeadWeld = Instance.new("Weld", BlockHead)
  194. HeadWeld.Part0 = char.Head
  195. HeadWeld.Part1 = BlockHead
  196.  
  197. local BlockTorso = Instance.new("Part", BodyParts)
  198. BlockTorso.Size = Vector3.new(3, 4.5, 3)
  199. BlockTorso.Material = "Grass"
  200.  
  201. local TorsoWeld = Instance.new("Weld", BlockTorso)
  202. TorsoWeld.Part0 = char.Torso
  203. TorsoWeld.Part1 = BlockTorso
  204. TorsoWeld.C0 = CFrame.new(0, -1, 0)
  205.  
  206. local BlockLeftArm = Instance.new("Part", BodyParts)
  207. BlockLeftArm.Size = Vector3.new(1, 0.1, 1)
  208. BlockLeftArm.Material = "Grass"
  209.  
  210. local LAWeld = Instance.new("Weld", BlockLeftArm)
  211. LAWeld.Part0 = char["Left Arm"]
  212. LAWeld.Part1 = BlockLeftArm
  213. LAWeld.C0 = CFrame.new(0, -1, 0)
  214.  
  215. local BlockRightArm = Instance.new("Part", BodyParts)
  216. BlockRightArm.Size = Vector3.new(1, 0.1, 1)
  217. BlockRightArm.Material = "Grass"
  218.  
  219. local RAWeld = Instance.new("Weld", BlockRightArm)
  220. RAWeld.Part0 = char["Right Arm"]
  221. RAWeld.Part1 = BlockRightArm
  222. RAWeld.C0 = CFrame.new(0, -1, 0)
  223.  
  224.  
  225. local BlockLeftLeg = Instance.new("Part", BodyParts)
  226. BlockLeftLeg.Size = Vector3.new(1, 0.1, 1)
  227. BlockLeftLeg.Material = "Grass"
  228.  
  229. local LLWeld = Instance.new("Weld", BlockLeftLeg)
  230. LLWeld.Part0 = char["Left Leg"]
  231. LLWeld.Part1 = BlockLeftLeg
  232. LLWeld.C0 = CFrame.new(0, -1, 0)
  233.  
  234. local BlockRightLeg = Instance.new("Part", BodyParts)
  235. BlockRightLeg.Size = Vector3.new(1, 0.1, 1)
  236. BlockRightLeg.Material = "Grass"
  237.  
  238. local RLWeld = Instance.new("Weld", BlockRightLeg)
  239. RLWeld.Part0 = char["Right Leg"]
  240. RLWeld.Part1 = BlockRightLeg
  241. RLWeld.C0 = CFrame.new(0, -1, 0)
  242.  
  243.  
  244. local LEye = Instance.new("Part", BlockHead)
  245. LEye.Color = Color3.new(248, 248, 248)
  246. LEye.Material = "Neon"
  247. LEye.Size = Vector3.new(0.5, 2, 0.5)
  248. local LEyeMesh = Instance.new("SpecialMesh", LEye)
  249. LEyeMesh.MeshType = "Brick"
  250. LEyeMesh.Scale = Vector3.new(0.5, 2, 0.5)
  251. local LEyeWeld = Instance.new("Weld", LEye)
  252. LEyeWeld.Part0 = BlockHead
  253. LEyeWeld.Part1 = LEye
  254. LEyeWeld.C0 = CFrame.new(-0.5,0,-1)
  255.  
  256. local REye = Instance.new("Part", BlockHead)
  257. REye.Color = Color3.new(248, 248, 248)
  258. REye.Material = "Neon"
  259. REye.Size = Vector3.new(0.5, 2, 0.5)
  260. local REyeMesh = Instance.new("SpecialMesh", REye)
  261. REyeMesh.MeshType = "Brick"
  262. REyeMesh.Scale = Vector3.new(0.5, 2, 0.5)
  263. local REyeWeld = Instance.new("Weld", REye)
  264. REyeWeld.Part0 = BlockHead
  265. REyeWeld.Part1 = REye
  266. REyeWeld.C0 = CFrame.new(0.5,0,-1)
  267.  
  268.  
  269. -- EYE MANAGER
  270.  
  271. coroutine.resume(coroutine.create(function()
  272. while wait() do
  273. for i = 1, 50 do
  274. RS.RenderStepped:wait()
  275. LEyeMesh.Scale = LEyeMesh.Scale:lerp(Vector3.new(1,0,1), 0.1)
  276. REyeMesh.Scale = REyeMesh.Scale:lerp(Vector3.new(1,0,1), 0.1)
  277. end
  278. for i = 1, 50 do
  279. RS.RenderStepped:wait()
  280. LEyeMesh.Scale = LEyeMesh.Scale:lerp(Vector3.new(1,1,1), 0.1)
  281. REyeMesh.Scale = REyeMesh.Scale:lerp(Vector3.new(1,1,1), 0.1)
  282. end
  283. wait(2)
  284. end
  285. end))
  286.  
  287. local BarrageS = false
  288.  
  289. coroutine.resume(coroutine.create(function()
  290. while wait() do
  291. for _, o in pairs(BodyParts:GetChildren()) do
  292. if o == RArm or o == LArm then
  293. if BarrageS == false then
  294. o.Material = LastMaterial
  295. o.Color = o.Color:lerp(LastColor, 0.1)
  296. o.Transparency = LastTrans
  297. end
  298. else
  299.  
  300. o.Material = LastMaterial
  301. o.Color = o.Color:lerp(LastColor, 0.1)
  302. o.Transparency = LastTrans
  303. end
  304. end
  305. end
  306. end))
  307.  
  308. coroutine.resume(coroutine.create(function()
  309. while wait() do
  310. HealthBase.CFrame = HealthBase.CFrame:lerp(char.HumanoidRootPart.CFrame * CFrame.new(0, 9, 0), BlockSpeed)
  311. Health.CFrame = Health.CFrame:lerp(HealthBase.CFrame, BlockSpeed*5)
  312. Health.Size = Health.Size:lerp(Vector3.new(Hum.Health/Hum.MaxHealth*10.1, 2.1, 2.1), 0.1)
  313. end
  314. end))
  315.  
  316.  
  317. -- REGEN
  318. coroutine.resume(coroutine.create(function()
  319. while Hum.Health < Hum.MaxHealth do
  320. Hum.Health = Hum.Health + 1
  321. local r1 = math.random(-5, 5)
  322. local r2 = math.random(-5, 5)
  323. local r3 = math.random(-5, 5)
  324. local c = math.random(1, 5)
  325. local Parto = Instance.new("Part", Effects)
  326. Parto.Material = "Neon"
  327. Parto.Size = Vector3.new(0.2, 0.2, 0.2)
  328. Parto.Shape = "Ball"
  329. Parto.Anchored = true
  330. Parto.CanCollide = false
  331.  
  332. if c == 1 then
  333. Parto.Color = Color3.fromRGB(94, 255, 229)
  334. elseif c == 2 then
  335. Parto.Color = Color3.fromRGB(48, 255, 62)
  336. elseif c == 3 then
  337. Parto.Color = Color3.fromRGB(81, 255, 0)
  338. elseif c == 4 then
  339. Parto.Color = Color3.fromRGB(44, 252, 255)
  340. elseif c == 5 then
  341. Parto.Color = Color3.fromRGB(58, 180, 255)
  342. end
  343.  
  344. Parto.CFrame = Torso.CFrame * CFrame.new(r1, r2, r3)
  345. coroutine.resume(coroutine.create(function()
  346. for i = 1, 50 do
  347. wait()
  348. Parto.CFrame = Parto.CFrame:lerp(Torso.CFrame, 0.1)
  349. Parto.Transparency = Parto.Transparency + 0.05
  350. if Parto.Transparency >= 1 then
  351. Parto:Destroy()
  352. end
  353. end
  354. end))
  355. wait()
  356. end
  357. end))
  358.  
  359. local RoarPower = 0
  360. local RoarCharge = false
  361.  
  362.  
  363.  
  364. local ChargeKame = false
  365. local KamePower = 0
  366. local KameCool = false
  367. local beamgo = 6
  368.  
  369.  
  370. function FireKame()
  371. Base:Destroy()
  372. for i = 1,50 do
  373. RS.RenderStepped:wait()
  374. PlayAnimationFromTable({
  375. CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), mr(0)), -- Torso,
  376. CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), 0), ----- Head
  377. CFrame.new(1,0.4,-1.2) * CFrame.new(0, 0, 0.2) * CFrame.Angles(mr(90), mr(0), mr(-20)), --- RightArm
  378. CFrame.new(-1,0.4,-1.2) * CFrame.new(0, 0, 0.2) * CFrame.Angles(mr(90), mr(0), mr(20)),--LeftArm
  379. CFrame.new(0.6,-2,0.2) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-5), mr(-5), mr(5)), --RightLeg
  380. CFrame.new(-0.6,-2,0.2) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-5), mr(5), mr(-5)), --LeftLeg
  381. }, .3, false)
  382. end
  383.  
  384. local Base1 = Instance.new("Part", char)
  385. Base1.Anchored = true
  386. Base1.Material = "Neon"
  387. Base1.Size = V3.new(KamePower + 1, KamePower + 1, KamePower + 1)
  388. Base1.Shape = "Block"
  389. Base1.Color = Color3.fromRGB(0, 170, 255)
  390. Base1.CFrame = char.HumanoidRootPart.CFrame * CF.new(0, 0.5, -1.8)
  391. Base1.CanCollide = false
  392. local Mesh = Instance.new("SpecialMesh", Base1)
  393. Mesh.MeshType = "Sphere"
  394.  
  395. local Beam = Instance.new("Part", char)
  396. Beam.Anchored = true
  397. Beam.Material = "Neon"
  398. Beam.Size = V3.new(0, KamePower- 0.8, KamePower- 0.8)
  399. Beam.Shape = "Block"
  400. Beam.Color = Color3.fromRGB(13, 105, 172)
  401. Beam.CFrame = Base1.CFrame * CFrame.Angles(0,mr(180),0)
  402. Beam.CanCollide = false
  403. local Mesh = Instance.new("SpecialMesh", Beam)
  404. Mesh.MeshType = "Cylinder"
  405. coroutine.resume(coroutine.create(function()
  406. for i = 1,100 do
  407. wait()
  408. beamgo = beamgo + 10
  409. Beam.CFrame = Base1.CFrame * CFrame.Angles(0,mr(90),0) * CFrame.new(beamgo,0,0)
  410. Beam.Size = V3.new(beamgo * 2, KamePower + 0.5, KamePower + 0.5)
  411.  
  412.  
  413. end
  414. end))
  415.  
  416.  
  417. Beam.Touched:Connect(function(hit)
  418. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  419. -- Player
  420. if hit.Parent.Name == p.Name then return end
  421. hit.Parent:BreakJoints()
  422. end
  423. end)
  424.  
  425.  
  426.  
  427. wait(5)
  428.  
  429. for i = 1,200 do
  430. RS.RenderStepped:wait()
  431. beamgo = beamgo - 1
  432. Beam.Size = Beam.Size - V3.new(0,0.01,0.01)
  433. Base1.Size = Base1.Size - V3.new(0.01,0.01,0.01)
  434. Beam.Transparency = Beam.Transparency + 0.01
  435. Base1.Transparency = Base1.Transparency + 0.01
  436. if Base1.Transparency >= 1 then
  437. Base1:Destroy()
  438. Beam:Destroy()
  439. end
  440. end
  441. Hum.WalkSpeed = 16
  442. Hum.JumpPower = 50
  443. KamePower = 0
  444. beamgo = 6
  445. Pause = false
  446. end
  447.  
  448.  
  449. function Kamehameha()
  450. if not KameCool then
  451. KameCool = true
  452. Hum.WalkSpeed = 0
  453. Hum.JumpPower = 0
  454.  
  455. for i = 1,50 do
  456. RS.RenderStepped:wait()
  457. PlayAnimationFromTable({
  458. CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-5), mr(-60), mr(-5)), -- Torso,
  459. CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(5), mr(60), 0), ----- Head
  460. CFrame.new(1.5,0,-0.3) * CFrame.new(0, 0, 0.2) * CFrame.Angles(mr(60), mr(15), mr(40)), --- RightArm
  461. CFrame.new(-0.5,0.1,-1.2) * CFrame.new(0, 0, 0.2) * CFrame.Angles(mr(140), mr(-35), mr(90)),--LeftArm
  462. CFrame.new(0.6,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(5), mr(-5), mr(5)), --RightLeg
  463. CFrame.new(-0.6,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(5), mr(60), mr(-5)), --LeftLeg
  464. }, .3, false)
  465. end
  466. Base = Instance.new("Part", char)
  467. Base.CanCollide = false
  468. Base.Anchored = true
  469. Base.Material = "Neon"
  470. Base.Size = V3.new(0, 0, 0)
  471. Base.Shape = "Ball"
  472. Base.Color = Color3.fromRGB(13, 105, 172)
  473. Base.CFrame = char.HumanoidRootPart.CFrame * CF.new(2.3, -0.1, 0)
  474. coroutine.resume(coroutine.create(function()
  475. while wait() and ChargeKame == true do
  476. if KamePower >= 1.180 then
  477. FireKame()
  478. ChargeKame = false
  479. else
  480. KamePower = KamePower + 0.002
  481. Base.Size = V3.new(KamePower, KamePower, KamePower)
  482. end
  483. end
  484. end))
  485. wait(2)
  486. KameCool = false
  487. end
  488. end
  489.  
  490.  
  491.  
  492.  
  493.  
  494. function ChargeRoar()
  495. Hum.WalkSpeed = 0
  496. Hum.JumpPower = 0
  497. Pause = true
  498.  
  499. local Ball = Instance.new("Part", Effects)
  500. Ball.Name = "RoarCharge"
  501. Ball.Material = LastMaterial
  502. Ball.Color = LastColor
  503. Ball.Size = Vector3.new(0,0,0)
  504. Ball.Shape = "Ball"
  505. Ball.CanCollide = false
  506. Ball.Anchored = true
  507. Ball.CFrame = Head.CFrame * CFrame.new(0,2,-1)
  508.  
  509. coroutine.resume(coroutine.create(function()
  510. while wait() and RoarCharge == true do
  511.  
  512. PlayAnimationFromTable({
  513. CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), 0), -- Torso,
  514. CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(70), mr(0), 0), ----- Head
  515. CFrame.new(1.5,0,0) * CFrame.new(0.3, 0-.1*math.sin(tick()*1), 0) * CFrame.Angles(mr(0),mr(0),mr(10)), --- RightArm
  516. CFrame.new(-1.5,0,0) * CFrame.new(-0.3, 0-.1*math.sin(tick()*1), 0) * CFrame.Angles(mr(0), mr(0), mr(-10)),--LeftArm
  517. CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, mr(20), 0), --RightLeg
  518. CFrame.new(-0.5,-2,0) * CFrame.new(-0.4, 0, -0.4) * CFrame.Angles(0, mr(20), mr(-10)), --LeftLeg
  519. }, .3, false)
  520.  
  521. RoarPower = RoarPower + 0.01
  522. Ball.Size = Vector3.new(RoarPower, RoarPower, RoarPower)
  523. Ball.CFrame = Ball.CFrame * CFrame.new(0,0.005,0)
  524. end
  525. end))
  526. end
  527.  
  528.  
  529. function FireRoar()
  530. local Ball = Effects.RoarCharge
  531. for i = 1, 50 do
  532. RS.RenderStepped:wait()
  533. Ball.CFrame = Ball.CFrame:lerp(Head.CFrame, 0.1)
  534. Ball.Size = Ball.Size:lerp(Vector3.new(0,0,0), 0.1)
  535. end
  536.  
  537. for i = 1, 10 do
  538. RS.RenderStepped:wait()
  539. PlayAnimationFromTable({
  540. CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), 0), -- Torso,
  541. CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), 0), ----- Head
  542. CFrame.new(1.5,0,0) * CFrame.new(0.3, 0-.1*math.sin(tick()*1), 0) * CFrame.Angles(mr(0),mr(0),mr(10)), --- RightArm
  543. CFrame.new(-1.5,0,0) * CFrame.new(-0.3, 0-.1*math.sin(tick()*1), 0) * CFrame.Angles(mr(0), mr(0), mr(-10)),--LeftArm
  544. CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, mr(20), 0), --RightLeg
  545. CFrame.new(-0.5,-2,0) * CFrame.new(-0.4, 0, -0.4) * CFrame.Angles(0, mr(20), mr(-10)), --LeftLeg
  546. }, .3, false)
  547. end
  548. RoarS:Play()
  549. Ball:Destroy()
  550.  
  551. for i = 1, 100 do
  552. wait(0.1)
  553. local rad1 = math.random(-1, 1)
  554. local rad2 = math.random(-1, 1)
  555. local rad3 = math.random(-1, 1)
  556.  
  557. local color = math.random(1, 2)
  558.  
  559. local Roar = Instance.new("Part", Effects)
  560. Roar.Name = "Roar"
  561. Roar.Material = "Neon"
  562. if RoarPower <= 2 then
  563. Roar.Shape = "Ball"
  564. Roar.CFrame = Head.CFrame
  565. if color == 1 then
  566. Roar.Color = Color3.fromRGB(13, 105, 172)
  567. elseif color == 2 then
  568. Roar.Color = Color3.fromRGB(0, 170, 255)
  569. end
  570.  
  571. elseif RoarPower >= 2 then
  572. Roar.Shape = "Ball"
  573. Roar.CFrame = Head.CFrame
  574. if color == 1 then
  575. Roar.Color = Color3.fromRGB(255, 0, 0)
  576. elseif color == 2 then
  577. Roar.Color = Color3.fromRGB(77, 0, 0)
  578. end
  579. end
  580. Roar.Size = Vector3.new(0,0,0)
  581. Roar.CanCollide = false
  582. Roar.Anchored = true
  583.  
  584. coroutine.resume(coroutine.create(function()
  585. for i = 1, 500 do
  586. local Touchy = false
  587.  
  588. coroutine.resume(coroutine.create(function()
  589. Roar.Touched:Connect(function(hit)
  590. if Touchy == false then
  591. Touchy = true
  592. if hit.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) then
  593. hit.Parent.Humanoid:TakeDamage(0.1)
  594. end
  595. wait(0.5)
  596. Touchy = false
  597. end
  598. end)
  599. end))
  600.  
  601. RS.RenderStepped:wait()
  602. Roar.CFrame = Roar.CFrame * CFrame.new(rad1/5,rad2/5,-1)
  603. Roar.Size = Roar.Size + Vector3.new(0.5, 0.5, 0.5)
  604. Roar.Transparency = Roar.Transparency + 0.007
  605. if Roar.Transparency >= 1 then
  606. Roar:Destroy()
  607. end
  608. end
  609. end))
  610. end
  611. Hum.WalkSpeed = 16
  612. Hum.JumpPower = 50
  613. Pause = false
  614. RoarPower = 0
  615. end
  616.  
  617.  
  618.  
  619.  
  620. function GroundWave2(origin, color, color2)
  621. if origin ~= nil then
  622. local part = Instance.new("Part", origin)
  623. part.Anchored = true
  624. part.CanCollide = false
  625. part.Color = color
  626. part.Size = Vector3.new(1,1,1)
  627. part.Transparency = 0.4
  628. part.Material = "Neon"
  629. part.CFrame = origin.CFrame
  630. local Mesh = Instance.new("SpecialMesh", part)
  631. Mesh.MeshType = "Sphere"
  632. Mesh.Scale = Vector3.new(1,1,1)
  633.  
  634. local part2 = Instance.new("Part", origin)
  635. part2.Anchored = true
  636. part2.CanCollide = false
  637. part2.Color = color2
  638. part2.Size = Vector3.new(1,1,1)
  639. part2.Material = "Neon"
  640. part2.CFrame = origin.CFrame
  641. local Mesh2 = Instance.new("SpecialMesh", part2)
  642. Mesh2.MeshType = "Sphere"
  643. Mesh2.Scale = Vector3.new(0.8,0.8,0.8)
  644.  
  645. local Ring = Instance.new("Part", char)
  646. Ring.Anchored = true
  647. Ring.CanCollide = false
  648. Ring.CFrame = part.CFrame
  649. local RingMesh = Instance.new("SpecialMesh", Ring)
  650. RingMesh.MeshId = "rbxassetid://471124075"
  651. RingMesh.Scale = Vector3.new(0,0,0)
  652.  
  653. local Ring2 = Instance.new("Part", char)
  654. Ring2.Anchored = true
  655. Ring2.CanCollide = false
  656. Ring2.CFrame = part.CFrame * CFrame.Angles(0,0,mr(90))
  657. local RingMesh2 = Instance.new("SpecialMesh", Ring2)
  658. RingMesh2.MeshId = "rbxassetid://471124075"
  659. RingMesh2.Scale = Vector3.new(0.02,0,0.02)
  660.  
  661. coroutine.resume(coroutine.create(function()
  662. for i = 1, 120 do
  663. RS.RenderStepped:wait()
  664. Mesh.Scale = Mesh.Scale + Vector3.new(1, 0.3, 1)
  665. part.Transparency = part.Transparency + 0.01
  666.  
  667. Mesh2.Scale = Mesh2.Scale + Vector3.new(0.8, 0.1, 0.8)
  668. part2.Transparency = part2.Transparency + 0.01
  669. if part.Transparency >= 1 then
  670. part:Destroy()
  671. end
  672.  
  673. if part2.Transparency >= 1 then
  674. part2:Destroy()
  675. end
  676. RingMesh.Scale = RingMesh.Scale + Vector3.new(0.02,0,0.02)
  677. Ring.Transparency = Ring.Transparency + 0.02
  678.  
  679. RingMesh2.Scale = RingMesh2.Scale + Vector3.new(0.02,0,0.02)
  680. Ring2.Transparency = Ring2.Transparency + 0.02
  681. if Ring.Transparency >= 1 then
  682. Ring:Destroy()
  683. Ring2:Destroy()
  684. end
  685. end
  686. end))
  687.  
  688. end
  689. end
  690.  
  691.  
  692.  
  693.  
  694. local BarrCool = false
  695.  
  696. function Barrage()
  697. coroutine.resume(coroutine.create(function()
  698. while wait() and BarrageS == true do
  699.  
  700. for i = 1, 2 do -- Right Punch
  701. RS.RenderStepped:wait()
  702. BlockRightArm.Material = "Neon"
  703. local color = math.random(1, 2)
  704. if color == 1 then
  705. BlockRightArm.Color = BlockRightArm.Color:lerp(Color3.fromRGB(0, 170, 255), 0.5)
  706. elseif color == 2 then
  707. BlockRightArm.Color = BlockRightArm.Color:lerp(Color3.fromRGB(0, 170, 255), 0.5)
  708. end
  709.  
  710. BlockRightArm.Touched:Connect(function(hit)
  711. if hit.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) then
  712. if BarrCool == false and BarrageS == true then
  713. BarrCool = true
  714. hit.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(10)
  715. GroundWave2(hit, Color3.fromRGB(0, 170, 255), Color3.fromRGB(13, 105, 172))
  716. local Punchy = Punch:Clone()
  717. Punchy.Parent = hit
  718. Punchy:Play()
  719. wait()
  720. BarrCool = false
  721. end
  722. end
  723. end)
  724.  
  725. PlayAnimationFromTable({
  726. CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), 0), -- Torso,
  727. CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), 0), ----- Head
  728. CFrame.new(1.5,0,0) * CFrame.new(0.3, 0, -3) * CFrame.Angles(mr(90),mr(0),mr(-20)), --- RightArm
  729. CFrame.new(-1.5,0,0) * CFrame.new(-0.3, 0, 2) * CFrame.Angles(mr(90), mr(0), mr(20)),--LeftArm
  730. CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, mr(20), 0), --RightLeg
  731. CFrame.new(-0.5,-2,0) * CFrame.new(-0.4, 0, -0.4) * CFrame.Angles(0, mr(20), mr(-10)), --LeftLeg
  732. }, .5, false)
  733. end
  734.  
  735. for i = 1, 2 do -- Left Punch
  736. RS.RenderStepped:wait()
  737.  
  738. BlockLeftArm.Material = "Neon"
  739. local color = math.random(1, 2)
  740. if color == 1 then
  741. BlockLeftArm.Color = BlockLeftArm.Color:lerp(Color3.fromRGB(13, 105, 172), 0.5)
  742. elseif color == 2 then
  743. BlockLeftArm.Color = BlockLeftArm.Color:lerp(Color3.fromRGB(0, 170, 255), 0.5)
  744. end
  745.  
  746. BlockLeftArm.Touched:Connect(function(hit)
  747. if hit.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) then
  748. if BarrCool == false and BarrageS == true then
  749. BarrCool = true
  750. hit.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(10)
  751. GroundWave2(hit, Color3.fromRGB(13, 105, 172), Color3.fromRGB(0, 170, 255))
  752. local Punchy = Punch:Clone()
  753. Punchy.Parent = hit
  754. Punchy:Play()
  755. wait()
  756. BarrCool = false
  757. end
  758. end
  759. end)
  760.  
  761. PlayAnimationFromTable({
  762. CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), 0), -- Torso,
  763. CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), 0), ----- Head
  764. CFrame.new(1.5,0,0) * CFrame.new(0.3, 0, 2) * CFrame.Angles(mr(90),mr(0),mr(-20)), --- RightArm
  765. CFrame.new(-1.5,0,0) * CFrame.new(-0.3, 0, -3) * CFrame.Angles(mr(90), mr(0), mr(20)),--LeftArm
  766. CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, mr(20), 0), --RightLeg
  767. CFrame.new(-0.5,-2,0) * CFrame.new(-0.4, 0, -0.4) * CFrame.Angles(0, mr(20), mr(-10)), --LeftLeg
  768. }, .5, false)
  769. end
  770.  
  771. end
  772. end))
  773. end
  774.  
  775.  
  776. mouse.KeyDown:Connect(function(k)
  777. if k == "e" then
  778. RoarCharge = true
  779. ChargeRoar()
  780. end
  781. if k == "r" then
  782. Pause = true
  783. ChargeKame = true
  784. Kamehameha()
  785. end
  786. if k == "q" then
  787. Pause = true
  788. BarrageS = true
  789. Barrage()
  790. end
  791. end)
  792.  
  793. mouse.KeyUp:Connect(function(k)
  794. if k == "e" then
  795. RoarCharge = false
  796. FireRoar()
  797. end
  798. if k == "r" then
  799. ChargeKame = false
  800. FireKame()
  801. end
  802. if k == "q" then
  803. Pause = false
  804. BarrageS = false
  805. end
  806. end)
  807.  
  808.  
  809.  
  810. Humanoid.Animator.Parent = nil
  811. Character.Animate.Parent = nil
  812.  
  813. local newMotor = function(part0, part1, c0, c1)
  814. local w = Create('Motor'){
  815. Parent = part0,
  816. Part0 = part0,
  817. Part1 = part1,
  818. C0 = c0,
  819. C1 = c1,
  820. }
  821. return w
  822. end
  823. function clerp(a, b, t)
  824. return a:lerp(b, t)
  825. end
  826.  
  827. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  828. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  829.  
  830. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  831. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  832. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  833. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  834. RootJoint.C1 = CFrame.new(0, 0, 0)
  835. RootJoint.C0 = CFrame.new(0, 0, 0)
  836. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  837. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  838.  
  839. local rarmc1 = RW.C1
  840. local larmc1 = LW.C1
  841. local rlegc1 = RH.C1
  842. local llegc1 = LH.C1
  843.  
  844. local resetc1 = false
  845.  
  846. function PlayAnimationFromTable(table, speed, bool)
  847. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  848. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  849. RW.C0 = clerp(RW.C0, table[3], speed)
  850. LW.C0 = clerp(LW.C0, table[4], speed)
  851. RH.C0 = clerp(RH.C0, table[5], speed)
  852. LH.C0 = clerp(LH.C0, table[6], speed)
  853. if bool == true then
  854. if resetc1 == false then
  855. resetc1 = true
  856. RootJoint.C1 = RootJoint.C1
  857. Torso.Neck.C1 = Torso.Neck.C1
  858. RW.C1 = rarmc1
  859. LW.C1 = larmc1
  860. RH.C1 = rlegc1
  861. LH.C1 = llegc1
  862. end
  863. end
  864. end
  865.  
  866. ArtificialHB = Create("BindableEvent", script){
  867. Parent = script,
  868. Name = "Heartbeat",
  869. }
  870.  
  871. script:WaitForChild("Heartbeat")
  872.  
  873. frame = 1 / 30
  874. tf = 0
  875. allowframeloss = false
  876. tossremainder = false
  877. lastframe = tick()
  878. script.Heartbeat:Fire()
  879.  
  880. game:GetService("RunService").Heartbeat:connect(function(s, p)
  881. tf = tf + s
  882. if tf >= frame then
  883. if allowframeloss then
  884. script.Heartbeat:Fire()
  885. lastframe = tick()
  886. else
  887. for i = 1, math.floor(tf / frame) do
  888. script.Heartbeat:Fire()
  889. end
  890. lastframe = tick()
  891. end
  892. if tossremainder then
  893. tf = 0
  894. else
  895. tf = tf - frame * math.floor(tf / frame)
  896. end
  897. end
  898. end)
  899.  
  900. function swait(num)
  901. if num == 0 or num == nil then
  902. ArtificialHB.Event:wait()
  903. else
  904. for i = 0, num do
  905. ArtificialHB.Event:wait()
  906. end
  907. end
  908. end
  909.  
  910.  
  911.  
  912.  
  913.  
  914. New = function(Object, Parent, Name, Data)
  915. local Object = Instance.new(Object)
  916. for Index, Value in pairs(Data or {}) do
  917. Object[Index] = Value
  918. end
  919. Object.Parent = Parent
  920. Object.Name = Name
  921. return Object
  922. end
  923. function rayCast(Position, Direction, Range, Ignore)
  924. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  925. end
  926.  
  927.  
  928.  
  929.  
  930. coroutine.wrap(function()
  931. while 1 do
  932. swait()
  933. if doe <= 360 then
  934. doe = doe + 2
  935. else
  936. doe = 0
  937. end
  938. end
  939. end)()
  940. while true and (animen == true) do
  941. swait()
  942.  
  943. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  944. velocity = RootPart.Velocity.y
  945. sine = sine + change
  946. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  947. if RootPart.Velocity.y > 1 and hit == nil then
  948. Anim = "Jump"
  949. if Pause == false then
  950. PlayAnimationFromTable({
  951. CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-10), 0, 0), -- Torso,
  952. CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0.3) * CFrame.Angles(mr(50), mr(0), mr(0)), ----- Head
  953. CFrame.new(1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(50),0,mr(10)), --- RightArm
  954. CFrame.new(-1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(50), 0, mr(-10)),--LeftArm
  955. CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-50), 0, mr(-15)), --RightLeg
  956. CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-50), 0, mr(15)), --LeftLeg
  957. }, .3, false)
  958. end
  959. elseif RootPart.Velocity.y < -1 and hit == nil then
  960. Anim = "Fall"
  961. if Pause == false then
  962. PlayAnimationFromTable({
  963. CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-20), mr(0), 0), -- Torso,
  964. CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-20), mr(0), 0), ----- Head
  965. CFrame.new(1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0,0,mr(50)), --- RightArm
  966. CFrame.new(-1.5,0,0) * CFrame.new(0, 0, 0.5) * CFrame.Angles(mr(0), 0, mr(-50)),--LeftArm
  967. CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-10), 0, mr(-15)), --RightLeg
  968. CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(10), 0, mr(15)), --LeftLeg
  969. }, .3, false)
  970. end
  971. elseif Torsovelocity < 1 and hit ~= nil then
  972. Anim = "Idle"
  973. if Pause == false then
  974. change = 1
  975. PlayAnimationFromTable({
  976. CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), 0), -- Torso,
  977. CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), 0), ----- Head
  978. CFrame.new(1.5,0,0) * CFrame.new(0.3, 0-.1*math.sin(tick()*1), 0) * CFrame.Angles(mr(0),mr(0),mr(10)), --- RightArm
  979. CFrame.new(-1.5,0,0) * CFrame.new(-0.3, 0-.1*math.sin(tick()*1), 0) * CFrame.Angles(mr(0), mr(0), mr(-10)),--LeftArm
  980. CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, mr(20), 0), --RightLeg
  981. CFrame.new(-0.5,-2,0) * CFrame.new(-0.4, 0, -0.4) * CFrame.Angles(0, mr(20), mr(-10)), --LeftLeg
  982. }, .3, false)
  983. end
  984.  
  985. elseif Torsovelocity > 2 and hit ~= nil then
  986. Anim = "Walk"
  987. if Pause == false then
  988. PlayAnimationFromTable({
  989. CFrame.new(0,0,0) * CFrame.new(0, 0-.1*math.sin(tick()*19), 0) * CFrame.Angles(-0.3, 0, 0+RootPart.RotVelocity.Y/30), -- Torso
  990. CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0.2, 0+RootPart.RotVelocity.Y/20, 0), -- Head
  991. CFrame.new(1.3,0.4,0) * CFrame.new(0, 0.2-.1*math.sin(tick()*17), 0.5) * CFrame.Angles(mr(-70),mr(-5),mr(10)), --- RightArm
  992. CFrame.new(-1.3,0.4, 0) * CFrame.new(0, 0.2-.1*math.sin(tick()*17), 0.5) * CFrame.Angles(mr(-70), mr(5), mr(-10)),--LeftArm
  993. CFrame.new(0.5,-2,0) * CFrame.new(0, 0, 0+ 1 * math.cos((sine) / 3)) * CFrame.Angles(math.rad(0 - 80 * math.cos((sine) / 3)), 0, 0-RootPart.RotVelocity.Y/33),
  994. CFrame.new(-0.5,-2,0) * CFrame.new(0, 0, 0- 1 * math.cos((sine) / 3)) * CFrame.Angles(math.rad(0 + 80 * math.cos((sine) / 3)), 0, 0-RootPart.RotVelocity.Y/33),
  995. }, .3, false)
  996. end
  997. end
  998. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement