Advertisement
ghostteen14

Untitled

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