Advertisement
lafur

Untitled

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