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