carlosname

Untitled

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