Advertisement
Rawscript

Untitled

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