Advertisement
Kittdy2

Untitled

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