View difference between Paste ID: S3zXHgDa and qX5XHeJ0
SHOW: | | - or go back to the newest paste.
1
--------------------------This is an Official script from Duelist--------------------------  
2
                           ---{--------------------                        -------------------}---
3
                           ---{--------------------         / \           -------------------}---
4
                            ---{--------------------         II            -------------------}---
5
                             ---{--------------------        II            -------------------}---
6
                             ---{--------------------        II            -------------------}---
7
                        ---{--------------------  A========A   -------------------}---      
8
                               ---{--------------------      II             -------------------}---
9
                               ---{--------------------      II             -------------------}---
10
                                ---{--------------------     W           -------------------}---
11
-------------------------------------------------------------------------------------------------------------
12
-- By : Jeff223311 (original creator)
13
-- ogm sawyerqqq
14
-- Helped with voicelines : Caio_Murilo
15
16-
p = game.Players.LocalPlayer
16+
p = game.Players.Mohamedpit
17
char = p.Character
18
local s = Instance.new("Sound",char)
19
s.SoundId = "http://www.roblox.com/asset/?id=415880409"
20
s.Pitch = 0.98
21
s.Volume = 5
22
s.Looped = false
23
wait(0.1)
24
s:play()
25
26
local s = Instance.new("Sound",char)
27
s.SoundId = "http://www.roblox.com/asset/?id=503328898"
28
s.Pitch = 0.98
29
s.Volume = 2
30
s.Looped = true
31
wait(0.1)
32
s:play()
33
34
local l = game.Lighting
35
local sky = Instance.new("Sky",l)
36
sky.CelestialBodiesShown = false
37
sky.SkyboxBk = "http://www.roblox.com/asset/?id=156925041"
38
sky.SkyboxDn = "http://www.roblox.com/asset/?id=156925047"
39
sky.SkyboxFt = "http://www.roblox.com/asset/?id=156925045"
40
sky.SkyboxLf = "http://www.roblox.com/asset/?id=156925043"
41
sky.SkyboxRt = "http://www.roblox.com/asset/?id=156925038"
42
sky.SkyboxUp = "http://www.roblox.com/asset/?id=156925055"
43
sky.StarCount = 0
44
sky.Name = "GreenSpace"
45
46
--coolallball
47
if game.Players.LocalPlayer.Character.Animate.Disabled==false then
48
	game.Players.LocalPlayer.Character.Animate.Disabled=true
49
end
50
wait()
51
local Player=game.Players.LocalPlayer
52
repeat wait()
53
until Player
54
local Char=Player.Character
55
repeat wait()
56
until Char
57
local CurrentEffects={}
58
local CurrentDamages={}
59
local Human=Char.Humanoid
60
local LArm=Char["Left Arm"]
61
local RArm=Char["Right Arm"]
62
local LLeg=Char["Left Leg"]
63
local RLeg=Char["Right Leg"]
64
local Torso=Char.Torso
65
local RS=Torso["Right Shoulder"]
66
local LS=Torso["Left Shoulder"]
67
local RH=Torso["Right Hip"]
68
local LH=Torso["Left Hip"]
69
local Head=Char.Head
70
local Neck=Torso.Neck
71
local RootPart=Char.HumanoidRootPart
72
local RootJoint=RootPart.RootJoint
73
local equipped=false
74
local Debounce=false
75
local Anim="Idle"
76
local chat = game:GetService("Chat")
77
local Mouse=Player:GetMouse()
78
local Lighting=game.Lighting
79
local cf=CFrame.new
80
local v3=Vector3.new
81
local c3=Color3.new
82
local it=Instance.new
83
local angles=CFrame.Angles
84
local rad=math.rad
85
local ran=math.random
86
local huge=math.huge
87
local attacking=false
88
local attacktype=1
89
local Portalling=false
90
local p = game.Players.LocalPlayer
91
local char = p.Character
92
local mouse = p:GetMouse()
93
local larm = char["Left Arm"]
94
local rarm = char["Right Arm"]
95
local lleg = char["Left Leg"]
96
local rleg = char["Right Leg"]
97
local hed = char.Head
98
local torso = char.Torso
99
local hum = char.Humanoid
100
local cam = game.Workspace.CurrentCamera
101
local root = char.HumanoidRootPart
102
local deb = false
103
local shot = 0
104
local debris=game:service"Debris"
105
local l = game:GetService("Lighting")
106
local rs = game:GetService("RunService").RenderStepped
107
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
108
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
109
LSC0=cf(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
110
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
111
RSC0=cf(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
112
ROOTC0 = cf(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
113
r=game:service'RunService'.RenderStepped
114
clerp=function(a,b,t)
115
	return a:lerp(b,t)
116
end
117
118
119
local Rainbow = { --This is the main color set. Try to use more than just a few, make it fade in order as well
120
"Really black", 
121
} 
122
123
Debounces = {
124
CanAttack = true;
125
NoIdl = false;
126
Slashing = false;
127
Slashed = false;
128
RPunch = false;
129
Invisible = false;
130
RPunched = false;
131
LPunch = false;
132
LPunched = false;
133
}
134
local Touche = {char.Name, }
135
136
137
function genWeld(a,b)
138
    local w = Instance.new("Weld",a)
139
    w.Part0 = a
140
    w.Part1 = b
141
    return w
142
end
143
function weld(a, b)
144
    local weld = Instance.new("Weld")
145
    weld.Name = "W"
146
    weld.Part0 = a
147
    weld.Part1 = b
148
    weld.C0 = a.CFrame:inverse() * b.CFrame
149
    weld.Parent = a
150
    return weld;
151
end
152
----------------------------------------------------
153
function Lerp(c1,c2,al)
154
local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
155
local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
156
for i,v in pairs(com1) do
157
com1[i] = v+(com2[i]-v)*al
158
end
159
return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
160
end
161
----------------------------------------------------
162
newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
163
local wld = Instance.new("Weld", wp1)
164
wld.Part0 = wp0
165
wld.Part1 = wp1
166
wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
167
end
168
----------------------------------------------------
169
function weld5(part0, part1, c0, c1)
170
    weeld=Instance.new("Weld", part0)
171
    weeld.Part0=part0
172
    weeld.Part1=part1
173
    weeld.C0=c0
174
    weeld.C1=c1
175
    return weeld
176
end
177
----------------------------------------------------
178
function HasntTouched(plrname)
179
local ret = true
180
for _, v in pairs(Touche) do
181
if v == plrname then
182
ret = false
183
end
184
end
185
return ret
186
end
187
----------------------------------------------------
188
newWeld(torso, larm, -1.5, 0.5, 0)
189
larm.Weld.C1 = CFrame.new(0, 0.5, 0)
190
newWeld(torso, rarm, 1.5, 0.5, 0)
191
rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
192
newWeld(torso, hed, 0, 1.5, 0)
193
newWeld(torso, lleg, -0.5, -1, 0)
194
lleg.Weld.C1 = CFrame.new(0, 1, 0)
195
newWeld(torso, rleg, 0.5, -1, 0)
196
rleg.Weld.C1 = CFrame.new(0, 1, 0)
197
newWeld(root, torso, 0, -1, 0)
198
torso.Weld.C1 = CFrame.new(0, -1, 0)
199
200
201
202
p = Instance.new("Part")
203
p.BrickColor = BrickColor.new("Really black")
204
p.Transparency = 1
205
TorsoColor = p.BrickColor
206
207
local Transforming = true
208
Human.WalkSpeed = 0
209
local fx = Instance.new("Part",Torso)
210
wit = p.BrickColor.Color
211
wit2 = Color3.new(0,0,0)
212
local glowz = Instance.new("ParticleEmitter",fx)
213
glowz.LightEmission = 1
214
glowz.Texture = "rbxassetid://284205403"
215
glowz.Color = ColorSequence.new(wit)
216
glowz.Size = NumberSequence.new(5)
217
glowz.Speed = NumberRange.new(25,50)
218
glowz.LockedToPart = false
219
glowz.Transparency = NumberSequence.new(0.75)
220
glowz.RotSpeed = NumberRange.new(-2000,2000)
221
glowz.Lifetime = NumberRange.new(1)
222
glowz.Rate = 50000
223
glowz.VelocitySpread = 9001
224
local glowz2 = Instance.new("ParticleEmitter",fx)
225
glowz2.LightEmission = 0.5
226
glowz.Texture = "rbxassetid://284205403"
227
glowz2.Color = ColorSequence.new(wit2)
228
glowz2.Size = NumberSequence.new(5)
229
glowz2.Speed = NumberRange.new(25,50)
230
glowz2.LockedToPart = false
231
glowz2.Transparency = NumberSequence.new(0.75)
232
glowz2.RotSpeed = NumberRange.new(-2000,2000)
233
glowz2.Lifetime = NumberRange.new(1)
234
glowz2.Rate = 50000
235
glowz2.VelocitySpread = 9001
236
fx.Anchored = true
237
fx.Material = "Neon"
238
fx.CanCollide = false
239
fx.Locked = true
240
fx.Transparency = 1
241
fx.Material = "Neon"
242
fx.Size = Vector3.new(1,1,1)
243
fx.TopSurface = "SmoothNoOutlines"
244
fx.BottomSurface = "SmoothNoOutlines"
245
fx.BrickColor = BrickColor.new("Really red")
246
fxm = Instance.new("SpecialMesh",fx)
247
fxm.MeshType = "Sphere"
248
local sa2 = Instance.new("Sound",Torso)
249
sa2.SoundId = "rbxassetid://93724183"
250
sa2.Pitch = 0.5
251
sa2.Volume = 5
252
sa2.Looped = false
253
sa2:Play()
254
local value = 1
255
fxm.Scale = Vector3.new(1,1,1)
256
for i = 1, 20 do rs:wait()
257
        value = value - 0.05
258
        fx.Transparency = fx.Transparency - (1/20)
259
        fx.CFrame = Torso.CFrame
260
        fxm.Scale = fxm.Scale + Vector3.new(value,value,value)
261
        rs:wait()
262
end
263
----------------------------------------------------
264
GroundWave1 = function()
265
	local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
266
	local Colors = {"Really red", "Really black"}
267
		local wave = Instance.new("Part", Torso)
268
		wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
269
		wave.Anchored = true
270
		wave.CanCollide = false
271
		wave.Locked = true
272
		wave.Size = Vector3.new(1, 1, 1)
273
		wave.TopSurface = "Smooth"
274
		wave.BottomSurface = "Smooth"
275
		wave.Transparency = 0.35
276
		wave.CFrame = HandCF
277
		wm = Instance.new("SpecialMesh", wave)
278
		wm.MeshId = "rbxassetid://3270017"
279
		coroutine.wrap(function()
280
		for i = 1, 30, 1 do
281
		wm.Scale = Vector3.new(50, 50, 1 + i*50)
282
		wave.Size = wm.Scale
283
		wave.CFrame = HandCF
284
		wave.Transparency = i/30
285
		wait()
286
		end
287
		wait()
288
		wave:Destroy()
289
	end)()
290
end
291
----------------------------------------------------
292
293
294
GroundWave3 = function()
295
	local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
296
	local Colors = {"Really red", "Really black"}
297
		local wave = Instance.new("Part", torso)
298
		wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
299
		wave.Anchored = true
300
		wave.CanCollide = false
301
		wave.Locked = true
302
		wave.Size = Vector3.new(1, 1, 1)
303
		wave.TopSurface = "Smooth"
304
		wave.BottomSurface = "Smooth"
305
		wave.Transparency = 0.35
306
		wave.CFrame = HandCF
307
		wm = Instance.new("SpecialMesh", wave)
308
		wm.MeshId = "rbxassetid://3270017"
309
		coroutine.wrap(function()
310
		for i = 1, 14, 1 do
311
		wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1)
312
		wave.Size = wm.Scale
313
		wave.CFrame = HandCF
314
		wave.Transparency = i/14
315
		wait()
316
		end
317
		wait()
318
		wave:Destroy()
319
	end)()
320
end
321
322
323
324
325
326
local acos = math.acos
327
local sqrt = math.sqrt
328
local Vec3 = Vector3.new
329
local fromAxisAngle = CFrame.fromAxisAngle
330
331
local function toAxisAngle(CFr)
332
        local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
333
        local Angle = math.acos((R00+R11+R22-1)/2)
334
        local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
335
        A = A == 0 and 0.00001 or A
336
        local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
337
        B = B == 0 and 0.00001 or B
338
        local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
339
        C = C == 0 and 0.00001 or C
340
        local x = (R21-R12)/sqrt(A)
341
        local y = (R02-R20)/sqrt(B)
342
        local z = (R10-R01)/sqrt(C)
343
        return Vec3(x,y,z),Angle
344
end
345
346
local acos = math.acos
347
local sqrt = math.sqrt
348
local Vec3 = Vector3.new
349
local fromAxisAngle = CFrame.fromAxisAngle
350
351
local function toAxisAngle(CFr)
352
        local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
353
        local Angle = math.acos((R00+R11+R22-1)/2)
354
        local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
355
        A = A == 0 and 0.00001 or A
356
        local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
357
        B = B == 0 and 0.00001 or B
358
        local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
359
        C = C == 0 and 0.00001 or C
360
        local x = (R21-R12)/sqrt(A)
361
        local y = (R02-R20)/sqrt(B)
362
        local z = (R10-R01)/sqrt(C)
363
        return Vec3(x,y,z),Angle
364
end
365
366
function ApplyTrig(Num,Func)
367
        local Min,Max = Func(0),Func(1)
368
        local i = Func(Num)
369
        return (i-Min)/(Max-Min)
370
        --[[if Func == "sin" then
371
                return (math.sin((1-Num)*math.pi)+1)/2
372
        elseif Func == "cos" then
373
                return (math.cos((1-Num)*math.pi)+1)/2
374
        end]]
375
end
376
377
function LerpCFrame(CFrame1,CFrame2,Num)
378
        local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
379
        return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
380
end
381
382
383
384
function Crater(Torso,Radius)
385
        Spawn(function()
386
        local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10)
387
        local Ignore = {}
388
        for i,v in pairs(game:GetService("Players"):GetPlayers()) do
389
                if v.Character ~= nil then
390
                        Ignore[#Ignore+1] = v.Character
391
                end
392
        end
393
        local Hit,Pos,SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
394
        if Hit == nil then return end
395
        local Parts = {}
396
        for i = 1,360,10 do
397
                local P = Instance.new("Part",Torso.Parent)
398
                P.Anchored = true
399
                P.FormFactor = "Custom"
400
                P.BrickColor = BrickColor.new("Really black")
401
                P.Material = "Granite"
402
                P.TopSurface = "Smooth"
403
                P.BottomSurface = "Smooth"
404
                P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100)
405
                P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
406
                Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size}
407
                if math.random(0,5) == 0 then -- rubble
408
                        local P = Instance.new("Part",Torso.Parent)
409
                        P.Anchored = true
410
                        P.FormFactor = "Custom"
411
                        P.BrickColor = BrickColor.new("Really black")
412
                        P.Material = Hit.Material
413
                        P.TopSurface = "Smooth"
414
                        P.BottomSurface = "Smooth"
415
                        P.Size = Vector3.new(5,5,5)*(math.random(80,100)/100)
416
                        P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
417
                        Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size}
418
                end
419
        end
420
        for i = 0,1,0.05 do
421
                for i2,v in pairs(Parts) do
422
                        v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
423
                end
424
                wait(0.02)
425
        end
426
        for i,v in pairs(Parts) do
427
                if v[1].Size.X > 2.1 then
428
                        v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
429
                end
430
                v[1].Anchored = false
431
        end
432
        for i = 0,1,0.05 do
433
                for i2,v in pairs(Parts) do
434
                        v[1].Transparency = i
435
                        if i == 1 then
436
                                v[1]:Destroy()
437
                        elseif i >= 0.25 then
438
                                v[1].CanCollide = false
439
                        end
440
                end
441
                wait(0.02)
442
        end
443
        Parts = nil
444
        end)
445
end
446
447
448
449
GroundWave = function()
450
        if Transforming == true then
451
                local value = 5
452
                local value2 = 10
453
                local value3 = 20
454
local sa2 = Instance.new("Sound",Torso)
455
sa2.SoundId = "rbxassetid://393621716"
456
sa2.Pitch = 1
457
sa2.Volume = 10
458
sa2.Looped = false
459
sa2:Play()
460
                local wave = Instance.new("Part", Torso)
461
local glowz = Instance.new("ParticleEmitter",wave)
462
glowz.LightEmission = 1
463
glowz.Texture = "rbxassetid://284205403"
464
glowz.Color = ColorSequence.new(wit)
465
glowz.Size = NumberSequence.new(30)
466
glowz.Speed = NumberRange.new(25,100)
467
glowz.LockedToPart = false
468
glowz.Transparency = NumberSequence.new(0.75)
469
glowz.RotSpeed = NumberRange.new(-2000,2000)
470
glowz.Lifetime = NumberRange.new(1)
471
glowz.Rate = 50000
472
glowz.VelocitySpread = 9001
473
local glowz2 = Instance.new("ParticleEmitter",wave)
474
glowz2.LightEmission = 1
475
glowz.Texture = "rbxassetid://284205403"
476
glowz2.Color = ColorSequence.new(wit)
477
glowz2.Size = NumberSequence.new(30)
478
glowz2.Speed = NumberRange.new(25,100)
479
glowz2.LockedToPart = false
480
glowz2.Transparency = NumberSequence.new(0.75)
481
glowz2.RotSpeed = NumberRange.new(-2000,2000)
482
glowz2.Lifetime = NumberRange.new(1)
483
glowz2.Rate = 50000
484
glowz2.VelocitySpread = 9001
485
                wave.BrickColor = BrickColor.new("Really red")
486
                wave.Anchored = true
487
                wave.CanCollide = false
488
                wave.Locked = true
489
                wave.Size = Vector3.new(1, 1, 1)
490
                wave.TopSurface = "Smooth"
491
                wave.BottomSurface = "Smooth"
492
                wave.Transparency = 0.35
493
                wave.CFrame = fx.CFrame
494
                wave.Material = "Neon"
495
                wm = Instance.new("SpecialMesh", wave)
496
                wm.MeshType = "Sphere"
497
                wm.Scale = Vector3.new(1,1,1)
498
                local wave2 = Instance.new("Part", Torso)
499
                wave2.BrickColor = TorsoColor
500
                wave2.Anchored = true
501
                wave2.CanCollide = false
502
                wave2.Locked = true
503
                wave2.Size = Vector3.new(1, 1, 1)
504
                wave2.TopSurface = "Smooth"
505
                wave2.BottomSurface = "Smooth"
506
                wave2.Transparency = 0.35
507
                wave2.CFrame = fx.CFrame
508
                wave2.Material = "Neon"
509
                wm2 = Instance.new("SpecialMesh", wave2)
510
                wm2.MeshType = "FileMesh"
511
                wm2.MeshId = "http://www.roblox.com/asset/?id=3270017"
512
                wm2.Scale = Vector3.new(1,1,1)
513
                local wave3 = Instance.new("Part", Torso)
514
                wave3.BrickColor = BrickColor.new("Really black")
515
                wave3.Anchored = true
516
                wave3.CanCollide = false
517
                wave3.Locked = true
518
                wave3.Size = Vector3.new(1, 1, 1)
519
                wave3.TopSurface = "Smooth"
520
                wave3.BottomSurface = "Smooth"
521
                wave3.Transparency = 0.35
522
                wave3.CFrame = fx.CFrame
523
                wave3.Material = "Neon"
524
                wm3 = Instance.new("SpecialMesh", wave3)
525
                wm3.MeshType = "FileMesh"
526
                wm3.MeshId = "http://www.roblox.com/asset/?id=3270017"
527
                wm3.Scale = Vector3.new(1,1,1)
528
                coroutine.wrap(function()
529
                for i = 1, 18, 1 do
530
                value = value - 0.5
531
                value2 = value2 - 0.75*1.5
532
                value3 = value3 - 0.475*1.5
533
                wm.Scale = wm.Scale + Vector3.new(value*3.5,value*3.5,value*3.5)
534
                wm2.Scale = wm.Scale + Vector3.new(value2*3.5,value2*3.5,0.5)
535
                wm3.Scale = wm.Scale + Vector3.new(value3*3.5,value3*3.5,0.25)
536
                --wave.Size = wm.Scale
537
                wave.CFrame = fx.CFrame
538
                wave.Transparency = i/14
539
                --wave2.Size = wm2.Scale
540
                wave2.CFrame = fx.CFrame
541
                wave2.Rotation = Vector3.new(90, 0, 0)
542
                wave2.Transparency = i/14
543
                --wave3.Size = wm3.Scale
544
                wave3.CFrame = fx.CFrame
545
                wave3.Rotation = Vector3.new(90, 0, 0)
546
                wave3.Transparency = i/14
547
                wait()
548
                glowz.Rate = 0
549
                glowz2.Rate = 0
550
                end
551
                wait()
552
                wave:Destroy()
553
                wave2:Destroy()
554
                wave3:Destroy()
555
        end)()
556
        elseif Transforming == false then
557
        wait()
558
        end
559
end
560
561
for i = 1, 100 do rs:wait()
562
        fx.CFrame = Torso.CFrame
563
end
564
565
spawn(function()
566
	while wait(1) do
567
		GroundWave()
568
	end
569
end)
570
571
wait(4)
572
573
Transforming = false
574
575
576
577
local value2 = 1
578
for i = 1, 20 do rs:wait()
579
        value2 = value2 - 0.05
580
        glowz.Rate = 0
581
        glowz2.Rate = 0
582
        fx.Transparency = fx.Transparency + (1/20)
583
        fx.CFrame = torso.CFrame
584
        fxm.Scale = fxm.Scale + Vector3.new(value2,value2,value2)
585
        rs:wait()
586
end
587
glowz:Destroy()
588
glowz2:Destroy()
589
590
local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
591
        local valuer = 5
592
        local valuer2 = 10
593
        local valuer3 = 15
594
local sa2 = Instance.new("Sound",torso)
595
sa2.SoundId = "rbxassetid://130972023"
596
sa2.Pitch = 1
597
sa2.Volume = 5
598
sa2.Looped = false
599
sa2:Play()
600
local sar2 = Instance.new("Sound",torso)
601
sar2.SoundId = "rbxassetid://153274423"
602
sar2.Pitch = 1
603
sar2.Volume = 5
604
sar2.Looped = false
605
sar2:Play()
606
local Mus = Instance.new("Sound",torso)
607
Mus.SoundId = "rbxassetid://"
608
Mus.Pitch = 1
609
Mus.Volume = 6
610
Mus.Looped = true
611
Mus:Play()
612
Crater(torso,67)
613
        local wave = Instance.new("Part", torso)
614
        wave.BrickColor = TorsoColor
615
        wave.Anchored = true
616
        wave.CanCollide = false
617
        wave.Locked = true
618
        wave.Size = Vector3.new(1, 1, 1)
619
        wave.TopSurface = "Smooth"
620
        wave.BottomSurface = "Smooth"
621
        wave.Transparency = 0.35
622
        wave.CFrame = HandCF
623
        wm = Instance.new("SpecialMesh", wave)
624
        wm.MeshId = "rbxassetid://3270017"
625
        local wave2 = Instance.new("Part", torso)
626
        wave2.BrickColor = BrickColor.new("Really red")
627
        wave2.Anchored = true
628
        wave2.CanCollide = false
629
        wave2.Locked = true
630
        wave2.Size = Vector3.new(1, 1, 1)
631
        wave2.TopSurface = "Smooth"
632
        wave2.BottomSurface = "Smooth"
633
        wave2.Transparency = 0.35
634
        wave2.CFrame = HandCF
635
        wm2 = Instance.new("SpecialMesh", wave2)
636
        wm2.MeshId = "rbxassetid://3270017"
637
        local wave3 = Instance.new("Part", torso)
638
        wave3.BrickColor = TorsoColor
639
        wave3.Anchored = true
640
        wave3.CanCollide = false
641
        wave3.Locked = true
642
        wave3.Size = Vector3.new(1, 1, 1)
643
        wave3.TopSurface = "Smooth"
644
        wave3.BottomSurface = "Smooth"
645
        wave3.Transparency = 0.35
646
        wave3.CFrame = HandCF
647
        wm3 = Instance.new("SpecialMesh", wave3)
648
        wm3.MeshId = "rbxassetid://3270017"
649
        coroutine.wrap(function()
650
        for i = 1, 14, 1 do
651
        valuer = valuer - 0.35
652
        valuer2 = valuer - 0.45
653
        valuer3 = valuer3 - 0.475
654
        wm.Scale = wm.Scale + Vector3.new(valuer*2.5,valuer*2.5, 1 + i*200)
655
        wave.Size = wm.Scale
656
        wave.CFrame = HandCF
657
        wave.Transparency = i/14
658
        wm2.Scale = wm2.Scale + Vector3.new(valuer2*2.5,valuer2*2.5, 0 + i*10)
659
        wave2.Size = wm2.Scale
660
        wave2.CFrame = HandCF
661
        wave2.Transparency = i/14
662
        wm3.Scale = wm3.Scale + Vector3.new(valuer3*2.5,valuer3*2.5, 1)
663
        wave3.Size = wm2.Scale
664
        wave3.CFrame = HandCF
665
        wave3.Transparency = i/14
666
        wait()
667
        end
668
        wait()
669
        wave:Destroy()
670
        wave2:Destroy()
671
end)()
672
hum.WalkSpeed = 16
673
674
675
676
local p = game.Players.LocalPlayer
677
local HBill = Instance.new("BillboardGui",game.Players.LocalPlayer.Character.Head)
678
local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame")
679
local HHealth, HName = Instance.new("TextLabel", HBarBack), Instance.new("TextLabel")
680
HBill.Size = UDim2.new(45,0,10.2,0)
681
HBill.Name = "Health Display"
682
HBill.StudsOffset = Vector3.new(2,30,2)
683
HBill.AlwaysOnTop = true
684
HBill.Enabled = true
685
HMain.BackgroundColor3 = Color3.new(255, 255, 255)
686
HMain.BackgroundTransparency = 1
687
HMain.Size = UDim2.new(1,0,1,0)
688
HBarBack.Parent = HMain
689
HBarBack.BackgroundColor3 = Color3.new(0,0,0)
690
HBarBack.BorderColor3 = Color3.new(0,0,0)
691
HBarBack.BorderSizePixel = 2
692
HBarBack.Position = UDim2.new(.025, 0, .55, 0)
693
HBarBack.Size = UDim2.new(.95, 0, .3, 0)
694
HBar.Parent = HBarBack
695
HBar.BackgroundColor3 = Color3.new(0, 0, 0)
696
HBar.BorderColor3 = Color3.new(0,0,0)
697
HBar.Size = UDim2.new(.5,0,1,0)
698
HHealth.BackgroundTransparency = 1
699
HHealth.Size = UDim2.new(1,0,1,0)
700
HHealth.Font = "Bodoni"
701
HHealth.Text = " "
702
HHealth.TextScaled = true
703
HHealth.TextColor3 = Color3.new(1,1,1)
704
HHealth.TextStrokeColor3 = BrickColor.new("Really red").Color
705
HHealth.TextStrokeTransparency = 0
706
HName.Parent = HMain
707
HName.BackgroundTransparency = 1
708
HName.Size = UDim2.new(1,0,.5,0)
709
HName.Font = "Bodoni"
710
HName.Text = "DarkBoss"
711
HName.TextScaled = true
712
HName.TextColor3 = BrickColor.new("Really black").Color
713
HName.TextStrokeColor3 = Color3.new(255,255,255)
714
HName.TextStrokeTransparency = 0
715
HName.TextYAlignment = "Top"
716
717
local char = p.Character
718
local mouse = p:GetMouse()
719
local larm = char["Left Arm"]
720
local rarm = char["Right Arm"]
721
local lleg = char["Left Leg"]
722
local rleg = char["Right Leg"]
723
local hed = char.Head
724
local torso = char.Torso
725
local hum = char.Humanoid
726
local cam = game.Workspace.CurrentCamera
727
local root = char.HumanoidRootPart
728
local deb = false
729
local shot = 0
730
local l = game:GetService("Lighting")
731
local rs = game:GetService("RunService").RenderStepped
732
local stanceToggle = "Normal"
733
hum.WalkSpeed = 30
734
hum.MaxHealth = math.huge
735
----------------------------------------------------
736
hed.face:Remove''
737
hed.Transparency = 0
738
local torsmesh = Instance.new("CharacterMesh", char)
739
torsmesh.BodyPart = "Torso"
740
torsmesh.MeshId = "48112070"
741
742
local meshx9 = Instance.new('SpecialMesh',hed)
743
meshx9.MeshType = 'FileMesh'
744
meshx9.MeshId = 'http://www.roblox.com/asset/?id=21057410'
745
meshx9.TextureId = 'http://www.roblox.com/asset/?id=48857582'
746
meshx9.Scale = Vector3.new(11,11,11)
747
748
749
lite = Instance.new("PointLight", torso)
750
lite.Brightness = 14
751
lite.Range = 10
752
lite.Color = Color3.new(1, 0, 0)
753
local hed2 = hed:Clone()
754
hed2.CanCollide = false
755
hed2.Parent = char
756
hed2:ClearAllChildren()
757
hed2.Transparency = 1
758
hed2.Name = "DARP"
759
local w = Instance.new("Weld",hed2)
760
w.Part0 = hed
761
w.Part1 = hed2
762
w.C0 = CFrame.new(0,0,-0.175)
763
z=Instance.new("SurfaceGui",hed2)
764
z.Enabled = true
765
z.Face = "Front"
766
z.Adornee = hed2
767
z.CanvasSize = Vector2.new(100,100)
768
local face = Instance.new("ImageLabel",z)
769
face.Size = UDim2.new(1,-30,1,0)
770
face.Position = UDim2.new(0,15,0,0)
771
face.BackgroundTransparency = 1
772
face.Image='rbxassetid://46282671'
773
----------------------------------------------------
774
z = Instance.new("Sound", char)
775
z.SoundId = "rbxassetid://"--
776
z.Looped = true
777
z.Pitch = 1
778
z.Volume = .5
779
wait(.01)
780
z:Play()
781
----------------------------------------------------
782
CTB = {}
783
fat = Instance.new("BindableEvent",script)
784
fat.Name = "Heartbeat"
785
786
script:WaitForChild("Heartbeat")
787
788
frame = 1/30
789
tf = 0
790
allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
791
tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
792
lastframe = tick()
793
script.Heartbeat:Fire() --ayy lmao
794
795
game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
796
	tf = tf + s
797
	if tf >= frame then
798
		if allowframeloss then
799
			script.Heartbeat:Fire()
800
			lastframe=tick()
801
		else
802
			--print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
803
			for i=1, math.floor(tf/frame) do
804
				script.Heartbeat:Fire()
805
			end
806
			lastframe=tick()
807
		end
808
		if tossremainder then
809
			tf = 0
810
		else
811
			tf = tf - frame * math.floor(tf/frame)
812
		end
813
	end
814
end)
815
----------------------------------------------------
816
pcall(function()char.Shirt:Destroy()
817
char.Pants:Destroy()
818
end)
819
shirt = Instance.new("Shirt", char)
820
shirt.Name = "Shirt"
821
pants = Instance.new("Pants", char)
822
pants.Name = "Pants"
823
char.Shirt.ShirtTemplate = "rbxassetid://553819591"
824
char.Pants.PantsTemplate = "rbxassetid://511475176"
825
----------------------------------------------------
826
Debounces = {
827
on = false;
828
ks = false;
829
CanAttack = true;
830
CanJoke = true;
831
NoIdl = false;
832
Slashing = false;
833
Slashed = false;
834
Grabbing = false;
835
Grabbed = false;
836
}
837
local Touche = {char.Name, }
838
----------------------------------------------------
839
function lerp(a, b, t) -- Linear interpolation
840
    return a + (b - a)*t
841
end
842
 
843
function slerp(a, b, t) --Spherical interpolation
844
    dot = a:Dot(b)
845
    if dot > 0.99999 or dot < -0.99999 then
846
        return t <= 0.5 and a or b
847
    else
848
        r = math.acos(dot)
849
        return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
850
    end
851
end
852
 
853
function matrixInterpolate(a, b, t)
854
    local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
855
    local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
856
    local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
857
    local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector  right
858
    local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector  up
859
    local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector  back
860
    local t = v1:Dot(v2)
861
    if not (t < 0 or t == 0 or t > 0) then     -- Failsafe
862
        return CFrame.new()
863
    end
864
    return CFrame.new(
865
    v0.x, v0.y, v0.z,
866
    v1.x, v1.y, v1.z,
867
    v2.x, v2.y, v2.z,
868
    v3.x, v3.y, v3.z)
869
end
870
----------------------------------------------------
871
function genWeld(a,b)
872
    local w = Instance.new("Weld",a)
873
    w.Part0 = a
874
    w.Part1 = b
875
    return w
876
end
877
function weld(a, b)
878
    local weld = Instance.new("Weld")
879
    weld.Name = "W"
880
    weld.Part0 = a
881
    weld.Part1 = b
882
    weld.C0 = a.CFrame:inverse() * b.CFrame
883
    weld.Parent = a
884
    return weld;
885
end
886
----------------------------------------------------
887
function Lerp(c1,c2,al)
888
local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
889
local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
890
for i,v in pairs(com1) do 
891
com1[i] = v+(com2[i]-v)*al
892
end
893
return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
894
end
895
----------------------------------------------------
896
newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
897
local wld = Instance.new("Weld", wp1)
898
wld.Part0 = wp0
899
wld.Part1 = wp1
900
wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
901
end
902
----------------------------------------------------
903
for i,v in pairs(char:children()) do
904
    if v:IsA("Hat") then
905
        v:Destroy()
906
    end
907
end
908
for i,v in pairs(hed:children()) do
909
    if v:IsA("Sound") then
910
        v:Destroy()
911
    end
912
end
913
----------------------------------------------------
914
function HasntTouched(plrname)
915
local ret = true
916
for _, v in pairs(Touche) do
917
if v == plrname then
918
ret = false
919
end
920
end
921
return ret
922
end
923
----------------------------------------------------
924
larm.Size = larm.Size * 10
925
rarm.Size = rarm.Size * 10
926
lleg.Size = lleg.Size * 10
927
rleg.Size = rleg.Size * 10
928
torso.Size = torso.Size * 10
929
hed.Size = hed.Size * 10
930
root.Size = root.Size * 10
931
----------------------------------------------------
932
newWeld(torso, larm, 5, 0.5, 0)
933
larm.Weld.C1 = CFrame.new(20, 0.5, 0)
934
newWeld(torso, rarm, -5, 0.5, 0)
935
rarm.Weld.C1 = CFrame.new(-20, 0.5, 0)
936
newWeld(torso, hed, 0, 15, 0)
937
newWeld(torso, lleg, -5, -19, 0)
938
lleg.Weld.C1 = CFrame.new(0, 1, 0)
939
newWeld(torso, rleg, 5, -19, 0)
940
rleg.Weld.C1 = CFrame.new(0, 1, 0)
941
newWeld(root, torso, 0, -1, 0)
942
torso.Weld.C1 = CFrame.new(0, -1, 0)
943
----------------------------------------------------
944
mod4 = Instance.new("Model",char)
945
946
ptez = {0.7, 0.8, 0.9, 1}
947
948
function FindNearestTorso(Position,Distance,SinglePlayer)
949
    if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
950
        local List = {}
951
        for i,v in pairs(workspace:GetChildren())do
952
            if v:IsA("Model")then
953
                if v:findFirstChild("Torso")then
954
                    if v ~= char then
955
                        if(v.Torso.Position -Position).magnitude <= Distance then
956
                            table.insert(List,v)
957
                        end
958
                    end
959
                end
960
            end
961
        end
962
    return List
963
end
964
----------------------------------------------------
965
local hand = Instance.new('Part', char) hand.Size = Vector3.new(0, 0, 0) hand.Transparency = 1 hand.CanCollide = false
966
local weld = Instance.new('Weld', hand) weld.Part0 = hand weld.Part1 = larm weld.C0 = CFrame.new(0, 8.8, 0)
967
ns = NumberSequenceKeypoint.new
968
	local hat_test = hand
969
	fire = Instance.new('ParticleEmitter', hat_test)
970
	fire.Color = ColorSequence.new(Color3.new(255, 0, 0,Color3.new(255, 0, 0)))
971
	fire.Size = NumberSequence.new({ns(0, 10), ns(1, 0)})
972
	fire.Transparency = NumberSequence.new({ns(0, 0), ns(1,1)})
973
	fire.LightEmission = 1
974
	fire.Speed = NumberRange.new(5,5)
975
	fire.VelocitySpread=180
976
        fire.LockedToPart = true
977
	fire.Acceleration = Vector3.new(0, 2, 0)
978
	fire.Rate=100
979
	fire.Lifetime=NumberRange.new(5,5)
980
	fire.Texture = "rbxasset://textures/particles/smoke_main.dds"
981
local handd = Instance.new('Part', char) handd.Size = Vector3.new(0, 0, 0) handd.Transparency = 1 handd.CanCollide = false
982
local weldd = Instance.new('Weld', handd) weldd.Part0 = handd weldd.Part1 = rarm weldd.C0 = CFrame.new(0, 8.8, 0)
983
ns = NumberSequenceKeypoint.new
984
	local hat_testt = handd
985
	firee = Instance.new('ParticleEmitter', hat_testt)
986
	firee.Color = ColorSequence.new(Color3.new(255, 0, 0,Color3.new(255, 0, 0)))
987
	firee.Size = NumberSequence.new({ns(0, 10), ns(1, 0)})
988
	firee.Transparency = NumberSequence.new({ns(0, 0), ns(1,1)})
989
	firee.LightEmission = 1
990
	firee.Speed = NumberRange.new(5,5)
991
	firee.VelocitySpread=180
992
        firee.LockedToPart=true
993
	firee.Acceleration = Vector3.new(0, 2, 0)
994
	firee.Rate=100
995
	firee.Lifetime=NumberRange.new(5,5)
996
	firee.Texture = "rbxasset://textures/particles/smoke_main.dds"
997
----------------------------------------------------
998
----------------------------------------------------
999
sidz = {"231917888", "231917845", "231917806"}
1000
ptz = {0.65, 0.7, 0.75, 0.8, 0.95, 1}
1001
mod3 = Instance.new("Model", char)
1002
mouse.KeyDown:connect(function(key)
1003
  
1004
  if key == "h" and Debounces.CanAttack == true then
1005
    Debounces.CanAttack = false
1006
    Debounces.on = true
1007
    Debounces.NoIdl = true
1008
    for i = 1, 20 do
1009
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(-4,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(10)), 0.2)
1010
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(4,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.2)
1011
      hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 16, -.2) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.3)
1012
      torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.3)
1013
      lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-6, -12, -3) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.3)
1014
      rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(6, -18, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(0)), 0.3)
1015
      if Debounces.on == false then
1016
        break
1017
      end
1018
      fat.Event:wait()
1019
    end
1020
    do
1021
      z = Instance.new("Sound", char)
1022
      z.SoundId = "rbxassetid://" .. sidz[math.random(1, #sidz)]
1023
      z.Pitch = ptz[math.random(1, #ptz)]
1024
      z.Volume = 10
1025
      z1 = Instance.new("Sound", char)
1026
      z1.SoundId = z.SoundId
1027
      z1.Pitch = z.Pitch
1028
      z1.Volume = 1
1029
      z:Play()
1030
      z1:Play()
1031
      part = Instance.new("Part", mod3)
1032
      part.Anchored = true
1033
      part.CanCollide = false
1034
      part.FormFactor = "Custom"
1035
      part.Size = Vector3.new(0.2, 0.2, 0.2)
1036
      part.CFrame = root.CFrame * CFrame.new(-6, -22, -2.6) * CFrame.Angles(math.rad(90), 0, 0)
1037
      part.Transparency = 0.7
1038
      part.BrickColor = BrickColor.new("Really red")
1039
      mesh = Instance.new("SpecialMesh", part)
1040
      mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
1041
      mesh.Scale = Vector3.new(70, 70, 25)
1042
      part2 = part:clone()
1043
      part2.Parent = mod3
1044
      part2.BrickColor = BrickColor.new("Really red")
1045
      mesh2 = mesh:clone()
1046
      mesh2.Parent = part2
1047
      mesh2.Scale = Vector3.new(60, 60, 15)
1048
      part4 = part:clone()
1049
      part4.Parent = mod3
1050
      part4.BrickColor = BrickColor.new("Really red")
1051
      mesh4 = mesh:clone()
1052
      mesh4.Parent = part4
1053
      mesh4.Scale = Vector3.new(300, 300, 50)
1054
      part5 = part:clone()
1055
      part5.Parent = mod3
1056
      part5.BrickColor = BrickColor.new("Really red")
1057
      mesh5 = mesh:clone()
1058
      mesh5.Parent = part5
1059
      mesh5.Scale = Vector3.new(130, 130, 15)
1060
      part3 = part:clone()
1061
      part3.Parent = mod3
1062
      part3.TopSurface = 0
1063
      part3.BottomSurface = 0
1064
      part3.CFrame = root.CFrame * CFrame.new(-6, -22, -2.6)
1065
      mesh3 = Instance.new("SpecialMesh", part3)
1066
      mesh3.MeshType = 3
1067
      mesh3.Scale = Vector3.new(45, 45, 45)
1068
      for i,v in pairs(FindNearestTorso(torso.CFrame.p, 268)) do
1069
        if v:FindFirstChild("Humanoid") then
1070
          v.Humanoid:TakeDamage(math.random(20, 60))
1071
          v.Humanoid.PlatformStand = true
1072
          v.Torso.Velocity = Vector3.new(math.random(-100, 100), 100, math.random(-100, -100))
1073
        end
1074
      end
1075
      coroutine.resume(coroutine.create(function()
1076
    
1077
    for i = 1, 30 do
1078
      fat.Event:wait()
1079
      part.CFrame = part.CFrame
1080
      part.Transparency = i / 20
1081
      mesh.Scale = mesh.Scale + Vector3.new(8.8, 8.8, 8.8)
1082
      part2.CFrame = part2.CFrame
1083
      part2.Transparency = i / 30
1084
      mesh2.Scale = mesh2.Scale + Vector3.new(7, 7, 7)
1085
      part3.CFrame = part3.CFrame
1086
      part3.Transparency = i / 10
1087
      mesh3.Scale = mesh3.Scale + Vector3.new(10, 10, 10)
1088
      part4.CFrame = part4.CFrame
1089
      part4.Transparency = i / 25
1090
      mesh4.Scale = mesh4.Scale - Vector3.new(10, 10, -5)
1091
      part5.CFrame = part5.CFrame
1092
      part5.Transparency = i / 30
1093
      mesh5.Scale = mesh5.Scale + Vector3.new(30, 30, 0)
1094
    end
1095
  end
1096
))
1097
      for i = 1, 20 do
1098
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(-4,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.2)
1099
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(4,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.2)
1100
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 16, -.2) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.3)
1101
        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -.1) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.3)
1102
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-6, -18, -3) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.3)
1103
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(6, -18, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(0)), 0.3)
1104
1105
        if Debounces.on == false then
1106
          break
1107
        end
1108
        fat.Event:wait()
1109
      end
1110
      do
1111
        if Debounces.CanAttack == false then
1112
          Debounces.CanAttack = true
1113
          Debounces.on = false
1114
          Debounces.NoIdl = false
1115
          larm.BrickColor = BrickColor.new("Really black")
1116
          rarm.BrickColor = BrickColor.new("Really black")
1117
        end
1118
      end
1119
    end
1120
  end
1121
end
1122
)
1123
mouse.KeyDown:connect(function(key)
1124
    if string.byte(key) == 52 then
1125
        char.Humanoid.WalkSpeed = 21
1126
    end
1127
end)
1128
mouse.KeyUp:connect(function(key)
1129
    if string.byte(key) == 52 then
1130
        char.Humanoid.WalkSpeed = 5
1131
    end
1132
end)
1133
----------------------------------------------------
1134
mouse.KeyDown:connect(function(key)
1135
	if key == "y" then
1136
		if Debounces.CanAttack == true then
1137
            Debounces.CanAttack = false
1138
            Debounces.on = true
1139
            Debounces.NoIdl = true
1140
				for i = 1, 15 do
1141
					rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(-4,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(30)), 0.2)
1142
					larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-18,-10,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-87)), 0.6)
1143
					hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,16,0)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.2)
1144
					torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.4)
1145
					lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-6, -18, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2)
1146
					rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(6, -13, -3) * CFrame.Angles(0, 0, math.rad(10)), 0.2)
1147
                    if Debounces.on == false then break end
1148
                    rs:wait(2.7)
1149
                end
1150
				x = Instance.new("Sound",char)
1151
				x.SoundId = "rbxassetid://228343271"
1152
				x.Pitch = .5
1153
				x.Volume = 10
1154
				wait(.1)
1155
				x:Play()
1156
				Debounces.on = false
1157
				Debounces.Here = false
1158
				shot = shot + 1
1159
local rng = Instance.new("Part", larm)
1160
rng.Anchored = true
1161
rng.BrickColor = BrickColor.new("Really red")
1162
rng.CanCollide = false
1163
rng.FormFactor = 3
1164
rng.Name = "Ring"
1165
rng.Size = Vector3.new(1, 1, 1)
1166
rng.Transparency = 0.35
1167
rng.TopSurface = 0
1168
rng.BottomSurface = 0
1169
rng2 = rng:clone()
1170
rng3 = rng2:clone()
1171
rng4 = rng2:clone()
1172
local rngm = Instance.new("SpecialMesh", rng)
1173
rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
1174
rngm.Scale = Vector3.new(10, 10, 1)
1175
rngm2 = rngm:clone()
1176
rngm2.Scale = Vector3.new(5, 5, 3)
1177
rngm3=rngm2:clone()
1178
rngm3.Parent = rng3
1179
rngm3.Scale = Vector3.new(8, 8, 1)
1180
rngm4 = rngm2:clone()
1181
rngm4.Parent = rng4
1182
rngm4.Scale = Vector3.new(6, 6, 1)
1183
local bem = Instance.new("Part", larm)
1184
bem.Anchored = true
1185
bem.BrickColor = BrickColor.new("Really black")
1186
bem.CanCollide = false
1187
bem.FormFactor = 3
1188
bem.Name = "Beam" .. shot
1189
bem.Size = Vector3.new(1, 1, 1)
1190
bem.Transparency = 0.35
1191
bem.TopSurface = 0
1192
bem.BottomSurface = 0
1193
local bemm = Instance.new("SpecialMesh", bem)
1194
bemm.MeshType = 4
1195
bemm.Scale = Vector3.new(1, 10, 10)
1196
local out = Instance.new("Part", larm)
1197
out.Anchored = true
1198
out.BrickColor = BrickColor.new("Really black")
1199
out.CanCollide = false
1200
out.FormFactor = 3
1201
out.Name = "Out"
1202
out.Size = Vector3.new(4, 4, 4)
1203
out.Transparency = 0.35
1204
out.TopSurface = 0
1205
out.BottomSurface = 0
1206
local outm = Instance.new("SpecialMesh", out)
1207
outm.MeshId = "http://www.roblox.com/asset/?id=1033714"
1208
outm.Scale = Vector3.new(60, 4, 60)
1209
local bnd = Instance.new("Part", larm)
1210
bnd.Anchored = true
1211
bnd.BrickColor = BrickColor.new("Really red")
1212
bnd.CanCollide = false
1213
bnd.FormFactor = 3
1214
bnd.Name = "Bend"
1215
bnd.Size = Vector3.new(1, 1, 1)
1216
bnd.Transparency = 1
1217
bnd.TopSurface = 0
1218
bnd.BottomSurface = 0
1219
local bndm = Instance.new("SpecialMesh", bnd)
1220
bndm.MeshType = 3
1221
bndm.Scale = Vector3.new(8, 8, 8)
1222
out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0)
1223
bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90))
1224
bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0)
1225
rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0)
1226
rng3.CFrame = rng.CFrame * CFrame.new(0, -.5, 0)
1227
rng4.CFrame = rng.CFrame * CFrame.new(0, -1, 0)
1228
Debounces.Shewt = true
1229
coroutine.wrap(function()
1230
for i = 1, 20, 0.2 do
1231
rngm.Scale = Vector3.new(10 + i*10, 10 + i*10, 1)
1232
rngm3.Scale = Vector3.new(8 + i*12, 8 + i*12, 1)
1233
rngm4.Scale = Vector3.new(6 + i*13, 6 + i*13, 1)
1234
rng.Transparency = i/20
1235
rng3.Transparency = 1/24
1236
rng4.Transparency = i/26
1237
wait()
1238
end
1239
wait()
1240
rng:Destroy()
1241
end)()
1242
if Debounces.Shewt == true then
1243
      for i,v in pairs(FindNearestTorso(bem.CFrame.p, 50)) do
1244
        if v:FindFirstChild("Humanoid") then
1245
          v.Humanoid:TakeDamage(math.random(1, 5))
1246
        end
1247
      end
1248
larm:WaitForChild("Beam" .. shot).Touched:connect(function(ht)
1249
hit = ht.Parent
1250
if hit:IsA("Model") and hit:findFirstChild("Humanoid") then
1251
if HasntTouched(hit.Name) == true and deb == false then
1252
deb = true
1253
coroutine.wrap(function()
1254
hit:FindFirstChild("Humanoid").PlatformStand = true
1255
hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180
1256
hit:FindFirstChild("Humanoid"):TakeDamage(math.random(24,73))
1257
end)()
1258
table.insert(Touche, hit.Name)
1259
deb = false
1260
end
1261
elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then
1262
if HasntTouched(hit.Parent.Name) == true and deb == false then
1263
deb = true
1264
coroutine.wrap(function()
1265
hit.Parent:FindFirstChild("Humanoid").PlatformStand = true
1266
hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180
1267
wait(1)
1268
hit.Parent:FindFirstChild("Humanoid").PlatformStand = false
1269
end)()
1270
table.insert(Touche, hit.Parent.Name)
1271
deb = false
1272
for i, v in pairs(Touche) do
1273
print(v)
1274
end
1275
end
1276
end
1277
end)
1278
end
1279
for i = 0, 260, 8 do
1280
bem.Size = Vector3.new(i, 10, 10)
1281
bem.Transparency = i/270
1282
out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0)
1283
outm.Scale = outm.Scale - Vector3.new(0.045, 0, 0.045)
1284
out.Transparency = i/280
1285
bem.CFrame = larm.CFrame * CFrame.new(0, -4.2 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90))
1286
bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 1.2)
1287
bnd.Size = Vector3.new(1,1,1)
1288
bndm.Scale = Vector3.new(8,8,8)
1289
if i % 10 == 0 then
1290
local newRng = rng2:Clone()
1291
newRng.Parent = larm
1292
newRng.CFrame = larm.CFrame * CFrame.new(0, -4.2-i, 0) * CFrame.Angles(math.rad(90), 0, 0)
1293
local newRngm = rngm2:clone()
1294
newRngm.Parent=newRng
1295
coroutine.wrap(function()
1296
for i = 1, 30, 0.2 do
1297
newRngm.Scale = Vector3.new(8 + i*16, 8 + i*16, 3)
1298
newRng.Transparency = i/30
1299
wait()
1300
end
1301
wait()
1302
newRng:Destroy()
1303
end)()
1304
end
1305
wait()
1306
end
1307
wait()
1308
Debounces.Shewt = false
1309
bem:Destroy()
1310
out:Destroy()
1311
bnd:Destroy()
1312
Debounces.Ready = false
1313
for i, v in pairs(Touche) do
1314
table.remove(Touche, i)
1315
end
1316
wait()
1317
table.insert(Touche, char.Name)
1318
Debounces.NoIdl = false
1319
if Debounces.CanAttack == false then
1320
Debounces.CanAttack = true
1321
end
1322
end
1323
end
1324
end)
1325
----------------------------------------------------
1326
local animpose = "Idle"
1327
local lastanimpose = "Idle"
1328
local sine = 0
1329
local change = 1
1330
local val = 0
1331
local ffing = false
1332
----------------------------------------------------
1333
--[[x = Instance.new("Sound", char)
1334
x.SoundId = "http://www.roblox.com/asset/?id=187922823"
1335
x.Looped = true
1336
x.Volume = 1
1337
x.Pitch = 1
1338
local footsteps = false]]--
1339
-------------------------------
1340
game:GetService("RunService").RenderStepped:connect(function()
1341
--[[if char.Humanoid.Jump == true then
1342
jump = true
1343
else
1344
jump = false
1345
end]]
1346
char.Humanoid.FreeFalling:connect(function(f)
1347
if f then
1348
ffing = true
1349
else
1350
ffing = false
1351
end
1352
end)
1353
sine = sine + change
1354
if jumpn == true then
1355
animpose = "Jumping"
1356
elseif ffing == true then
1357
animpose = "Freefalling"
1358
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
1359
animpose = "Idle"
1360
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
1361
animpose = "Walking"
1362
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
1363
animpose = "Running"
1364
end
1365
if animpose ~= lastanimpose then
1366
sine = 0
1367
if Debounces.NoIdl == false then
1368
if stanceToggle == "Normal" then
1369
for i = 1, 2 do
1370
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,-2.2,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40)), 0.2)
1371
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)
1372
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,6.8,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.2)
1373
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2)
1374
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0, -1.2, -0.5) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2)
1375
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0, -1.2, -0.5) * CFrame.Angles(math.rad(0), math.rad(-15), math.rad(20)), 0.2)
1376
end
1377
elseif stanceToggle == "Floating" then
1378
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)
1379
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)
1380
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,6.8,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2)
1381
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)
1382
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4)
1383
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4)
1384
wait()
1385
end
1386
else
1387
end
1388
end
1389
lastanimpose = animpose
1390
if Debounces.NoIdl == false then
1391
if animpose == "Idle" then
1392
if stanceToggle == "Normal" then
1393
change = 0.5
1394
--[[
1395
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(-3,0,0)*CFrame.Angles(math.rad(88+2*math.cos(sine/14)),math.rad(0),math.rad(0)), 0.2)
1396
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,0+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(50),math.rad(-30),math.rad(-40-2*math.cos(sine/14))), 0.2)
1397
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,15,0)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(40),0), 0.2)
1398
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(-40), 0), 0.2)
1399
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-6, -18, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
1400
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(6, -18, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
1401
--cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(-70)), 1)
1402
]]--
1403
1404
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(-4, -0.1 - 0.1 * math.sin(sine / 10), 0 - 0.01 * math.sin(sine / 10)) * CFrame.Angles(math.rad(-3 + 3 * math.sin(sine / 10)), math.rad(-3 - 2 * math.cos(sine / 10)), math.rad(13 + 3 * math.cos(sine / 10))), 0.4)
1405
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(4, -0.1 - 0.1 * math.sin(sine / 10), 0 - 0.01 * math.sin(sine / 10)) * CFrame.Angles(math.rad(-4 - 3 * math.sin(sine / 10)), math.rad(3 + 2 * math.cos(sine / 10)), math.rad(-13 - 3 * math.cos(sine / 10))), 0.4)
1406
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 16, -0.2) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
1407
hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0.1 - 0.05 * math.cos(sine / 10)) * CFrame.Angles(math.rad(14 - 5 * math.cos(sine / 10)), math.rad(20), 0), 0.4)
1408
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 15 - 0.16 * math.cos(sine / 10), 0) * CFrame.Angles(0, math.rad(20), math.rad(0)), 0.05)
1409
torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(10 + 3 * math.cos(sine / 10)), math.rad(0), math.rad(0)), 0.05)
1410
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-6, -18 - 0.05 * math.sin(sine / 10), 0) * CFrame.Angles(math.rad(-12 + 5 * math.sin(sine / 10)), math.rad(20 + 6 * math.sin(sine / 10)), math.rad(-12 - 2 * math.sin(sine / 10))), 0.4)
1411
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(6, -12 - 0.1 * math.sin(sine / 10), -3) * CFrame.Angles(math.rad(-9 + 5 * math.sin(sine / 10)), math.rad(-9 - 6 * math.sin(sine / 10)), math.rad(4 + 3 * math.sin(sine / 10))), 0.4)
1412
elseif stanceToggle == "Melee" then
1413
change = 0.5
1414
--[[
1415
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)
1416
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)
1417
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,6.8,-.2)*CFrame.Angles(math.rad(-20+1*math.cos(sine/14)),math.rad(0),0), 0.2)
1418
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
1419
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
1420
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
1421
]]--
1422
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.57 - 0.1 * math.sin(sine / 10), 0 - 0.05 * math.sin(sine / 10)) * CFrame.Angles(math.rad(-3 + 2 * math.sin(sine / 10)), math.rad(-15 - 10 * math.cos(sine / 10)), math.rad(13 + 6 * math.cos(sine / 10))), 0.4)
1423
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.57 - 0.1 * math.sin(sine / 10), 0 - 0.05 * math.sin(sine / 10)) * CFrame.Angles(math.rad(-4 - 2 * math.sin(sine / 10)), math.rad(15 + 10 * math.cos(sine / 10)), math.rad(-13 - 6 * math.cos(sine / 10))), 0.4)
1424
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 6.8, -0.2) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
1425
hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0.1 - 0.05 * math.cos(sine / 10)) * CFrame.Angles(math.rad(14 - 5 * math.cos(sine / 10)), math.rad(20), 0), 0.4)
1426
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 6 - 0.16 * math.cos(sine / 10), 0) * CFrame.Angles(0, math.rad(20), math.rad(0)), 0.05)
1427
torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(10 + 3 * math.cos(sine / 10)), math.rad(0), math.rad(0)), 0.05)
1428
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.05 - 0.05 * math.sin(sine / 10), 0) * CFrame.Angles(math.rad(-12 + 5 * math.sin(sine / 10)), math.rad(20 + 6 * math.sin(sine / 10)), math.rad(-12 - 2 * math.sin(sine / 10))), 0.4)
1429
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, 3 - 0.1 * math.sin(sine / 10), -3) * CFrame.Angles(math.rad(-9 + 5 * math.sin(sine / 10)), math.rad(-9 - 6 * math.sin(sine / 10)), math.rad(4 + 3 * math.sin(sine / 10))), 0.4)
1430
elseif stanceToggle == "Floating" then
1431
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)
1432
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)
1433
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,6.8,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2)
1434
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)
1435
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4)
1436
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4)
1437
end
1438
elseif animpose == "Walking" then
1439
if stanceToggle == "Normal" then
1440
change = 1
1441
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,-2.2, 0)*CFrame.Angles(math.rad(-20), math.rad(-20),math.rad(40)), 0.2)
1442
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0, -math.sin(sine/8)/2.8)*CFrame.Angles(math.sin(sine/8)/4, -math.sin(sine/8)/2, math.rad(-10)), 0.2)
1443
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,6.8,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2)
1444
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)
1445
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)
1446
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)
1447
elseif stanceToggle == "Melee" then
1448
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0-.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)
1449
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0+.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)
1450
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,6.8,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2)
1451
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)
1452
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -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)
1453
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -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)
1454
elseif stanceToggle == "Floating" then
1455
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)
1456
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)
1457
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 6.8, -.2) * CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0), 0.4)
1458
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1, 0) * CFrame.Angles(math.rad(0-8*math.cos(sine/14)), 0, math.rad(-8)), 0.4)
1459
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1, 0) * CFrame.Angles(math.rad(1-9*math.cos(sine/13)), 0, math.rad(8)), 0.4)
1460
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)
1461
end
1462
elseif animpose == "Running" then
1463
if stanceToggle == "Normal" then
1464
change = 1
1465
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(-4,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(10+2*math.cos(sine/14))), 0.2)
1466
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(4,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10-2*math.cos(sine/14))), 0.2)
1467
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 16, .2) * CFrame.Angles(math.rad(20),math.rad(10),0), 0.4)
1468
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 15-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-40),math.rad(-10), math.rad(0)), 0.2)
1469
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-6, -12, -1.2) * CFrame.Angles(math.rad(-20), math.rad(10), math.rad(0)), 0.4)
1470
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(6, -18, 0) * CFrame.Angles(math.rad(-12), math.rad(10), math.rad(0)), 0.4)
1471
elseif stanceToggle == "Floating" then
1472
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)
1473
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)
1474
hed.Weld.C0 = CFrame.new(0,6.8,0)*CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0)
1475
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1, 0) * CFrame.Angles(math.rad(-10-12*math.cos(sine/16)), 0, math.rad(-8)), 0.4)
1476
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1, 0) * CFrame.Angles(math.rad(-10-12*math.cos(sine/16)), 0, math.rad(8)), 0.4)
1477
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)
1478
end
1479
end
1480
end
1481
end)
1482
mouse.KeyDown:connect(function(key)
1483
    if key == "l" then
1484
            if Debounces.CanJoke == true then
1485
                Debounces.CanJoke = false
1486
                z = Instance.new("Sound",char)
1487
                z.SoundId = "rbxassetid://415880409"
1488
                z.Pitch = 1
1489
                z.Volume = 5
1490
                wait()
1491
                z:Play()
1492
                wait(6)
1493
                z:Destroy()
1494
            if Debounces.CanJoke == false then
1495
                Debounces.CanJoke = true
1496
            end
1497
        end
1498
    end
1499
end)
1500
----------------------------------------------------
1501
mouse.KeyDown:connect(function(key)
1502
    if key == "j" then
1503
            if Debounces.CanJoke == true then
1504
                Debounces.CanJoke = false
1505
                z = Instance.new("Sound",char)
1506
                z.SoundId = "rbxassetid://291699665"
1507
                z.Pitch = .44
1508
                z.Volume = 1
1509
                wait()
1510
                z:Play()
1511
                wait(6)
1512
                z:Destroy()
1513
            if Debounces.CanJoke == false then
1514
                Debounces.CanJoke = true
1515
            end
1516
        end
1517
    end
1518
end)
1519
----------------------------------------------------
1520
mouse.KeyDown:connect(function(key)
1521
    if key == "k" then
1522
            if Debounces.CanJoke == true then
1523
                Debounces.CanJoke = false
1524
                z = Instance.new("Sound",char)
1525
                z.SoundId = "rbxassetid://135017578"
1526
                z.Pitch = .76
1527
                z.Volume = 1
1528
                wait()
1529
                z:Play()
1530
                wait(4)
1531
                z:Destroy()
1532
            if Debounces.CanJoke == false then
1533
                Debounces.CanJoke = true
1534
            end
1535
        end
1536
    end
1537
end)
1538
1539
1540
	local mult = 4
1541
	
1542
1543
	
1544
	
1545
	
1546
	
1547
	
1548
	Player=game:GetService('Players').LocalPlayer
1549
	Character=Player.Character
1550
	Mouse=Player:GetMouse()
1551
	m=Instance.new('Model',Character)
1552
1553
1554
	local function weldBetween(a, b)
1555
	    local weldd = Instance.new("ManualWeld")
1556
	    weldd.Part0 = a
1557
	    weldd.Part1 = b
1558
	    weldd.C0 = CFrame.new()
1559
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
1560
	    weldd.Parent = a
1561
	    return weldd
1562
	end
1563
	
1564
	it=Instance.new
1565
	
1566
	function nooutline(part)
1567
		part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
1568
	end
1569
	
1570
	function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
1571
		local fp=it("Part")
1572
		fp.formFactor=formfactor
1573
		fp.Parent=parent
1574
		fp.Reflectance=reflectance
1575
		fp.Transparency=transparency
1576
		fp.CanCollide=false
1577
		fp.Locked=true
1578
		fp.BrickColor=BrickColor.new(tostring(brickcolor))
1579
		fp.Name=name
1580
		fp.Size=size-- * mult
1581
		fp.Position=Character.Torso.Position
1582
		nooutline(fp)
1583
		fp.Material=material
1584
		fp:BreakJoints()
1585
		return fp
1586
	end
1587
	
1588
	function mesh(Mesh,part,meshtype,meshid,offset,scale)
1589
		local mesh=it(Mesh)
1590
		mesh.Parent=part
1591
		if Mesh=="SpecialMesh" then
1592
			mesh.MeshType=meshtype
1593
			mesh.MeshId=meshid
1594
		end
1595
		mesh.Offset=offset
1596
		mesh.Scale=scale
1597
		return mesh
1598
	end
1599
	
1600
	function weld(parent,part0,part1,c0,c1)
1601
		local weld=it("Weld")
1602
		weld.Parent=parent
1603
		weld.Part0=part0
1604
		weld.Part1=part1
1605
		weld.C0=c0
1606
		weld.C1=c1
1607
		return weld
1608
	end
1609
	
1610
	
1611
	maus.KeyDown:connect(function(kei)
1612
	if string.byte(kei)==48 and not otheranims then
1613
	runnin=true
1614
	end
1615
	if kei=='w' then fldb.w=true end
1616
	if kei=='a' then fldb.a=true end
1617
	if kei=='s' then fldb.s=true end
1618
	if kei=='d' then fldb.d=true end
1619
	end)
1620
	maus.KeyUp:connect(function(kei)
1621
	if string.byte(kei)==48 and not otheranims then
1622
	runnin=false
1623
	end
1624
	if kei=='w' then fldb.w=false end
1625
	if kei=='a' then fldb.a=false end
1626
	if kei=='s' then fldb.s=false end
1627
	if kei=='d' then fldb.d=false end
1628
	end)
1629
	
1630
	
1631
game:service'RunService'.RenderStepped:connect(function()
1632
if anim~=lastanim then
1633
runtime=0
1634
end
1635
lastanim=anim
1636
chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
1637
syne=syne+.95
1638
if not otheranims and not swimming then
1639
if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
1640
anim="Idling"
1641
elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < RunSpeed-10 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
1642
anim="Walking"
1643
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > RunSpeed-10 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
1644
anim="Sprinting"
1645
elseif torso.Velocity.y>5 and chr.Humanoid.Jump then
1646
anim='Jumping'
1647
elseif (torso.Velocity.y < -5) and chr.Humanoid.Jump then
1648
anim='Falling'
1649
end
1650
end
1651
1652
if anim ~= "Idling" then
1653
GShandleweld.C0=Lerp(GShandleweld.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),.1)
1654
end
1655
1656
if anim=="Idling" then
1657
idlesineinc=35
1658
GShandleweld.C0=Lerp(GShandleweld.C0,CFrame.new(0, -.5, .46)*CFrame.Angles(math.rad(75),math.rad(0),math.rad(0)),.1)
1659
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5 ,.525 +math.cos(syne/idlesineinc)/25 ,0)*CFrame.Angles(math.rad(76),math.rad(12),math.rad(20)),.1)
1660
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5 ,.525 +math.cos(syne/idlesineinc)/25 ,0 )*CFrame.Angles(0,0,math.rad(-3)),.1)
1661
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55 ,-1.9 -math.cos(syne/idlesineinc)/20 ,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(-2.5)),.1)
1662
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55 ,-1.9 -math.cos(syne/idlesineinc)/20 ,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(2.5)),.1)
1663
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0 ,1.5 +math.cos(syne/idlesineinc)/50 ,0)*CFrame.Angles(math.cos(syne/idlesineinc)/40,0,0),.1)
1664
1665
1666
1667
rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0 ,-.1 +math.cos(syne/idlesineinc)/20 ,0 )*CFrame.Angles(math.cos(syne/idlesineinc)/35+math.rad(0),math.rad(0),math.rad(0)),.1)
1668
end
1669
1670
if anim=="Walking" then
1671
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5 ,.525 +math.cos(syne/15 )/25 ,0 )*CFrame.Angles(math.cos(syne/6)/1.25,math.rad(5),-(math.cos(syne/6.75)/15)+math.rad(3)),.1)
1672
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5 ,.525 +math.cos(syne/15 )/25 ,0 )*CFrame.Angles(-(math.cos(syne/6)/1.25),0,-(math.cos(syne/6.75)/15)-math.rad(3)),.1)
1673
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55 ,-1.9 -math.cos(syne/6)/10,-(math.cos(syne/6)/1.125 ))*CFrame.Angles(math.cos(syne/6)/1.125,0,math.rad(-2.5)),.1)
1674
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55 ,-1.9 -math.cos(syne/6)/10,math.cos(syne/6)/1.125 )*CFrame.Angles(-(math.cos(syne/6)/1.125),0,math.rad(2.5)),.1)
1675
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0 ,1.5 +math.cos(syne/20 )/50 ,0 )*CFrame.Angles(-math.cos(syne/3)/20,0,0),.1)
1676
1677
1678
rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/3.375)/20,math.cos(syne/3)/5)*CFrame.Angles(math.cos(syne/3)/20+math.rad(-3.5),math.cos(syne/6)/10,-math.cos(syne/6)/30+math.sin(rutprt.RotVelocity.y/2)/7.5),.1)
1679
end
1680
1681
if anim=="Sprinting" then
1682
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5 ,.525 ,0 )*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-55),0,math.rad(12.5)),.1)
1683
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5 ,.525 ,0 )*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-55),0,math.rad(-12.5)),.1)
1684
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55 ,-1.6 -math.cos(syne/4)/4,-(math.cos(syne/4)*2 )-math.rad(10))*CFrame.Angles(math.cos(syne/4)*2+math.rad(10),0,math.rad(-2.5)),.1)
1685
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55 ,-1.6 -math.cos(syne/4)/4,math.cos(syne/4)*2 -math.rad(10))*CFrame.Angles(-(math.cos(syne/4)*2)+math.rad(10),0,math.rad(2.5)),.1)
1686
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0 ,1.55 +math.cos(syne/20 )/50 ,0 )*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(20),0,0),.1)
1687
1688
1689
rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.3+math.cos(syne/2.5)/15,math.cos(syne/2.5))*CFrame.Angles(math.cos(syne/2.5)/10+math.rad(-25),math.cos(syne/2.5)/10,math.cos(syne/4)/20+math.sin(rutprt.RotVelocity.y/2)/4),.1)
1690
end
1691
1692
if anim=="Jumping" then
1693
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5 ,.525 ,0 )*CFrame.Angles(math.rad(10),0,math.rad(50)),.1)
1694
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5 ,.525 ,0 )*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
1695
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55 ,-1.4 ,0 )*CFrame.Angles(math.rad(-17.5),0,math.rad(-2.5)),.1)
1696
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55 ,-1.4 ,0 )*CFrame.Angles(math.rad(-17.5),0,math.rad(2.5)),.1)
1697
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0 ,1.5 +math.cos(syne/20 )/50 ,0 )*CFrame.Angles(math.cos(syne/20)/40,0,0),.1)
1698
1699
1700
rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1 +math.cos(syne/20 )/20 ,0 )*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),.1)
1701
end
1702
1703
if anim=="Falling" then
1704
rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5 ,.525 ,0 )*CFrame.Angles(math.rad(10),0,math.rad(70)),.035)
1705
larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5 ,.525 ,0 )*CFrame.Angles(math.rad(10),0,math.rad(-70)),.035)
1706
lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55 ,-1.2 ,0 )*CFrame.Angles(math.rad(-14),0,math.rad(-2.5)),.035)
1707
rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55 ,-1.2 ,0 )*CFrame.Angles(math.rad(0),0,math.rad(2.5)),.035)
1708
hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0 ,1.5 ,-.3 )*CFrame.Angles(math.rad(-40),0,0),.035)
1709
1710
1711
rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0 ,-.1 +math.cos(syne/20 )/20 ,0 )*CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),.035)
1712
end
1713
1714
if runnin and not otheranims and not swimming then
1715
chr.Humanoid.WalkSpeed=RunSpeed
1716
elseif not runnin and not otheranims and not swimming then
1717
chr.Humanoid.WalkSpeed=WlkSpeed
1718
end
1719
end)