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