View difference between Paste ID: VBf6rmhc and RyexusMj
SHOW: | | - or go back to the newest paste.
1
--//====================================================\\--
2
--||			   CREATED BY SHACKLUSTER
3
--\\====================================================//--
4
5
6
7
wait(0.2)
8
9
10
Character = game.Players.LocalPlayer.Character
11
Head = Character.Head
12
 
13
CV="Lime green"
14
    p = game.Players.LocalPlayer
15
    char = p.Character
16
    local txt = Instance.new("BillboardGui", char)
17
    txt.Adornee = char .Head
18
    txt.Name = "_status"
19
    txt.Size = UDim2.new(2, 0, 1.2, 0)
20
    txt.StudsOffset = Vector3.new(-9, 8, 0)
21
    local text = Instance.new("TextLabel", txt)
22
    text.Size = UDim2.new(10, 0, 7, 0)
23
    text.FontSize = "Size24"
24
    text.TextScaled = true
25
    text.TextTransparency = 0
26
    text.BackgroundTransparency = 1
27
    text.TextTransparency = 0
28
    text.TextStrokeTransparency = 0
29
    text.Font = "Cartoon"
30
    text.TextStrokeColor3 = Color3.new(.24, 102, .5)
31
 
32
    v=Instance.new("Part")
33
    v.Name = "ColorBrick"
34
    v.Parent=p.Character
35
    v.FormFactor="Symmetric"
36
    v.Anchored=true
37
    v.CanCollide=false
38
    v.BottomSurface="Smooth"
39
    v.TopSurface="Smooth"
40
    v.Size=Vector3.new(10,5,3)
41
    v.Transparency=1
42
    v.CFrame=char.Torso.CFrame
43
    v.BrickColor=BrickColor.new(CV)
44
    v.Transparency=1
45
    text.TextColor3 = Color3.new(.24, 102, .5)
46
    v.Shape="Block"
47-
    text.Text = "Toastymctoast The Error Puncher"
47+
    text.Text = "sonicrixlp The Error Puncher"
48
49
Player = game:GetService("Players").LocalPlayer
50
PlayerGui = Player.PlayerGui
51
Cam = workspace.CurrentCamera
52
Backpack = Player.Backpack
53
Character = Player.Character
54
Humanoid = Character.Humanoid
55
Mouse = Player:GetMouse()
56
RootPart = Character["HumanoidRootPart"]
57
Torso = Character["Torso"]
58
Head = Character["Head"]
59
RightArm = Character["Right Arm"]
60
LeftArm = Character["Left Arm"]
61
RightLeg = Character["Right Leg"]
62
LeftLeg = Character["Left Leg"]
63
RootJoint = RootPart["RootJoint"]
64
Neck = Torso["Neck"]
65
RightShoulder = Torso["Right Shoulder"]
66
LeftShoulder = Torso["Left Shoulder"]
67
RightHip = Torso["Right Hip"]
68
LeftHip = Torso["Left Hip"]
69
local sick = Instance.new("Sound",Character)
70
sick.SoundId = "http://www.roblox.com/asset/?id=170282324"
71
sick.Looped = true
72
sick.Pitch = 1
73
sick.Volume = 5
74
sick:Play()
75
76
IT = Instance.new
77
CF = CFrame.new
78
VT = Vector3.new
79
RAD = math.rad
80
C3 = Color3.new
81
UD2 = UDim2.new
82
BRICKC = BrickColor.new
83
ANGLES = CFrame.Angles
84
EULER = CFrame.fromEulerAnglesXYZ
85
COS = math.cos
86
ACOS = math.acos
87
SIN = math.sin
88
ASIN = math.asin
89
ABS = math.abs
90
MRANDOM = math.random
91
FLOOR = math.floor
92
93
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
94
	local NEWMESH = IT(MESH)
95
	if MESH == "SpecialMesh" then
96
		NEWMESH.MeshType = MESHTYPE
97
		if MESHID ~= "nil" and MESHID ~= "" then
98
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
99
		end
100
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
101
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
102
		end
103
	end
104
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
105
	NEWMESH.Scale = SCALE
106
	NEWMESH.Parent = PARENT
107
	return NEWMESH
108
end
109
110
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
111
	local NEWPART = IT("Part")
112
	NEWPART.formFactor = FORMFACTOR
113
	NEWPART.Reflectance = REFLECTANCE
114
	NEWPART.Transparency = TRANSPARENCY
115
	NEWPART.CanCollide = false
116
	NEWPART.Locked = true
117
	NEWPART.Anchored = true
118
	if ANCHOR == false then
119
		NEWPART.Anchored = false
120
	end
121
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
122
	NEWPART.Name = NAME
123
	NEWPART.Size = SIZE
124
	NEWPART.Position = Torso.Position
125
	NEWPART.Material = MATERIAL
126
	NEWPART:BreakJoints()
127
	NEWPART.Parent = PARENT
128
	return NEWPART
129
    end
130
131
--//=================================\\
132
--||		  CUSTOMIZATION
133
--\\=================================//
134
135
Player_Size = 1 --Size of the player.
136
Animation_Speed = 1
137
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
138
139
local Speed = 200
140
local Effects2 = {}
141
142
--//=================================\\
143
--|| 	  END OF CUSTOMIZATION
144
--\\=================================//
145
146
	local function weldBetween(a, b)
147
	    local weldd = Instance.new("ManualWeld")
148
	    weldd.Part0 = a
149
	    weldd.Part1 = b
150
	    weldd.C0 = CFrame.new()
151
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
152
	    weldd.Parent = a
153
	    return weldd
154
	end
155
156
--//=================================\\
157
--|| 	      USEFUL VALUES
158
--\\=================================//
159
160
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
161
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
162
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
163
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
164
local CHANGEDEFENSE = 0
165
local CHANGEDAMAGE = 0
166
local CHANGEMOVEMENT = 0
167
local ANIM = "Idle"
168
local ATTACK = false
169
local EQUIPPED = false
170
local HOLD = false
171
local COMBO = 1
172
local Rooted = false
173
local SINE = 0
174
local KEYHOLD = false
175
local CHANGE = 1 / Animation_Speed
176
local WALKINGANIM = false
177
local WALK = 0
178
local VALUE1 = false
179
local VALUE2 = false
180
local ROBLOXIDLEANIMATION = IT("Animation")
181
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
182
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
183
--ROBLOXIDLEANIMATION.Parent = Humanoid
184
local WEAPONGUI = IT("ScreenGui", PlayerGui)
185
WEAPONGUI.Name = "Weapon GUI"
186
local Weapon = IT("Model")
187
Weapon.Name = "Adds"
188
local HITFLOOR = nil
189
local Effects = IT("Folder", Weapon)
190
Effects.Name = "Effects"
191
local ANIMATOR = Humanoid.Animator
192
local ANIMATE = Character.Animate
193
local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
194
local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
195
local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
196
local HITBLOCKSOUNDS = {"199148933", "199148947"}
197
local UNANCHOR = true
198
199
local SKILLTEXTCOLOR = C3(0,255/255,0)
200
201
--//=================================\\
202
--\\=================================//
203
204
205
--//=================================\\
206
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
207
--\\=================================//
208
209
ArtificialHB = Instance.new("BindableEvent", script)
210
ArtificialHB.Name = "ArtificialHB"
211
212
script:WaitForChild("ArtificialHB")
213
214
frame = Frame_Speed
215
tf = 0
216
allowframeloss = false
217
tossremainder = false
218
lastframe = tick()
219
script.ArtificialHB:Fire()
220
221
game:GetService("RunService").Heartbeat:connect(function(s, p)
222
	tf = tf + s
223
	if tf >= frame then
224
		if allowframeloss then
225
			script.ArtificialHB:Fire()
226
			lastframe = tick()
227
		else
228
			for i = 1, math.floor(tf / frame) do
229
				script.ArtificialHB:Fire()
230
			end
231
		lastframe = tick()
232
		end
233
		if tossremainder then
234
			tf = 0
235
		else
236
			tf = tf - frame * math.floor(tf / frame)
237
		end
238
	end
239
end)
240
241
--//=================================\\
242
--\\=================================//
243
244
245
246
247
248
--//=================================\\
249
--|| 	      SOME FUNCTIONS
250
--\\=================================//
251
252
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
253
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
254
end
255
256
function PositiveAngle(NUMBER)
257
	if NUMBER >= 0 then
258
		NUMBER = 0
259
	end
260
	return NUMBER
261
end
262
263
function NegativeAngle(NUMBER)
264
	if NUMBER <= 0 then
265
		NUMBER = 0
266
	end
267
	return NUMBER
268
end
269
270
function Swait(NUMBER)
271
	if NUMBER == 0 or NUMBER == nil then
272
		ArtificialHB.Event:wait()
273
	else
274
		for i = 1, NUMBER do
275
			ArtificialHB.Event:wait()
276
		end
277
	end
278
end
279
280
function QuaternionFromCFrame(cf)
281
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
282
	local trace = m00 + m11 + m22
283
	if trace > 0 then 
284
		local s = math.sqrt(1 + trace)
285
		local recip = 0.5 / s
286
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
287
	else
288
		local i = 0
289
		if m11 > m00 then
290
			i = 1
291
		end
292
		if m22 > (i == 0 and m00 or m11) then
293
			i = 2
294
		end
295
		if i == 0 then
296
			local s = math.sqrt(m00 - m11 - m22 + 1)
297
			local recip = 0.5 / s
298
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
299
		elseif i == 1 then
300
			local s = math.sqrt(m11 - m22 - m00 + 1)
301
			local recip = 0.5 / s
302
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
303
		elseif i == 2 then
304
			local s = math.sqrt(m22 - m00 - m11 + 1)
305
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
306
		end
307
	end
308
end
309
 
310
function QuaternionToCFrame(px, py, pz, x, y, z, w)
311
	local xs, ys, zs = x + x, y + y, z + z
312
	local wx, wy, wz = w * xs, w * ys, w * zs
313
	local xx = x * xs
314
	local xy = x * ys
315
	local xz = x * zs
316
	local yy = y * ys
317
	local yz = y * zs
318
	local zz = z * zs
319
	return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
320
end
321
 
322
function QuaternionSlerp(a, b, t)
323
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
324
	local startInterp, finishInterp;
325
	if cosTheta >= 0.0001 then
326
		if (1 - cosTheta) > 0.0001 then
327
			local theta = ACOS(cosTheta)
328
			local invSinTheta = 1 / SIN(theta)
329
			startInterp = SIN((1 - t) * theta) * invSinTheta
330
			finishInterp = SIN(t * theta) * invSinTheta
331
		else
332
			startInterp = 1 - t
333
			finishInterp = t
334
		end
335
	else
336
		if (1 + cosTheta) > 0.0001 then
337
			local theta = ACOS(-cosTheta)
338
			local invSinTheta = 1 / SIN(theta)
339
			startInterp = SIN((t - 1) * theta) * invSinTheta
340
			finishInterp = SIN(t * theta) * invSinTheta
341
		else
342
			startInterp = t - 1
343
			finishInterp = t
344
		end
345
	end
346
	return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
347
end
348
349
function Clerp(a, b, t)
350
	local qa = {QuaternionFromCFrame(a)}
351
	local qb = {QuaternionFromCFrame(b)}
352
	local ax, ay, az = a.x, a.y, a.z
353
	local bx, by, bz = b.x, b.y, b.z
354
	local _t = 1 - t
355
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
356
end
357
358
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
359
	local frame = IT("Frame")
360
	frame.BackgroundTransparency = TRANSPARENCY
361
	frame.BorderSizePixel = BORDERSIZEPIXEL
362
	frame.Position = POSITION
363
	frame.Size = SIZE
364
	frame.BackgroundColor3 = COLOR
365
	frame.BorderColor3 = BORDERCOLOR
366
	frame.Name = NAME
367
	frame.Parent = PARENT
368
	return frame
369
end
370
371
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
372
	local label = IT("TextLabel")
373
	label.BackgroundTransparency = 1
374
	label.Size = UD2(1, 0, 1, 0)
375
	label.Position = UD2(0, 0, 0, 0)
376
	label.TextColor3 = TEXTCOLOR
377
	label.TextStrokeTransparency = STROKETRANSPARENCY
378
	label.TextTransparency = TRANSPARENCY
379
	label.FontSize = TEXTFONTSIZE
380
	label.Font = TEXTFONT
381
	label.BorderSizePixel = BORDERSIZEPIXEL
382
	label.TextScaled = false
383
	label.Text = TEXT
384
	label.Name = NAME
385
	label.Parent = PARENT
386
	return label
387
end
388
389
function NoOutlines(PART)
390
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
391
end
392
393
394
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
395
	local NEWWELD = IT(TYPE)
396
	NEWWELD.Part0 = PART0
397
	NEWWELD.Part1 = PART1
398
	NEWWELD.C0 = C0
399
	NEWWELD.C1 = C1
400
	NEWWELD.Parent = PARENT
401
	return NEWWELD
402
end
403
404
function CreateSound(ID, PARENT, VOLUME, PITCH)
405
	local NEWSOUND = nil
406
	coroutine.resume(coroutine.create(function()
407
		NEWSOUND = IT("Sound", PARENT)
408
		NEWSOUND.Volume = VOLUME
409
		NEWSOUND.Pitch = PITCH
410
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
411
		Swait()
412
		NEWSOUND:play()
413
		game:GetService("Debris"):AddItem(NEWSOUND, 10)
414
	end))
415
	return NEWSOUND
416
end
417
418
function CFrameFromTopBack(at, top, back)
419
	local right = top:Cross(back)
420
	return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
421
end
422
423
function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
424
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Lime green"), "Effect", VT(0,0,0))
425
	local mesh = IT("SpecialMesh",wave)
426
	mesh.MeshType = "FileMesh"
427
	mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
428
	mesh.Scale = SIZE
429
	mesh.Offset = VT(0,0,-SIZE.X/8)
430
	wave.CFrame = CFRAME
431
	coroutine.resume(coroutine.create(function(PART)
432
		for i = 1, WAIT do
433
			Swait()
434
			mesh.Scale = mesh.Scale + GROW
435
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
436
			if DOESROT == true then
437
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
438
			end
439
			wave.Transparency = wave.Transparency + (0.5/WAIT)
440
			if wave.Transparency > 0.99 then
441
				wave:remove()
442
			end
443
		end
444
	end))
445
end
446
447
function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
448
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Lime green"), "Effect", VT(0,0,0))
449
	local mesh = IT("SpecialMesh",wave)
450
	mesh.MeshType = "FileMesh"
451
	mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
452
	mesh.Scale = SIZE
453
	--mesh.Offset = VT(0,0,-SIZE.X/8)
454
	wave.CFrame = CFRAME
455
	coroutine.resume(coroutine.create(function(PART)
456
		for i = 1, WAIT do
457
			Swait()
458
			mesh.Scale = mesh.Scale + GROW
459
			--mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
460
			if DOESROT == true then
461
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
462
			end
463
			wave.Transparency = wave.Transparency + (0.5/WAIT)
464
			if wave.Transparency > 0.99 then
465
				wave:remove()
466
			end
467
		end
468
	end))
469
end
470
471
function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
472
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Lime green"), "Effect", VT(0,0,0))
473
	local mesh = IT("SpecialMesh",wave)
474
	mesh.MeshType = "FileMesh"
475
	mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
476
	mesh.Scale = SIZE
477
	wave.CFrame = CFRAME
478
	coroutine.resume(coroutine.create(function(PART)
479
		for i = 1, WAIT do
480
			Swait()
481
			mesh.Scale = mesh.Scale + GROW
482
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
483
			if DOESROT == true then
484
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
485
			end
486
			wave.Transparency = wave.Transparency + (0.5/WAIT)
487
			if wave.Transparency > 0.99 then
488
				wave:remove()
489
			end
490
		end
491
	end))
492
end
493
494
495
function Slice(SIZE,WAIT,CFRAME,COLOR,GROW)
496
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Lime green"), "Effect", VT(1,1,1), true)
497
	local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
498
	wave.CFrame = CFRAME
499
	coroutine.resume(coroutine.create(function(PART)
500
		for i = 1, WAIT do
501
			Swait()
502
			mesh.Scale = mesh.Scale * GROW
503
			wave.Transparency = wave.Transparency + (0.5/WAIT)
504
			if wave.Transparency > 0.99 then
505
				wave:remove()
506
			end
507
		end
508
	end))
509
end
510
511
function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
512
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Lime green"), "Effect", VT(1,1,1), true)
513
	local mesh = IT("SpecialMesh",wave)
514
	mesh.MeshType = "Sphere"
515
	mesh.Scale = SIZE
516
	mesh.Offset = VT(0,0,0)
517
	wave.CFrame = CFRAME
518
	coroutine.resume(coroutine.create(function(PART)
519
		for i = 1, WAIT do
520
			Swait()
521
			mesh.Scale = mesh.Scale + GROW
522
			wave.Transparency = wave.Transparency + (1/WAIT)
523
			if wave.Transparency > 0.99 then
524
				wave:remove()
525
			end
526
		end
527
	end))
528
end
529
530
function MakeForm(PART,TYPE)
531
	if TYPE == "Cyl" then
532
		local MSH = IT("CylinderMesh",PART)
533
	elseif TYPE == "Ball" then
534
		local MSH = IT("SpecialMesh",PART)
535
		MSH.MeshType = "Sphere"
536
	elseif TYPE == "Wedge" then
537
		local MSH = IT("SpecialMesh",PART)
538
		MSH.MeshType = "Wedge"
539
	end
540
end
541
542
function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
543
	if FLOOR ~= nil then
544
		coroutine.resume(coroutine.create(function()
545
			local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Lime green", "DebreeCenter", VT(0,0,0))
546
			PART.CFrame = CF(POSITION)
547
			for i = 1, 45 do
548
				local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Lime green", "DebreePart", BLOCKSIZE)
549
				RingPiece.Material = FLOOR.Material
550
				RingPiece.Color = FLOOR.Color
551
				RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
552
				Debris:AddItem(RingPiece,SWAIT/100)
553
			end
554
			PART:remove()
555
		end))
556
	end
557
end
558
559
function CheckTableForString(Table, String)
560
	for i, v in pairs(Table) do
561
		if string.find(string.lower(String), string.lower(v)) then
562
			return true
563
		end
564
	end
565
	return false
566
end
567
568
function CheckIntangible(Hit)
569
	local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
570
	if Hit and Hit.Parent then
571
		if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
572
			return true
573
		end
574
	end
575
	return false
576
end
577
578
Debris = game:GetService("Debris")
579
580
function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
581
	local Direction = CFrame.new(StartPos, Vec).lookVector
582
	local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
583
	local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
584
	if RayHit and CheckIntangible(RayHit) then
585
		if DelayIfHit then
586
			wait()
587
		end
588
		RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
589
	end
590
	return RayHit, RayPos, RayNormal
591
end
592
593
function turnto(position)
594
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
595
end
596
597
--//=================================\\
598
--||	     WEAPON CREATION
599
--\\=================================//
600
601
local FIST = CreatePart(3, Weapon, "Granite", 0, 0, "Gold", "Neon Gauntlet Part", VT(1.01*Player_Size,1.4*Player_Size,1.01*Player_Size),false)
602
local weld = CreateWeldOrSnapOrMotor("Weld", FIST, RightArm, FIST, CF(0 * Player_Size, -0.25 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
603
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "Gauntlet Part", VT(1.2*Player_Size,0.3*Player_Size,1.2*Player_Size),false)
604
local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.6 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
605
606
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
607
local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
608
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
609
local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
610
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
611
local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
612
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
613
local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
614
615
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1.1*Player_Size),false)
616
local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, -0.35 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
617
local part = CreatePart(3, Weapon, "Neon", 0, 0, "Gold", "Neon Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1*Player_Size),false)
618
local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.05 * Player_Size, -0.375 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
619
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
620
local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
621
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
622
local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, 0.33 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
623
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
624
local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, -0.33 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
625
626
for _, c in pairs(Weapon:GetChildren()) do
627
	if c.ClassName == "Part" then
628
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
629
	end
630
end
631
632
Weapon.Parent = Character
633
634
Humanoid.Died:connect(function()
635
	ATTACK = true
636
end)
637
638
local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
639
local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
640
local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
641
local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
642
643
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Death's Agreement", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1")
644
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Grab Time", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2")
645
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Max Speed", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 3")
646
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] Green's Ultimate Punch", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text4")
647
648
--//=================================\\
649
--||	     DAMAGE FUNCTIONS
650
--\\=================================//
651
652
function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
653
	local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Sea green", "Effect", VT())
654
	STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
655
	local BODYGYRO = IT("BodyGyro", STATPART)
656
	local BODYPOSITION = IT("BodyPosition", STATPART)
657
	BODYPOSITION.P = 2000
658
	BODYPOSITION.D = 100
659
	BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
660
	BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
661
	game:GetService("Debris"):AddItem(STATPART ,5)
662
	local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
663
	BILLBOARDGUI.Adornee = STATPART
664
	BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
665
	BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
666
	BILLBOARDGUI.AlwaysOnTop = false
667
	local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
668
	TEXTLABEL.BackgroundTransparency = 1
669
	TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
670
	TEXTLABEL.Text = TEXT
671
	TEXTLABEL.Font = "SciFi"
672
	TEXTLABEL.FontSize="Size42"
673
	TEXTLABEL.TextColor3 = COLOR
674
	TEXTLABEL.TextStrokeTransparency = 1
675
	TEXTLABEL.TextScaled = true
676
	TEXTLABEL.TextWrapped = true
677
	coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
678
		if LABELTYPE == "Normal" then
679
			for i = 1, 30 do
680
				Swait()
681
				STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
682
				TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
683
			end
684
		elseif LABELTYPE == "Debuff" then
685
			for i = 1, 30 do
686
				Swait()
687
				STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
688
				TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
689
			end
690
		elseif LABELTYPE == "Shock" then
691
			local ORIGIN = STATPART.Position
692
			for i = 1, 30 do
693
				Swait()
694
				STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
695
				TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
696
			end
697
		end
698
		THEPART.Parent = nil
699
	end),STATPART, BODYPOSITION, TEXTLABEL)
700
end
701
702
--//=================================\\
703
--||			DAMAGING
704
--\\=================================//
705
706
function killnearest(position,range,maxstrength,direction)
707
	for i,v in ipairs(workspace:GetChildren()) do
708
	local body = v:GetChildren()
709
		for part = 1, #body do
710
			if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
711
				if(body[part].Position - position).Magnitude < range then
712
					if v.ClassName == "Model" then
713
						--v:BreakJoints()
714
					end
715
					local POS = position
716
					coroutine.resume(coroutine.create(function()
717
						body[part].Anchored = true
718
						body[part].Parent = Effects
719
						body[part].CanCollide = true
720
						local SIZE = body[part].Size
721
						body[part].Material = "Neon"
722
						CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10)
723
						for i = 1, 75 do
724
							Swait()
725
							body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
726
							body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
727
						end
728
						coroutine.resume(coroutine.create(function()
729
							while true do
730
								Swait()
731
								body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
732
								body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
733
							end
734
						end))
735
						body[part].Anchored = false
736
						body[part].Velocity = direction.lookVector*maxstrength
737
					end))
738
				end
739
			end
740
		end
741
		if v.ClassName == "Part" then
742
			if v.Anchored == false and (v.Position - position).Magnitude < range then
743
				local POS = position
744
				coroutine.resume(coroutine.create(function()
745
					v.Anchored = true
746
					v.Parent = Effects
747
					local SIZE = v.Size
748
					v.Material = "Neon"
749
					CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10)
750
					for i = 1, 75 do
751
						Swait()
752
						v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
753
						v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
754
					end
755
					coroutine.resume(coroutine.create(function()
756
						while true do
757
							Swait()
758
							v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
759
							v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
760
						end
761
					end))
762
					v.Anchored = false
763
					v.Velocity = direction.lookVector*maxstrength
764
				end))
765
			end
766
		end
767
	end
768
end
769
770
--//=================================\\
771
--||	ATTACK FUNCTIONS AND STUFF
772
--\\=================================//
773
774
function AttackTemplate()
775
    ATTACK = true
776
    Rooted = false
777
    for i=0, 0, 0.1 / Animation_Speed do
778
        Swait()
779
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
780
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
781
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
782
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
783
        RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
784
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
785
    end
786
    ATTACK = false
787
    Rooted = false
788
end
789
 
790
function GoldenPunch()
791
    ATTACK = true
792
    Rooted = false
793
    local SPEED = Speed
794
    Speed = 8
795
    CreateSound("169445572", RightArm, 10, 1.1)
796
    for i=0, 0, 0.1 / Animation_Speed do
797
        Swait()
798
        turnto(Mouse.Hit.p)
799
        MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Black",VT(-1/15,-1/15,-1/15))
800
        MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Really black",VT(-2/15,-2/15,-2/15))
801
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed)
802
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed)
803
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
804
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
805
        RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
806
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
807
    end
808
    for i=0, 0, 0.1 / Animation_Speed do
809
        Swait()
810
        turnto(Mouse.Hit.p)
811
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed)
812
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed)
813
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
814
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
815
        RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
816
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
817
    end
818
    local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "Black", "Punch", VT(50,50,50),false)
819
    PART.CFrame = RootPart.CFrame * CF(0,0,-25)
820
    PART.Shape = "Ball"
821
    local bv = Instance.new("BodyVelocity")
822
    bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
823
    bv.velocity = RootPart.CFrame.lookVector*600
824
    bv.Parent = PART
825
    bv.Name = "PROJECTILEVELOCITY"
826
    CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Really red",VT(2.5,0.2,2.5))
827
    CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Really red",VT(3,0.2,3))
828
    CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Really red",VT(2,0.6,2))
829
    CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Black",VT(2.2,0.6,2.2))
830
    CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10)
831
    coroutine.resume(coroutine.create(function()
832
        for i = 1, 10 do
833
            Swait()
834
            PART.Transparency = PART.Transparency + 0.2/10
835
            PART.Size = PART.Size + VT(5,5,5)
836
            killnearest(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame)
837
        end
838
        PART:Destroy()
839
    end))
840
    for i=0, 0, 0.1 / Animation_Speed do
841
        Swait()
842
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed)
843
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed)
844
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
845
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed)
846
        RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed)
847
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed)
848
    end
849
    Speed = SPEED
850
    ATTACK = false
851
    Rooted = false
852
end
853
 
854
function GoldenGrasp()
855
    ATTACK = true
856
    Rooted = false
857
    local HASGRABBED = false
858
    local WELD = nil
859
    local TORS = nil
860
    local hitting = FIST.Touched:connect(function(hit)
861
        if hit.Parent:FindFirstChild("Humanoid") then
862
            if hit.Parent.Humanoid.Health ~= 0 then
863
                UNANCHOR = false
864
                TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
865
                TORS.Anchored = true
866
                TORS.CFrame = RightArm.CFrame * CF(0,-1.15,0) * ANGLES(RAD(90), RAD(0), RAD(0))
867
                WELD = weldBetween(RightArm,TORS)
868
                HASGRABBED = true
869
                Rooted = true
870
            end
871
        end
872
    end)
873
    for i=0, 1, 0.1 / Animation_Speed do
874
        Swait()
875
        if HASGRABBED == true then
876
            break
877
        end
878
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 2 / Animation_Speed)
879
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 2 / Animation_Speed)
880
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
881
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
882
        RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
883
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
884
    end
885
    hitting:disconnect()
886
    if HASGRABBED == true then
887
        TORS.Anchored = false
888
        RootPart.Anchored = true
889
        for i=0, 1, 0.5 / Animation_Speed do
890
            Swait()
891
            RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed)
892
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
893
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
894
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
895
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
896
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
897
        end
898
        CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Really red",VT(0.5,0.3,0.5))
899
        CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Really red",VT(0.6,0.3,0.6))
900
        local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Black", "Sound", VT(0,0,0))
901
        SOUNDPART.CFrame = RootPart.CFrame
902
        Debris:AddItem(SOUNDPART,5)
903
        CreateSound("1295446488", SOUNDPART, 2, 1)
904
        for i = 1, 7 do
905
            Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(-180,180)), RAD(90)),"Really red", 1 + MRANDOM(1,30)/15)
906
        end
907
        for i=0, 1, 0 / Animation_Speed do
908
            Swait()
909
            RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 50000000) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
910
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
911
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
912
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
913
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
914
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
915
        end
916
        for i=0, 1, 0 / Animation_Speed do
917
            Swait()
918
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 3 / Animation_Speed)
919
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed)
920
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
921
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 3 / Animation_Speed)
922
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
923
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
924
        end
925
        if HITFLOOR ~= nil then
926
            CreateDebreeRing(HITFLOOR,CF(RootPart.Position)*CF(0,-3,0).p,15,VT(7,7,7),85)
927
        end
928
        CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10)
929
        WELD:remove()
930
        for i = 1, 12 do
931
            Swait()
932
            killnearest(RootPart.Position,45,100,Torso.CFrame)
933
            CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Black",VT(0.3,3,0.3))
934
            CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Black",VT(1,0.4,1))
935
            CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Black",VT(2.3,0.3,2.3))
936
            Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Really red", 1 + MRANDOM(1,30)/5)
937
            Slice(0.1,65,CF(RightArm.CFrame*CF(0,-1,0).p) * ANGLES(RAD(MRANDOM(-20,20)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-20,20))),"Black", 1 + MRANDOM(1,30)/15)
938
        end
939
    end
940
    UNANCHOR = true
941
    ATTACK = false
942
    Rooted = false
943
end
944
 
945
function Mach20()
946
    local ORIGIN = RootPart.Position
947
    CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Black",VT(0.2,3,0.4))
948
    CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Black",VT(0.2,3.1,0.6))
949
    local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Sound", VT(0,0,0))
950
    SOUNDPART.CFrame = RootPart.CFrame
951
    Debris:AddItem(SOUNDPART,5)
952
    CreateSound("1295446488", SOUNDPART, 2, 1)
953
    RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),VT(ORIGIN.X,Mouse.Hit.p.Y,ORIGIN.Z))
954
    Swait()
955
    CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Black",VT(0.2,3,0.4))
956
    CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Black",VT(0.2,3.1,0.6))
957
    local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Sound", VT(0,0,0))
958
    SOUNDPART.CFrame = RootPart.CFrame
959
    Debris:AddItem(SOUNDPART,5)
960
    CreateSound("1295446488", SOUNDPART, 2, 1)
961
    if MRANDOM(1,8) == 1 then
962
        ATTACK = true
963
        Rooted = true
964
        local FRUITSTABLE = {
965
            {MeshId = "16190555", TextureId = "16190577", Color = "Really red"},
966
            {MeshId = "119574562", TextureId = "64374853", Color = "Black"},
967
            {MeshId = "24394186", TextureId = "24394178", Color = "Really black"}
968
        }
969
        local FRUIT = FRUITSTABLE[MRANDOM(1, #FRUITSTABLE)]
970
        local FRUITMODEL = CreatePart(3, Effects, "Neon", 0, 0, FRUIT.Color, "Fruit", VT(0,0,0),false)
971
        CreateMesh("SpecialMesh", FRUITMODEL, "FileMesh", FRUIT.MeshId, FRUIT.TextureId, VT(2,2,2), VT(0,0,0))
972
        FRUITMODEL.CFrame = RightArm.CFrame * CF(0,-1.5,0)
973
        weldBetween(RightArm,FRUITMODEL)
974
        for i=0, 0, 0.1 / Animation_Speed do
975
            Swait()
976
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
977
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
978
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-145)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
979
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
980
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
981
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
982
        end
983
        CreateSound("414517163", RightArm, 10, MRANDOM(7, 12) / 10)
984
        FRUITMODEL:remove()
985
        for i = 1, 15 do
986
            Slice(0.1,15,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),FRUIT.Color, 1 + MRANDOM(1,10)/15)
987
        end
988
        for i=0, 0, 0.1 / Animation_Speed do
989
            Swait()
990
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
991
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
992
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-175)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
993
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
994
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
995
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
996
        end
997
        ATTACK = false
998
        Rooted = false
999
    end
1000
end
1001
 
1002
function ImplosionCollision()
1003
    ATTACK = true
1004
    Rooted = true
1005
    CreateSound("169445572", RightArm, 10, 0.8)
1006
    for i=0, 0, 0.1 / Animation_Speed do
1007
        Swait()
1008
        turnto(Mouse.Hit.p)
1009
        CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Really red",VT(0.2,0,0.2))
1010
        Slice(0.1,65,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Black", 1.1)
1011
        MagicSphere(VT(0.2,0.2,0.2),15,CF(RightArm.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,RightArm.Position),"Black",VT(0.001,0.001,1),0)
1012
        MagicSphere(VT(0.2,0.2,0.2),15,CF(RightArm.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,RightArm.Position),"Black",VT(0.001,0.001,2),0)
1013
        MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Black",VT(-1/15,-1/15,-1/15))
1014
        MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Black",VT(-2/15,-2/15,-2/15))
1015
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed)
1016
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed)
1017
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
1018
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1019
        RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1020
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1021
    end
1022
    for i=0, 0, 0.1 / Animation_Speed do
1023
        Swait()
1024
        turnto(Mouse.Hit.p)
1025
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed)
1026
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed)
1027
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1028
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1029
        RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1030
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1031
    end
1032
    MagicSphere(VT(4,4,4),100,RootPart.CFrame * CF(0,0,-6),"Black",VT(-0.04,-0.04,-0.04))
1033
    MagicSphere(VT(3.5,3.5,3.5),100,RootPart.CFrame * CF(0,0,-6),"Black",VT(-0.035,-0.035,-0.035))
1034
    coroutine.resume(coroutine.create(function()
1035
        Swait(100)
1036
        for i = 1, 5 do
1037
            MagicSphere(VT(150,150,150),75,RootPart.CFrame * CF(0,0,-72*i),"Black",VT(-150/(150-(15*i)),-150/(150-(15*i)),-150/(150-(15*i))))
1038
            CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Really black",VT(4.5*i,0.2,4.5*i))
1039
            CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Really black",VT(5*i,0.2,5*i))
1040
            CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Really red",VT(4*i,0.6,4*i))
1041
            CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Really red",VT(5.2*i,0.6,5.2*i))
1042
        end
1043
        killnearest(RootPart.CFrame * CF(0,0,-500).p,500,1000,RootPart.CFrame)
1044
        for i = 1, 5 do
1045
            CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10)
1046
            CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10)
1047
        end
1048
        coroutine.resume(coroutine.create(function()
1049
            for i = 1, 10 do
1050
                Swait()
1051
                for i = 1, 1 do
1052
                    Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Really red", 1 + MRANDOM(1,30)/5)
1053
                end
1054
                for i = 1, 4 do
1055
                    Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Black", 1 + MRANDOM(1,30)/3)
1056
                end
1057
            end
1058
        end))
1059
    end))
1060
    for i=0, 0, 0.01 / Animation_Speed do
1061
        Swait()
1062
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed)
1063
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed)
1064
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
1065
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed)
1066
        RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed)
1067
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed)
1068
    end
1069
    ATTACK = false
1070
    Rooted = false
1071
end
1072
1073
--//=================================\\
1074
--||	  ASSIGN THINGS TO KEYS
1075
--\\=================================//
1076
1077
function MouseDown(Mouse)
1078
    if ATTACK == false then
1079
    end
1080
end
1081
 
1082
function MouseUp(Mouse)
1083
HOLD = false
1084
end
1085
 
1086
function KeyDown(Key)
1087
    KEYHOLD = true
1088
    if Key == "z" and ATTACK == false then
1089
        GoldenPunch()
1090
    end
1091
 
1092
    if Key == "b" and ATTACK == false then
1093
        GoldenGrasp()
1094
    end
1095
 
1096
    if Key == "c" and ATTACK == false then
1097
        Mach20()
1098
    end
1099
 
1100
    if Key == "x" and ATTACK == false then
1101
        ImplosionCollision()
1102
    end
1103
 
1104
    if Key == "p" and ATTACK == false then
1105
        if Speed == 16 then
1106
            Speed = 150
1107
        elseif Speed == 150 then
1108
            Speed = 16
1109
        end
1110
    end
1111
end
1112
 
1113
function KeyUp(Key)
1114
    KEYHOLD = false
1115
end
1116
 
1117
    Mouse.Button1Down:connect(function(NEWKEY)
1118
        MouseDown(NEWKEY)
1119
    end)
1120
    Mouse.Button1Up:connect(function(NEWKEY)
1121
        MouseUp(NEWKEY)
1122
    end)
1123
    Mouse.KeyDown:connect(function(NEWKEY)
1124
        KeyDown(NEWKEY)
1125
    end)
1126
    Mouse.KeyUp:connect(function(NEWKEY)
1127
        KeyUp(NEWKEY)
1128
    end)
1129
1130
--//=================================\\
1131
--\\=================================//
1132
1133
1134
function unanchor()
1135
	if UNANCHOR == true then
1136
		g = Character:GetChildren()
1137
		for i = 1, #g do
1138
			if g[i].ClassName == "Part" then
1139
				g[i].Anchored = false
1140
			end
1141
		end
1142
	end
1143
end
1144
1145
1146
--//=================================\\
1147
--||	WRAP THE WHOLE SCRIPT UP
1148
--\\=================================//
1149
1150
Humanoid.Changed:connect(function(Jump)
1151
	if Jump == "Jump" and (Disable_Jump == true) then
1152
		Humanoid.Jump = false
1153
	end
1154
end)
1155
1156
while true do
1157
	Swait()
1158
	ANIMATE.Parent = nil
1159
	local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
1160
	IDLEANIMATION:Play()
1161
	SINE = SINE + CHANGE
1162
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1163
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1164
	local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
1165
	HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
1166
	local WALKSPEEDVALUE = 0
1167
	if Speed < 35 then
1168
		WALKSPEEDVALUE = 6
1169
	else
1170
		WALKSPEEDVALUE = 3
1171
	end
1172
	if ANIM == "Walk" and TORSOVELOCITY > 1 and Rooted == false then
1173
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (1) / Animation_Speed)
1174
		Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1175
		if Speed < 35 then
1176
			RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(56 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
1177
			LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(56 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
1178
		else
1179
			RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
1180
			LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
1181
		end
1182
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or Rooted == true then
1183
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1184
		Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1185
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1186
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1187
	end
1188
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
1189
		ANIM = "Jump"
1190
		if ATTACK == false then
1191
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1192
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1193
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1194
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1195
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
1196
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1197
	    end
1198
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
1199
		ANIM = "Fall"
1200
		if ATTACK == false then
1201
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1202
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1203
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1204
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1205
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1206
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
1207
		end
1208
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1209
		ANIM = "Idle"
1210
		if ATTACK == false then
1211
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1212
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1213
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1214
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1215
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1216
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1217
		end
1218
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil and Rooted == false then
1219
		ANIM = "Walk"
1220
		WALK = WALK + 1 / Animation_Speed
1221
		if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
1222
			WALK = 0
1223
			if WALKINGANIM == true then
1224
				WALKINGANIM = false
1225
			elseif WALKINGANIM == false then
1226
				WALKINGANIM = true
1227
			end
1228
		end
1229
		--RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1230
		--LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1231
		if ATTACK == false then
1232
			if Speed < 35 then
1233
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1234
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1235
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1236
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1237
				RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
1238
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
1239
			else
1240
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1241
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1242
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-30 * COS(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1243
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-30 * COS(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1244
				RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
1245
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
1246
			end
1247
		end
1248
	end
1249
	unanchor()
1250
	Humanoid.MaxHealth = "inf"
1251
	Humanoid.Health = "inf"
1252
	if Rooted == false then
1253
		Disable_Jump = false
1254
		Humanoid.WalkSpeed = Speed
1255
	elseif Rooted == true then
1256
		Disable_Jump = true
1257
		Humanoid.WalkSpeed = 0
1258
	end
1259
	local MATHS = {"0","1"}
1260
	Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
1261
	Humanoid.PlatformStand = false
1262
end
1263
1264
--//=================================\\
1265
--\\=================================//
1266
1267
1268
1269
1270
1271
--//====================================================\\--
1272
--||			  		 END OF SCRIPT
1273
--\\====================================================//--