Hugo1234cool

Untitled

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