Advertisement
uor

Untitled

uor
May 29th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.54 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by 1000hack")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  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 UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  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. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86. local plr = owner
  87. local Player = plr.Character
  88. local hum = Player.Humanoid
  89. local rarm = Player["Right Arm"]
  90. local larm= Player["Left Arm"]
  91. local rleg= Player["Right Leg"]
  92. local lleg = Player["Left Leg"]
  93. local root = Player.HumanoidRootPart
  94. local tors = Player.Torso
  95. local head = Player.Head
  96. local shirtid = 765769814
  97. local pantsid = 781482072
  98.  
  99. local punching = false
  100. local skinCol = "Lavender"
  101. local damaged = {}
  102. local t = tick()
  103. local faceid = 342828206
  104. local auras = {}
  105. local idle = true
  106. local kiBlasting = false
  107. local pwr10 = true
  108. local bv = nil
  109. local flying = false
  110. local pwr40 = false
  111. local pwr80 = false
  112. local pwr100 = false
  113. local ascendcooldown = false
  114. local descendcooldown = false
  115. local leftArmdamaging = false
  116. local rightArmdamaging = false
  117. local punching = false
  118. local action = ""
  119. local mouseDownF = false
  120. local punchDamage = 15
  121. local KiDamage = 30
  122. local armKi = "Right"
  123. Player:WaitForChild("Health"):Remove()
  124. game.Chat:Chat(Player, "Pathetic beings.. I guess its time to teach them a lesson.", "White")
  125. for i,s in pairs(Player:GetChildren()) do
  126. if s:IsA("Hat") or s:IsA("Accessory") or s:IsA("Accoutrement") or s:IsA("CharacterMesh") then
  127. s:Destroy()
  128. end
  129. end
  130.  
  131. local bd = Player:FindFirstChild("Body Colors")
  132. if bd then
  133. bd.HeadColor = BrickColor.new(skinCol)
  134. bd.TorsoColor = BrickColor.new(skinCol)
  135. bd.LeftLegColor = BrickColor.new(skinCol)
  136. bd.RightLegColor = BrickColor.new(skinCol)
  137. bd.LeftArmColor = BrickColor.new(skinCol)
  138. bd.RightArmColor = BrickColor.new(skinCol)
  139. else
  140. bd = Instance.new("BodyColors", Player)
  141. bd.HeadColor = BrickColor.new(skinCol)
  142. bd.TorsoColor = BrickColor.new(skinCol)
  143. bd.LeftLegColor = BrickColor.new(skinCol)
  144. bd.RightLegColor = BrickColor.new(skinCol)
  145. bd.LeftArmColor = BrickColor.new(skinCol)
  146. bd.RightArmColor = BrickColor.new(skinCol)
  147. end
  148.  
  149. shirt = Player:FindFirstChild("Shirt")
  150. if shirt then
  151. shirt.ShirtTemplate = "rbxassetid://".. shirtid ..""
  152. else
  153. shirt = Instance.new("Shirt", Player)
  154. shirt.ShirtTemplate = "rbxassetid://".. shirtid ..""
  155. end
  156.  
  157.  
  158. pants = Player:FindFirstChild("Pants")
  159. if pants then
  160. pants.PantsTemplate = "rbxassetid://".. pantsid ..""
  161. else
  162. pants = Instance.new("Pants", Player)
  163. pants. PantsTemplate = "rbxassetid://".. pantsid ..""
  164. end
  165. face = head:FindFirstChild("face")
  166. if face then
  167. face.Texture = "rbxassetid://".. faceid ..""
  168. else
  169. face = Instance.new("Decal", head)
  170. face.Name = "face"
  171. face.Texture = "rbxassetid://".. faceid ..""
  172. end
  173. function aura()
  174. local aura = Instance.new("ParticleEmitter", root)
  175. aura.Texture = "rbxassetid://445231746"
  176. aura.Color = ColorSequence.new(Color3.fromRGB(69, 0, 220))
  177. aura.Size = NumberSequence.new(0,1)
  178. aura.Transparency = NumberSequence.new(0,1)
  179. aura.LockedToPart = true
  180. aura.LightEmission = 1
  181. aura.LightInfluence = 1
  182. aura.ZOffset = -1
  183. aura.Lifetime = NumberRange.new(0.4)
  184. aura.Rate = 200
  185. aura.Speed = NumberRange.new(2)
  186. aura.SpreadAngle = Vector2.new(0,0)
  187. aura.Enabled = true
  188. table.insert(auras, aura)
  189. aurah = aura:Clone()
  190. aurah.Parent = head
  191. table.insert(auras, aurah)
  192. auralarm = aura:Clone()
  193. auralarm.Parent = larm
  194. table.insert(auras, auralarm)
  195. aurararm = aura:Clone()
  196. aurararm.Parent = rarm
  197. table.insert(auras, aurararm)
  198. auralleg = aura:Clone()
  199. auralleg.Parent = lleg
  200. table.insert(auras, auralleg)
  201. aurarleg = aura:Clone()
  202. aurarleg.Parent = rleg
  203. table.insert(auras, aurarleg)
  204. end
  205.  
  206.  
  207.  
  208. function aura40()
  209. local aura = Instance.new("ParticleEmitter", root)
  210. aura.Texture = "rbxassetid://445231746"
  211. aura.Color = ColorSequence.new(Color3.fromRGB(137, 0, 217))
  212. aura.Size = NumberSequence.new(0,1)
  213. aura.Transparency = NumberSequence.new(0,1)
  214. aura.LockedToPart = true
  215. aura.LightEmission = 1
  216. aura.LightInfluence = 1
  217. aura.ZOffset = -1
  218. aura.Lifetime = NumberRange.new(0.4)
  219. aura.Rate = 200
  220. aura.Speed = NumberRange.new(2)
  221. aura.SpreadAngle = Vector2.new(0,0)
  222. aura.Enabled = true
  223. table.insert(auras, aura)
  224. aurah = aura:Clone()
  225. aurah.Parent = head
  226. table.insert(auras, aurah)
  227. auralarm = aura:Clone()
  228. auralarm.Parent = larm
  229. table.insert(auras, auralarm)
  230. aurararm = aura:Clone()
  231. aurararm.Parent = rarm
  232. table.insert(auras, aurararm)
  233. auralleg = aura:Clone()
  234. auralleg.Parent = lleg
  235. table.insert(auras, auralleg)
  236. aurarleg = aura:Clone()
  237. aurarleg.Parent = rleg
  238. table.insert(auras, aurarleg)
  239.  
  240. local aura2 = Instance.new("ParticleEmitter", root)
  241. aura2.Texture = "rbxassetid://445231746"
  242. aura2.Color = ColorSequence.new(Color3.fromRGB(0, 0, 0))
  243. aura2.Size = NumberSequence.new(0,1)
  244. aura2.Transparency = NumberSequence.new(0,1)
  245. aura2.LockedToPart = true
  246. aura2.LightEmission = 0
  247. aura2.LightInfluence = 0
  248. aura2.ZOffset = -1.1
  249. aura2.Lifetime = NumberRange.new(0.4)
  250. aura2.Rate = 100000
  251. aura2.Speed = NumberRange.new(2)
  252. aura2.SpreadAngle = Vector2.new(0,0)
  253. aura2.Enabled = true
  254. table.insert(auras, aura2)
  255. aurah2 = aura2:Clone()
  256. aurah2.Parent = head
  257. table.insert(auras, aurah2)
  258. auralarm2 = aura2:Clone()
  259. auralarm2.Parent = larm
  260. table.insert(auras, auralarm2)
  261. aurararm2 = aura2:Clone()
  262. aurararm2.Parent = rarm
  263. table.insert(auras, aurararm2)
  264. auralleg2 = aura2:Clone()
  265. auralleg2.Parent = lleg
  266. table.insert(auras, auralleg2)
  267. aurarleg2 = aura2:Clone()
  268. aurarleg2.Parent = rleg
  269. table.insert(auras, aurarleg2)
  270. end
  271.  
  272. function aura80()
  273. local aura = Instance.new("ParticleEmitter", root)
  274. aura.Texture = "rbxassetid://445231746"
  275. aura.Color = ColorSequence.new(Color3.fromRGB(137, 0, 217))
  276. aura.Size = NumberSequence.new(0,1)
  277. aura.Transparency = NumberSequence.new(0,1)
  278. aura.LockedToPart = true
  279. aura.LightEmission = 1
  280. aura.LightInfluence = 1
  281. aura.ZOffset = -1
  282. aura.Lifetime = NumberRange.new(0.4)
  283. aura.Rate = 100000
  284. aura.Speed = NumberRange.new(2)
  285. aura.SpreadAngle = Vector2.new(0,0)
  286. aura.Enabled = true
  287. table.insert(auras, aura)
  288. aurah = aura:Clone()
  289. aurah.Parent = head
  290. table.insert(auras, aurah)
  291. auralarm = aura:Clone()
  292. auralarm.Parent = larm
  293. table.insert(auras, auralarm)
  294. aurararm = aura:Clone()
  295. aurararm.Parent = rarm
  296. table.insert(auras, aurararm)
  297. auralleg = aura:Clone()
  298. auralleg.Parent = lleg
  299. table.insert(auras, auralleg)
  300. aurarleg = aura:Clone()
  301. aurarleg.Parent = rleg
  302. table.insert(auras, aurarleg)
  303.  
  304. local aura2 = Instance.new("ParticleEmitter", root)
  305. aura2.Texture = "rbxassetid://445231746"
  306. aura2.Color = ColorSequence.new(Color3.fromRGB(0, 0, 0))
  307. aura2.Size = NumberSequence.new(0,1)
  308. aura2.Transparency = NumberSequence.new(0,1)
  309. aura2.LockedToPart = true
  310. aura2.LightEmission = 0
  311. aura2.LightInfluence = 0
  312. aura2.ZOffset = -1.1
  313. aura2.Lifetime = NumberRange.new(0.4)
  314. aura2.Rate = 100000
  315. aura2.Speed = NumberRange.new(2)
  316. aura2.SpreadAngle = Vector2.new(0,0)
  317. aura2.Enabled = true
  318. table.insert(auras, aura2)
  319. aurah2 = aura2:Clone()
  320. aurah2.Parent = head
  321. table.insert(auras, aurah2)
  322. auralarm2 = aura2:Clone()
  323. auralarm2.Parent = larm
  324. table.insert(auras, auralarm2)
  325. aurararm2 = aura2:Clone()
  326. aurararm2.Parent = rarm
  327. table.insert(auras, aurararm2)
  328. auralleg2 = aura2:Clone()
  329. auralleg2.Parent = lleg
  330. table.insert(auras, auralleg2)
  331. aurarleg2 = aura2:Clone()
  332. aurarleg2.Parent = rleg
  333. table.insert(auras, aurarleg2)
  334.  
  335. local aura3 = Instance.new("ParticleEmitter", root)
  336. aura3.Texture = "rbxassetid://347730682"
  337. aura3.Color = ColorSequence.new(Color3.fromRGB(69, 0, 220))
  338. aura3.Size = NumberSequence.new(5,5)
  339. aura3.Transparency = NumberSequence.new(0,1)
  340. aura3.LockedToPart = true
  341. aura3.LightEmission = 1
  342. aura3.LightInfluence = 0
  343. aura3.ZOffset = -1.5
  344. aura3.Lifetime = NumberRange.new(0.1)
  345. aura3.Rate = 120
  346. aura3.Speed = NumberRange.new(20)
  347. aura3.SpreadAngle = Vector2.new(0,0)
  348. aura3.Enabled = true
  349. table.insert(auras, aura3)
  350. end
  351.  
  352. function aura100()
  353. local aura = Instance.new("ParticleEmitter", root)
  354. aura.Texture = "rbxassetid://445231746"
  355. aura.Color = ColorSequence.new(Color3.fromRGB(137, 0, 217))
  356. aura.Size = NumberSequence.new(0,1)
  357. aura.Transparency = NumberSequence.new(0,1)
  358. aura.LockedToPart = true
  359. aura.LightEmission = 1
  360. aura.LightInfluence = 1
  361. aura.ZOffset = -1
  362. aura.Lifetime = NumberRange.new(0.4)
  363. aura.SpreadAngle = Vector2.new(1000,1000)
  364. aura.Rotation = NumberRange.new(200)
  365. aura.RotSpeed = NumberRange.new(200)
  366. aura.Rate = 100000
  367. aura.Speed = NumberRange.new(5)
  368. aura.Enabled = true
  369. table.insert(auras, aura)
  370. aurah = aura:Clone()
  371. aurah.Parent = head
  372. table.insert(auras, aurah)
  373. auralarm = aura:Clone()
  374. auralarm.Parent = larm
  375. table.insert(auras, auralarm)
  376. aurararm = aura:Clone()
  377. aurararm.Parent = rarm
  378. table.insert(auras, aurararm)
  379. auralleg = aura:Clone()
  380. auralleg.Parent = lleg
  381. table.insert(auras, auralleg)
  382. aurarleg = aura:Clone()
  383. aurarleg.Parent = rleg
  384. table.insert(auras, aurarleg)
  385.  
  386. local aura2 = Instance.new("ParticleEmitter", root)
  387. aura2.Texture = "rbxassetid://445231746"
  388. aura2.Color = ColorSequence.new(Color3.fromRGB(0, 0, 0))
  389. aura2.Size = NumberSequence.new(0,1)
  390. aura2.Transparency = NumberSequence.new(0,1)
  391. aura2.LockedToPart = true
  392. aura2.LightEmission = 0
  393. aura2.LightInfluence = 0
  394. aura2.ZOffset = -1.1
  395. aura2.Lifetime = NumberRange.new(0.4)
  396. aura2.Rate = 100000
  397. aura2.Rotation = NumberRange.new(200)
  398. aura2.RotSpeed = NumberRange.new(200)
  399. aura2.Speed = NumberRange.new(5)
  400. aura2.SpreadAngle = Vector2.new(1000,1000)
  401. aura2.Enabled = true
  402. table.insert(auras, aura2)
  403. aurah2 = aura2:Clone()
  404. aurah2.Parent = head
  405. table.insert(auras, aurah2)
  406. auralarm2 = aura2:Clone()
  407. auralarm2.Parent = larm
  408. table.insert(auras, auralarm2)
  409. aurararm2 = aura2:Clone()
  410. aurararm2.Parent = rarm
  411. table.insert(auras, aurararm2)
  412. auralleg2 = aura2:Clone()
  413. auralleg2.Parent = lleg
  414. table.insert(auras, auralleg2)
  415. aurarleg2 = aura2:Clone()
  416. aurarleg2.Parent = rleg
  417. table.insert(auras, aurarleg2)
  418.  
  419. local aura3 = Instance.new("ParticleEmitter", root)
  420. aura3.Texture = "rbxassetid://347730682"
  421. aura3.Color = ColorSequence.new(Color3.fromRGB(69, 0, 220))
  422. aura3.Size = NumberSequence.new(5,5)
  423. aura3.Transparency = NumberSequence.new(0.9,0.9)
  424. aura3.LockedToPart = true
  425. aura3.LightEmission = 1
  426. aura3.LightInfluence = 0
  427. aura3.ZOffset = -1.5
  428. aura3.Lifetime = NumberRange.new(0.1)
  429. aura3.Rate = 120
  430. aura3.Speed = NumberRange.new(20)
  431. aura3.SpreadAngle = Vector2.new(0,0)
  432. aura3.Enabled = true
  433. table.insert(auras, aura3)
  434. end
  435.  
  436. function removeAura()
  437. -- aura fade
  438. for i,a in pairs(auras) do
  439. a.Enabled = false
  440. game:GetService("Debris"):AddItem(a, 3)
  441. end
  442. auras = {}
  443. end
  444.  
  445.  
  446.  
  447.  
  448. hum.JumpPower = 0
  449. hum.HipHeight = 1
  450. hum.WalkSpeed = 10
  451. hum.MaxHealth = 25000
  452. wait()
  453. hum.Health = 25000
  454. hum:WaitForChild("Animator"):Remove()
  455. function createJoint(wp0, wp1, wc0x, wc0y, wc0z, wc1x, wc1y, wc1z, name)
  456. local joint = Instance.new("Weld", wp0)
  457. joint.Part0 = wp0
  458. joint.Part1 = wp1
  459. joint.C0 = CFrame.new(wc0x, wc0y, wc0z)
  460. joint.C1 = CFrame.new(wc1x, wc1y, wc1z)
  461. joint.Name = name
  462. return joint
  463. end
  464.  
  465. local RS = createJoint(tors, rarm, 1.5, 0.5, 0, 0, 0.5, 0, "Right Shoulder")
  466. local TS = createJoint(root, tors, 0, 0, 0, 0, 0, 0, "RootJoint")
  467. local LS = createJoint(tors, larm, -1.5, 0.5, 0, 0, 0.5, 0, "Left Shoulder")
  468. local RH = createJoint(tors, rleg, 0.5, -1, 0, 0, 1, 0, "Right Hip")
  469. local LH = createJoint(tors, lleg, -0.5, -1, 0, 0, 1, 0, "Left Hip")
  470. local NK = createJoint(tors, head, 0, 1, 0, 0, -1/2, 0, "Neck")
  471.  
  472. local rsc0 = RS.C0
  473. local lsc0 = LS.C0
  474. local tsc0 = TS.C0
  475. local rhc0 = RH.C0
  476. local lhc0 = LH.C0
  477. local nkc0 = NK.C0
  478.  
  479. local ears = Instance.new("Part", Player)
  480. ears.Size = Vector3.new(1, 1, 1)
  481. ears.CanCollide = false
  482. ears.BrickColor = BrickColor.new(skinCol)
  483. local earsMesh = Instance.new("SpecialMesh", ears)
  484. earsMesh.MeshId = "rbxassetid://101176852"
  485. earsMesh.Scale = Vector3.new(0.9, 1, 0.9)
  486. createJoint(head, ears, 0, 0.9, 0, 0, 0, 0, "EarWeld")
  487. local tail = Instance.new("Part", Player)
  488. tail.Size = Vector3.new(1, 1, 1)
  489. tail.CanCollide = false
  490. tail.BrickColor = BrickColor.new(skinCol)
  491. local tailMesh = Instance.new("SpecialMesh", tail)
  492. tailMesh.MeshId = "rbxassetid://534615496"
  493. tailMesh.Scale = Vector3.new(0.7, 0.7, 0.7)
  494. tailWeld = createJoint(tors, tail, 0, 0.5, 1.5, 0, 0, 0, "TailWeld")
  495. tailWeld.C0 = tailWeld.C0 * CFrame.Angles(math.rad(-50), 0, math.rad(-90))
  496.  
  497. function createSound(soundid, volume, looped, parent, pitch, lifetime)
  498. local sound = Instance.new("Sound", parent)
  499. sound.SoundId = "rbxassetid://".. soundid ..""
  500. sound.Volume = volume
  501. sound.Pitch = pitch
  502. game:GetService("Debris"):AddItem(sound, lifetime)
  503. return sound
  504. end
  505.  
  506.  
  507.  
  508. function damageLeftarm()
  509. function Damage(model)
  510. for i,s in pairs(model:GetChildren()) do
  511. Damage(s)
  512. if s.Name == "HumanoidRootPart" and s:IsA("BasePart") and s.Parent ~= Player then
  513. if (larm.Position - s.Position).magnitude < 2.364 and leftArmdamaging and punching then
  514. local hum = s.Parent:FindFirstChild("Humanoid")
  515. if hum then
  516. if damaged[hum.Parent] == nil then
  517. if vel then
  518. vel:Remove()
  519. end
  520.  
  521. vel = Instance.new("BodyVelocity", s)
  522. vel.Velocity = CFrame.new(s.CFrame.p, Player.HumanoidRootPart.CFrame.lookVector * 120).lookVector
  523. game:GetService("Debris"):AddItem(vel, 0.25)
  524.  
  525. damaged[hum.Parent] = true
  526. hum:TakeDamage(punchDamage +(math.random(-10, 10)/10))
  527. local punchSound = createSound("169380525", 1, false, Player.Head, 1 + (math.random(0, 5)/10), 1)
  528. punchSound:Play()
  529. end
  530. end
  531. end
  532. end
  533. end
  534. end
  535. Damage(workspace)
  536.  
  537. end
  538.  
  539.  
  540. function damageRightarm()
  541. function Damage(model)
  542. for i,s in pairs(model:GetChildren()) do
  543. Damage(s)
  544. if s.Name == "HumanoidRootPart" and s:IsA("BasePart") and s.Parent ~= Player then
  545. if (rarm.Position - s.Position).magnitude < 2.364 and rightArmdamaging and punching then
  546. local hum = s.Parent:FindFirstChild("Humanoid")
  547. if hum then
  548. if damaged[hum.Parent] == nil then
  549. if vel then
  550. vel:Remove()
  551. end
  552.  
  553. vel = Instance.new("BodyVelocity", s)
  554. vel.Velocity = CFrame.new(s.CFrame.p, Player.HumanoidRootPart.CFrame.lookVector * 120).lookVector
  555. game:GetService("Debris"):AddItem(vel, 0.25)
  556.  
  557. damaged[hum.Parent] = true
  558. hum:TakeDamage(punchDamage +(math.random(-10, 10)/10))
  559. local punchSound = createSound("169380525", 1, false, Player.Head, 1 + (math.random(0, 5)/10), 1)
  560. punchSound:Play()
  561. end
  562. end
  563. end
  564. end
  565. end
  566. end
  567. Damage(workspace)
  568.  
  569. end
  570.  
  571.  
  572. local exactVel = CFrame.new(Player.HumanoidRootPart.CFrame:vectorToObjectSpace(Player.HumanoidRootPart.Velocity))
  573. if idle then
  574. if math.abs(Player.HumanoidRootPart.Velocity.x) < 1 and math.abs(Player.HumanoidRootPart.Velocity.z) < 1 then
  575. TS.C0 = TS.C0:lerp(tsc0 * CFrame.new(0, math.sin(t/10)/5, 0), 0.05)
  576. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(math.cos(t/10)/10, 0, 0), 0.05)
  577. LS.C0 = LS.C0:lerp(lsc0 * CFrame.new(0.5, 0.05 + math.cos(t/10)/10, 0)
  578. * CFrame.Angles(math.rad(-45), 0, math.rad(25) + -math.cos(t/10)/10), 0.05)
  579. RS.C0 = RS.C0:lerp(rsc0 * CFrame.new(-0.5, 0.05 + math.cos(t/10)/10, 0)
  580. * CFrame.Angles(math.rad(-45), 0, math.rad(-25) + math.cos(t/10)/10), 0.05)
  581. RH.C0 = RH.C0:lerp(rhc0 * CFrame.new(0, 0.3 + math.cos(t/10)/10, -0.2)
  582. * CFrame.Angles(math.rad(-5) + math.cos(t/10)/10/20, 0, math.rad(5)), 0.05)
  583. LH.C0 = LH.C0:lerp(lhc0 * CFrame.new(0, 0.3 + math.cos(t/10)/10, -0.2)
  584. * CFrame.Angles(math.rad(-5) + math.cos(t/10)/10/20, 0, math.rad(-5)), 0.05)
  585. else
  586. TS.C0 = TS.C0:lerp(tsc0 * CFrame.new(0, math.cos(t/10)/5, 0)
  587. * CFrame.Angles(math.rad(exactVel.p.z), 0, math.rad(-exactVel.p.x)), 0.05)
  588. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(math.rad(-exactVel.p.z)/2,0, math.rad(exactVel.p.x)/2), 0.05)
  589. RS.C0 = RS.C0:lerp(rsc0 * CFrame.Angles(math.rad(exactVel.p.z)/2, 0, math.rad(10) + math.cos(t/10)/30 + math.rad(-exactVel.p.x)), 0.05)
  590. LS.C0 = LS.C0:lerp(lsc0 * CFrame.Angles(math.rad(exactVel.p.z)/2, 0, math.rad(-10) + -math.cos(t/10)/30 + math.rad(-exactVel.p.x)), 0.05)
  591. RH.C0 = RH.C0:lerp(rhc0 * CFrame.Angles(0, 0, math.rad(5) + math.cos(t/10)/30 + math.rad(-exactVel.p.x))
  592. * CFrame.new(0, 0.3, -0.2), 0.05)
  593. LH.C0 = LH.C0:lerp(lhc0 * CFrame.Angles(0, 0, math.rad(-5) + -math.cos(t/10)/30 + math.rad(-exactVel.p.x))
  594. * CFrame.new(0, 0.3, -0.2), 0.05)
  595.  
  596. end
  597. else
  598. if action == "Punch1" then
  599. local speed = 0.8
  600.  
  601. TS.C0 = TS.C0:lerp(tsc0 * CFrame.new(0, 0, -0.5)
  602. * CFrame.Angles(0, 0, math.rad(-exactVel.p.x))
  603. * CFrame.Angles(math.rad(-10) + math.rad(exactVel.p.z)/2, math.rad(50), 0), speed)
  604. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(math.rad(8), math.rad(-40), 0), speed)
  605. RH.C0 = RH.C0:lerp(rhc0 * CFrame.Angles(math.rad(30), math.rad(-45), 0), speed)
  606. LH.C0 = LH.C0:lerp(lhc0 * CFrame.Angles(0, math.rad(-45), 0)
  607. * CFrame.Angles(math.rad(-45), 0, 0), speed)
  608. LS.C0 = LS.C0:lerp(lsc0 * CFrame.Angles(math.rad(100) + math.rad(-exactVel.p.z)/2, math.rad(-45), 0), speed)
  609. RS.C0 = RS.C0:lerp(rsc0 * CFrame.Angles(math.rad(-exactVel.p.z)/2 + math.rad(10), math.rad(-45), math.rad(-20))
  610. * CFrame.Angles(math.rad(90), 0, math.rad(-45)), speed)
  611. elseif action == "Punch2" then
  612. local speed = 0.8
  613. TS.C0 = TS.C0:lerp(tsc0 * CFrame.new(0, 0, -0.5)
  614. * CFrame.Angles(0, 0, math.rad(-exactVel.p.x))
  615. * CFrame.Angles(math.rad(-10) + math.rad(exactVel.p.z)/2, math.rad(-50), 0), speed)
  616. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(math.rad(8), math.rad(40), 0), speed)
  617. RH.C0 = RH.C0:lerp(rhc0 * CFrame.Angles(0, math.rad(45), 0)
  618. * CFrame.Angles(math.rad(-45), 0, 0), speed)
  619. LH.C0 = LH.C0:lerp(lhc0 * CFrame.Angles(math.rad(30), math.rad(45), 0), speed)
  620. LS.C0 = LS.C0:lerp(lsc0 * CFrame.Angles(math.rad(-exactVel.p.z)/2 + math.rad(10), math.rad(45), math.rad(20))
  621. * CFrame.Angles(math.rad(100), 0, math.rad(45)), speed)
  622. RS.C0 = RS.C0:lerp(rsc0 * CFrame.Angles(math.rad(100) + math.rad(-exactVel.p.z)/2, math.rad(-45), 0), speed)
  623. elseif action == "Punch3" then
  624. local speed = 0.8
  625.  
  626. TS.C0 = TS.C0:lerp(tsc0 * CFrame.new(0, 0, -0.5)
  627. * CFrame.Angles(0, 0, math.rad(-exactVel.p.x))
  628. * CFrame.Angles(math.rad(-10) + math.rad(exactVel.p.z)/2, math.rad(40), 0), speed)
  629. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(math.rad(8), math.rad(-40), 0), speed)
  630. RH.C0 = RH.C0:lerp(rhc0 * CFrame.Angles(math.rad(30), math.rad(-45), 0), speed)
  631. LH.C0 = LH.C0:lerp(lhc0 * CFrame.Angles(0, math.rad(-45), 0)
  632. * CFrame.Angles(math.rad(-45), 0, 0), speed)
  633. LS.C0 = LS.C0:lerp(lsc0 * CFrame.Angles(math.rad(100) + math.rad(-exactVel.p.z)/2, math.rad(-45), 0), speed)
  634. RS.C0 = RS.C0:lerp(rsc0 * CFrame.Angles(math.rad(-exactVel.p.z)/2 + math.rad(10), math.rad(-45), math.rad(-20))
  635. * CFrame.Angles(math.rad(80), 0, 0), speed)
  636. elseif action == "Punch4" then
  637. local speed = 0.8
  638.  
  639. TS.C0 = TS.C0:lerp(tsc0 * CFrame.new(0, 0, -0.5)
  640. * CFrame.Angles(0, 0, math.rad(-exactVel.p.x))
  641. * CFrame.Angles(math.rad(-10) + math.rad(exactVel.p.z)/2, math.rad(-40), 0), speed)
  642. NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(math.rad(8), math.rad(40), 0), speed)
  643. RH.C0 = RH.C0:lerp(rhc0 * CFrame.Angles(0, math.rad(45), 0)
  644. * CFrame.Angles(math.rad(-45), 0, 0), speed)
  645. LH.C0 = LH.C0:lerp(lhc0 * CFrame.Angles(math.rad(30), math.rad(45), 0), speed)
  646. LS.C0 = LS.C0:lerp(lsc0 * CFrame.Angles(math.rad(-exactVel.p.z)/2 + math.rad(10), math.rad(45), math.rad(-20))
  647. * CFrame.Angles(math.rad(70), 0, 0), speed)
  648. RS.C0 = RS.C0:lerp(rsc0 * CFrame.Angles(math.rad(100) + math.rad(-exactVel.p.z)/2, math.rad(-45), 0), speed)
  649. end
  650.  
  651.  
  652. damageLeftarm()
  653. damageRightarm()
  654. end
  655. end)
  656.  
  657.  
  658. function ascend()
  659. if pwr10 == true then
  660. pwr40 = true
  661. punchDamage = 30
  662. KiDamage = 50
  663. hum.WalkSpeed = 24
  664. pwr10 = false
  665. removeAura()
  666. aura40()
  667. elseif pwr40 == true then
  668. pwr80 = true
  669. punchDamage = 60
  670. KiDamage = 60
  671. hum.WalkSpeed = 38
  672. pwr40 = false
  673. removeAura()
  674. aura80()
  675. elseif pwr80 == true then
  676. pwr100 = true
  677. punchDamage = 90
  678. KiDamage = 70
  679. hum.WalkSpeed = 56
  680. pwr80 = false
  681. removeAura()
  682. aura100()
  683. end
  684. end
  685.  
  686. function descend()
  687. if pwr100 == true then
  688. pwr80 = true
  689. punchDamage = 60
  690. KiDamage = 60
  691. hum.WalkSpeed = 38
  692. pwr100 = false
  693. removeAura()
  694. aura80()
  695. elseif pwr80 == true then
  696. pwr40 = true
  697. punchDamage = 30
  698. KiDamage = 60
  699. hum.WalkSpeed = 24
  700. pwr80 = false
  701. removeAura()
  702. aura40()
  703. elseif pwr40 == true then
  704. pwr10 = true
  705. punchDamage = 20
  706. KiDamage = 30
  707. hum.WalkSpeed = 16
  708. pwr40 = false
  709. removeAura()
  710. end
  711. end
  712.  
  713. function base()
  714. pwr10 = true
  715. pwr40 = false
  716. pwr80 = false
  717. pwr100 = false
  718. punchDamage = 20
  719. hum.WalkSpeed = 16
  720. removeAura()
  721. end
  722.  
  723. function lerpt(item,max,num,speed)
  724. for i = num, max, speed do
  725. item.Transparency = i
  726. wait()
  727. end
  728. item:Destroy()
  729. end
  730.  
  731. function blast(pos)
  732. spawn(function()
  733. local damaged = {}
  734. local x = math.random(-5, 5)
  735. local y = math.random(-5, 5)
  736. local z = math.random(-5, 5)
  737. local ki = Instance.new("Part", Player)
  738. ki.Size = Vector3.new(1.1,1.1,1.1)
  739. ki.Material = "Neon"
  740. ki.CFrame = tors.CFrame * CFrame.new(x, y, -2)
  741. ki.Anchored = false
  742. ki.CanCollide = false
  743. ki.TopSurface = 10
  744. ki.BottomSurface = 10
  745. ki.BrickColor = BrickColor.new("Lilac")
  746. ki.LeftSurface = 10
  747. ki.RightSurface = 10
  748. ki.FrontSurface = 10
  749. ki.BackSurface = 10
  750. local kim = Instance.new("SpecialMesh", ki)
  751. kim.MeshType = "Sphere"
  752. local bp = Instance.new("BodyPosition", ki)
  753. bp.Position = pos + Vector3.new(x, y, z)
  754. bp.P = math.random(20000,100000)
  755. bp.D = 1000
  756. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  757. repeat wait() until (ki.Position-bp.Position).magnitude < 3
  758. local ki2 = Instance.new("Part", Player)
  759. function Damage(model)
  760. for i,s in pairs(model:GetChildren()) do
  761. Damage(s)
  762. if s.Name == "HumanoidRootPart" and s:IsA("BasePart") and s.Parent ~= Player then
  763. if (ki2.Position - s.Position).magnitude < 7 then
  764. local hum = s.Parent:FindFirstChild("Humanoid")
  765. if hum then
  766. if damaged[hum.Parent] == nil then
  767. damaged[hum.Parent] = true
  768. if vel then
  769. vel:Remove()
  770. end
  771. vel = Instance.new("BodyVelocity", s)
  772. vel.Velocity = CFrame.new(s.CFrame.p, Player.HumanoidRootPart.CFrame.lookVector * 120).lookVector
  773. game:GetService("Debris"):AddItem(vel, 0.5)
  774. hum:TakeDamage(KiDamage +(math.random(-10, 10)/10))
  775. end
  776. end
  777. end
  778. end
  779. end
  780. end
  781. ki2.Size = Vector3.new(1,1,1)
  782. ki2.Material = "Neon"
  783. ki2.Anchored = true
  784. ki2.BrickColor = BrickColor.new("Lilac")
  785. ki2.CFrame = CFrame.new(pos + Vector3.new(x, y, z))
  786. ki2.CanCollide = false
  787. ki2.TopSurface = 10
  788. ki2.BottomSurface = 10
  789. ki2.LeftSurface = 10
  790. ki2.RightSurface = 10
  791. ki2.FrontSurface = 10
  792. ki2.BackSurface = 10
  793. local kim2 = Instance.new("SpecialMesh", ki2)
  794. kim2.MeshType = "Sphere"
  795. spawn(function()
  796. for i = 0,15,3 do
  797. wait()
  798. ki2.Size = Vector3.new(i,i,i)
  799. Damage(workspace)
  800. end
  801. spawn(function()
  802. lerpt(ki2,1,0,0.2)
  803. end)
  804. end)
  805. ki:Destroy()
  806. end)
  807. end
  808. Mouse.KeyDown:connect(function(k)
  809. if k:lower() == "b" and not ascendcooldown then
  810. spawn(function()
  811. ascendcooldown = true
  812. wait(5)
  813. ascendcooldown = false
  814. end)
  815. ascend()
  816. elseif k:lower() == "n" and not descendcooldown then
  817. spawn(function()
  818. descendcooldown = true
  819. wait(2)
  820. descendcooldown = false
  821. end)
  822. descend()
  823. elseif k == "m" then
  824. base()
  825. elseif k == "q" then
  826. action = "Punching"
  827. idle = false
  828. punching = true
  829. repeat
  830.  
  831. if punching == false then
  832. attacking = false
  833. idle = true
  834. end
  835. damaged = {}
  836. action = "Punch1"
  837.  
  838. leftArmdamaging = false
  839. rightArmdamaging = true
  840. wait(speed)
  841.  
  842. if punching == false then
  843. attacking = false
  844. idle = true
  845. end
  846. damaged = {}
  847. action = "Punch2"
  848.  
  849. leftArmdamaging = true
  850. rightArmdamaging = false
  851. wait(speed)
  852.  
  853. if keyDown == false then
  854. attacking = false
  855. idle = true
  856. end
  857. damaged = {}
  858. action = "Punch3"
  859.  
  860. leftArmdamaging = false
  861. rightArmdamaging = true
  862. wait(speed)
  863.  
  864. if keyDown == false then
  865. attacking = false
  866. idle = true
  867. end
  868. damaged = {}
  869. action = "Punch4"
  870.  
  871. wait(speed)
  872.  
  873. until punching == false
  874. elseif k:lower() == "f" then
  875. if flying then
  876. flying = false
  877. if bv then
  878. bv:Remove()
  879. end
  880. else
  881. flying = true
  882. bv = Instance.new("BodyVelocity", root)
  883. bv.Velocity = Vector3.new(0, 0, 0)
  884. end
  885.  
  886. elseif k:lower() == "e" then
  887. kiBlasting = true
  888. repeat
  889. idle = false
  890. if armKi == "Right" then
  891. action = "Punch3"
  892. else
  893. action = "Punch4"
  894. end
  895. blast(Mouse.Hit.p)
  896. wait(0.05)
  897. if armKi == "Right" then
  898. armKi = "Left"
  899. else
  900. armKi = "Right"
  901. end
  902. until kiBlasting == false
  903. end
  904. end)
  905.  
  906. Mouse.KeyUp:connect(function(k)
  907. if k:lower() == "q" then
  908. action = ""
  909. punching = false
  910. idle = true
  911. leftArmdamaging = false
  912. rightArmdamaging = false
  913. elseif k:lower() == "e" and kiBlasting then
  914. kiBlasting = false
  915. action = ""
  916. idle = true
  917. end
  918. end)
  919.  
  920. Mouse.Button1Down:connect(function()
  921. if flying then
  922. mouseDownF = true
  923. end
  924. end)
  925. Mouse.Button1Up:connect(function()
  926. if flying then
  927. mouseDownF = false
  928. end
  929. end)
  930.  
  931. base()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement