View difference between Paste ID: 7cPEUy5p and 09dH8ZLm
SHOW: | | - or go back to the newest paste.
1
local p = game.Players.LocalPlayer
2
local char = p.Character
3
local mouse = p:GetMouse()
4
local larm = char["Left Arm"]
5
local rarm = char["Right Arm"]
6
local lleg = char["Left Leg"]
7
local rleg = char["Right Leg"]
8
local hed = char.Head
9
local torso = char.Torso
10
local hum = char.Humanoid
11
local cam = game.Workspace.CurrentCamera
12
local root = char.HumanoidRootPart
13
local deb = false
14
local shot = 0
15
local stanceToggle = "Normal"
16
local l = game:GetService("Lighting")
17
local rs = game:GetService("RunService").RenderStepped
18
math.randomseed(os.time())
19
hum.MaxHealth = 9001
20
wait(1)
21
hum.Health = 9001
22
for i,v in pairs(char:children()) do
23
    if v:IsA("Hat") then
24
        v:Destroy()
25
    end
26
end
27
for i,v in pairs (hed:GetChildren()) do
28
	if v:IsA("Sound") then
29
		v:Destroy()
30
	end
31
end
32
----------------------------------------------------
33
Debounces = {
34
CanAttack = true;
35
CanJoke = true;
36
NoIdl = false;
37
Slashing = false;
38
Slashed = false;
39
Slapping = false;
40
Slapped = false;
41
ks = false;
42
}
43
----------------------------------------------------
44
function weld5(part0, part1, c0, c1)
45
    weeld=Instance.new("Weld", part0)
46
    weeld.Part0=part0
47
    weeld.Part1=part1
48
    weeld.C0=c0
49
    weeld.C1=c1
50
    return weeld
51
end
52
----------------------------------------------------
53
mod=Instance.new('Model',char)
54
55
function Burst()
56
    part=Instance.new('Part',mod)
57
    part.Anchored=true
58
    part.CanCollide=false
59
    part.FormFactor='Custom'
60
    part.Size=Vector3.new(.2,.2,.2)
61
    part.CFrame=root.CFrame*CFrame.new(0,1,0)*CFrame.Angles(math.rad(90),0,0)
62
    part.Transparency=.7
63
    part.BrickColor=BrickColor.new('Really black')
64
    mesh=Instance.new('SpecialMesh',part)
65
    mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
66
    mesh.Scale=Vector3.new(10,5,10)
67
    part2=part:clone()
68
    part2.Parent=mod
69
    part2.BrickColor=BrickColor.new("Royal purple")
70
    mesh2=mesh:clone()
71
    mesh2.Parent=part2
72
    mesh2.Scale=Vector3.new(5,2.5,5)
73
    coroutine.resume(coroutine.create(function() 
74
        for i=0,1,0.1 do
75
            wait()
76
            part.CFrame=part.CFrame
77
            part.Transparency=i
78
            mesh.Scale=mesh.Scale+Vector3.new(1,1,1)
79
            part2.CFrame=part2.CFrame
80
            part2.Transparency=i
81
            mesh2.Scale=mesh2.Scale+Vector3.new(1,1,1)
82
            end
83
        part.Parent=nil
84
        part2.Parent=nil
85
    end))
86
end
87
----------------------------------------------------
88
mod4 = Instance.new("Model",char)
89
90
ptez = {0.7, 0.8, 0.9, 1}
91
92
function FindNearestTorso(Position,Distance,SinglePlayer)
93
    if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
94
        local List = {}
95
        for i,v in pairs(workspace:GetChildren())do
96
            if v:IsA("Model")then
97
                if v:findFirstChild("Torso")then
98
                    if v ~= char then
99
                        if(v.Torso.Position -Position).magnitude <= Distance then
100
                            table.insert(List,v)
101
                        end 
102
                    end 
103
                end 
104
            end 
105
        end
106
    return List
107
end
108
109
function Slam()
110
    part=Instance.new('Part',mod4)
111
    part.Anchored=true
112
    part.CanCollide=false
113
    part.FormFactor='Custom'
114
    part.Size=Vector3.new(.2,.2,.2)
115
    part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0)
116
    part.Transparency=.7
117
	part.Material = "Neon"
118
    part.BrickColor=BrickColor.new('Really black')
119
    mesh=Instance.new('SpecialMesh',part)
120
    mesh.MeshId='http://www.roblox.com/asset/?id=3270017'
121
    mesh.Scale=Vector3.new(3,3,3)
122
    part2=Instance.new('Part',mod4)
123
    part2.Anchored=true
124
    part2.CanCollide=false
125
    part2.FormFactor='Custom'
126
    part2.Size=Vector3.new(.2,.2,.2)
127
    part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6)
128
    part2.Transparency=.7
129
	part2.Material = "Neon"
130
    part2.BrickColor=BrickColor.new('Royal purple')
131
    mesh2=Instance.new('SpecialMesh',part2)
132
    mesh2.MeshId='http://www.roblox.com/asset/?id=20329976'
133
    mesh2.Scale=Vector3.new(3,1.5,3)
134
    x = Instance.new("Sound",char)
135
    x.SoundId = "http://www.roblox.com/asset/?id=142070127"
136
    x.Pitch = ptez[math.random(1,#ptez)]
137
    x.Volume = 1
138
    wait(.1)
139
    x1 = Instance.new("Sound",char)
140
    x1.SoundId = "http://www.roblox.com/asset/?id=206082327"
141
    x1.Pitch = ptez[math.random(1,#ptez)]
142
    x1.Volume = 1
143
    wait(.1)
144
	x:Play()
145
    x1:Play()
146
    for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do
147
        if v:FindFirstChild('Humanoid') then
148
            v.Humanoid:TakeDamage(math.random(30,45))
149
        end
150
    end
151
    coroutine.resume(coroutine.create(function() 
152
        for i=0,0.62,0.13 do
153
            wait()
154
            part.CFrame=part.CFrame
155
            part.Transparency=i
156
            mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4)
157
            part2.CFrame=part2.CFrame
158
            part2.Transparency=i
159
            mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4)
160
            end
161
        part.Parent=nil
162
        part2.Parent=nil
163
        x:Destroy()
164
    end))
165
end
166
----------------------------------------------------
167
GroundWave = function()
168
	local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
169
	local Colors = {"Royal purple", "Really black"}
170
		local wave = Instance.new("Part", torso)
171
		wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
172
		wave.Anchored = true
173
		wave.CanCollide = false
174
		wave.Locked = true
175
		wave.Size = Vector3.new(1, 1, 1)
176
		wave.TopSurface = "Smooth"
177
		wave.BottomSurface = "Smooth"
178
		wave.Transparency = 0.35
179
		wave.CFrame = HandCF
180
		wm = Instance.new("SpecialMesh", wave)
181
		wm.MeshId = "rbxassetid://3270017"
182
		coroutine.wrap(function()
183
		for i = 1, 14, 1 do
184
		wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1)
185
		wave.Size = wm.Scale
186
		wave.CFrame = HandCF
187
		wave.Transparency = i/14
188
		wait()
189
		end
190
		wait()
191
		wave:Destroy()
192
	end)()
193
end
194
----------------------------------------------------
195
Magik = function()
196
	Spawn(function()
197
		local function lerp(a,b,c)
198
			return a+(b-a)*c	
199
		end
200
		local function rndRange(rng)
201
			return math.random(-rng*1000,rng*1000)/1000	
202
		end
203
		local magik = Instance.new("Part", larm)
204
		local Colors = {"Royal purple", "Really black"}
205
		magik.Anchored = true
206
		magik.Locked = true
207
		magik.FormFactor = "Custom"
208
		magik.Size = Vector3.new(1.2, 1.2, 1.2)
209
		magik.TopSurface = "Smooth"
210
		magik.BottomSurface = "Smooth"
211
		magik.Transparency = 0
212
		magik.CanCollide = false
213
		magik.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
214
		local mr = math.rad
215
		local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180))
216
		local cf = larm.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz)
217
		magik.CFrame = cf
218
		for i = 0, 1, .05 do
219
			local newTrans = lerp(0.5, 1, i)
220
			local ns = lerp(1,1.2,i)
221
			magik.Transparency = newTrans
222
			magik.Size = Vector3.new(ns,ns,ns)
223
			magik.CFrame = cf
224
			rs:wait()
225
	    end
226
		magik:Destroy()
227
		wait()
228
    end)
229
end
230
----------------------------------------------------
231
Magik2 = function()
232
	Spawn(function()
233
		if stanceToggle == "Melee" then
234
		local function lerp(a,b,c)
235
			return a+(b-a)*c	
236
		end
237
		local function rndRange(rng)
238
			return math.random(-rng*1000,rng*1000)/1000	
239
		end
240
		local magik2 = Instance.new("Part", rarm)
241
		local Colors = {"Royal purple", "Really black"}
242
		magik2.Anchored = true
243
		magik2.Locked = true
244
		magik2.FormFactor = "Custom"
245
		magik2.Size = Vector3.new(1.2, 1.2, 1.2)
246
		magik2.TopSurface = "Smooth"
247
		magik2.BottomSurface = "Smooth"
248
		magik2.Transparency = 0
249
		magik2.CanCollide = false
250
		magik2.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
251
		local mr = math.rad
252
		local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180))
253
		local cf = rarm.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz)
254
		magik2.CFrame = cf
255
		for i = 0, 1, .05 do
256
			local newTrans = lerp(0.5, 1, i)
257
			local ns = lerp(1,1.2,i)
258
			magik2.Transparency = newTrans
259
			magik2.Size = Vector3.new(ns,ns,ns)
260
			magik2.CFrame = cf
261
			rs:wait()
262
	    end
263
		magik2:Destroy()
264
		elseif stanceToggle ~= "Melee" then
265
		wait()
266
		end
267
    end)
268
end
269
----------------------------------------------------
270
function lerp(a, b, t) -- Linear interpolation
271
	return a + (b - a)*t
272
end
273
 
274
function slerp(a, b, t) --Spherical interpolation
275
	dot = a:Dot(b)
276
	if dot > 0.99999 or dot < -0.99999 then
277
		return t <= 0.5 and a or b
278
	else
279
		r = math.acos(dot)
280
		return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
281
	end
282
end
283
 
284
function matrixInterpolate(a, b, t)
285
	local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
286
	local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
287
	local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
288
	local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector  right
289
	local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector  up
290
	local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector  back
291
	local t = v1:Dot(v2)
292
	if not (t < 0 or t == 0 or t > 0) then 	-- Failsafe
293
		return CFrame.new()
294
	end
295
	return CFrame.new(
296
	v0.x, v0.y, v0.z,
297
	v1.x, v1.y, v1.z,
298
	v2.x, v2.y, v2.z,
299
	v3.x, v3.y, v3.z)
300
end
301
----------------------------------------------------
302
function genWeld(a,b)
303
    local w = Instance.new("Weld",a)
304
    w.Part0 = a
305
    w.Part1 = b
306
    return w
307
end
308
function weld(a, b)
309
    local weld = Instance.new("Weld")
310
    weld.Name = "W"
311
    weld.Part0 = a
312
    weld.Part1 = b
313
    weld.C0 = a.CFrame:inverse() * b.CFrame
314
    weld.Parent = a
315
    return weld;
316
end
317
----------------------------------------------------
318
function Lerp(c1,c2,al)
319
local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
320
local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
321
for i,v in pairs(com1) do 
322
com1[i] = v+(com2[i]-v)*al
323
end
324
return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
325
end
326
----------------------------------------------------
327
newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
328
local wld = Instance.new("Weld", wp1)
329
wld.Part0 = wp0
330
wld.Part1 = wp1
331
wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
332
end
333
----------------------------------------------------
334
newWeld(torso, larm, -1.5, 0.5, 0)
335
larm.Weld.C1 = CFrame.new(0, 0.5, 0)
336
newWeld(torso, rarm, 1.5, 0.5, 0)
337
rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
338
newWeld(torso, hed, 0, 1.5, 0)
339
newWeld(torso, lleg, -0.5, -1, 0)
340
lleg.Weld.C1 = CFrame.new(0, 1, 0)
341
newWeld(torso, rleg, 0.5, -1, 0)
342
rleg.Weld.C1 = CFrame.new(0, 1, 0)
343
newWeld(root, torso, 0, -1, 0)
344
torso.Weld.C1 = CFrame.new(0, -1, 0)
345
----------------------------------------------------
346
--local SIDz = {"167985102"}, 167161785, 148274436
347
z = Instance.new("Sound",char)
348
z.SoundId = "rbxassetid://148274436"--..SIDz[math.random(1,#SIDz)]
349
z.Looped = true
350
z.Volume = 1
351
z.Pitch = .72
352
wait(1)
353
z:Play()
354
hum.WalkSpeed = 16
355
----------------------------------------------------
356
local m = Instance.new("Model")
357
m.Name = "Genkadda"
358
p1 = Instance.new("Part", m)
359
p1.Material = "Metal"
360
p1.BrickColor = BrickColor.new("Really black")
361
p1.Name = "BladePart"
362
p1.FormFactor = Enum.FormFactor.Symmetric
363
p1.Size = Vector3.new(1, 1, 1)
364
p1.CFrame = CFrame.new(103.003883, 10.755723, -7.61905956, 5.61699271e-005, -7.1823597e-006, 0.999998987, -0.984785616, -0.173714966, 3.55839729e-005, 0.173720747, -0.984761655, 5.9530139e-006)
365
p1.CanCollide = false
366
p1.Locked = true
367
p1.Elasticity = 0
368
p1.BottomSurface = Enum.SurfaceType.Smooth
369
p1.TopSurface = Enum.SurfaceType.Smooth
370
b1 = Instance.new("BlockMesh", p1)
371
b1.Name = "Mesh"
372
b1.Scale = Vector3.new(0.299999923, 1, 0.120000005)
373
p2 = Instance.new("Part", m)
374
p2.Material = "Metal"
375
p2.BrickColor = BrickColor.new("Really black")
376
p2.FormFactor = Enum.FormFactor.Symmetric
377
p2.Size = Vector3.new(1, 1, 1)
378
p2.CFrame = CFrame.new(103.00399, 10.7255898, -6.52608919, 0.00135809346, 0.00169118668, -0.999996662, 0.965820193, 0.259168088, 0.0017684648, 0.259154975, -0.965800881, -0.00130418094)
379
p2.CanCollide = false
380
p2.Locked = true
381
p2.Elasticity = 0
382
p2.BottomSurface = Enum.SurfaceType.Smooth
383
p2.TopSurface = Enum.SurfaceType.Smooth
384
b2 = Instance.new("BlockMesh", p2)
385
b2.Name = "Mesh"
386
b2.Scale = Vector3.new(0.099999927, 0.699999928, 0.099999927)
387
p3 = Instance.new("Part", m)
388
p3.Material = "Metal"
389
p3.BrickColor = BrickColor.new("Really black")
390
p3.FormFactor = Enum.FormFactor.Symmetric
391
p3.Size = Vector3.new(1, 2, 1)
392
p3.CFrame = CFrame.new(103.004028, 11.1456547, -6.819067, 1.43263023e-005, -2.88564479e-006, 0.999998987, -0.882936299, -0.469471544, -7.18829688e-006, 0.469469696, -0.882911503, 1.35099981e-005)
393
p3.CanCollide = false
394
p3.Locked = true
395
p3.Elasticity = 0
396
p3.BottomSurface = Enum.SurfaceType.Smooth
397
p3.TopSurface = Enum.SurfaceType.Smooth
398
b3 = Instance.new("BlockMesh", p3)
399
b3.Name = "Mesh"
400
b3.Scale = Vector3.new(0.099999927, 0.699999928, 0.099999927)
401
p4 = Instance.new("Part", m)
402
p4.Material = "Metal"
403
p4.BrickColor = BrickColor.new("Really black")
404
p4.Name = "BladePart"
405
p4.FormFactor = Enum.FormFactor.Symmetric
406
p4.Size = Vector3.new(1, 1, 1)
407
p4.CFrame = CFrame.new(103.003372, 10.965373, -6.66876507, 1.57370523e-005, -6.04354591e-006, 0.999996603, -0.965898931, -0.25886938, -7.14969246e-006, 0.258875549, -0.965874314, 1.58735529e-005)
408
p4.CanCollide = false
409
p4.Locked = true
410
p4.Elasticity = 0
411
p4.BottomSurface = Enum.SurfaceType.Smooth
412
p4.TopSurface = Enum.SurfaceType.Smooth
413
b4 = Instance.new("BlockMesh", p4)
414
b4.Name = "Mesh"
415
b4.Scale = Vector3.new(0.299999923, 1, 0.120000005)
416
p5 = Instance.new("Part", m)
417
p5.Material = "Metal"
418
p5.BrickColor = BrickColor.new("Really black")
419
p5.Name = "Hilt"
420
p5.FormFactor = Enum.FormFactor.Custom
421
p5.Size = Vector3.new(1, 0.400000006, 1.60000014)
422
p5.CFrame = CFrame.new(103.003395, 11.0653381, -6.1687479, -0.99999404, 5.54991711e-005, -0.000617815298, -0.000594727404, -0.000124425016, 0.999983907, 2.66434654e-005, 0.999962509, 0.000109782166)
423
p5.CanCollide = false
424
p5.Locked = true
425
p5.BottomSurface = Enum.SurfaceType.Smooth
426
p5.TopSurface = Enum.SurfaceType.Smooth
427
b5 = Instance.new("BlockMesh", p5)
428
b5.Name = "Mesh"
429
b5.Scale = Vector3.new(0.299999923, 0.399999917, 0.799999952)
430
p6 = Instance.new("Part", m)
431
p6.Material = "Metal"
432
p6.BrickColor = BrickColor.new("Really black")
433
p6.Name = "Handle"
434
p6.FormFactor = Enum.FormFactor.Custom
435
p6.Size = Vector3.new(1.29999995, 1, 1)
436
p6.CFrame = CFrame.new(103.000061, 11.0688219, -5.5480547, -1.23393656e-005, -1.36360759e-005, 0.999994218, 5.37017331e-006, 0.999984086, -9.45257489e-006, -0.999962509, -9.28580994e-006, 1.64470257e-005)
437
p6.CanCollide = false
438
p6.Locked = true
439
p6.BottomSurface = Enum.SurfaceType.Smooth
440
p6.TopSurface = Enum.SurfaceType.Smooth
441
b6 = Instance.new("SpecialMesh", p6)
442
b6.MeshType = Enum.MeshType.Cylinder
443
b6.Name = "Mesh"
444
b6.Scale = Vector3.new(1, 0.200000003, 0.200000003)
445
p7 = Instance.new("Part", m)
446
p7.Material = "Metal"
447
p7.BrickColor = BrickColor.new("Really black")
448
p7.FormFactor = Enum.FormFactor.Symmetric
449
p7.Size = Vector3.new(1, 1, 1)
450
p7.CFrame = CFrame.new(103.000099, 11.0688391, -4.79808855, -0.000332629686, 0.00429873355, -0.99998492, -4.5920292e-006, 0.999974728, 0.00432178052, 0.999962449, -8.49941443e-006, -0.000361445156)
451
p7.CanCollide = false
452
p7.Locked = true
453
b7 = Instance.new("SpecialMesh", p7)
454
b7.MeshId = "http://www.roblox.com/Asset/?id=9756362"
455
b7.TextureId = ""
456
b7.MeshType = Enum.MeshType.FileMesh
457
b7.Name = "Mesh"
458
b7.Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006)
459
p8 = Instance.new("Part", m)
460
p8.Material = "Metal"
461
p8.BrickColor = BrickColor.new("Really black")
462
p8.Name = "BladePart"
463
p8.FormFactor = Enum.FormFactor.Symmetric
464
p8.Size = Vector3.new(1, 1, 1)
465
p8.CFrame = CFrame.new(103.003326, 10.6254845, -8.59870911, -2.92104669e-005, -1.10579058e-005, 0.999994218, -0.996175766, -0.0871899351, -5.3152442e-005, 0.0872026458, -0.996152997, 2.03179661e-005)
466
p8.CanCollide = false
467
p8.Locked = true
468
p8.Elasticity = 0
469
p8.BottomSurface = Enum.SurfaceType.Smooth
470
p8.TopSurface = Enum.SurfaceType.Smooth
471
b8 = Instance.new("BlockMesh", p8)
472
b8.Name = "Mesh"
473
b8.Scale = Vector3.new(0.299999923, 1, 0.120000005)
474
p9 = Instance.new("Part", m)
475
p9.Material = "Metal"
476
p9.BrickColor = BrickColor.new("Really black")
477
p9.Name = "BladePart"
478
p9.FormFactor = Enum.FormFactor.Symmetric
479
p9.Size = Vector3.new(1, 1, 1)
480
p9.CFrame = CFrame.new(103.003311, 10.625597, -9.51878738, -2.59891603e-005, -1.34348729e-005, 0.999994218, -0.996185422, 0.087079078, -4.78096408e-005, -0.0870626047, -0.996165276, 1.31400229e-005)
481
p9.CanCollide = false
482
p9.Locked = true
483
p9.Elasticity = 0
484
p9.BottomSurface = Enum.SurfaceType.Smooth
485
p9.TopSurface = Enum.SurfaceType.Smooth
486
b9 = Instance.new("BlockMesh", p9)
487
b9.Name = "Mesh"
488
b9.Scale = Vector3.new(0.299999923, 1, 0.120000005)
489
p10 = Instance.new("Part", m)
490
p10.Material = "Metal"
491
p10.BrickColor = BrickColor.new("Really black")
492
p10.Name = "BladeTip"
493
p10.FormFactor = Enum.FormFactor.Symmetric
494
p10.Size = Vector3.new(1, 1, 2)
495
p10.CFrame = CFrame.new(103.00309, 11.1081867, -11.6109829, -0.999994099, -0.000455793255, 4.643387e-005, 0.00045133481, -0.965918779, -0.25878337, 0.000134008093, -0.258763671, 0.965901971)
496
p10.CanCollide = false
497
p10.Locked = true
498
p10.Elasticity = 0
499
p10.BottomSurface = Enum.SurfaceType.Smooth
500
p10.TopSurface = Enum.SurfaceType.Smooth
501
b10 = Instance.new("SpecialMesh", p10)
502
b10.MeshType = Enum.MeshType.Wedge
503
b10.Name = "Mesh"
504
b10.Scale = Vector3.new(0.119999997, 0.299999923, 0.699999928)
505
p11 = Instance.new("Part", m)
506
p11.Material = "Metal"
507
p11.BrickColor = BrickColor.new("Really black")
508
p11.Name = "BladePart"
509
p11.FormFactor = Enum.FormFactor.Symmetric
510
p11.Size = Vector3.new(1, 1, 1)
511
p11.CFrame = CFrame.new(103.003296, 10.7956495, -10.4587727, 2.83485351e-005, -1.54050977e-005, 0.999994218, -0.96592474, 0.258761972, 8.27970416e-006, -0.258742362, -0.965907693, 2.1241216e-005)
512
p11.CanCollide = false
513
p11.Locked = true
514
p11.Elasticity = 0
515
p11.BottomSurface = Enum.SurfaceType.Smooth
516
p11.TopSurface = Enum.SurfaceType.Smooth
517
b11 = Instance.new("BlockMesh", p11)
518
b11.Name = "Mesh"
519
b11.Scale = Vector3.new(0.299999923, 1, 0.120000005)
520
p12 = Instance.new("Part", m)
521
p12.Material = "Metal"
522
p12.BrickColor = BrickColor.new("Really black")
523
p12.Name = "BladeTip2"
524
p12.FormFactor = Enum.FormFactor.Custom
525
p12.Size = Vector3.new(1, 1, 2.4000001)
526
p12.CFrame = CFrame.new(102.999977, 10.6319504, -10.4398403, -0.999994218, -5.5769262e-005, 6.55075928e-005, 4.61044419e-006, 0.882887006, 0.469551951, -0.000112806956, 0.469529003, -0.882874727)
527
p12.CanCollide = false
528
p12.Locked = true
529
p12.Elasticity = 0
530
p12.BottomSurface = Enum.SurfaceType.Smooth
531
p12.TopSurface = Enum.SurfaceType.Smooth
532
b12 = Instance.new("SpecialMesh", p12)
533
b12.MeshType = Enum.MeshType.Wedge
534
b12.Name = "Mesh"
535
b12.Scale = Vector3.new(0.119999997, 0.239999995, 0.699999928)
536
p13 = Instance.new("Part", m)
537
p13.Material = "Metal"
538
p13.BrickColor = BrickColor.new("Medium stone grey")
539
p13.Transparency = 1
540
p13.Name = "HitBox"
541
p13.FormFactor = Enum.FormFactor.Custom
542
p13.Size = Vector3.new(6.0999999, 0.400000006, 1.5999999)
543
p13.CFrame = CFrame.new(103.009995, 10.9988394, -9.2679081, 1.22519814e-005, -0.999994218, 1.36361559e-005, -5.27501106e-006, 9.45320426e-006, -0.999984264, 0.999962687, -1.65344682e-005, 9.20891762e-006)
544
p13.CanCollide = false
545
p13.Locked = true
546
p13.BottomSurface = Enum.SurfaceType.Smooth
547
p13.TopSurface = Enum.SurfaceType.Smooth
548
w1 = Instance.new("Weld", p1)
549
w1.Name = "Part_Weld"
550
w1.Part0 = p1
551
w1.C0 = CFrame.new(11.9124546, -5.63626003, -103.00383, 4.33940659e-005, -0.984795153, 0.173719674, 1.85460614e-009, -0.173719659, -0.984795094, 1, 4.27345876e-005, -7.53657105e-006)
552
w1.Part1 = p2
553
w1.C1 = CFrame.new(-8.80891991, -9.26009178, 102.975845, 0.00136663229, 0.965830803, 0.259170175, 0.00170310249, 0.25916782, -0.965830863, -0.999997616, 0.00176132878, -0.00129072159)
554
w2 = Instance.new("Weld", p2)
555
w2.Name = "Part_Weld"
556
w2.Part0 = p2
557
w2.C0 = CFrame.new(-8.80891991, -9.26009178, 102.975845, 0.00136663229, 0.965830803, 0.259170175, 0.00170310249, 0.25916782, -0.965830863, -0.999997616, 0.00176132878, -0.00129072159)
558
w2.Part1 = p3
559
w2.C1 = CFrame.new(13.0439634, -0.78926897, -103.003448, -4.37113883e-008, -0.88294369, 0.469478935, 0, -0.469478935, -0.88294369, 1, -3.85946954e-008, 2.05215755e-008)
560
w3 = Instance.new("Weld", p3)
561
w3.Name = "BladePart_Weld"
562
w3.Part0 = p3
563
w3.C0 = CFrame.new(13.0439634, -0.78926897, -103.003448, -4.37113883e-008, -0.88294369, 0.469478935, 0, -0.469478935, -0.88294369, 1, -3.85946954e-008, 2.05215755e-008)
564
w3.Part1 = p4
565
w3.C1 = CFrame.new(12.3193283, -3.60437131, -103.003067, 2.38418579e-006, -0.965907753, 0.258877277, 0, -0.258874893, -0.965907753, 0.999997616, 0, 2.38418579e-006)
566
w4 = Instance.new("Weld", p4)
567
w4.Name = "Hilt_Weld"
568
w4.Part0 = p4
569
w4.C0 = CFrame.new(12.3193283, -3.60437131, -103.003067, 2.38418579e-006, -0.965907753, 0.258877277, 0, -0.258874893, -0.965907753, 0.999997616, 0, 2.38418579e-006)
570
w4.Part1 = p5
571
w4.C1 = CFrame.new(103.010277, 6.16758585, -11.003541, -0.999999821, -0.00060418935, 4.31301851e-005, 4.32021443e-005, -0.000119086159, 1, -0.000604184228, 0.999999821, 0.000119112243)
572
w5 = Instance.new("Weld", p5)
573
w5.Name = "Handle_Weld"
574
w5.Part0 = p5
575
w5.C0 = CFrame.new(103.010277, 6.16758585, -11.003541, -0.999999821, -0.00060418935, 4.31301851e-005, 4.32021443e-005, -0.000119086159, 1, -0.000604184228, 0.999999821, 0.000119112243)
576
w5.Part1 = p6
577
w5.C1 = CFrame.new(-5.54999733, -11.0699978, -103, -4.37113883e-008, 2.98366913e-008, -1, 0, 1, 2.98366913e-008, 1, 1.3042032e-015, -4.37113883e-008)
578
w6 = Instance.new("Weld", p6)
579
w6.Name = "Part_Weld"
580
w6.Part0 = p6
581
w6.C0 = CFrame.new(-5.54999733, -11.0699978, -103, -4.37113883e-008, 2.98366913e-008, -1, 0, 1, 2.98366913e-008, 1, 1.3042032e-015, -4.37113883e-008)
582
w6.Part1 = p7
583
w6.C1 = CFrame.new(4.83552647, -11.5140886, 102.949669, -0.000344927335, 7.4505806e-007, 0.99999994, 0.00431239465, 0.999990702, 7.4505806e-007, -0.999990642, 0.00431239465, -0.000344927335)
584
w7 = Instance.new("Weld", p7)
585
w7.Name = "BladePart_Weld"
586
w7.Part0 = p7
587
w7.C0 = CFrame.new(4.83552647, -11.5140886, 102.949669, -0.000344927335, 7.4505806e-007, 0.99999994, 0.00431239465, 0.999990702, 7.4505806e-007, -0.999990642, 0.00431239465, -0.000344927335)
588
w7.Part1 = p8
589
w7.C1 = CFrame.new(11.3406382, -7.6414094, -103.0028, -4.38670977e-005, -0.996191144, 0.0871966407, 1.91451011e-009, -0.0871966407, -0.996191144, 1, -4.36998489e-005, 3.82696771e-006)
590
w8 = Instance.new("Weld", p8)
591
w8.Name = "BladePart_Weld"
592
w8.Part0 = p8
593
w8.C0 = CFrame.new(11.3406382, -7.6414094, -103.0028, -4.38670977e-005, -0.996191144, 0.0871966407, 1.91451011e-009, -0.0871966407, -0.996191144, 1, -4.36998489e-005, 3.82696771e-006)
594
w8.Part1 = p9
595
w8.C1 = CFrame.new(9.76131344, -10.4100504, -103.002922, -3.85031162e-005, -0.996201694, -0.0870751292, 1.47589729e-009, 0.0870751366, -0.996201754, 1, -3.83570004e-005, -3.35119148e-006)
596
w9 = Instance.new("Weld", p9)
597
w9.Name = "BladeTip_Weld"
598
w9.Part0 = p9
599
w9.C0 = CFrame.new(9.76131344, -10.4100504, -103.002922, -3.85031162e-005, -0.996201694, -0.0870751292, 1.47589729e-009, 0.0870751366, -0.996201754, 1, -3.83570004e-005, -3.35119148e-006)
600
w9.Part1 = p10
601
w9.C1 = CFrame.new(102.999939, 7.7735939, 14.0892649, -0.999999881, 0.000441889424, 0.000150508567, -0.000465785735, -0.965935588, -0.258782327, 3.10284122e-005, -0.258782327, 0.965935647)
602
w10 = Instance.new("Weld", p10)
603
w10.Name = "BladePart_Weld"
604
w10.Part0 = p10
605
w10.C0 = CFrame.new(102.999939, 7.7735939, 14.0892649, -0.999999881, 0.000441889424, 0.000150508567, -0.000465785735, -0.965935588, -0.258782327, 3.10284122e-005, -0.258782327, 0.965935647)
606
w10.Part1 = p11
607
w10.C1 = CFrame.new(7.72030354, -12.8984127, -103.003448, 1.83585671e-005, -0.965941429, -0.258760989, 3.25545535e-010, 0.258760959, -0.96594137, 1, 1.77332167e-005, 4.7507956e-006)
608
w11 = Instance.new("Weld", p11)
609
w11.Name = "BladeTip2_Weld"
610
w11.Part0 = p11
611
w11.C0 = CFrame.new(7.72030354, -12.8984127, -103.003448, 1.83585671e-005, -0.965941429, -0.258760989, 3.25545535e-010, 0.258760959, -0.96594137, 1, 1.77332167e-005, 4.7507956e-006)
612
w11.Part1 = p12
613
w11.C1 = CFrame.new(102.999031, -4.47981405, -14.2206001, -1, -4.84334305e-006, -9.63198472e-005, -4.95036402e-005, 0.882903397, 0.469554722, 8.27668991e-005, 0.469554722, -0.882903397)
614
w12 = Instance.new("Weld", p12)
615
w12.Name = "HitBox_Weld"
616
w12.Part0 = p12
617
w12.C0 = CFrame.new(102.999031, -4.47981405, -14.2206001, -1, -4.84334305e-006, -9.63198472e-005, -4.95036402e-005, 0.882903397, 0.469554722, 8.27668991e-005, 0.469554722, -0.882903397)
618
w12.Part1 = p13
619
w12.C1 = CFrame.new(9.27000427, 103.009995, 10.9999933, -4.37113883e-008, -4.37113883e-008, 1, -1, 1.91068547e-015, -4.37113883e-008, 0, -1, -4.37113883e-008)
620
w13 = Instance.new("Weld", p13)
621
w13.Name = "Weld"
622
w13.Part0 = p13
623
w13.C0 = CFrame.new(9.27000427, 103.009995, 10.9999933, -4.37113883e-008, -4.37113883e-008, 1, -1, 1.91068547e-015, -4.37113883e-008, 0, -1, -4.37113883e-008)
624
m.Parent = char
625
m:MakeJoints()
626
----------------------------------------------------
627
local cor = Instance.new("Part", char.Genkadda)
628
cor.Name = "Thingy"
629
cor.Locked = true
630
cor.BottomSurface = 0
631
cor.CanCollide = false
632
cor.Size = Vector3.new(1, 9, 1)
633
cor.Transparency = 1
634
cor.TopSurface = 0
635
corw = Instance.new("Weld", cor)
636
corw.Part0 = rarm
637
corw.Part1 = cor
638
corw.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90))
639
corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
640
weld1 = Instance.new("Weld", char.Genkadda)
641
weld1.Part0 = cor
642
weld1.Part1 = p6
643
weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
644
----------------------------------------------------
645
function Vanish()
646
	for i = 1, 10 do wait()
647
		for i,v in pairs(char.Genkadda:GetChildren()) do
648
			if v:IsA("Part") or v:IsA("WedgePart") then
649
				if v.Name ~= "HitBox" or v.Name ~= "Thingy" then
650
					v.Transparency = v.Transparency + 0.1
651
				end
652
			end
653
		end
654
	end
655
end
656
----------------------------------------------------
657
function Appear()
658
	for i = 1, 10 do wait()
659
		for i,v in pairs(char.Genkadda:GetChildren()) do
660
			if v:IsA("Part") or v:IsA("WedgePart") then
661
				if v.Name ~= "HitBox" or v.Name ~= "Thingy" then
662
					v.Transparency = v.Transparency - 0.1
663
				end
664
			end
665
		end
666
	end
667
end
668
----------------------------------------------------
669
local player = game.Players.LocalPlayer
670
local pchar = player.Character
671
local mouse = player:GetMouse()
672
local cam = workspace.CurrentCamera
673
674
local rad = math.rad
675
676
local keysDown = {}
677
local flySpeed = 0
678
local MAX_FLY_SPEED = 50
679
680
local canFly = false
681
local flyToggled = false
682
683
local forward, side = 0, 0
684
local lastForward, lastSide = 0, 0
685
686
local floatBP = Instance.new("BodyPosition")
687
floatBP.maxForce = Vector3.new(0, math.huge, 0)
688
local flyBV = Instance.new("BodyVelocity")
689
flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9)
690
local turnBG = Instance.new("BodyGyro")
691
turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
692
693
mouse.KeyDown:connect(function(key)
694
	keysDown[key] = true
695
	
696
	if key == "f" then
697
		flyToggled = not flyToggled
698
		
699
	if not flyToggled then
700
		stanceToggle = "Normal"
701
		floatBP.Parent = nil
702
		flyBV.Parent = nil
703
		turnBG.Parent = nil
704
		root.Velocity = Vector3.new()
705
		pchar.Humanoid.PlatformStand = false
706
	end
707
end
708
	
709
end)
710
mouse.KeyUp:connect(function(key)
711
	keysDown[key] = nil
712
end)
713
714
local function updateFly()
715
716
	if not flyToggled then return end
717
	
718
	lastForward = forward
719
	lastSide = side
720
	
721
	forward = 0
722
	side = 0
723
	
724
	if keysDown.w then
725
		forward = forward + 1
726
	end
727
	if keysDown.s then
728
		forward = forward - 1
729
	end
730
	if keysDown.a then
731
		side = side - 1
732
	end
733
	if keysDown.d then
734
		side = side + 1
735
	end
736
	
737
	canFly = (forward ~= 0 or side ~= 0)
738
	
739
	if canFly then
740
		stanceToggle = "Floating"
741
		turnBG.Parent = root
742
		floatBP.Parent = nil
743
		flyBV.Parent = root
744
		
745
		flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED)
746
		if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end
747
	else
748
		floatBP.position = root.Position
749
		floatBP.Parent = root
750
		
751
		flySpeed = flySpeed - 1
752
		if flySpeed < 0 then flySpeed = 0 end
753
	end
754
	
755
	local camCF = cam.CoordinateFrame
756
	local in_forward = canFly and forward or lastForward
757
	local in_side = canFly and side or lastSide
758
	
759
	flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side, 
760
in_forward * 0.2, 0).p) - camCF.p) * flySpeed
761
	
762
	turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0, 
763
0)
764
end
765
766
game:service'RunService'.RenderStepped:connect(function()
767
	if flyToggled then
768
		pchar.Humanoid.PlatformStand = true
769
	end
770
	updateFly()
771
end)
772
----------------------------------------------------
773
p13.Touched:connect(function(ht)
774
    hit = ht.Parent
775
    if ht and hit:IsA("Model") then
776
            if hit:FindFirstChild("Humanoid") then
777
                if hit.Name ~= p.Name then
778
                    if Debounces.Slashing == true and Debounces.Slashed == false then
779
                            Debounces.Slashed = true
780
                                hit:FindFirstChild("Humanoid"):TakeDamage(math.random(8,10))
781
                            wait(.3)
782
                            Debounces.Slashed = false
783
                    end
784
                end
785
            end
786
    elseif ht and hit:IsA("Hat") then
787
        if hit.Parent.Name ~= p.Name then
788
            if hit.Parent:FindFirstChild("Humanoid") then
789
                   if Debounces.Slashing == true and Debounces.Slashed == false then
790
                            Debounces.Slashed = true
791
                            hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(8,10))
792
                            wait(.3)
793
                Debounces.Slashed = false
794
				end
795
            end
796
        end
797
    end    
798
end)
799
----------------------------------------------------
800
ptz = {0.7, 0.8, 0.9, 1}
801
idz = {"161006212", "161006195"}
802
mouse.KeyDown:connect(function(key)
803
    if key == "q" then
804
        if Debounces.CanAttack == true then
805
			Debounces.CanAttack = false
806
			Debounces.NoIdl = true
807
			Debounces.on = true
808
			for i = 1, 20 do
809
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad  (60),math.rad(70),math.rad(70)), 0.2)
810
            larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0) *CFrame.Angles(math.rad(-20),math.rad(0),math.rad  (-40)), 0.2)
811
            hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-50), math.rad(0)),   0.2)
812
            torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(-.4, -1, 0) * CFrame.Angles(math.rad(0), math.rad(70),   math.rad(0)), 0.2)
813
            lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.2)
814
            rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.2)
815
			if Debounces.on == false then break end
816
			rs:wait(2)
817
			end
818
				z = Instance.new("Sound", hed)
819
				z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
820
				z.Pitch = ptz[math.random(1,#ptz)]
821
				z.Volume = 1
822
				wait(.01)
823
				z:Play()
824
				Debounces.Slashing = true
825
			for i = 1, 20 do
826
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.65, 0) * CFrame.Angles(math.rad(-40),math.rad(-20),math.rad(40)), 0.3)
827
            larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.65, -.3) * CFrame.Angles(math.rad(65),math.rad(-20),math.rad(30)), 0.3)
828
            hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-9),math.rad(35), math.rad(0)), 0.3)
829
            torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(0), math.rad(-65), math.rad(0)), 0.3)
830
            lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-10)), 0.3)
831
            rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.3)
832
			if Debounces.on == false then break end
833
			rs:wait(2)
834
			end
835
                z1 = Instance.new("Sound", hed)
836
                z1.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
837
                z1.Pitch = ptz[math.random(1,#ptz)]
838
                z1.Volume = 1
839
                wait(.01)
840
				z1:Play()
841
				Debounces.Slashing = true
842
			for i = 1, 26 do
843
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad  (90),math.rad(-40),math.rad(80)), 0.35)
844
            larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad (- 70)), 0.35)
845
            hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-90), math.rad(0)),   0.35)
846
            torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(0), math.rad(90),   math.rad(0)), 0.35)
847
            lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.35)
848
            rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.35)
849
            cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles (math.rad(0), math.rad(-30), math.rad(0)), 0.35)
850
			if Debounces.on == false then break end
851
			rs:wait(2)
852
			end
853
			Debounces.Slashing = false
854
			z:Destroy()
855
			z1:Destroy()
856
			cor.Weld.C1 = CFrame.Angles(0,0,0)
857
		if Debounces.CanAttack == false then
858
			Debounces.CanAttack = true
859
			Debounces.NoIdl = false
860
			Debounces.on = false
861
			end
862
		end
863
	end
864
end)
865
-------------------------------
866
pts = {4, 4.2, 4.4, 4.6, 4.8, 5, 5.2, 5.4}
867
mouse.KeyDown:connect(function(key)
868
    if key == "e" then
869
        if Debounces.CanAttack == true then
870
			Debounces.CanAttack = false
871
			Debounces.NoIdl = true
872
			Debounces.on = true
873
			Debounces.ks = true
874
	larm.Touched:connect(function(ht)
875
        hit = ht.Parent
876
        if ht and hit:IsA("Model") then
877
                if hit:FindFirstChild("Humanoid") then
878
                    if hit.Name ~= p.Name then
879
                        if Debounces.Slapping == true and Debounces.Slapped == false then
880
                                Debounces.Slapped = true
881
                                    if Debounces.ks==true then
882
                                    z = Instance.new("Sound",hed)
883
                                    z.SoundId = "rbxassetid://169380525"
884
                                    z.Volume = 1
885
                                    z:Play()
886
                                    z1 = Instance.new("Sound",char)
887
                                    z1.SoundId = "rbxassetid://261010715"
888
									z1.Pitch = pts[math.random(1,#pts)]
889
                                    z1.Volume = 1
890
                                    z2 = Instance.new("Sound",char)
891
                                    z2.SoundId = "rbxassetid://261010715"
892
									z2.Pitch = z1.Pitch
893
                                    z2.Volume = 1
894
                                    z3 = Instance.new("Sound",char)
895
                                    z3.SoundId = "rbxassetid://261010715"
896
									z3.Pitch = z1.Pitch
897
                                    z3.Volume = 1
898
                                    z1:Play()
899
                                    z2:Play()
900
                                    z3:Play()
901
                                    Debounces.ks=false
902
                                    end
903
                                    hit:FindFirstChild("Humanoid"):TakeDamage(10)
904
									hit:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 90
905
                                wait(.5)
906
                                Debounces.Slapped = false
907
								z:Destroy()
908
								z1:Destroy()
909
								z2:Destroy()
910
								z3:Destroy()
911
                        end
912
                    end
913
                end
914
        elseif ht and hit:IsA("Hat") then
915
            if hit.Parent.Name ~= p.Name then
916
                if hit.Parent:FindFirstChild("Humanoid") then
917
                       if Debounces.Slapping == true and Debounces.Slapped == false then
918
                                Debounces.Slapped = true
919
                                    if Debounces.ks==true then
920
                                    z = Instance.new("Sound",hed)
921
                                    z.SoundId = "rbxassetid://169380525"
922
                                    z.Volume = 1
923
                                    z:Play()
924
                                    z1 = Instance.new("Sound",char)
925
                                    z1.SoundId = "rbxassetid://261010715"
926
									z1.Pitch = pts[math.random(1,#pts)]
927
                                    z1.Volume = 1
928
                                    z2 = Instance.new("Sound",char)
929
                                    z2.SoundId = "rbxassetid://261010715"
930
									z2.Pitch = z1.Pitch
931
                                    z2.Volume = 1
932
                                    z3 = Instance.new("Sound",char)
933
                                    z3.SoundId = "rbxassetid://261010715"
934
									z3.Pitch = z1.Pitch
935
                                    z3.Volume = 1
936
                                    z1:Play()
937
                                    z2:Play()
938
                                    z3:Play()
939
                                    Debounces.ks=false
940
                                    end
941
                                hit.Parent:FindFirstChild("Humanoid"):TakeDamage(10)
942
                                wait(.5)
943
                    Debounces.Slapped = false
944
					z:Destroy()
945
					z1:Destroy()
946
					z2:Destroy()
947
					z3:Destroy()
948
					end
949
                end
950
            end
951
        end    
952
    end)
953
				for i = 1, 14 do
954
					larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3, 0.5, -.3) * CFrame.Angles(math.rad(50), 0, math.rad(40)), 0.5)
955
					rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(40)), 0.5)
956
					torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.5)
957
					hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.5)
958
					lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.5)
959
					rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.5)
960
					if Debounces.on==false then break end
961
					rs:wait(2)
962
				end
963
				Debounces.Slapping = true
964
				for i = 1, 20 do
965
					larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3, 0.7, .3) * CFrame.Angles(math.rad(50), 0, math.rad(-110)), 0.6)
966
					rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(40)), 0.6)
967
					torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-70), math.rad(0)), 0.6)
968
					hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), 0.6)
969
					lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.6)
970
					rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.6)
971
					if Debounces.on==false then break end
972
					rs:wait(2)
973
				end
974
				Debounces.Slapping = false
975
			if Debounces.CanAttack == false then
976
				Debounces.CanAttack = true
977
				Debounces.NoIdl = false
978
				Debounces.on = false
979
			end
980
		end
981
	end
982
end)
983
-------------------------------
984
mouse.KeyDown:connect(function(key)
985
    if key == "r" then
986
        if Debounces.CanAttack == true then
987
			Debounces.CanAttack = false
988
			Debounces.NoIdl = true
989
			Debounces.on = true
990
				for i = 1, 20 do
991
					larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.1, 0.6, -.4) * CFrame.Angles(math.rad(130), 0, math.rad(40)), 0.3)
992
					rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.1, 0.6, -.4) * CFrame.Angles(math.rad(130), 0, math.rad(-40)), 0.3)
993
					torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), 0, 0), 0.3)
994
					hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(50), 0, 0), 0.3)
995
					lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3)
996
					rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.2, -.5) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
997
					cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, -.2, 0) * CFrame.Angles (math.rad(40), math.rad(0), math.rad(0)), 0.35)
998
					if Debounces.on==false then break end
999
					rs:wait(2)
1000
				end
1001
				Debounces.Slashing = true
1002
				z = Instance.new("Sound",hed)
1003
				z.SoundId = "rbxassetid://206083107"
1004
				z.Pitch = .75
1005
				z.Volume = .65
1006
				wait(0.1)
1007
				z:Play()
1008
				z1 = Instance.new("Sound", hed)
1009
				z1.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
1010
				z1.Pitch = ptz[math.random(1,#ptz)]
1011
				z1.Volume = 1
1012
				wait(.01)
1013
				z1:Play()
1014
				for i = 1, 20 do
1015
					larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.1, 0.6, -.4) * CFrame.Angles(math.rad(50), 0, math.rad(40)), 0.3)
1016
					rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.1, 0.6, -.4) * CFrame.Angles(math.rad(50), 0, math.rad(-40)), 0.3)
1017
					torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3)
1018
					hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), 0, 0), 0.3)
1019
					lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -.7) * CFrame.Angles(math.rad(20), 0, 0), 0.3)
1020
					rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-40), 0, 0), 0.3)
1021
					cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, -.2, 0) * CFrame.Angles (math.rad(40), math.rad(-20), math.rad(20)), 0.35)
1022
					if Debounces.on==false then break end
1023
					rs:wait(2)
1024
				end
1025
				Debounces.Slashing = false
1026
				cor.Weld.C1 = CFrame.Angles(0,0,0)
1027
			if Debounces.CanAttack == false then
1028
				Debounces.CanAttack = true
1029
				Debounces.NoIdl = false
1030
				Debounces.on = false
1031
			end
1032
		end
1033
	end
1034
end)
1035
-------------------------------
1036
mouse.KeyDown:connect(function(key)
1037
    if key == "t" then
1038
        if Debounces.CanAttack == true then
1039
			Debounces.CanAttack = false
1040
			Debounces.on = true
1041
			Debounces.NoIdl = true
1042
		for i = 1,20 do
1043
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(0)), 0.2)
1044
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(0)), 0.2)
1045
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(0),0), 0.2)
1046
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, .4) * CFrame.Angles(math.rad(-20), math.rad(0), 0), 0.2)
1047
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(-10)), 0.2)
1048
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(10)), 0.2)
1049
			if Debounces.on==false then break end
1050
			rs:wait(2)
1051
		end
1052
		for i = 1,20 do
1053
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(0)), 0.2)
1054
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(0)), 0.2)
1055
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-20),math.rad(0),0), 0.2)
1056
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -.4) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.2)
1057
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-10)), 0.2)
1058
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(10)), 0.2)
1059
			if Debounces.on==false then break end
1060
			rs:wait(2)
1061
		end
1062
        if Debounces.CanAttack == false then
1063
			Debounces.CanAttack = true
1064
			Debounces.on = false
1065
			Debounces.NoIdl = false
1066
            end
1067
        end
1068
    end
1069
end)
1070
-------------------------------
1071
mouse.KeyDown:connect(function(key)
1072
    if key == "g" then
1073
        if Debounces.CanAttack == true then
1074
			Debounces.CanAttack = false
1075
			Debounces.NoIdl = true
1076
			Debounces.on = true
1077
			Debounces.Slashing = true
1078
				for i = 1, 8 do
1079
					larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-90)), 0.8)
1080
					rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(90)), 0.8)
1081
					torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, 0, 0), 0.8)
1082
					hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(0, 0, 0), 0.8)
1083
					lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.8)
1084
					rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.8)
1085
					if Debounces.on==false then break end
1086
					rs:wait(2)
1087
				end
1088
				for i = 1, 1440, 48 do
1089
            		torso.Weld.C1 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(i), math.rad(0))
1090
					rs:wait(4)
1091
				end
1092
				torso.Weld.C1 = CFrame.new(0, -1, 0)
1093
				Debounces.Slashing = false
1094
			if Debounces.CanAttack == false then
1095
				Debounces.CanAttack = true
1096
				Debounces.NoIdl = false
1097
				Debounces.on = false
1098
			end
1099
		end
1100
	end
1101
end)
1102
----------------------------------------------------
1103
pt = {6.6, 6.8, 7, 7.2, 7.4}
1104
mouse.KeyDown:connect(function(key)
1105
    if key == "h" then
1106
        if Debounces.CanJoke == true then
1107
            Debounces.CanJoke = false
1108
            u = Instance.new("Sound",char)
1109
            u.SoundId = "http://www.roblox.com/asset/?id=261303790"
1110
            u.Pitch = pt[math.random(1,#pt)]
1111
            u.Volume = 1
1112
            u2 = Instance.new("Sound",char)
1113
            u2.SoundId = "http://www.roblox.com/asset/?id=261303790"
1114
            u2.Pitch = u.Pitch
1115
            u2.Volume = 1
1116
            u3 = Instance.new("Sound",char)
1117
            u3.SoundId = "http://www.roblox.com/asset/?id=261303790"
1118
            u3.Pitch = u.Pitch
1119
            u3.Volume = 1
1120
            wait(.01)
1121
            u:Play()
1122
            u2:Play()
1123
            u3:Play()
1124
            wait(1.5)
1125
            u:Destroy()
1126
            u2:Destroy()
1127
            u3:Destroy()
1128
            if Debounces.CanJoke == false then
1129
                Debounces.CanJoke = true
1130
            end
1131
        end
1132
    end
1133
end)
1134
----------------------------------------------------
1135
Grab = false
1136
mouse.KeyDown:connect(function(key)
1137
    if key == "z" then
1138
        Debounces.on = true
1139
        Debounces.NoIdl = true
1140
		Debounces.ks = true
1141
        if Grab == false then
1142
        gp = nil
1143
        for i = 1, 20 do
1144
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
1145
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-80)), 0.2)
1146
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2)
1147
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2)
1148
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2)
1149
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2)
1150
            if Debounces.on == false then break end
1151
            rs:wait(2)
1152
        end
1153
        con1=larm.Touched:connect(function(hit) -- this is grab
1154
            ht = hit.Parent
1155
            hum1=ht:FindFirstChild('Humanoid')
1156
            if hum1 ~= nil then
1157
			    if Debounces.ks==true then
1158
                z = Instance.new("Sound",hed)
1159
                z.SoundId = "rbxassetid://169380525"
1160
                z.Volume = 1
1161
                z:Play()
1162
                Debounces.ks=false
1163
				end
1164
                hum1.PlatformStand=true
1165
                gp = ht
1166
                Grab = true
1167
                asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,1.5),CFrame.new(0,0,0))
1168
                asd.Parent = larm
1169
                asd.Name = "asd"
1170
                asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0)
1171
				stanceToggle = "Grabbed"
1172
            --[[elseif hum1 == nil then
1173
                con1:disconnect()
1174
                wait() return]]--
1175
            end
1176
        end)
1177
        for i = 1, 20 do
1178
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
1179
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2)
1180
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(30),0), 0.2)
1181
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-30), 0), 0.2)
1182
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2)
1183
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2)
1184
            if Debounces.on == false then break end
1185
            rs:wait(2)
1186
        end
1187
    con1:disconnect()
1188
    Debounces.on = false
1189
    Debounces.NoIdl = false
1190
    elseif Grab == true then
1191
        Grab = false
1192
			--[[for i = 1, 16 do
1193
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(60)), 0.3)
1194
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.5)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-60)), 0.3)
1195
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3)
1196
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
1197
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3)
1198
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
1199
			cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3)
1200
			if Debounces.on == false then end
1201
			rs:wait()
1202
		end]]--
1203
			for i = 1, 16 do
1204
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.3)
1205
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(-50)), 0.3)
1206
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3)
1207
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.3)
1208
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3)
1209
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
1210
			if Debounces.on == false then end
1211
			rs:wait()
1212
		end
1213
		Slam()
1214
		if gp ~= nil then
1215
			for i,v in pairs(larm:GetChildren()) do
1216
				if v.Name == "asd" and v:IsA("Weld") then
1217
					v:Remove()
1218
				end
1219
			end
1220
		for i = 1, 16 do
1221
			rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.3)
1222
			larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.4)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.3)
1223
			hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(20),0), 0.3)
1224
			torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-60), math.rad(-30), 0), 0.3)
1225
			lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(80), math.rad(30), math.rad(-20)), 0.3)
1226
			rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(70), math.rad(-15), math.rad(20)), 0.3)
1227
			if Debounces.on == false then end
1228
			rs:wait()
1229
		end
1230
		stanceToggle = "Normal"
1231
        --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso"))
1232
        bv.maxForce = Vector3.new(400000, 400000, 400000)
1233
        bv.P = 125000
1234
        bv.velocity = char.Head.CFrame.lookVector * 200]]--
1235
        ht=nil
1236
        Debounces.on = false
1237
        Debounces.NoIdl = false
1238
        elseif ht == nil then wait()
1239
        Grab = false
1240
        Debounces.on = false
1241
        Debounces.NoIdl = false
1242
            end
1243
        end
1244
    end
1245
end)
1246
-------------------------------
1247
Sit = false
1248
mouse.KeyDown:connect(function(key)
1249
    if key == "v" then
1250
        if Sit == false then
1251
            Sit = true
1252
            hum.WalkSpeed = 0.1
1253
        stanceToggle = "Sitting"
1254
    elseif Sit == true then
1255
        Sit = false
1256
            hum.WalkSpeed = 16
1257
        stanceToggle = "Normal"
1258
        end
1259
    end
1260
end)
1261
-------------------------------
1262
Melee = false
1263
mouse.KeyDown:connect(function(key)
1264
    if key == "m" then
1265
        if Melee == false then
1266
            Melee = true
1267
			Vanish()
1268
        stanceToggle = "Melee"
1269
    elseif Melee == true then
1270
        Melee = false
1271
		Appear()
1272
        stanceToggle = "Normal"
1273
        end
1274
    end
1275
end)
1276
-------------------------------
1277
mouse.KeyDown:connect(function(key)
1278
    if string.byte(key) == 48 then
1279
    	if Debounces.CanAttack == true then
1280
			if stanceToggle ~= "Floating" then
1281
				char.Humanoid.WalkSpeed = 60
1282
				Burst()
1283
				elseif Debounces.CanAttack == false then
1284
					elseif stanceToggle == "Floating" then
1285
				wait()
1286
			end
1287
        end
1288
    end
1289
end)
1290
mouse.KeyUp:connect(function(key)
1291
    if string.byte(key) == 48 then
1292
        char.Humanoid.WalkSpeed = 16
1293
    end
1294
end)
1295
-------------------------------
1296
local animpose = "Idle"
1297
local lastanimpose = "Idle"
1298
local grab = false
1299
local sine = 0
1300
local change = 1
1301
local val = 0
1302
local ffing = false
1303
-------------------------------
1304
--[[if stanceToggle == "Sitting" then
1305
	if wait(math.random(1,2)) == 1 then
1306
		stanceToggle = "Sitting2"
1307
		wait(8)
1308
		stanceToggle = "Sitting"
1309
	end
1310
end]]--
1311
-------------------------------
1312
game:GetService("RunService").RenderStepped:connect(function()
1313
--[[if char.Humanoid.Jump == true then
1314
jump = true
1315
else
1316
jump = false
1317
end]]
1318
char.Humanoid.FreeFalling:connect(function(f)
1319
if f then
1320
ffing = true
1321
else
1322
ffing = false
1323
end
1324
end)
1325
sine = sine + change
1326
if jumpn == true then
1327
animpose = "Jumping"
1328
elseif ffing == true then
1329
animpose = "Freefalling"
1330
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
1331
animpose = "Idle"
1332
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
1333
animpose = "Walking"
1334
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
1335
animpose = "Running"
1336
end
1337
if animpose ~= lastanimpose then
1338
sine = 0
1339
if Debounces.NoIdl == false then
1340
if stanceToggle == "Normal" then
1341
for i = 1, 2 do
1342
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40)), 0.2)
1343
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-20)), 0.2)
1344
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.2)
1345
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2)
1346
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2)
1347
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-15), math.rad(20)), 0.2)
1348
cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
1349
end
1350
elseif stanceToggle == "Sitting" then
1351
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/30),0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20+2*math.cos(sine/30))), 0.2)
1352
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.5, -.54) * CFrame.Angles(math.rad(88), 0, math.rad(48)), 0.6)
1353
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
1354
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-20), math.sin(sine/60)/3, 0), 0.3)
1355
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1) * CFrame.Angles(math.rad(-6), 0, 0), 0.3)
1356
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56), 0, 0), 0.3)
1357
elseif stanceToggle == "Floating" then
1358
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4)
1359
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4)
1360
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2)
1361
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05)
1362
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4)
1363
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4)
1364
wait()
1365
end
1366
else
1367
end
1368
end
1369
lastanimpose = animpose
1370
if Debounces.NoIdl == false then
1371
if animpose == "Idle" then
1372
if stanceToggle == "Normal" then
1373
change = 0.5
1374
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2)
1375
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-20-2*math.cos(sine/14))), 0.2)
1376
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(50),0), 0.2)
1377
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2)
1378
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2)
1379
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-15), math.rad(20)), 0.2)
1380
elseif stanceToggle == "Melee" then
1381
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(20+2*math.cos(sine/14))), 0.2)
1382
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20-2*math.cos(sine/14))), 0.2)
1383
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-20+1*math.cos(sine/14)),math.rad(0),0), 0.2)
1384
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
1385
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
1386
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
1387
elseif stanceToggle == "Sitting" then
1388
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20)), 0.2)
1389
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.5, -.54) * CFrame.Angles(math.rad(88), 0, math.rad(48)), 0.6)
1390
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
1391
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5-0.06*math.cos(sine/25), -.2) * CFrame.Angles(math.rad(0-20*math.cos(sine/25)/2), math.sin(sine/50)/2.4, 0), 0.3)
1392
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1) * CFrame.Angles(math.rad(-6), 0, 0), 0.3)
1393
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56), 0, 0), 0.3)
1394
elseif stanceToggle == "Floating" then
1395
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4)
1396
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4)
1397
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2)
1398
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05)
1399
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4)
1400
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4)
1401
elseif stanceToggle == "Grabbed" then
1402
grab = true
1403
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2)
1404
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),-.5)*CFrame.Angles(math.rad(130+4*math.cos(sine/14)),math.rad(0),math.rad(-60+4*math.cos(sine/14))), 0.3)
1405
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14+2*math.cos(sine/14)),math.rad(70-4*math.cos(sine/14)),0), 0.3)
1406
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
1407
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3)
1408
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
1409
end
1410
elseif animpose == "Walking" then
1411
if stanceToggle == "Normal" then
1412
change = 1
1413
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5, 0)*CFrame.Angles(math.rad(-20), math.rad(-20),math.rad(40)), 0.2)
1414
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6, -math.sin(sine/8)/2.8)*CFrame.Angles(math.sin(sine/8)/4, -math.sin(sine/8)/2, math.rad(-10)), 0.2)
1415
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2)
1416
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.1*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/4)), 0, math.rad(0)), 0.2)
1417
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4)
1418
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4)
1419
elseif stanceToggle == "Melee" then
1420
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/4), math.sin(sine/8)/4) * CFrame.Angles(-math.sin(sine/8)/2.8, -math.sin(sine/8)/3, math.rad(10+2*math.cos(sine/4))), 0.2)
1421
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5+.05*math.cos(sine/4), -math.sin(sine/8)/4)*CFrame.Angles(math.sin(sine/8)/2.8, -math.sin(sine/8)/3, math.rad(-10-2*math.cos(sine/4))), 0.2)
1422
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2)
1423
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.07*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+1*math.cos(sine/4)), 0, math.rad(0)), 0.2)
1424
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4)
1425
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4)
1426
elseif stanceToggle == "Floating" then
1427
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2)
1428
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2)
1429
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0), 0.4)
1430
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0-8*math.cos(sine/14)), 0, math.rad(-8)), 0.4)
1431
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(1-9*math.cos(sine/13)), 0, math.rad(8)), 0.4)
1432
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.2*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05)
1433
elseif stanceToggle == "Grabbed" then
1434
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5, 0)*CFrame.Angles(math.rad(-20), math.rad(-20),math.rad(40)), 0.2)
1435
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(-30)), 0.3)
1436
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2)
1437
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.1*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/4)), 0, math.rad(0)), 0.2)
1438
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4)
1439
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4)
1440
end
1441
elseif animpose == "Running" then
1442
if stanceToggle == "Normal" then
1443
change = 1
1444
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles  (math.rad(44), math.rad (0), math.rad(0)), 0.15)
1445
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 1-0.1*math.cos(sine/14), -1) * CFrame.Angles(math.rad(-  80),  math.rad(0), 0), 0.15)
1446
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad  (0), math.rad(50),  math.rad(-40)), 0.15)
1447
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0),   math.rad(-50),  math.rad(40)), 0.15)
1448
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(8),   math.rad(0), math.rad(- 10)), .15)
1449
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(8),   math.rad(0), math.rad(10)),  .15)
1450
elseif stanceToggle == "Floating" then
1451
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2)
1452
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2)
1453
hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0)
1454
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10-12*math.cos(sine/16)), 0, math.rad(-8)), 0.4)
1455
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10-12*math.cos(sine/16)), 0, math.rad(8)), 0.4)
1456
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), -.2) * CFrame.Angles(math.rad(-15),0, math.rad(0)), 0.05)
1457
end
1458
end
1459
end
1460
end)
1461
1462
Spawn(function()
1463
	while wait() do
1464
		updateFly()
1465
	end
1466
end)
1467
1468
Spawn(function()
1469
	while wait(.1) do
1470
		Magik()	
1471
	end
1472
end)
1473
1474
Spawn(function()
1475
	while wait(.1) do
1476
		Magik2()	
1477
	end
1478
end)
1479
1480
Spawn(function()
1481
	while wait(4) do
1482
		GroundWave()
1483
	end
1484
end)