View difference between Paste ID: Xg1Nmx1n and FUVJqfGL
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
--i used stravants Beautifier so it might look a bit wonky
13
Meshes = {
14
	Blast = '20329976',
15
	Crown = '1323306',
16
	Ring = '3270017',
17
	Claw = '10681506',
18
	Crystal = '9756362',
19
	Coil = '9753878',
20
	Cloud = '1095708',
21
}
22
clangsounds = {
23
	'199149119',
24
	'199149109',
25
	'199149072',
26
	'199149025',
27
	'199148971'
28
}
29
hitsounds = {
30
	'199149137',
31
	'199149186',
32
	'199149221',
33
	'199149235',
34
	'199149269',
35
	'199149297'
36
}
37
blocksounds = {
38
	'199148933',
39
	'199148947'
40
}
41
armorsounds = {
42
	'199149321',
43
	'199149338',
44
	'199149367',
45
	'199149409',
46
	'199149452'
47
}
48
woosh = {
49
	Heavy1 = '320557353',
50
	Heavy2 = '320557382',
51
	Heavy3 = '320557453',
52
	Heavy4 = '199144226',
53
	Heavy5 = '203691447',
54
	Heavy6 = '203691467',
55
	Heavy7 = '203691492',
56
	Light1 = '320557413',
57
	Light2 = '320557487',
58
	Light3 = '199145095',
59
	Light4 = '199145146',
60
	Light5 = '199145887',
61
	Light6 = '199145913',
62
	Light7 = '199145841',
63
	Medium1 = '320557518',
64
	Medium2 = '320557537',
65
	Medium3 = '320557563',
66
	Medium4 = '199145204'
67
}
68
music = {--i like music a lot
69
	Breaking = '179281636',
70
	FinalReckoning = '357375770',
71
	NotDeadYet = '346175829',
72
	Intense = '151514610',
73
	JumpP1 = '160536628',
74
	JumpP2 = '60536666',
75
	SonsOfWar = '158929777',
76
	WrathOfSea = '165520893',
77
	ProtecTorsofEarth = '160542922',
78
	SkyTitans = '179282324',
79
	ArchAngel = '144043274',
80
	Anticipation = '168614529',
81
	TheMartyred = '186849544',
82
	AwakeP1 = '335631255',
83
	AwakeP2 = '335631297',
84
	ReadyAimFireP1 = '342455387',
85
	ReadyAimFireP2 = '342455399',
86
	DarkLordP1 = '209567483',
87
	DarkLordP2 = '209567529',
88
	BloodDrainP1 = '162914123',
89
	BloodDrainP2 = '162914203',
90
	DanceOfSwords = '320473062',
91
	Opal = '286415112',
92
	Calamity = '190454307',
93
	Hypnotica = '155968128',
94
	Nemisis = '160453802',
95
	Breathe = '276963903',
96
	GateToTheRift = '270655227',
97
	InfernalBeserking = '244143404',
98
	Trust = '246184492',
99
	AwakeningTheProject = '245121821',
100
	BloodPain = '242545577',
101
	Chaos = '247241693',
102
	NightmareFictionHighStake = '248062278',
103
	TheWhiteWeapon = '247236446',
104
	Gale = '256851659',
105
	ImperialCode = '256848383',
106
	Blitzkrieg = '306431437',
107
	RhapsodyRage = '348690251',
108
	TheGodFist = '348541501',
109
	BattleForSoul = '321185592',
110
	TheDarkColossus = '305976780',
111
	EmpireOfAngels = '302580452',
112
	Kronos = '302205297',
113
	Exorcist = '299796054',
114
	CrimsonFlames = '297799220',
115
	UltimatePower = '295753229',
116
	DrivingInTheDark = '295753229',
117
	AscendToPower = '293860654',
118
	GodOfTheSun = '293612495',
119
	DarkRider = '293861765',
120
	Vengeance = '293375555',
121
	SoundOfWar = '293376196',
122
	HellsCrusaders = '293012202',
123
	Legend = '293011823',
124
	RisingSouls = '290524959'
125
}
126
misc = {
127
	GroundSlam = '199145477',
128
	LaserSlash = '199145497',
129
	RailGunFire = '199145534',
130
	Charge1 = '199145659',
131
	Charge2 = '169380469',
132
	Charge3 = '169380479',
133
	EmptyGun = '203691822',
134
	GunShoot = '203691837',
135
	Stomp1 = '200632875',
136
	Stomp2 = '200632561',
137
	TelsaCannonCharge = '169445572',
138
	TelsaCannonShoot = '169445602',
139
	AncientHymm = '245313442'
140
}
141
wait(1 / 60)
142
local Player = game.Players.localPlayer
143
local Character = Player.Character
144
local Humanoid = Character.Humanoid
145
local mouse = Player:GetMouse()
146
local m = Instance.new('Model', Character)
147
m.Name = "WeaponModel"
148
local LeftArm = Character["Left Arm"]
149
local RightArm = Character["Right Arm"]
150
local LeftLeg = Character["Left Leg"]
151
local RightLeg = Character["Right Leg"]
152
local Head = Character.Head
153
local Torso = Character.Torso
154
local cam = game.Workspace.CurrentCamera
155
local RootPart = Character.HumanoidRootPart
156
local RootJoint = RootPart.RootJoint
157
--cam.CameraSubject = Head
158
local equipped = false
159
local attack = false
160
local Anim = 'Idle'
161
local idle = 0
162
local sprint = false
163
local battlestance = false
164
local attacktype = 1
165
local state = 'none'
166
local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
167
local velocity = RootPart.Velocity.y
168
local sine = 0
169
local change = 1
170
local on = false
171
local grabbed = false
172
local skill1 = false
173
local skill2 = false
174
local skill3 = false
175
local skill4 = false
176
local cooldown1 = 0
177
local cooldown2 = 0
178
local cooldown3 = 0
179
local cooldown4 = 0
180
local co1 = 10--how long it will take for skill to cooldown
181
local co2 = 15
182
local co3 = 15
183
local co4 = 25
184
local inputserv = game:GetService('UserInputService')
185
local typing = false
186
local crit = false
187
local critchance = 2--critical chance percentage
188
local critdamageaddmin = 3--minimum amount of critical damage being added to regular damage
189
local critdamageaddmax = 7--maximum amount
190
local maxstamina = 100--max amount of stamina
191
local stamina = 0--stamina you start out with
192
local skill1stam = 10--how much stamina is needed for a skill
193
local skill2stam = 10
194
local skill3stam = 20
195
local skill4stam = 30
196
local recovermana = 3--how much mana per second
197
local defensevalue = 1--how much defense this character has
198
local speedvalue = 1--how much speed this character has
199
--speed is 16*speedvalue
200
local mindamage = 5--self explanatory
201
local maxdamage = 7--self explanatory
202
local damagevalue = 1--how much damage this character has
203
--damage is math.random(mindamage,maxdamage)*damagevalue
204
--damage(hit, mindamage, maxdamage, 1, 1, RootPart) 
205
--asd
206
local cn = CFrame.new-- make things easier :)
207
local mr = math.rad
208
local angles = CFrame.Angles
209
local ud = UDim2.new
210
local c3 = Color3.new
211
local skillcolorscheme = c3(1, 1, 1)--color scheme for skills lol
212
--asd
213
local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
214
Humanoid.Animator:Destroy()
215
216
--Angles For RootJoint `~`
217
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
218
--Save Shoulders/Hips 
219
RSH, LSH = nil, nil 
220
RHS, LHS = nil, nil 
221
--Shoulders
222
RW = Instance.new("Weld") 
223
LW = Instance.new("Weld")
224
--Hips
225
RH = Instance.new("Weld") 
226
LH = Instance.new("Weld")
227
--
228
Player = Player 
229
ch = Character
230
LHS = Torso["Left Hip"]
231
RHS = Torso["Right Hip"]
232
RSH = ch.Torso["Right Shoulder"] 
233
LSH = ch.Torso["Left Shoulder"] 
234
-- 
235
RSH.Parent = nil 
236
LSH.Parent = nil 
237
--
238
LHS.Parent = nil
239
RHS.Parent = nil
240
-- 
241
RW.Name = "RW"
242
RW.Part0 = ch.Torso 
243
RW.C0 = cn(1.5, 0.5, 0)
244
RW.C1 = cn(0, 0.5, 0) 
245
RW.Part1 = ch["Right Arm"] 
246
RW.Parent = ch.Torso 
247
-- 
248
LW.Name = "LW"
249
LW.Part0 = ch.Torso 
250
LW.C0 = cn(-1.5, 0.5, 0)
251
LW.C1 = cn(0, 0.5, 0) 
252
LW.Part1 = ch["Left Arm"] 
253
LW.Parent = ch.Torso 
254
--
255
LH.Name = "LH"
256
LH.Part0 = ch.Torso 
257
LH.C0 = cn(-0.5, -2, 0) 
258
LH.Part1 = ch["Left Leg"] 
259
LH.Parent = ch.Torso 
260
--
261
RH.Name = "RH"
262
RH.Part0 = ch.Torso 
263
RH.C0 = cn(0.5, -2, 0)
264
RH.Part1 = ch["Right Leg"] 
265
RH.Parent = ch.Torso 
266
267
local Flying = false
268
269
game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function(jump)
270
	if Flying == true then
271
        if jump == "Jump" then
272
                Humanoid.Jump = false
273
        end
274
   end
275
end)
276
277
Humanoid.CameraOffset = Vector3.new(0, -2, 0)
278
279
Torso.Transparency = 1
280
Head.Transparency = 1
281
LeftLeg.Transparency = 1
282
RightLeg.Transparency = 1
283
LeftArm.Transparency = 1
284
RightArm.Transparency = 1
285
286
for i,v in pairs (Character:GetChildren()) do
287
if v.ClassName == "Hat"
288
then v:Destroy()
289
end
290
end
291
292
for i,v in pairs (Character.Head:GetChildren()) do
293
if v.ClassName == "Decal"
294
then v:Destroy()
295
end
296
end
297
298
Character.Animate:Destroy()
299
300
local scrn = Instance.new('ScreenGui')
301
scrn.Parent = nil
302
303
function makeframe(par, trans, pos, size, color)
304
	local frame = Instance.new('Frame', par)
305
	frame.BackgroundTransparency = trans
306
	frame.BorderSizePixel = 0
307
	frame.Position = pos
308
	frame.Size = size
309
	frame.BackgroundColor3 = color
310
	return frame
311
end
312
function makelabel(par, text)
313
	local label = Instance.new('TextLabel', par)
314
	label.BackgroundTransparency = 1
315
	label.Size = ud(1, 0, 1, 0)
316
	label.Position = ud(0, 0, 0, 0)
317
	label.TextColor3 = c3(255, 255, 255)
318
	label.TextStrokeTransparency = 0
319
	label.FontSize = Enum.FontSize.Size32
320
	label.Font = Enum.Font.SourceSansBold
321
	label.BorderSizePixel = 0
322
	label.TextScaled = true
323
	label.Text = text
324
end
325
framesk1 = makeframe(scrn, .5, ud(.23, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme)
326
framesk2 = makeframe(scrn, .5, ud(.5, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme)
327
framesk3 = makeframe(scrn, .5, ud(.5, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme)
328
framesk4 = makeframe(scrn, .5, ud(.23, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme)
329
bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
330
bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
331
bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
332
bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
333
text1 = makelabel(framesk1, '[3] Skill3')
334
text2 = makelabel(framesk2, '[4] Skill4')
335
text3 = makelabel(framesk3, "[2] Skill2")
336
text4 = makelabel(framesk4, '[1] Skill1')
337
staminabar = makeframe(scrn, .5, ud(.23, 0, .82, 0), ud(.26, 0, .03, 0), c3(61 / 255, 171 / 255, 1))
338
staminacover = makeframe(staminabar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(61 / 255, 171 / 255, 1))
339
staminatext = makelabel(staminabar, 'Mana')
340
healthbar = makeframe(scrn, .5, ud(.5, 0, .82, 0), ud(.26, 0, .03, 0), c3(1, 1, 0))
341
healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 46 / 255, 49 / 255))
342
healthtext = makelabel(healthbar, 'Health')
343
344
local stats = Instance.new('Folder', Character)
345
stats.Name = 'Stats'
346
local block = Instance.new('BoolValue', stats)
347
block.Name = 'Block'
348
block.Value = false
349
local stun = Instance.new('BoolValue', stats)
350
stun.Name = 'Stun'
351
stun.Value = false
352
local defense = Instance.new('NumberValue', stats)
353
defense.Name = 'Defence'
354
defense.Value = defensevalue
355
local speed = Instance.new('NumberValue', stats)
356
speed.Name = 'Speed'
357
speed.Value = speedvalue
358
local damagea = Instance.new('NumberValue', stats)
359
damagea.Name = 'Damage'
360
damagea.Value = damagevalue
361
362
function atktype(s, e)
363
	coroutine.resume(coroutine.create(function()
364
		attacktype = e
365
		wait(1.5)
366
		attacktype = s
367
	end))
368
end
369
370
function turncrit()
371
	coroutine.resume(coroutine.create(function()
372
		print'CRITICAL!'
373
		crit = true
374
		wait(.25)
375
		crit = false
376
	end))
377
end
378
379
function subtractstamina(k)
380
	if stamina >= k then
381
		stamina = stamina - k
382
	end
383
end
384
385
function clerp(a, b, t)
386
	return a:lerp(b, t)
387
end
388
389
function randomizer(percent)
390
	local randomized = math.random(0, 100)
391
	if randomized <= percent then
392
		return true
393
	elseif randomized >= percent then
394
		return false
395
	end
396
end
397
398
local RbxUtility = LoadLibrary("RbxUtility")
399
local Create = RbxUtility.Create
400
401
function RemoveOutlines(part)
402
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
403
end
404
	
405
function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
406
	local Part = Create("Part"){
407
		formFactor = FormFactor,
408
		Parent = Parent,
409
		Reflectance = Reflectance,
410
		Transparency = Transparency,
411
		CanCollide = false,
412
		Locked = true,
413
		BrickColor = BrickColor.new(tostring(BColor)),
414
		Name = Name,
415
		Size = Size,
416
		Material = Material,
417
	}
418
	RemoveOutlines(Part)
419
	return Part
420
end
421
	
422
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
423
	local Msh = Create(Mesh){
424
		Parent = Part,
425
		Offset = OffSet,
426
		Scale = Scale,
427
	}
428
	if Mesh == "SpecialMesh" then
429
		Msh.MeshType = MeshType
430
		Msh.MeshId = MeshId
431
	end
432
	return Msh
433
end
434
	
435
function CreateWeld(Parent, Part0, Part1, C0, C1)
436
	local Weld = Create("Weld"){
437
		Parent = Parent,
438
		Part0 = Part0,
439
		Part1 = Part1,
440
		C0 = C0,
441
		C1 = C1,
442
	}
443
	return Weld
444
end
445
446
function rayCast(pos, dir, maxl, ignore)
447
	return game:service("Workspace"):FindPartOnRay(Ray.new(pos, dir.unit * (maxl or 999.999)), ignore) 
448
end 
449
--Effects
450
function makeeffect(par, size, pos1, trans, trans1, howmuch, delay1, id, type)
451
	local p = Instance.new('Part', par or workspace)
452
	p.CFrame = pos1
453
	p.Anchored = true
454-
	p.Material = 'SmoothPlastic'
454+
	p.Material = 'Concrete'
455
	p.CanCollide = false
456
	p.TopSurface = 0
457
	p.Size = Vector3.new(1, 1, 1)
458
	p.BottomSurface = 0
459
	p.Transparency = trans
460
	p.FormFactor = 'Custom'
461
	RemoveOutlines(p)
462
	local mesh = Instance.new('SpecialMesh', p)
463
	mesh.Scale = size
464
	if id ~= nil and type == nil then
465
		mesh.MeshId = 'rbxassetid://'..id
466
	elseif id == nil and type ~= nil then
467
		mesh.MeshType = type
468
	elseif id == nil and type == nil then
469
		mesh.MeshType = 'Brick'
470
	end
471
	coroutine.wrap(function()
472
		for i = 0, delay1, .1 do
473
			wait(1 / 60)
474
			p.CFrame = p.CFrame
475
			mesh.Scale = mesh.Scale + howmuch
476
			p.Transparency = p.Transparency + trans1
477
		end
478
		p:Destroy()
479
	end)()
480
	return p
481
end
482
function clangy(cframe)
483
	wait(1 / 60)
484
	local clang = {}
485
	local dis = 0
486
	local part = Instance.new('Part', nil)
487
	part.CFrame = cframe
488
	part.Anchored = true
489
	part.CanCollide = false
490
	part.BrickColor = BrickColor.new('New Yeller')
491
	part.FormFactor = 'Custom'
492
	part.Name = 'clanger'
493
	part.Size = Vector3.new(.2, .2, .2)
494
	part.TopSurface = 10
495
	part.BottomSurface = 10
496
	part.RightSurface = 10
497
	part.LeftSurface = 10
498
	part.BackSurface = 10
499
	part.FrontSurface = 10
500
	--part.Material='Neon'
501
	part:BreakJoints()
502
	local mesh = Instance.new('BlockMesh', part)
503
	coroutine.wrap(function()
504
		for i = 1, 7 do
505
			wait(1 / 60)
506
			dis = dis + .2
507
			local partc = part:clone()
508
			partc.Parent = workspace
509
			partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
510
			partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
511
			table.insert(clang, partc)
512
		end
513
		for i, v in pairs(clang) do
514
			coroutine.wrap(function()
515
				for i = 1, 10 do
516
					wait(.01)
517
					v.Transparency = v.Transparency + .1
518
				end
519
				v:destroy()
520
			end)()
521
		end
522
	end)()
523
end
524
--damage effects
525
function circle(color, pos1)
526
	local p = Instance.new('Part', m)
527
	p.BrickColor = BrickColor.new(color)
528
	p.CFrame = pos1
529
	p.Anchored = true
530
	p.Material = 'Plastic'
531
	p.CanCollide = false
532
	p.TopSurface = 0
533
	p.Size = Vector3.new(1, 1, 1)
534
	p.BottomSurface = 0
535
	p.Transparency = 0.35
536
	p.FormFactor = 'Custom'
537
	local mesh = Instance.new('CylinderMesh', p)
538
	mesh.Scale = Vector3.new(0, 0, 0)
539
	coroutine.wrap(function()
540
		for i = 0, 5, .1 do
541
			wait(1 / 60)
542
			p.CFrame = p.CFrame
543
			mesh.Scale = mesh.Scale + Vector3.new(.5, 0, .5)
544
			p.Transparency = p.Transparency + .025
545
		end
546
		p:Destroy()
547
	end)()
548
end
549
function firespaz1(color, pos1)
550
	local p = Instance.new('Part', m)
551
	p.BrickColor = BrickColor.new(color)
552
	p.CFrame = pos1
553
	p.Anchored = true
554
	p.Material = 'Plastic'
555
	p.CanCollide = false
556
	p.TopSurface = 0
557
	p.Size = Vector3.new(1, 1, 1)
558
	p.BottomSurface = 0
559
	p.Transparency = 0.5
560
	p.FormFactor = 'Custom'
561
	local mesh = Instance.new('BlockMesh', p)
562
	mesh.Scale = Vector3.new(1, 1, 1)
563
	coroutine.wrap(function()
564
		for i = 0, 15, .1 do
565
			wait(1 / 30)
566
			p.CFrame = p.CFrame * CFrame.new(0, .1, 0)
567
			mesh.Scale = mesh.Scale - Vector3.new(.1, .1, .1)
568
			p.Transparency = p.Transparency + .025
569
		end
570
		p:Destroy()
571
	end)()
572
end
573
574
function pickrandom(tablesa)
575
	local randomized = tablesa[math.random(1, #tablesa)]	
576
	return randomized
577
end
578
function sound(id, pitch, volume, par, last)
579
	local s = Instance.new('Sound', par or Torso)
580
	s.SoundId = 'rbxassetid://'..id
581
	s.Pitch = pitch or 1
582
	s.Volume = volume or 1
583
	wait()
584
	s:play()
585
	game.Debris:AddItem(s, last or 120)
586
end
587
function clangy(cframe)
588
	wait(1 / 60)
589
	local clang = {}
590
	local dis = 0
591
	local part = Instance.new('Part', nil)
592
	part.CFrame = cframe
593
	part.Anchored = true
594
	part.CanCollide = false
595
	part.BrickColor = BrickColor.new('New Yeller')
596
	part.FormFactor = 'Custom'
597
	part.Name = 'clanger'
598
	part.Size = Vector3.new(.2, .2, .2)
599
	part.TopSurface = 10
600
	part.BottomSurface = 10
601
	part.RightSurface = 10
602
	part.LeftSurface = 10
603
	part.BackSurface = 10
604
	part.FrontSurface = 10
605
	--part.Material='Neon'
606
	part:BreakJoints()
607
	local mesh = Instance.new('BlockMesh', part)
608
	coroutine.wrap(function()
609
		for i = 1, 7 do
610
			wait(1 / 60)
611
			dis = dis + .2
612
			local partc = part:clone()
613
			partc.Parent = workspace
614
			partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
615
			partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
616
			table.insert(clang, partc)
617
		end
618
		for i, v in pairs(clang) do
619
			coroutine.wrap(function()
620
				for i = 1, 10 do
621
					wait(.01)
622
					v.Transparency = v.Transparency + .1
623
				end
624
				v:destroy()
625
			end)()
626
		end
627
	end)()
628
end
629
--damage effects
630
--Effects
631
so = function(id, par, vol, pit) 
632
	coroutine.resume(coroutine.create(function()
633
		local sou = Instance.new("Sound", par or workspace)
634
		sou.Volume = vol
635
		sou.Pitch = pit or 1
636
		sou.SoundId = id
637
		wait() 
638
		sou:play() 
639
		game:GetService("Debris"):AddItem(sou, 6)
640
	end))
641
end
642
643
local function getclosest(obj, distance)
644
	local last, lastx = distance + 1
645
	for i, v in pairs(workspace:GetChildren()) do
646
		if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
647
			local t = v.Torso
648
			local dist = (t.Position - obj.Position).magnitude
649
			if dist <= distance then
650
				if dist < last then
651
					last = dist
652
					lastx = v
653
				end
654
			end
655
		end
656
	end
657
	return lastx
658
end
659
660
function makegui(cframe, text)
661
	local a = math.random(-10, 10) / 100
662
	local c = Instance.new("Part")
663
	c.Transparency = 1
664
	Instance.new("BodyGyro").Parent = c
665
	c.Parent = m
666
	c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0))
667
	local f = Instance.new("BodyPosition")
668
	f.P = 2000
669
	f.D = 100
670
	f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
671
	f.position = c.Position + Vector3.new(0, 3, 0)
672
	f.Parent = c
673
	game:GetService("Debris"):AddItem(c, .5 + 6)
674
	c.CanCollide = false
675
	m.Parent = workspace
676
	c.CanCollide = false
677
	local bg = Instance.new('BillboardGui', m)
678
	bg.Adornee = c
679
	bg.Size = UDim2.new(1, 0, 1, 0)
680
	bg.StudsOffset = Vector3.new(0, 0, 0)
681
	bg.AlwaysOnTop = false
682
	local tl = Instance.new('TextLabel', bg)
683
	tl.BackgroundTransparency = 1
684
	tl.Size = UDim2.new(1, 0, 1, 0)
685
	tl.Text = text
686
	tl.Font = 'SourceSansBold'
687
	tl.FontSize = 'Size42'
688
	if crit == true then
689
		tl.TextColor3 = Color3.new(180 / 255, 0, 0)
690
	else
691
		tl.TextColor3 = Color3.new(255, 180 / 255, 51 / 255)
692
	end
693
	tl.TextStrokeTransparency = 0
694
	tl.TextScaled = true
695
	tl.TextWrapped = true
696
	coroutine.wrap(function()
697
		wait(2)
698
		for i = 1, 10 do
699
			wait()
700
			tl.TextTransparency = tl.TextTransparency + .1
701
		end
702
	end)()
703
end
704
705
function tag(hum, Player)
706
	local creator = Instance.new('ObjectValue', hum)
707
	creator.Value = Player
708
	creator.Name = 'creator'
709
end
710
function untag(hum)
711
	if hum ~= nil then
712
		local tag = hum:findFirstChild("creator")
713
		if tag ~= nil then
714
			tag.Parent = nil
715
		end
716
	end
717
end
718
719
function tagPlayer(h)
720
	coroutine.wrap(function()
721
		tag(h, Player)
722
		wait(1)
723
		untag(h)
724
	end)()
725
end
726
function damage(hit, mind, maxd, knock, type, prop)
727
	--[[
728
		to apply it to a Player directly, make the first arg go to the Players Torso
729
		1 - normal type(damage and knockback)
730
		2 - drain type(damage no knockback)
731
		3 - lifesteal(absorbs hp) crit does not have an effect on how much life is absorbed
732
		4 - heal(heals target)
733
		5 - subtracts enemies defense
734
		6 - subtracts enemies speed
735
		7 -  
736
	]]
737
	if hit.Name:lower() == 'Hitbox' then
738
		local pos = CFrame.new(0, 1, -1)
739
		sound(pickrandom(clangsounds), math.random(100, 150) / 100, 1, Torso, 6)
740
		coroutine.wrap(function()
741
			for i = 1, 4 do
742
				clangy(Torso.CFrame * pos * CFrame.Angles(0, math.rad(math.random(0, 360)), 0))
743
			end
744
		end)()
745
	end
746
	if hit.Parent == nil then
747
		return
748
	end
749
	local h = hit.Parent:FindFirstChild("Humanoid")
750
	for i, v in pairs(hit.Parent:children()) do
751
		if v:IsA("Humanoid") then
752
			h = v
753
		end
754
	end
755
	if hit.Parent.Parent:FindFirstChild('Torso') ~= nil then
756
		h = hit.Parent.Parent:FindFirstChild('Humanoid')
757
	end
758
	if hit.Parent:IsA('Hat') then
759
		hit = hit.Parent.Parent:findFirstChild('Head')
760
	end
761
	local D = math.random(mind, maxd) * damagea.Value
762
	if h.Parent:FindFirstChild('Stats') then
763
		D = D / h.Parent:FindFirstChild('Stats').Defence.Value
764
	elseif not h.Parent:FindFirstChild('Stats') then
765
		D = D
766
	end
767
	if h then
768
		makegui(h.Parent.Head.CFrame, tostring(math.floor(D + .5)))
769
	end
770
	if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
771
		if type == 1 then
772
			tagPlayer(h)
773
			local asd = randomizer(critchance)
774
			if asd == true then
775
				turncrit()
776
			end
777
			if crit == false then
778
				h.Health = h.Health - D
779
			else
780
				h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
781
			end
782
			so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
783
			local vp = Instance.new('BodyVelocity')
784
			vp.P = 500
785
			vp.maxForce = Vector3.new(math.huge, 0, math.huge)
786
			vp.velocity = prop.CFrame.lookVector * knock + prop.Velocity / 1.05
787
			if knock > 0 then
788
				vp.Parent = hit.Parent.Torso
789
			end
790
			game:GetService("Debris"):AddItem(vp, .5)
791
		elseif type == 2 then
792
			so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
793
			local asd = randomizer(critchance)
794
			if asd == true then
795
				turncrit()
796
			end
797
			if crit == false then
798
				h.Health = h.Health - D
799
			else
800
				h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
801
			end
802
			tagPlayer(h)
803
		elseif type == 3 then
804
			tagPlayer(h)
805
			local asd = randomizer(critchance)
806
			if asd == true then
807
				turncrit()
808
			end
809
			if crit == false then
810
				h.Health = h.Health - D
811
			else
812
				h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
813
			end
814
			Character.Humanoid.Health = Character.Humanoid.Health + D / 2
815
			so("http://www.roblox.com/asset/?id=206083232", hit, 1, 1.5)
816
			for i = 1, 10 do
817
				firespaz1('Bright red', hit.CFrame * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)))
818
			end
819
		elseif type == 4 then
820
			h.Health = h.Health + D
821
			so("http://www.roblox.com/asset/?id=186883084", hit, 1, 1)
822
			circle('Dark green', h.Parent.Torso.CFrame * CFrame.new(0, -2.5, 0))
823
		end
824
	end
825
end
826
827
function subtrackstamina(k)
828
	if stamina >= k then
829
		stamina = stamina - k
830
	end
831
end
832
833-
Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(2.39999986, 1.20000005, 1.39999998))
833+
Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,0,"Magenta","Handle",Vector3.new(2.39999986, 1.20000005, 1.39999998))
834
Handleweld=CreateWeld(m,Torso,Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.200019836, 2.05684233, -1.52587891e-005, -3.33786011e-006, 5.10364771e-007, -1.00000072, 7.4505806e-007, 0.999990106, 5.23030758e-006, 0.999992847, 1.10268593e-006, -2.98023224e-006))
835
CreateMesh("SpecialMesh",Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
836-
LLeg1Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","LLeg1Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
836+
LLeg1Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,1,"Magenta","LLeg1Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
837
LLeg1Connectorweld=CreateWeld(m,Handle,LLeg1Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.271961212, 0.323261261, 0.554561615, 0.953878522, 0.237942964, 0.183013678, -0.270872086, 0.945040286, 0.183021933, -0.12940976, -0.224147677, 0.965908945))
838
CreateMesh("SpecialMesh",LLeg1Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
839-
LLeg2Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","LLeg2Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
839+
LLeg2Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,1,"Magenta","LLeg2Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
840
LLeg2Connectorweld=CreateWeld(m,Handle,LLeg2Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.286304474, 0.549964905, 0.383785248, 0.87001282, -0.368683487, -0.327339649, 0.475172013, 0.804078519, 0.357260257, 0.131499231, -0.466358542, 0.874748588))
841
CreateMesh("SpecialMesh",LLeg2Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
842-
NeckHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","NeckHandleConnector",Vector3.new(0.799999714, 0.800000012, 0.99999994))
842+
NeckHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,1,"Magenta","NeckHandleConnector",Vector3.new(0.799999714, 0.800000012, 0.99999994))
843
NeckHandleConnectorweld=CreateWeld(m,Handle,NeckHandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.800014496, 2.2649765e-006, -1.52587891e-005, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
844
CreateMesh("SpecialMesh",NeckHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
845-
RLeg2Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","RLeg2Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
845+
RLeg2Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,1,"Magenta","RLeg2Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
846
RLeg2Connectorweld=CreateWeld(m,Handle,RLeg2Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.284488678, 0.502339363, -0.511051178, 0.866028607, -0.433008194, 0.249994621, 0.482959986, 0.853833973, -0.194110557, -0.12941049, 0.288845479, 0.948575199))
847
CreateMesh("SpecialMesh",RLeg2Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
848-
RLeg1Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","RLeg1Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
848+
RLeg1Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,1,"Magenta","RLeg1Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024))
849
RLeg1Connectorweld=CreateWeld(m,Handle,RLeg1Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.434127808, 0.261667252, -0.51184082, 0.953878462, 0.277202159, 0.115192153, -0.270872086, 0.960207343, -0.0678096935, -0.129410967, 0.0334844999, 0.991011441))
850
CreateMesh("SpecialMesh",RLeg1Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
851-
TailHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","TailHandleConnector",Vector3.new(0.799999714, 0.800000012, 0.99999994))
851+
TailHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,1,"Magenta","TailHandleConnector",Vector3.new(0.799999714, 0.800000012, 0.99999994))
852
TailHandleConnectorweld=CreateWeld(m,Handle,TailHandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.800014496, -4.17232513e-006, -1.14440918e-005, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
853
CreateMesh("SpecialMesh",TailHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
854-
Wings=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wings",Vector3.new(1.38, 0.600000024, 0.400000006))
854+
Wings=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,0,"Bright orange","Wings",Vector3.new(1.38, 0.600000024, 0.400000006))
855
Wingsweld=CreateWeld(m,Handle,Wings,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00999832153, -1.35054588, -0.870742798, -3.57603994e-007, 1.84772534e-006, 0.999992847, 0.707109332, 0.707094491, -2.27373675e-013, -0.707105219, 0.707105219, 0))
856
CreateMesh("SpecialMesh",Wings,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=188700920 ",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.600000024, 0.928000093))
857-
HeadHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","HeadHandleConnector",Vector3.new(0.799999774, 0.800000012, 1.19999993))
857+
HeadHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,1,"Magenta","HeadHandleConnector",Vector3.new(0.799999774, 0.800000012, 1.19999993))
858
HeadHandleConnectorweld=CreateWeld(m, NeckHandleConnector, HeadHandleConnector, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.13883209, -1.22878647, -4.95910645e-005, 0.965921879, -0.258816749, -8.3394184e-007, 0.258814901, 0.965910494, 1.70232727e-006, 7.33734851e-009, -1.24428539e-008, 0.999992847))
859
CreateMesh("SpecialMesh",HeadHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
860-
HeadHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","HeadHandle",Vector3.new(0.799999774, 0.800000012, 1.19999993))
860+
HeadHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,1,"Magenta","HeadHandle",Vector3.new(0.799999774, 0.800000012, 1.19999993))
861
HeadHandleweld=CreateWeld(m,HeadHandleConnector,HeadHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(.5,.3,0))
862
CreateMesh("SpecialMesh",HeadHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
863-
BlinkPartL=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","BlinkPartL",Vector3.new(0.430000007, 0.349999994, 0.209999993))
863+
BlinkPartL=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,0,"Really black","BlinkPartL",Vector3.new(0.430000007, 0.349999994, 0.209999993))
864
BlinkPartLweld=CreateWeld(m,HeadHandle,BlinkPartL,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.627552032, -0.15424633, 0.675392151, 0.965920627, 3.52720974e-007, 0.258818448, -3.27823614e-007, 0.999994576, -4.27638327e-007, -0.258816987, 3.32397349e-007, 0.965925992))
865
CreateMesh("SpecialMesh",BlinkPartL,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
866-
BlinkPartR=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","BlinkPartR",Vector3.new(0.430000007, 0.349999994, 0.209999919))
866+
BlinkPartR=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,0,"Really black","BlinkPartR",Vector3.new(0.430000007, 0.349999994, 0.209999919))
867
BlinkPartRweld=CreateWeld(m,HeadHandle,BlinkPartR,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.668586731, 0.0254650116, 0.6536026, 0.963257611, 0.166627169, -0.210616693, 0.170450777, -0.985360563, 7.06354513e-007, -0.207533255, -0.035900455, -0.977568686))
868
CreateMesh("SpecialMesh",BlinkPartR,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
869-
Head=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Head",Vector3.new(1.59999979, 1, 1.19999993))
869+
Head=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,0,"Magenta","Head",Vector3.new(1.59999979, 1, 1.19999993))
870
Headweld=CreateWeld(m,HeadHandle,Head,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399993896, -0.100018501, -3.81469727e-006, 0.999994338, -7.45053441e-008, 0, 4.59620352e-013, 0.999994516, 5.40012479e-013, -6.82121026e-013, -1.62003744e-012, 1))
871
CreateMesh("SpecialMesh",Head,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
872-
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New Yeller","Part",Vector3.new(0.200000003, 1.39999998, 0.200000003))
872+
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,0,"Bright orange","Part",Vector3.new(0.200000003, 1.39999998, 0.200000003))
873
Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.268547058, 0.0147666931, 0.492343903, 0.266456544, 0.961500287, -0.0669870079, -0.937416613, 0.24235782, -0.249999925, -0.22414504, 0.129409671, 0.965918422))
874
CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
875-
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 1.39999998, 0.400000006))
875+
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,0,"Magenta","Part",Vector3.new(0.400000006, 1.39999998, 0.400000006))
876
Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.35981369, -0.0811252594, -0.392364502, 0.499998569, 0.866011322, 1.38495011e-007, -0.836511791, 0.482955486, 0.258817196, 0.224141717, -0.129405871, 0.965918958))
877
CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
878-
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 1.39999998, 0.400000006))
878+
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,0,"Magenta","Part",Vector3.new(0.400000006, 1.39999998, 0.400000006))
879
Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.359809875, -0.0811347961, 0.392364502, 0.500002265, 0.866017759, 4.3843329e-009, -0.836509109, 0.48296532, -0.25881812, -0.224141061, 0.129409656, 0.965926051))
880
CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
881-
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New Yeller","Part",Vector3.new(0.200000003, 1.39999998, 0.200000003))
881+
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,0,"Bright orange","Part",Vector3.new(0.200000003, 1.39999998, 0.200000003))
882
Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.268550873, 0.0147647858, -0.492359161, 0.266456187, 0.961500764, 0.066986382, -0.937418401, 0.242359444, 0.249994203, 0.224138066, -0.129404321, 0.965920031))
883
CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
884-
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New Yeller","Part",Vector3.new(0.599999785, 0.400000006, 0.399999917))
884+
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,0,"Bright orange","Part",Vector3.new(0.599999785, 0.400000006, 0.399999917))
885
Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.706802368, -0.148231506, -0.399997711, 0.999991596, -8.94065053e-008, -6.82121026e-013, -4.47030253e-008, 0.999991894, -1.00897068e-012, -4.54747351e-013, -1.05160325e-012, 1))
886
CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
887-
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New Yeller","Part",Vector3.new(0.599999785, 0.400000006, 0.399999917))
887+
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,0,"Bright orange","Part",Vector3.new(0.599999785, 0.400000006, 0.399999917))
888
Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.706802368, -0.148216248, 0.399990082, 0.999985158, -5.96041865e-008, -1.13686838e-012, -8.94065053e-008, 0.999985576, -1.15107923e-012, -6.82121026e-013, -1.44950718e-012, 1))
889
CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
890-
LLeg1Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","LLeg1Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
890+
LLeg1Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,1,"Magenta","LLeg1Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
891
LLeg1Handleweld=CreateWeld(m,LLeg1Connector,LLeg1Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0365982056, 0.0366020203, 0.193164825, 0.999997556, -8.96677375e-006, -5.36441803e-007, -8.96677375e-006, 0.999984801, 3.7252903e-006, -5.36441803e-007, 3.7252903e-006, 0.999984503))
892
CreateMesh("SpecialMesh",LLeg1Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
893-
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
893+
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,0,"Magenta","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
894
Partweld=CreateWeld(m,LLeg1Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.299993515, 7.62939453e-006, 0.999997556, -8.96677375e-006, -5.36441803e-007, -8.96677375e-006, 0.999984801, 3.7252903e-006, -5.36441803e-007, 3.7252903e-006, 0.999984503))
895
CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
896-
LLeg2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","LLeg2Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
896+
LLeg2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,1,"Magenta","LLeg2Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
897
LLeg2Handleweld=CreateWeld(m,LLeg2Connector,LLeg2Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0654640198, 0.0714416504, 0.174942017, 1.0000006, 4.96953726e-006, 2.38418579e-006, 4.96953726e-006, 0.999982536, 4.35113907e-006, 2.38418579e-006, 4.35113907e-006, 0.999983668))
898
CreateMesh("SpecialMesh",LLeg2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
899-
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
899+
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,0,"Magenta","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
900
Partweld=CreateWeld(m,LLeg2Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, 0.300003052, 0, 1.0000006, 4.96953726e-006, 2.38418579e-006, 4.96953726e-006, 0.999982536, 4.35113907e-006, 2.38418579e-006, 4.35113907e-006, 0.999983668))
901
CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
902-
RLeg1Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","RLeg1Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
902+
RLeg1Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,1,"Magenta","RLeg1Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
903
RLeg1Handleweld=CreateWeld(m,RLeg1Connector,RLeg1Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 0.999997318, -9.39005986e-006, -1.82539225e-006, -9.39005986e-006, 0.999983907, 2.83867121e-006, -1.82539225e-006, 2.83867121e-006, 0.999985874))
904
CreateMesh("SpecialMesh",RLeg1Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
905-
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
905+
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,0,"Magenta","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
906
Partweld=CreateWeld(m,RLeg1Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-006, 0.299995422, 7.62939453e-006, 0.999997318, -9.39005986e-006, -1.82539225e-006, -9.39005986e-006, 0.999983907, 2.83867121e-006, -1.82539225e-006, 2.83867121e-006, 0.999985874))
907
CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
908-
RLeg2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","RLeg2Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
908+
RLeg2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,1,"Magenta","RLeg2Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024))
909
RLeg2Handleweld=CreateWeld(m,RLeg2Connector,RLeg2Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0499954224, 0.038819313, -0.189697266, 0.999999583, 6.79865479e-006, -3.51667404e-006, 6.79865479e-006, 0.999980748, -1.23679638e-006, -3.51667404e-006, -1.23679638e-006, 0.999986768))
910
CreateMesh("SpecialMesh",RLeg2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
911-
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
911+
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,0,"Magenta","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024))
912
Partweld=CreateWeld(m,RLeg2Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 0.299996376, -7.62939453e-006, 0.999999583, 6.79865479e-006, -3.51667404e-006, 6.79865479e-006, 0.999980748, -1.23679638e-006, -3.51667404e-006, -1.23679638e-006, 0.999986768))
913
CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
914-
NeckHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","NeckHandle",Vector3.new(0.799999714, 0.800000012, 0.99999994))
914+
NeckHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,1,"Magenta","NeckHandle",Vector3.new(0.799999714, 0.800000012, 0.99999994))
915
NeckHandleweld=CreateWeld(m,NeckHandleConnector,NeckHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
916
CreateMesh("SpecialMesh",NeckHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
917-
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.5999999, 0.800000012, 0.99999994))
917+
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,0,"Magenta","Part",Vector3.new(1.5999999, 0.800000012, 0.99999994))
918
Partweld=CreateWeld(m,NeckHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.673364639, 0.315284729, 1.14440918e-005, 0.499996573, 0.866005898, 1.41687553e-006, -0.866028965, 0.499994099, 1.24860276e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
919
CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
920-
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.5999999, 1, 1.39999998))
920+
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,0,"Magenta","Part",Vector3.new(1.5999999, 1, 1.39999998))
921
Partweld=CreateWeld(m,NeckHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.456003189, -0.000812530518, 1.52587891e-005, 0.707109332, 0.707094491, 1.05421987e-006, -0.707105219, 0.707105219, 1.56317299e-006, 2.27782948e-009, -3.0485694e-009, 0.999992847))
922
CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
923-
TailHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","TailHandle",Vector3.new(0.799999714, 0.800000012, 0.99999994))
923+
TailHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,1,"Magenta","TailHandle",Vector3.new(0.799999714, 0.800000012, 0.99999994))
924
TailHandleweld=CreateWeld(m,TailHandleConnector,TailHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -1.90734863e-006, 0, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
925
CreateMesh("SpecialMesh",TailHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
926-
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.39999974, 0.800000012, 0.99999994))
926+
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,0,"Magenta","Part",Vector3.new(1.39999974, 0.800000012, 0.99999994))
927
Partweld=CreateWeld(m,TailHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.299999237, 3.57627869e-007, 0, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695))
928
CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
929-
Tail2HandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Tail2HandleConnector",Vector3.new(0.599999726, 0.800000012, 0.799999952))
929+
Tail2HandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,1,"Magenta","Tail2HandleConnector",Vector3.new(0.599999726, 0.800000012, 0.799999952))
930
Tail2HandleConnectorweld=CreateWeld(m,TailHandle,Tail2HandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.674129486, -0.0147686005, -0.00961303711, 0.999255121, 0.0334871411, -0.0192402583, -0.0341572762, 0.998781741, -0.0350642987, 0.0180421956, 0.0356986672, 0.999185622))
931
CreateMesh("SpecialMesh",Tail2HandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
932-
Tail2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Tail2Handle",Vector3.new(0.599999726, 0.800000012, 0.799999952))
932+
Tail2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,1,"Magenta","Tail2Handle",Vector3.new(0.599999726, 0.800000012, 0.799999952))
933
Tail2Handleweld=CreateWeld(m,Tail2HandleConnector,Tail2Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1.00000131, -5.39020402e-006, -1.95577741e-007, -5.39020402e-006, 0.999980748, 1.59069896e-006, -1.95577741e-007, 1.59069896e-006, 0.999985993))
934
CreateMesh("SpecialMesh",Tail2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
935-
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.39999974, 0.800000012, 0.799999952))
935+
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,0,"Magenta","Part",Vector3.new(1.39999974, 0.800000012, 0.799999952))
936
Partweld=CreateWeld(m,Tail2Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.399993896, -2.86102295e-006, 3.81469727e-006, 1.00000131, -5.39020402e-006, -1.95577741e-007, -5.39020402e-006, 0.999980748, 1.59069896e-006, -1.95577741e-007, 1.59069896e-006, 0.999985993))
937
CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
938-
Tail3HandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Tail3HandleConnector",Vector3.new(0.599999845, 0.800000012, 0.799999952))
938+
Tail3HandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,1,"Magenta","Tail3HandleConnector",Vector3.new(0.599999845, 0.800000012, 0.799999952))
939
Tail3HandleConnectorweld=CreateWeld(m,Tail2Handle,Tail3HandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.933692932, 0.152185202, 0.0128250122, 0.989802122, -0.139427915, 0.0292246509, 0.138289496, 0.989660025, 0.0377997532, -0.0341934189, -0.0333709307, 0.998850942))
940
CreateMesh("SpecialMesh",Tail3HandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
941-
Tail3Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Tail3Handle",Vector3.new(0.599999845, 0.800000012, 0.799999952))
941+
Tail3Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,1,"Magenta","Tail3Handle",Vector3.new(0.599999845, 0.800000012, 0.799999952))
942
Tail3Handleweld=CreateWeld(m,Tail3HandleConnector,Tail3Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1, 2.3010216e-009, 0, 2.3010216e-009, 1, 0, 0, 0, 1.00000012))
943
CreateMesh("SpecialMesh",Tail3Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
944-
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New Yeller","Part",Vector3.new(1.79999983, 0.800000012, 0.200000003))
944+
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,0,"Bright orange","Part",Vector3.new(1.79999983, 0.800000012, 0.200000003))
945
Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.04519272, 0.064440012, -0.0208930969, 1, 2.3010216e-009, 0, 2.3010216e-009, 1, 0, 0, 0, 1.00000012))
946
CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
947-
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New Yeller","Part",Vector3.new(1.79999983, 0.600000024, 0.200000003))
947+
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,0,"Bright orange","Part",Vector3.new(1.79999983, 0.600000024, 0.200000003))
948
Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.11207199, 0.0611591339, 0.00499725342, 0.965926647, -0.258816153, -5.12227416e-008, 0.258816123, 0.965926647, -1.83936208e-007, 9.68575478e-008, 1.64000085e-007, 1))
949
CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
950-
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New Yeller","Part",Vector3.new(1.79999983, 0.600000024, 0.200000003))
950+
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,0,"Bright orange","Part",Vector3.new(1.79999983, 0.600000024, 0.200000003))
951
Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.07800674, 0.0849123001, -0.020816803, 0.965926468, 0.258816481, 2.40281224e-007, -0.258821636, 0.965915978, -1.06403604e-006, -1.3038516e-006, 2.83645932e-006, 0.999992907))
952
CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
953-
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.39999986, 0.800000012, 0.799999952))
953+
Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Concrete,0,0,"Magenta","Part",Vector3.new(1.39999986, 0.800000012, 0.799999952))
954
Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.400001526, -2.14576721e-006, -3.81469727e-006, 1, 2.3010216e-009, 0, 2.3010216e-009, 1, 0, 0, 0, 1.00000012))
955
CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
956
957
mouse.Button1Down:connect(function()
958
end)
959
960
mouse.KeyDown:connect(function(k)
961
	k = k:lower()
962
	if k == "f" and attack == false and Flying == false then
963
	Humanoid.CameraOffset = Vector3.new(0, -1, 0)
964
	Humanoid.WalkSpeed = 25
965
	Flying = true
966
	elseif k == "f" and attack == false and Flying == true then
967
	Humanoid.CameraOffset = Vector3.new(0, -2, 0)
968
	Humanoid.WalkSpeed = 16
969
	Flying = false
970
	end
971
end)
972
973
974
inputserv.InputBegan:connect(function(k)
975
	if k.KeyCode == Enum.KeyCode.One and typing == false and cooldown3 >= co1 and stamina >= skill1stam then
976
	elseif k.KeyCode == Enum.KeyCode.Two and typing == false and cooldown3 >= co2 and stamina >= skill2stam then
977
	elseif k.KeyCode == Enum.KeyCode.Three and typing == false and cooldown3 >= co3 and stamina >= skill3stam then
978
	elseif k.KeyCode == Enum.KeyCode.Four and typing == false and cooldown3 >= co4 and stamina >= skill4stam then
979
	end
980
end)
981
982
inputserv.InputBegan:connect(function(k)
983
	if k.KeyCode == Enum.KeyCode.Slash then
984
		local fin = nil
985
		typing = true
986
		fin = inputserv.InputBegan:connect(function(k)
987
			if k.KeyCode == Enum.KeyCode.Return or k.UserInputType == Enum.UserInputType.MouseButton1 then
988
				typing = false
989
				fin:disconnect()
990
			end
991
		end)
992
	end
993
end)
994
995
function updateskills()
996
	if cooldown1 <= co1 then
997
		cooldown1 = cooldown1 + 1 / 30
998
	end
999
	if cooldown2 <= co2 then
1000
		cooldown2 = cooldown2 + 1 / 30
1001
	end
1002
	if cooldown3 <= co3 then
1003
		cooldown3 = cooldown3 + 1 / 30
1004
	end
1005
	if cooldown4 <= co4 then
1006
		cooldown4 = cooldown4 + 1 / 30
1007
	end
1008
	if stamina <= maxstamina then
1009
		stamina = stamina + recovermana / 30
1010
	end
1011
end
1012
1013
coroutine.resume(coroutine.create(function(Part,Weld)
1014
while Part.Parent~=nil do
1015
wait(5)
1016
for i=0,1,0.2 do
1017
wait()
1018
BlinkPartR.Mesh.Scale = Vector3.new(.7-1*i,1,1)
1019
end
1020
for i=0,1,0.2 do
1021
wait()
1022
BlinkPartR.Mesh.Scale = Vector3.new(.7+.3*i,1,1)
1023
end
1024
end
1025
end),BlinkPartR,BlinkPartRweld)
1026
1027
coroutine.resume(coroutine.create(function(Part,Weld)
1028
while Part.Parent~=nil do
1029
wait(5)
1030
for i=0,1,0.2 do
1031
wait()
1032
BlinkPartL.Mesh.Scale = Vector3.new(.7-1*i,1,1)
1033
end
1034
for i=0,1,0.2 do
1035
wait()
1036
BlinkPartL.Mesh.Scale = Vector3.new(.7+.3*i,1,1)
1037
end
1038
end
1039
end),BlinkPartL,BlinkPartLweld)
1040
1041
game:GetService'RunService'.Heartbeat:connect(function()
1042
	updateskills()
1043
	Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
1044
	velocity = RootPart.Velocity.y
1045
	sine = sine + change
1046
	local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
1047
	if equipped == true or equipped == false then
1048
		if RootPart.Velocity.y > 1 and hit == nil and stun.Value ~= true then 
1049
			Anim = "Jump"
1050
			if attack == false then
1051
				Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 2) * angles(math.rad(50), math.rad(0), math.rad(0)), .3)
1052
				NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
1053
				HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
1054
				LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
1055
				LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
1056
				RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
1057
				RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3)
1058
				TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
1059
				Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
1060
				Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
1061
			end
1062
		elseif RootPart.Velocity.y < -1 and hit == nil and stun.Value ~= true then 
1063
			Anim = "Fall"
1064
			if attack == false then
1065
				Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 1) * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
1066
				NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), .3)
1067
				HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
1068
				LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
1069
				LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
1070
				RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
1071
				RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
1072
				TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
1073
				Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
1074
				Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
1075
			end
1076
		elseif Torsovelocity < 1 and hit ~= nil and stun.Value ~= true then
1077
			Anim = "Idle"
1078
			if attack == false and Flying == false then
1079
				change = 1
1080
				Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1081
				NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10+1.5*math.cos(sine/10))), .3)
1082
				HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-5+1.5*math.cos(sine/10))), .3)
1083
				LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3)
1084
				LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3)
1085
				RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3)
1086
				RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3)
1087
				TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(15*math.cos(sine/15)), math.rad(5*math.cos(sine/25))), .3)
1088
				Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(-15*math.cos(sine/15)), math.rad(20*math.cos(sine/15)), math.rad(2*math.cos(sine/15))), .3)
1089
				Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(15*math.cos(sine/15)), math.rad(10*math.cos(sine/15)), math.rad(0)), .3)
1090
			elseif attack == false and Flying == true then
1091
				Handleweld.C0 = clerp(Handleweld.C0, cn(0, 3.5+.2*math.cos(sine/10), 2) * angles(math.rad(40+2*math.cos(sine/10)), math.rad(0), math.rad(0)), .3)
1092
				NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10+3*math.cos(sine/10))), .3)
1093
				HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20-3*math.cos(sine/10))), .3)
1094
				LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3)
1095
				LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3)
1096
				RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3)
1097
				RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3)
1098
				TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20-3*math.cos(sine/10))), .3)
1099
				Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10+2*math.cos(sine/10))), .3)
1100
				Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(15-1.5*math.cos(sine/10))), .3)
1101
			end
1102
		elseif Torsovelocity > 2 and hit ~= nil and stun.Value ~= true then
1103
			Anim = "Walk"
1104
			if attack == false and Flying == false then
1105
				change = 1
1106
				Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 0) * angles(math.rad(1.5+1*math.cos(sine/10)), math.rad(0), math.rad(0)), .3)
1107
				NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(5+2*math.cos(sine/10))), .3)
1108
				HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(5+1.5*math.cos(sine/10))), .3)
1109
				LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30*math.cos(sine/4.5))), .3)
1110
				LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30*math.cos(sine/5))), .3)
1111
				RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30*math.cos(sine/5))), .3)
1112
				RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30*math.cos(sine/4.5))), .3)
1113
				TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3*math.cos(sine/15))), .3)
1114
				Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2*math.cos(sine/15))), .3)
1115
				Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3*math.cos(sine/15))), .3)
1116
			elseif attack == false and Flying == true then
1117
				change = 1
1118
				Handleweld.C0 = clerp(Handleweld.C0, cn(0, 3.5+.2*math.cos(sine/10), 1) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
1119
				NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10+1*math.cos(sine/10))), .3)
1120
				HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20+1*math.cos(sine/10))), .3)
1121
				LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3)
1122
				LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3)
1123
				RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3)
1124
				RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3)
1125
				TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10-3*math.cos(sine/10))), .3)
1126
				Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(5+2*math.cos(sine/10))), .3)
1127
				Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3-1.5*math.cos(sine/10))), .3)
1128
			end
1129
		end
1130
	end
1131
end)