Advertisement
samuelrichter66

block camo thing

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