View difference between Paste ID: NaxJnmav and ySaHBSQG
SHOW: | | - or go back to the newest paste.
1
---
2
local p = game.Players.LocalPlayer
3
local char = p.Character
4
local mouse = p:GetMouse()
5
local larm = char["Left Arm"]
6
local rarm = char["Right Arm"]
7
local lleg = char["Left Leg"]
8
local rleg = char["Right Leg"]
9
local hed = char.Head
10
local torso = char.Torso
11
local ASD = BrickColor.new("Pastel brown")
12
local hum = char.Humanoid
13
local cam = game.Workspace.CurrentCamera
14
local root = char.HumanoidRootPart
15
local deb = false
16
local shot = 0
17
local l = game:GetService("Lighting")
18
local rs = game:GetService("RunService").RenderStepped
19
local stanceToggle = "Normal"
20
math.randomseed(os.time())
21
hum.WalkSpeed = 7
22
char.Health:Destroy()
23-
hum.MaxHealth = 5000000
23+
hum.MaxHealth = math.huge
24
wait(0.1)
25-
hum.Health = 5000000
25+
hum.Health = math.huge
26
z = Instance.new("Sound", char.Torso)
27
z.SoundId = "rbxassetid://719841541"
28
z.Looped = true
29
z.Pitch = 1
30
z.Volume = 1
31
----------------------------------------------------
32
local SM = Instance.new("Smoke",torso)
33
SM.Size = 15
34
local S = Instance.new("Part",char)
35
S.Size = Vector3.new(1,1,1)
36
S.Material = "Neon"
37
S.BrickColor = BrickColor.new("Deep orange")
38
S.Transparency = 0
39
S.Anchored = true
40
S.CFrame = torso.CFrame*CFrame.new(0,0,0)
41
local Ring = Instance.new("Part",S)
42
Ring.Size = Vector3.new(1,1,1)
43
Ring.BrickColor = BrickColor.new("Deep orange")
44
Ring.Anchored = true
45
Ring.CanCollide = false
46
Ring.CFrame = S.CFrame*CFrame.new(0,0,0)*CFrame.Angles(1.55,0,0)
47
local Ring2 = Instance.new("SpecialMesh",Ring)
48
Ring2.MeshId = "rbxassetid://3270017"
49
Ring2.Scale = Vector3.new(0.1,0.1,0.1)
50
local S2 = Instance.new("SpecialMesh",S)
51
S2.MeshType = "Sphere"
52
S2.Scale = Vector3.new(1,1,1)
53
v = Instance.new("Sound")
54
v.SoundId = "rbxassetid://821439273"
55
v.Parent = char.Torso
56
v.Looped = false
57
v.Pitch = 1
58
v.Volume = 1
59
wait(.01)
60
v:Play()
61
local partasdeff = Instance.new("ParticleEmitter",S)
62
partasdeff.Color = ColorSequence.new(Color3.new(0,0,0), Color3.new(204,130,2))
63
partasdeff.LightEmission = .1
64
partasdeff.Size = NumberSequence.new(0.2)
65
partasdeff.Texture = "http://www.roblox.com/asset/?ID=300899516"
66
aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
67
bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
68
partasdeff.Transparency = bbb
69
partasdeff.Size = aaa
70
partasdeff.ZOffset = .9
71
partasdeff.Acceleration = Vector3.new(0, -5, 0)
72
partasdeff.LockedToPart = false
73
partasdeff.EmissionDirection = "Top"
74
partasdeff.Lifetime = NumberRange.new(1, 2)
75
partasdeff.Rate = 1000
76
partasdeff.Rotation = NumberRange.new(-100, 100)
77
partasdeff.RotSpeed = NumberRange.new(-100, 100)
78
partasdeff.Speed = NumberRange.new(10)
79
partasdeff.VelocitySpread = 300
80
partasdeff.Enabled = true
81
for i = 1,100 do
82
	Ring2.Scale = Ring2.Scale + Vector3.new(2,2,2)
83
	Ring.Transparency = Ring.Transparency + 0.01
84
	S2.Scale = S2.Scale + Vector3.new(0.3,0.3,0.3)
85
	S.Transparency = S.Transparency + 0.01
86
	game:GetService("RunService").RenderStepped:wait()
87
end
88
S:remove()
89
wait(1)
90
SM:remove()
91-
hed.face.Texture = "rbxassetid://141107361"
91+
 char.Shirt:Destroy()
92-
char.Shirt.ShirtTemplate = "rbxassetid://270992313"
92+
char.Pants:Destroy()
93
shirt = Instance.new("Shirt", char)
94
shirt.Name = "Shirt"
95
pants = Instance.new("Pants", char)
96
pants.Name = "Pants"
97
char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=270992313"
98
char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=917519857"
99
char.Head.face.Texture = "rbxassetid://1036875641"
100
char.Pants:remove()
101
v = Instance.new("Sound")
102
        v.SoundId = "rbxassetid://181384451"
103
        v.Parent = torso
104
        v.Looped = false
105
        v.Pitch = 1.04
106
        v.Volume = 1
107
        wait(.01)
108
        v:Play()
109
z:Play()
110
----------------------------------------------------
111
Debounces = {
112
on = false;
113
ks = false;
114
CanAttack = true;
115
CanJoke = true;
116
NoIdl = false;
117
Slashing = false;
118
Slashed = false;
119
Grabbing = false;
120
Grabbed = false;
121
}
122
local Touche = {char.Name, }
123
----------------------------------------------------
124
function lerp(a, b, t) -- Linear interpolation
125
    return a + (b - a)*t
126
end
127
 
128
function slerp(a, b, t) --Spherical interpolation
129
    dot = a:Dot(b)
130
    if dot > 0.99999 or dot < -0.99999 then
131
        return t <= 0.5 and a or b
132
    else
133
        r = math.acos(dot)
134
        return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
135
    end
136
end
137
 
138
function matrixInterpolate(a, b, t)
139
    local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
140
    local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
141
    local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
142
    local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector  right
143
    local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector  up
144
    local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector  back
145
    local t = v1:Dot(v2)
146
    if not (t < 0 or t == 0 or t > 0) then     -- Failsafe
147
        return CFrame.new()
148
    end
149
    return CFrame.new(
150
    v0.x, v0.y, v0.z,
151
    v1.x, v1.y, v1.z,
152
    v2.x, v2.y, v2.z,
153
    v3.x, v3.y, v3.z)
154
end
155
----------------------------------------------------
156
function genWeld(a,b)
157
    local w = Instance.new("Weld",a)
158
    w.Part0 = a
159
    w.Part1 = b
160
    return w
161
end
162
function weld(a, b)
163
    local weld = Instance.new("Weld")
164
    weld.Name = "W"
165
    weld.Part0 = a
166
    weld.Part1 = b
167
    weld.C0 = a.CFrame:inverse() * b.CFrame
168
    weld.Parent = a
169
    return weld;
170
end
171
----------------------------------------------------
172
function Lerp(c1,c2,al)
173
local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
174
local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
175
for i,v in pairs(com1) do 
176
com1[i] = v+(com2[i]-v)*al
177
end
178
return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
179
end
180
----------------------------------------------------
181
newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
182
local wld = Instance.new("Weld", wp1)
183
wld.Part0 = wp0
184
wld.Part1 = wp1
185
wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
186
end
187
----------------------------------------------------
188
for i,v in pairs(char:children()) do
189
    if v:IsA("Hat") then
190
        v:Destroy()
191
    end
192
end
193
for i,v in pairs(hed:children()) do
194
    if v:IsA("Sound") then
195
        v:Destroy()
196
    end
197
end
198
----------------------------------------------------
199
function HasntTouched(plrname)
200
local ret = true
201
for _, v in pairs(Touche) do
202
if v == plrname then
203
ret = false
204
end
205
end
206
return ret
207
end
208
----------------------------------------------------
209
larm.Size = larm.Size * 5
210
rarm.Size = rarm.Size * 5
211
lleg.Size = lleg.Size * 5
212
rleg.Size = rleg.Size * 5
213
torso.Size = torso.Size * 5
214
hed.Size = hed.Size * 5
215
root.Size = root.Size * 5
216
----------------------------------------------------
217
newWeld(torso, larm, -1.5, 0.5, 0)
218
larm.Weld.C1 = CFrame.new(0, 0.5, 0)
219
newWeld(torso, rarm, 1.5, 0.5, 0)
220
rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
221
newWeld(torso, hed, 0, 1.5, 0)
222
newWeld(torso, lleg, -0.5, -1, 0)
223
lleg.Weld.C1 = CFrame.new(0, 1, 0)
224
newWeld(torso, rleg, 0.5, -1, 0)
225
rleg.Weld.C1 = CFrame.new(0, 1, 0)
226
newWeld(root, torso, 0, -1, 0)
227
torso.Weld.C1 = CFrame.new(0, -1, 0)
228
----------------------------------------------------
229
local Part = Instance.new("Part",hed)
230
Part.BrickColor = BrickColor.new("Really black")
231
Part.Size = Vector3.new(1,1,1)
232
Part.CanCollide = false
233
Part.Material = "Neon"
234
local M = Instance.new("SpecialMesh",Part)
235
M.MeshId = "rbxassetid://62246019"
236
M.Scale = Vector3.new(5,5,5)
237
local Part2 = Instance.new("Weld",Part)
238
Part2.Part0 = hed
239
Part2.Part1 = Part
240
Part2.C0 = CFrame.new(-0.2,1.5,0.8)
241
----------------------------------------------------
242
----------------------------------------------------
243
----------------------------------------------------
244
245
----------------------------------------------------
246
function weld5(part0, part1, c0, c1)
247
    weeld=Instance.new("Weld", part0)
248
    weeld.Part0=part0
249
    weeld.Part1=part1
250
    weeld.C0=c0
251
    weeld.C1=c1
252
    return weeld
253
end
254
----------------------------------------------------
255
function newRay(start,face,range,wat)
256
	local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
257
	hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
258
	return rey,hit,pos
259
end
260
----------------------------------------------------
261
mod5 = Instance.new("Model",char)
262
263
function FindNearestTorso(Position,Distance,SinglePlayer)
264
    if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
265
        local List = {}
266
        for i,v in pairs(workspace:GetChildren())do
267
            if v:IsA("Model")then
268
                if v:findFirstChild("Torso")then
269
                    if v ~= char then
270
                        if(v.Torso.Position -Position).magnitude <= Distance then
271
                            table.insert(List,v)
272
                        end 
273
                    end 
274
                end 
275
            end 
276
        end
277
    return List
278
end
279
280
function Landing()
281
    part=Instance.new('Part',mod5)
282
    part.Anchored=true
283
    part.CanCollide=false
284
    part.FormFactor='Custom'
285
    part.Size=Vector3.new(.2,.2,.2)
286
    part.CFrame=root.CFrame*CFrame.new(0,-2,0)
287
    part.Transparency=.7
288
    part.BrickColor=BrickColor.new('Really black')
289
    mesh=Instance.new('SpecialMesh',part)
290
    mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
291
    mesh.Scale=Vector3.new(10,5,10)
292
293
    for i,v in pairs(FindNearestTorso(torso.CFrame.p,40))do
294
        if v:FindFirstChild('Humanoid') then
295
            v.Humanoid:TakeDamage(math.random(20,30))
296
            v.Humanoid.PlatformStand = true
297
            v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
298
        end
299
    end
300
301
    coroutine.resume(coroutine.create(function() 
302
        for i=0,3.8,0.05 do
303
            wait()
304
            part.CFrame=part.CFrame
305
            part.Transparency=i
306
            mesh.Scale=mesh.Scale+Vector3.new(1,0.2,1)
307
            end
308
        part.Parent = nil
309
    end))
310
end
311
----------------------------------------------------
312
mod4 = Instance.new("Model",char)
313
314
ptez = {0.7, 0.8, 0.9, 1}
315
316
function FindNearestTorso(Position,Distance,SinglePlayer)
317
    if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
318
        local List = {}
319
        for i,v in pairs(workspace:GetChildren())do
320
            if v:IsA("Model")then
321
                if v:findFirstChild("Torso")then
322
                    if v ~= char then
323
                        if(v.Torso.Position -Position).magnitude <= Distance then
324
                            table.insert(List,v)
325
                        end 
326
                    end 
327
                end 
328
            end 
329
        end
330
    return List
331
end
332
333
----------------------------------------------------
334
335
local acos = math.acos
336
local sqrt = math.sqrt
337
local Vec3 = Vector3.new
338
local fromAxisAngle = CFrame.fromAxisAngle
339
340
local function toAxisAngle(CFr)
341
        local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
342
        local Angle = math.acos((R00+R11+R22-1)/2)
343
        local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
344
        A = A == 0 and 0.00001 or A
345
        local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
346
        B = B == 0 and 0.00001 or B
347
        local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
348
        C = C == 0 and 0.00001 or C
349
        local x = (R21-R12)/sqrt(A)
350
        local y = (R02-R20)/sqrt(B)
351
        local z = (R10-R01)/sqrt(C)
352
        return Vec3(x,y,z),Angle
353
end
354
355
function ApplyTrig(Num,Func)
356
        local Min,Max = Func(0),Func(1)
357
        local i = Func(Num)
358
        return (i-Min)/(Max-Min)
359
        --[[if Func == "sin" then
360
                return (math.sin((1-Num)*math.pi)+1)/2
361
        elseif Func == "cos" then
362
                return (math.cos((1-Num)*math.pi)+1)/2
363
        end]]
364
end
365
366
function LerpCFrame(CFrame1,CFrame2,Num)
367
        local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
368
        return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
369
end
370
mouse.KeyDown:connect(function(key)
371
	if key == "e" then
372
		if Debounces.CanAttack == true then
373
        Debounces.CanAttack = false
374
        Debounces.on = true
375
        Debounces.NoIdl = true
376
		for i = 1,20 do
377
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,-3) * CFrame.Angles(1.3,0,0),.3)
378
        larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
379
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
380
        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
381
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
382
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
383
        if Debounces.on == false then break end
384
    wait()
385
		end
386
		local HitBox = Instance.new("Part",char)
387
HitBox.Size = Vector3.new(5,5,5)
388
HitBox.CanCollide = false
389
HitBox.Transparency = math.huge
390
local HitBox2 = Instance.new("Weld",HitBox)
391
HitBox2.Part0 = rarm
392
HitBox2.Part1 = HitBox
393
HitBox2.C0 = CFrame.new(0,-4.5,0)
394
HitBox.Touched:connect(function(hit)
395
	if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
396
		if not DD then DD = true
397
		hit.Parent.Humanoid.PlatformStand = true
398
		local We = Instance.new("Weld",hit.Parent.Torso)
399
		We.Part0 = rarm
400
		We.Part1 = hit.Parent.Torso
401
		We.C0 = CFrame.new(0,-5,0)*CFrame.Angles(-1.55,0,0)
402
		wait(1)
403
		for i = 1,20 do
404
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,4,0) * CFrame.Angles(3.1,0,1),.3)
405
        larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,4,0) * CFrame.Angles(-3.1,0,-1),.3)
406
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(1,0,0),.3)
407
        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
408
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
409
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
410
        if Debounces.on == false then break end
411
    	wait()
412
		end
413
		hit.Parent.Humanoid:TakeDamage(20)
414
		for i = 1,20 do
415
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(6,4,-1) * CFrame.Angles(1.55,0,-1),.3)
416
        larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-6,4,-1) * CFrame.Angles(1.55,0,1),.3)
417
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.4,0,0),.3)
418
        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
419
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
420
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
421
        if Debounces.on == false then break end
422
    	wait()
423
		end
424
		for i = 1,20 do
425
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(5,4,-1) * CFrame.Angles(1.55,0,-1.3),.3)
426
        larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-5,4,-1) * CFrame.Angles(1.55,0,1.3),.3)
427
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.4,0,0),.3)
428
        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
429
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
430
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
431
        if Debounces.on == false then break end
432
    	wait()
433
		end
434
		local partasdeff = Instance.new("ParticleEmitter",hit.Parent.Torso)
435
			partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0, 0))
436
			partasdeff.LightEmission = .1
437
			partasdeff.Size = NumberSequence.new(0.2)
438
			partasdeff.Texture = "http://www.roblox.com/asset/?ID=380529823"
439
			aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
440
			bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
441
			partasdeff.Transparency = bbb
442
			partasdeff.Size = aaa
443
			partasdeff.ZOffset = .9
444
			partasdeff.Acceleration = Vector3.new(0, -5, 0)
445
			partasdeff.LockedToPart = false
446
			partasdeff.EmissionDirection = "Top"
447
			partasdeff.Lifetime = NumberRange.new(1, 2)
448
			partasdeff.Rate = 1000
449
			partasdeff.Rotation = NumberRange.new(-100, 100)
450
			partasdeff.RotSpeed = NumberRange.new(-100, 100)
451
			partasdeff.Speed = NumberRange.new(10)
452
			partasdeff.VelocitySpread = 300
453
			partasdeff.Enabled = true
454
			wait(1.5)
455
		hit.Parent:BreakJoints()
456
		We:remove()
457
		partasdeff.Enabled = false
458
		if Debounces.CanAttack == false then
459
        Debounces.CanAttack = true
460
        Debounces.on = false
461
        Debounces.NoIdl = false
462
		end
463
		wait(1313)
464
		DD = false
465
		end
466
	end
467
end)
468
---ANIMATION REPLAY
469
	end
470
	end
471
end)
472
mouse.KeyDown:connect(function(key)
473
    if key == "r" then
474
        if Debounces.CanAttack == true then
475
        Debounces.CanAttack = false
476
        Debounces.on = true
477
        Debounces.NoIdl = true
478
for i = 1,20 do
479
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,0) * CFrame.Angles(0.5,0,0),.3)
480
        larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
481
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
482
        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(-0.5,0,0),.3)
483
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, -2) *CFrame.Angles(0.5,0,0),.3)
484
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6, 1.2) * CFrame.Angles(-1.5,0,0),.3)
485
        if Debounces.on == false then break end
486
    wait()
487
end
488
local HitBox = Instance.new("Part",char)
489
HitBox.Size = Vector3.new(5,5,5)
490
HitBox.CanCollide = false
491
HitBox.Transparency = math.huge
492
local HitBox2 = Instance.new("Weld",HitBox)
493
HitBox2.Part0 = rleg
494
HitBox2.Part1 = HitBox
495
HitBox2.C0 = CFrame.new(0,-1.1,0)
496
local SFXZ = Instance.new("Sound",torso)
497
		SFXZ.SoundId = "rbxassetid://169259383"
498
		SFXZ.Volume = math.huge
499
		SFXZ.Pitch = 0.5
500
		SFXZ.Looped = false
501
		wait(0.01)
502
		SFXZ:Play()
503
HitBox.Touched:connect(function(hit)
504
	if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
505
		local SFXZ = Instance.new("Sound",torso)
506
			SFXZ.SoundId = "rbxassetid://743886825"
507
			SFXZ.Volume = 1
508
			SFXZ.Pitch = 0.5
509
			SFXZ.Looped = false
510
			SFXZ:Play()
511
		HitBox:remove()
512
		hit.Parent.Humanoid:TakeDamage(44)
513
		hit.Parent.Humanoid.PlatformStand = true
514
		local Fl = Instance.new("BodyVelocity",hit.Parent.Torso)
515
			Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge)
516
			Fl.velocity = rleg.CFrame.lookVector*350
517
			wait(0.1)
518
			Fl:remove()
519
	end
520
end)
521
for i = 1,20 do
522
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
523
        larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(0.5,0,0),.3)
524
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
525
        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0.5,0,0),.3)
526
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, 2) *CFrame.Angles(-0.5,0,0),.3)
527
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6, -1.2) * CFrame.Angles(1.5,0,0),.3)
528
        if Debounces.on == false then break end
529
    wait()
530
end
531
if Debounces.CanAttack == false then
532
        Debounces.CanAttack = true
533
        Debounces.on = false
534
        Debounces.NoIdl = false
535
HitBox:remove()
536
            end
537
end
538
end
539
end)
540
----------------------------------------------------
541
mouse.KeyDown:connect(function(key)
542
    if string.byte(key) == 48 then
543
        char.Humanoid.WalkSpeed = 34
544
    end
545
end)
546
mouse.KeyUp:connect(function(key)
547
    if string.byte(key) == 48 then
548
        char.Humanoid.WalkSpeed = 5
549
    end
550
end)
551
----------------------------------------------------
552
local animpose = "Idle"
553
local lastanimpose = "Idle"
554
local sine = 0
555
local change = 1
556
local val = 0
557
local ffing = false
558
----------------------------------------------------
559
local x = Instance.new("Sound", char.Torso)
560
x.SoundId = "http://www.roblox.com/asset/?id=273962540"
561
x.Looped = true
562
x.Volume = 1
563
x.Pitch = 1
564
local footsteps = false
565
-------------------------------
566
game:GetService("RunService").RenderStepped:connect(function()
567
rarm.BrickColor = ASD
568
larm.BrickColor = ASD
569
rleg.BrickColor = ASD
570
lleg.BrickColor = ASD
571
hed.BrickColor = ASD
572
torso.BrickColor = ASD
573
--[[if char.Humanoid.Jump == true then
574
jump = true
575
else
576
jump = false
577
end]]
578
char.Humanoid.FreeFalling:connect(function(f)
579
if f then
580
ffing = true
581
else
582
ffing = false
583
end
584
end)
585
sine = sine + change
586
if jumpn == true then
587
animpose = "Jumping"
588
elseif ffing == true then
589
animpose = "Freefalling"
590
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
591
animpose = "Idle"
592
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
593
animpose = "Walking"
594
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
595
animpose = "Running"
596
end
597
if animpose ~= lastanimpose then
598
sine = 0
599
if Debounces.NoIdl == false then
600
if animpose == "Idle" then
601
for i = 1, 2 do
602
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.2)
603
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-8,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.2)
604
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2)
605
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
606
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3, -8.8, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2)
607
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3, -8.8, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2)
608
end
609
elseif animpose == "Walking" then
610
for i = 1, 2 do
611
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.3, .9, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(20)), 0.2)
612
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.3, .9, 0)*CFrame.Angles(0, math.rad(1), math.rad(-10)), 0.2)
613
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(-8), math.rad(0), math.rad(0)),0.2)
614
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(0)), 0.2)
615
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
616
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
617
end
618
elseif animpose == "Running" then
619
for i = 1, 2 do
620
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.8, 0.9, .5) * CFrame.Angles(math.rad(-10), math.rad(-40), math.rad(50)), 0.2)
621
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.8, 1.2, 0-1*math.cos(sine/4)/2)*CFrame.Angles(math.rad(50-80*math.cos(sine/8)/2), math.rad(0), math.rad(0-70*math.cos(sine/8)/2)), 0.2)
622
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(6+8*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
623
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+4*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
624
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4)
625
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4)
626
end
627
wait()
628
end
629
else
630
end
631
end
632
lastanimpose = animpose
633
if Debounces.NoIdl == false then
634
if animpose == "Idle" then
635
if stanceToggle == "Normal" then
636
change = 0.5
637
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,1,0)*CFrame.Angles(0,0,0-.1*math.sin(tick()*1))*CFrame.Angles(0,0,0.3),.2)
638
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-8,1,0)*CFrame.Angles(0,0,0+.1*math.sin(tick()*1))*CFrame.Angles(0,0,-0.3),.2)
639
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(40),0), 0.2)
640
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0, math.rad(-40), 0), 0.2)
641
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3, -8.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
642
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3, -8.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
643
elseif stanceToggle == "Sitting" then
644
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(100-1*math.cos(sine/14)), math.rad(0), math.rad(20)), 0.2)
645
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2, .9, -1)*CFrame.Angles(math.rad(78+1*math.cos(sine/14)), math.rad(0), math.rad(50)), 0.2)
646
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.3) * CFrame.Angles(math.rad(-14+1*math.cos(sine/14)), math.rad(0), math.rad(0)),0.2)
647
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(-10+1*math.cos(sine/14)), 0, math.rad(0)), 0.2)
648
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -2) * CFrame.Angles(math.rad(-10-1*math.cos(sine/14)), 0, 0), 0.2)
649
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-50-1*math.cos(sine/14)), 0, 0), 0.2)
650
end
651
elseif animpose == "Walking" then
652
if stanceToggle == "Normal" then
653
change = 1
654
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.3,0.8,0)*CFrame.Angles(0-.5*math.sin(tick()*2/0.7),0,0),.3)
655
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.3,0.8,0)*CFrame.Angles(0+.5*math.sin(tick()*2/0.7),0,0),.3)
656
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(-0.2,0,0),.3)
657
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0,-2.2,0)*CFrame.new(0,0-.1*math.sin(tick()*2),0)*CFrame.Angles(0,0,0),.3)
658
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.3*math.cos(sine/16)/4, -.05 + math.sin(sine/16)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/16)/2.3, 0, 0), .4)
659
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.3*math.cos(sine/16)/4, -.05 + -math.sin(sine/16)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/16)/2.3, 0, 0), .4)
660
end
661
elseif animpose == "Running" then
662
change = 1
663
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.8,0.5,0)*CFrame.Angles(0-.5*math.sin(tick()*7),0,0),.3)
664
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.8,0.5,0)*CFrame.Angles(0+.5*math.sin(tick()*7),0,0),.3)
665
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(6+6*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
666
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
667
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4)
668
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.44*math.cos(sine/8 )/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4)
669
end
670
end
671
char.Humanoid.MaxHealth = math.huge
672
			wait()
673
			char.Humanoid.Health = math.huge
674
if animpose == "Walking" then
675
    if footsteps == false then
676
        x:Play()
677
        footsteps = true
678
    end
679
    x.Pitch = 1.1
680
elseif animpose == "Idle" then
681
    x:Stop()
682
    footsteps = false
683
elseif animpose == "Running" then
684
    x.Pitch = 1.2
685
    if footsteps == false then
686
        x:Play()
687
        footsteps = true
688
    end
689
end
690
end)