View difference between Paste ID: ny2gzYGU and EyKLVyiE
SHOW: | | - or go back to the newest paste.
1-
--Edited by TheDevilPro1234
1+
2-
---NO TOOLS
2+
3-
  plr = game.Players.LocalPlayer
3+
4-
  repeat
4+
5-
    wait(0.4)
5+
6-
  until plr.Character
6+
7-
  chr = plr.Character
7+
8-
  human = chr:FindFirstChild("Humanoid")
8+
9-
  chr.Humanoid.MaxHealth = math.huge
9+
10-
  mouse = plr:GetMouse()
10+
11-
  equipd = false
11+
12-
  tors = chr.Torso
12+
13-
  rarm = chr["Right Arm"]
13+
14-
  larm = chr["Left Arm"]
14+
15-
  rleg = chr["Right Leg"]
15+
16-
  lleg = chr["Left Leg"]
16+
17-
  chr.Head.face.Texture = "rbxassetid://126198982"
17+
18-
local txt = Instance.new("BillboardGui", chr)
18+
19-
CV="Lime green"
19+
20-
    txt.Adornee = chr .Head
20+
21-
    txt.Name = "_status"
21+
22-
    txt.Size = UDim2.new(2, 0, 1.2, 0)
22+
23-
    txt.StudsOffset = Vector3.new(-9, 8, 0)
23+
24-
    local text = Instance.new("TextLabel", txt)
24+
25-
    text.Size = UDim2.new(10, 0, 7, 0)
25+
26-
    text.FontSize = "Size24"
26+
27-
    text.TextScaled = true
27+
28-
    text.TextTransparency = 0
28+
29-
    text.BackgroundTransparency = 1
29+
30-
    text.TextTransparency = 0
30+
31-
    text.TextStrokeTransparency = 0
31+
32-
    text.Font = "Bodoni"
32+
33-
    text.TextStrokeColor3 = Color3.new(0,0,0)
33+
34-
    text.TextColor3 = Color3.new(0,1,0)
34+
35-
    text.Text = "Izuku Midoriya"
35+
36-
    v=Instance.new("Part")
36+
37-
    v.Name = "ColorBrick"
37+
38-
    v.Parent= plr.Character
38+
39-
    v.FormFactor="Symmetric"
39+
40-
    v.Anchored=true
40+
41-
    v.CanCollide=false
41+
42-
    v.BottomSurface="Smooth"
42+
43-
    v.TopSurface="Smooth"
43+
44-
    v.Size=Vector3.new(10,5,3)
44+
45-
    v.Transparency=1
45+
46-
    v.CFrame=chr.Torso.CFrame
46+
47-
    v.BrickColor=BrickColor.new("Lime green")
47+
48-
    v.Transparency=1
48+
49-
    v.Shape="Block"
49+
50-
chr.Shirt.ShirtTemplate = "rbxassetid://846519063"
50+
51-
chr.Pants.PantsTemplate = "rbxassetid://848613245"
51+
52-
for i,v in pairs(chr:children()) do
52+
53-
    if v:IsA("Hat") then
53+
54-
        v:Destroy()
54+
55-
    end
55+
56
PE1.LightEmission = NumberSequence.new(0.2)
57-
for i,v in pairs(chr:children()) do
57+
58-
    if v:IsA("Accessory") then
58+
59-
        v:Destroy()
59+
60-
    end
60+
61
62-
for i,v in pairs(chr:children()) do
62+
63-
    if v:IsA("Hair") then
63+
64-
        v:Destroy()
64+
65-
    end
65+
66
PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
67-
local Part = Instance.new("Part",chr)
67+
68-
Part.BrickColor = BrickColor.new("Royal blue")
68+
69-
Part.Size = Vector3.new(1,1,1)
69+
70-
Part.CanCollide = false
70+
71-
Part.Material = "Neon"
71+
72-
local M = Instance.new("SpecialMesh",Part)
72+
73-
M.MeshId = "rbxassetid://212966179"
73+
74-
M.Scale = Vector3.new(1.2,1.2,1.2)
74+
75-
M.TextureId = "rbxassetid://431984628"
75+
76-
local Part2 = Instance.new("Weld",Part)
76+
77-
Part2.Part0 = chr.Head
77+
78-
Part2.Part1 = Part
78+
79-
Part2.C0 = CFrame.new(0,0.2,0)*CFrame.Angles(0,0,0)
79+
80-
local Part1 = Instance.new("Part",chr)
80+
81-
Part1.BrickColor = BrickColor.new("Really black")
81+
82-
Part1.Size = Vector3.new(1,1,1)
82+
83-
Part1.CanCollide = false
83+
84-
Part1.Material = "Neon"
84+
85-
local M1 = Instance.new("SpecialMesh",Part1)
85+
86-
M1.MeshId = "rbxassetid://212966179"
86+
87-
M1.Scale = Vector3.new(1.1,1.1,1.1)
87+
88-
local Part21 = Instance.new("Weld",Part1)
88+
89-
Part21.Part0 = chr.Head
89+
90-
Part21.Part1 = Part1
90+
91-
Part21.C0 = CFrame.new(0,0.1,0)*CFrame.Angles(0,0,0)
91+
92-
  hrp = chr.HumanoidRootPart
92+
93-
  head = chr.Head
93+
94-
  anim = human.Animator
94+
95-
  activu = false
95+
96-
  Heartbeat = Instance.new("BindableEvent")
96+
97-
  Heartbeat.Name = "Heartbeat"
97+
98-
  Heartbeat.Parent = script
98+
99-
  frame = 0.03333333333333333
99+
100-
  tf = 0
100+
101
PE1.RotSpeed = NumberRange.new(100)
102
103
104
105
106
107
108
109
110
--
111
local Player = game:GetService('Players').LocalPlayer
112
repeat wait() until Player.Character
113
local Character = Player.Character
114
115
--All The Settings for Trails in this Script
116
TrailSettings = {
117
	Lifetime = 0.7,
118
	Texture = 'rbxassetid://31270182',
119
	--Color1 is for UpperBody and Accessories, Color2 is for Lower Body
120
	Color1 = ColorSequence.new(BrickColor.new('Lime blue').Color,BrickColor.new('Lime blue').Color),
121
	Color2 = ColorSequence.new(BrickColor.new('Lime blue').Color,BrickColor.new('Lime blue').Color),
122
	AllBody = true,
123
	UpperBodyOnly = false,
124
	LowerBodyOnly = false,
125
	Accessories = false,
126
	Extras = true,
127
	R15 = false, --Change to true if you're using R15
128
	R15Parts = {
129
		'UpperTorso',
130
		'LowerTorso',
131
	}
132
}
133
134
local Trail; --Making other Trails uses this in this Script
135
136
--UpperBody Function
137
UpperBody = function()
138
	if TrailSettings.R15 == false then
139
		A0 = Instance.new('Attachment',Character.Torso)
140
		A1 = Instance.new('Attachment',Character.Head)
141
	A2 = Instance.new('Attachment',Character['Right Arm'])
142
	A3 = Instance.new('Attachment',Character['Left Arm'])
143
Trail = Instance.new('Trail',Character)
144
Trail.Attachment0 = A0
145
Trail.Attachment1 = A1
146
Trail.Texture = TrailSettings.Texture
147
Trail.Color = TrailSettings.Color1
148
Trail.Lifetime = TrailSettings.Lifetime
149
local Trail2 = Trail:Clone()
150
Trail2.Parent = Character
151
Trail2.Attachment1 = A2
152
local Trail3 = Trail:Clone()
153
Trail3.Parent = Character
154
Trail3.Attachment1 = A3
155
local Trail6 = Trail:Clone()
156
Trail6.Parent = Character
157
Trail6.Attachment0 = A1
158
Trail6.Attachment1 = A2
159
local Trail7 = Trail:Clone()
160
Trail7.Parent = Character
161
Trail7.Attachment0 = A1
162
Trail7.Attachment1 = A3
163
	else
164
	A0 = Instance.new('Attachment',Character[TrailSettings.R15Parts[1]])
165
	A0R = Instance.new('Attachment',Character[TrailSettings.R15Parts[2]])
166
	A1 = Instance.new('Attachment',Character.Head)
167
	A2 = Instance.new('Attachment',Character['RightUpperArm'])
168
	A2R = Instance.new('Attachment',Character['RightLowerArm'])
169
	A3 = Instance.new('Attachment',Character['LeftUpperArm'])
170
	A3R = Instance.new('Attachment',Character['LeftLowerArm'])
171
Trail = Instance.new('Trail',Character)
172
Trail.Attachment0 = A0
173
Trail.Attachment1 = A1
174
Trail.Texture = TrailSettings.Texture
175
Trail.Color = TrailSettings.Color1
176
Trail.Lifetime = TrailSettings.Lifetime
177
local Trail2 = Trail:Clone()
178
Trail2.Parent = Character
179
Trail2.Attachment1 = A2
180
local Trail3 = Trail:Clone()
181
Trail3.Parent = Character
182
Trail3.Attachment1 = A3
183
local Trail6 = Trail:Clone()
184
Trail6.Parent = Character
185
Trail6.Attachment0 = A1
186
Trail6.Attachment1 = A2
187
local Trail7 = Trail:Clone()
188
Trail7.Parent = Character
189
Trail7.Attachment0 = A1
190
Trail7.Attachment1 = A3
191
--R15 Trails
192
local Trail1R = Trail:Clone()
193
Trail1R.Parent = Character
194
Trail1R.Attachment1 = A2R
195
local Trail2R = Trail:Clone()
196
Trail2R.Parent = Character
197
Trail2R.Attachment1 = A3R
198
local Trail6R = Trail:Clone()
199
Trail6.Parent = Character
200
Trail6.Attachment0 = A1
201
Trail6.Attachment1 = A2R
202
local Trail7R = Trail:Clone()
203
Trail7.Parent = Character
204
Trail7.Attachment0 = A1
205
Trail7.Attachment1 = A3R
206
end
207
end
208
209
--Lower Body Function
210
LowerBody = function()
211
	if TrailSettings.R15 == false then
212
		A4 = Instance.new('Attachment',Character['Right Leg'])
213
		A5 = Instance.new('Attachment',Character['Left Leg'])
214
local Trail4 = Trail:Clone()
215
Trail4.Parent = Character
216
Trail4.Attachment1 = A4
217
local Trail5 = Trail:Clone()
218
Trail5.Parent = Character
219
Trail5.Attachment1 = A5
220-
	Color1 = ColorSequence.new(BrickColor.new('Lime green').Color,BrickColor.new('Lime green').Color),
220+
221-
	Color2 = ColorSequence.new(BrickColor.new('Lime green').Color,BrickColor.new('Lime green').Color),
221+
222
Trail8.Attachment0 = A2
223
Trail8.Attachment1 = A4
224
Trail8.Color = TrailSettings.Color2
225
local Trail9 = Trail:Clone()
226
Trail9.Parent = Character
227
Trail9.Attachment0 = A3
228
Trail9.Attachment1 = A5
229
Trail9.Color = TrailSettings.Color2
230
local FT = Trail:Clone()
231
FT.Parent = Character
232
FT.Attachment0 = A4
233
FT.Attachment1 = A5
234
FT.Color = TrailSettings.Color2
235
else
236
		A4 = Instance.new('Attachment',Character['RightLowerLeg'])
237
		A4R = Instance.new('Attachment',Character['RightUpperLeg'])
238
		A5 = Instance.new('Attachment',Character['LeftLowerLeg'])
239
		A5R = Instance.new('Attachment',Character['LeftUpperLeg'])
240
		local Trail4 = Trail:Clone()
241
Trail4.Parent = Character
242
Trail4.Attachment1 = A4
243
local Trail5 = Trail:Clone()
244
Trail5.Parent = Character
245
Trail5.Attachment1 = A5
246
local Trail8 = Trail:Clone()
247
Trail8.Parent = Character
248
Trail8.Attachment0 = A2
249
Trail8.Attachment1 = A4
250
Trail8.Color = TrailSettings.Color2
251
local Trail9 = Trail:Clone()
252
Trail9.Parent = Character
253
Trail9.Attachment0 = A3
254
Trail9.Attachment1 = A5
255
Trail9.Color = TrailSettings.Color2
256
local FT = Trail:Clone()
257
FT.Parent = Character
258
FT.Attachment0 = A4
259
FT.Attachment1 = A5
260
FT.Color = TrailSettings.Color2
261
--R15 Trails
262
local Trail3R = Trail:Clone()
263
Trail3R.Parent = Character
264
Trail3R.Attachment1 = A4R
265
local Trail4R = Trail:Clone()
266
Trail4R.Parent = Character
267
Trail4R.Attachment1 = A5R
268
local Trail8 = Trail:Clone()
269
Trail8.Parent = Character
270
Trail8.Attachment0 = A2R
271
Trail8.Attachment1 = A4R
272
Trail8.Color = TrailSettings.Color2
273
local Trail9 = Trail:Clone()
274
Trail9.Parent = Character
275
Trail9.Attachment0 = A3R
276
Trail9.Attachment1 = A5R
277
Trail9.Color = TrailSettings.Color2
278
local FT2R = Trail:Clone()
279
FT2R.Parent = Character
280
FT2R.Attachment0 = A4R
281
FT2R.Attachment1 = A5R
282
FT2R.Color = TrailSettings.Color2
283
end
284
end
285
286
--All Body Function calling Both Functions
287
AllBody = function()
288
	UpperBody()
289
	LowerBody()
290
end
291
292
--Checking to make sure that Only some Variables are Selected else do All Body
293
if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
294
	TrailSettings.UpperBodyOnly = false
295
	TrailSettings.LowerBodyOnly = false
296
elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then
297
	TrailSettings.UpperBodyOnly = false
298
	TrailSettings.LowerBodyOnly = false
299
elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then
300
	TrailSettings.UpperBodyOnly = false
301
	TrailSettings.LowerBodyOnly = false
302
elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
303
	TrailSettings.AllBody = true
304
	TrailSettings.UpperBodyOnly = false
305
	TrailSettings.LowerBodyOnly = false
306
end
307
308
--Call Trail Functions
309
if TrailSettings.UpperBodyOnly == true then
310
	UpperBody()
311
	print('Called Upper Body Trail')
312
elseif TrailSettings.LowerBodyOnly == true then
313
	LowerBody()
314
	print('Called Lower Body Trail')
315
elseif TrailSettings.AllBody == true then
316
	AllBody()
317
	print('Called Full Body Trail')
318
end
319
320
--Trails for Accessories
321
if TrailSettings.Accessories == true then
322
for Index,Item in pairs(Character:GetChildren()) do
323
	if Item:IsA'Accessory' then
324
		local AA = Instance.new('Attachment',Item.Handle)
325
		local ATrail = Trail:Clone()
326
		ATrail.Parent = Character
327
		ATrail.Attachment1 = AA
328
	end
329
end
330
end
331
332
--Extras
333
if TrailSettings.Extras == true then
334
	--Making an Invisible Platform Part
335
local a = Instance.new('Part',Character)
336
a.CanCollide = false
337
a.Size = Vector3.new(2,.2,2)
338
a.Transparency = 1
339
340
--Constantly putting it under your feet
341
if TrailSettings.R15 == false then
342
	spawn(function()
343
	game:GetService('RunService').RenderStepped:connect(function()
344
		a.CFrame = Character.Torso.CFrame * CFrame.new(0,-3,0)
345
	end)
346
end)
347
else
348
	spawn(function()
349
	game:GetService('RunService').RenderStepped:connect(function()
350
		a.CFrame = Character[TrailSettings.R15Parts[2]].CFrame * CFrame.new(0,-2,0)
351
	end)
352
end)
353
end
354
355
--Make a Trail from both feet to the Platform
356
spawn(function()
357
	repeat wait() until Trail
358
local AB = Instance.new('Attachment',a)
359
local ABT = Trail:Clone()
360
ABT.Parent = Character
361
ABT.Attachment0 = A4
362
ABT.Attachment1 = AB
363
ABT.Color = TrailSettings.Color2
364
local ABT2 = Trail:Clone()
365
ABT2.Parent = Character
366
ABT2.Attachment0 = A5
367
ABT2.Attachment1 = AB
368
ABT2.Color = TrailSettings.Color2
369
end)
370
end
371
--
372
373
--//====================================================\\--
374
--||			   CREATED BY SHACKLUSTER
375
--\\====================================================//--
376
377
378
379
wait(0.2)
380
381
382
383
Player = game:GetService("Players").LocalPlayer
384
PlayerGui = Player.PlayerGui
385
Cam = workspace.CurrentCamera
386
Backpack = Player.Backpack
387
Character = Player.Character
388
Humanoid = Character.Humanoid
389
Mouse = Player:GetMouse()
390
RootPart = Character["HumanoidRootPart"]
391
Torso = Character["Torso"]
392
Head = Character["Head"]
393
RightArm = Character["Right Arm"]
394
LeftArm = Character["Left Arm"]
395
RightLeg = Character["Right Leg"]
396
LeftLeg = Character["Left Leg"]
397
RootJoint = RootPart["RootJoint"]
398
Neck = Torso["Neck"]
399
RightShoulder = Torso["Right Shoulder"]
400
LeftShoulder = Torso["Left Shoulder"]
401
RightHip = Torso["Right Hip"]
402
LeftHip = Torso["Left Hip"]
403
local sick = Instance.new("Sound",Character)
404
sick.SoundId = "rbxassetid://1259371424"
405
sick.Looped = true
406
sick.Pitch = 1
407
sick.Volume = 50
408
sick:Play()
409
410
IT = Instance.new
411
CF = CFrame.new
412
VT = Vector3.new
413
RAD = math.rad
414
C3 = Color3.new
415
UD2 = UDim2.new
416
BRICKC = BrickColor.new
417
ANGLES = CFrame.Angles
418
EULER = CFrame.fromEulerAnglesXYZ
419
COS = math.cos
420
ACOS = math.acos
421
SIN = math.sin
422
ASIN = math.asin
423
ABS = math.abs
424
MRANDOM = math.random
425
FLOOR = math.floor
426
427
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
428
	local NEWMESH = IT(MESH)
429
	if MESH == "SpecialMesh" then
430
		NEWMESH.MeshType = MESHTYPE
431
		if MESHID ~= "nil" and MESHID ~= "" then
432
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
433
		end
434
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
435
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
436
		end
437
	end
438
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
439
	NEWMESH.Scale = SCALE
440
	NEWMESH.Parent = PARENT
441
	return NEWMESH
442
end
443
444
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
445
	local NEWPART = IT("Part")
446
	NEWPART.formFactor = FORMFACTOR
447
	NEWPART.Reflectance = REFLECTANCE
448
	NEWPART.Transparency = TRANSPARENCY
449
	NEWPART.CanCollide = false
450
	NEWPART.Locked = true
451
	NEWPART.Anchored = true
452
	if ANCHOR == false then
453
		NEWPART.Anchored = false
454
	end
455
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
456
	NEWPART.Name = NAME
457
	NEWPART.Size = SIZE
458
	NEWPART.Position = Torso.Position
459
	NEWPART.Material = MATERIAL
460
	NEWPART:BreakJoints()
461
	NEWPART.Parent = PARENT
462
	return NEWPART
463
end
464
465
--//=================================\\
466
--||		  CUSTOMIZATION
467
--\\=================================//
468
469
Player_Size = 1 --Size of the player.
470
Animation_Speed = 3
471
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
472
473
local Speed = 16
474
local Effects2 = {}
475
476
--//=================================\\
477
--|| 	  END OF CUSTOMIZATION
478
--\\=================================//
479
480
	local function weldBetween(a, b)
481
	    local weldd = Instance.new("ManualWeld")
482
	    weldd.Part0 = a
483
	    weldd.Part1 = b
484
	    weldd.C0 = CFrame.new()
485
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
486
	    weldd.Parent = a
487
	    return weldd
488
	end
489
490
--//=================================\\
491
--|| 	      USEFUL VALUES
492
--\\=================================//
493
494
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
495
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
496
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
497
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
498
local CHANGEDEFENSE = 0
499
local CHANGEDAMAGE = 0
500
local CHANGEMOVEMENT = 0
501
local ANIM = "Idle"
502
local ATTACK = false
503
local EQUIPPED = false
504-
sick.SoundId = "rbxassetid://450783524"
504+
505
local COMBO = 1
506
local Rooted = false
507
local SINE = 0
508
local KEYHOLD = false
509
local CHANGE = 2 / Animation_Speed
510
local WALKINGANIM = false
511
local WALK = 0
512
local VALUE1 = false
513
local VALUE2 = false
514
local ROBLOXIDLEANIMATION = IT("Animation")
515
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
516
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
517
--ROBLOXIDLEANIMATION.Parent = Humanoid
518
local WEAPONGUI = IT("ScreenGui", PlayerGui)
519
WEAPONGUI.Name = "Weapon GUI"
520
local Weapon = IT("Model")
521
Weapon.Name = "Adds"
522
local HITFLOOR = nil
523
local Effects = IT("Folder", Weapon)
524
Effects.Name = "Effects"
525
local ANIMATOR = Humanoid.Animator
526
local ANIMATE = Character.Animate
527
local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
528
local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
529
local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
530
local HITBLOCKSOUNDS = {"199148933", "199148947"}
531
local UNANCHOR = true
532
533
local SKILLTEXTCOLOR = C3(239/255, 184/255, 56/255)
534
535
--//=================================\\
536
--\\=================================//
537
538
539
--//=================================\\
540
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
541
--\\=================================//
542
543
ArtificialHB = Instance.new("BindableEvent", script)
544
ArtificialHB.Name = "ArtificialHB"
545
546
script:WaitForChild("ArtificialHB")
547
548
frame = Frame_Speed
549
tf = 0
550
allowframeloss = false
551
tossremainder = false
552
lastframe = tick()
553
script.ArtificialHB:Fire()
554
555
game:GetService("RunService").Heartbeat:connect(function(s, p)
556
	tf = tf + s
557
	if tf >= frame then
558
		if allowframeloss then
559
			script.ArtificialHB:Fire()
560
			lastframe = tick()
561
		else
562
			for i = 1, math.floor(tf / frame) do
563
				script.ArtificialHB:Fire()
564
			end
565
		lastframe = tick()
566
		end
567
		if tossremainder then
568
			tf = 0
569
		else
570
			tf = tf - frame * math.floor(tf / frame)
571
		end
572
	end
573
end)
574
575
--//=================================\\
576
--\\=================================//
577
578
579
580
581
582
--//=================================\\
583
--|| 	      SOME FUNCTIONS
584
--\\=================================//
585
586
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
587
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
588
end
589
590
function PositiveAngle(NUMBER)
591
	if NUMBER >= 0 then
592
		NUMBER = 0
593
	end
594
	return NUMBER
595
end
596
597
function NegativeAngle(NUMBER)
598
	if NUMBER <= 0 then
599
		NUMBER = 0
600
	end
601
	return NUMBER
602
end
603
604
function Swait(NUMBER)
605
	if NUMBER == 0 or NUMBER == nil then
606
		ArtificialHB.Event:wait()
607
	else
608
		for i = 1, NUMBER do
609
			ArtificialHB.Event:wait()
610
		end
611
	end
612
end
613
614
function QuaternionFromCFrame(cf)
615
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
616
	local trace = m00 + m11 + m22
617
	if trace > 0 then 
618
		local s = math.sqrt(1 + trace)
619
		local recip = 0.5 / s
620
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
621
	else
622
		local i = 0
623
		if m11 > m00 then
624
			i = 1
625
		end
626
		if m22 > (i == 0 and m00 or m11) then
627
			i = 2
628
		end
629
		if i == 0 then
630
			local s = math.sqrt(m00 - m11 - m22 + 1)
631
			local recip = 0.5 / s
632
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
633
		elseif i == 1 then
634
			local s = math.sqrt(m11 - m22 - m00 + 1)
635
			local recip = 0.5 / s
636
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
637
		elseif i == 2 then
638
			local s = math.sqrt(m22 - m00 - m11 + 1)
639
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
640
		end
641
	end
642
end
643
 
644
function QuaternionToCFrame(px, py, pz, x, y, z, w)
645
	local xs, ys, zs = x + x, y + y, z + z
646
	local wx, wy, wz = w * xs, w * ys, w * zs
647
	local xx = x * xs
648
	local xy = x * ys
649
	local xz = x * zs
650
	local yy = y * ys
651
	local yz = y * zs
652
	local zz = z * zs
653
	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))
654
end
655
 
656
function QuaternionSlerp(a, b, t)
657
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
658
	local startInterp, finishInterp;
659
	if cosTheta >= 0.0001 then
660
		if (1 - cosTheta) > 0.0001 then
661
			local theta = ACOS(cosTheta)
662
			local invSinTheta = 1 / SIN(theta)
663
			startInterp = SIN((1 - t) * theta) * invSinTheta
664
			finishInterp = SIN(t * theta) * invSinTheta
665
		else
666
			startInterp = 1 - t
667
			finishInterp = t
668
		end
669
	else
670
		if (1 + cosTheta) > 0.0001 then
671
			local theta = ACOS(-cosTheta)
672
			local invSinTheta = 1 / SIN(theta)
673
			startInterp = SIN((t - 1) * theta) * invSinTheta
674
			finishInterp = SIN(t * theta) * invSinTheta
675
		else
676
			startInterp = t - 1
677
			finishInterp = t
678
		end
679
	end
680
	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
681
end
682
683
function Clerp(a, b, t)
684
	local qa = {QuaternionFromCFrame(a)}
685
	local qb = {QuaternionFromCFrame(b)}
686
	local ax, ay, az = a.x, a.y, a.z
687
	local bx, by, bz = b.x, b.y, b.z
688
	local _t = 1 - t
689
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
690
end
691
692
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
693
	local frame = IT("Frame")
694
	frame.BackgroundTransparency = TRANSPARENCY
695
	frame.BorderSizePixel = BORDERSIZEPIXEL
696
	frame.Position = POSITION
697
	frame.Size = SIZE
698
	frame.BackgroundColor3 = COLOR
699
	frame.BorderColor3 = BORDERCOLOR
700
	frame.Name = NAME
701
	frame.Parent = PARENT
702
	return frame
703
end
704
705
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
706
	local label = IT("TextLabel")
707
	label.BackgroundTransparency = 1
708
	label.Size = UD2(1, 0, 1, 0)
709
	label.Position = UD2(0, 0, 0, 0)
710
	label.TextColor3 = TEXTCOLOR
711
	label.TextStrokeTransparency = STROKETRANSPARENCY
712
	label.TextTransparency = TRANSPARENCY
713
	label.FontSize = TEXTFONTSIZE
714
	label.Font = TEXTFONT
715
	label.BorderSizePixel = BORDERSIZEPIXEL
716
	label.TextScaled = false
717
	label.Text = TEXT
718
	label.Name = NAME
719
	label.Parent = PARENT
720
	return label
721
end
722
723
function NoOutlines(PART)
724
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
725
end
726
727
728
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
729
	local NEWWELD = IT(TYPE)
730
	NEWWELD.Part0 = PART0
731
	NEWWELD.Part1 = PART1
732
	NEWWELD.C0 = C0
733
	NEWWELD.C1 = C1
734
	NEWWELD.Parent = PARENT
735
	return NEWWELD
736
end
737
738
function CreateSound(ID, PARENT, VOLUME, PITCH)
739
	local NEWSOUND = nil
740
	coroutine.resume(coroutine.create(function()
741
		NEWSOUND = IT("Sound", PARENT)
742
		NEWSOUND.Volume = VOLUME
743
		NEWSOUND.Pitch = PITCH
744
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
745
		Swait()
746
		NEWSOUND:play()
747
		game:GetService("Debris"):AddItem(NEWSOUND, 10)
748
	end))
749
	return NEWSOUND
750
end
751
752
function CFrameFromTopBack(at, top, back)
753
	local right = top:Cross(back)
754
	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)
755
end
756
757
function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
758
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
759
	local mesh = IT("SpecialMesh",wave)
760
	mesh.MeshType = "FileMesh"
761
	mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
762
	mesh.Scale = SIZE
763
	mesh.Offset = VT(0,0,-SIZE.X/8)
764
	wave.CFrame = CFRAME
765
	coroutine.resume(coroutine.create(function(PART)
766
		for i = 1, WAIT do
767
			Swait()
768
			mesh.Scale = mesh.Scale + GROW
769
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
770
			if DOESROT == true then
771
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
772
			end
773
			wave.Transparency = wave.Transparency + (0.5/WAIT)
774
			if wave.Transparency > 0.99 then
775
				wave:remove()
776
			end
777
		end
778
	end))
779
end
780
781
function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
782
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
783
	local mesh = IT("SpecialMesh",wave)
784
	mesh.MeshType = "FileMesh"
785
	mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
786
	mesh.Scale = SIZE
787
	--mesh.Offset = VT(0,0,-SIZE.X/8)
788
	wave.CFrame = CFRAME
789
	coroutine.resume(coroutine.create(function(PART)
790
		for i = 1, WAIT do
791
			Swait()
792
			mesh.Scale = mesh.Scale + GROW
793
			--mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
794
			if DOESROT == true then
795
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
796
			end
797
			wave.Transparency = wave.Transparency + (0.5/WAIT)
798
			if wave.Transparency > 0.99 then
799
				wave:remove()
800
			end
801
		end
802
	end))
803
end
804
805
function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
806
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
807
	local mesh = IT("SpecialMesh",wave)
808
	mesh.MeshType = "FileMesh"
809
	mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
810
	mesh.Scale = SIZE
811
	wave.CFrame = CFRAME
812
	coroutine.resume(coroutine.create(function(PART)
813
		for i = 1, WAIT do
814
			Swait()
815
			mesh.Scale = mesh.Scale + GROW
816
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
817
			if DOESROT == true then
818
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
819
			end
820
			wave.Transparency = wave.Transparency + (0.5/WAIT)
821
			if wave.Transparency > 0.99 then
822
				wave:remove()
823
			end
824
		end
825
	end))
826
end
827
828
829
function Slice(SIZE,WAIT,CFRAME,COLOR,GROW)
830
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
831
	local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
832
	wave.CFrame = CFRAME
833
	coroutine.resume(coroutine.create(function(PART)
834
		for i = 1, WAIT do
835
			Swait()
836
			mesh.Scale = mesh.Scale * GROW
837
			wave.Transparency = wave.Transparency + (0.5/WAIT)
838
			if wave.Transparency > 0.99 then
839
				wave:remove()
840
			end
841
		end
842
	end))
843
end
844
845
function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
846
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
847
	local mesh = IT("SpecialMesh",wave)
848
	mesh.MeshType = "Sphere"
849
	mesh.Scale = SIZE
850
	mesh.Offset = VT(0,0,0)
851
	wave.CFrame = CFRAME
852
	coroutine.resume(coroutine.create(function(PART)
853
		for i = 1, WAIT do
854
			Swait()
855
			mesh.Scale = mesh.Scale + GROW
856
			wave.Transparency = wave.Transparency + (1/WAIT)
857
			if wave.Transparency > 0.99 then
858
				wave:remove()
859
			end
860
		end
861
	end))
862
end
863
864
function MakeForm(PART,TYPE)
865
	if TYPE == "Cyl" then
866
		local MSH = IT("CylinderMesh",PART)
867
	elseif TYPE == "Ball" then
868
		local MSH = IT("SpecialMesh",PART)
869
		MSH.MeshType = "Sphere"
870
	elseif TYPE == "Wedge" then
871
		local MSH = IT("SpecialMesh",PART)
872
		MSH.MeshType = "Wedge"
873
	end
874
end
875
876
function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
877
	if FLOOR ~= nil then
878
		coroutine.resume(coroutine.create(function()
879
			local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
880
			PART.CFrame = CF(POSITION)
881
			for i = 1, 45 do
882
				local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
883
				RingPiece.Material = FLOOR.Material
884
				RingPiece.Color = FLOOR.Color
885
				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)))
886
				Debris:AddItem(RingPiece,SWAIT/100)
887
			end
888
			PART:remove()
889
		end))
890
	end
891
end
892
893
function CheckTableForString(Table, String)
894
	for i, v in pairs(Table) do
895
		if string.find(string.lower(String), string.lower(v)) then
896
			return true
897
		end
898
	end
899
	return false
900
end
901
902
function CheckIntangible(Hit)
903
	local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
904
	if Hit and Hit.Parent then
905
		if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
906
			return true
907
		end
908
	end
909
	return false
910
end
911
912
Debris = game:GetService("Debris")
913
914
function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
915
	local Direction = CFrame.new(StartPos, Vec).lookVector
916
	local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
917
	local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
918
	if RayHit and CheckIntangible(RayHit) then
919
		if DelayIfHit then
920
			wait()
921
		end
922
		RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
923
	end
924
	return RayHit, RayPos, RayNormal
925
end
926
927
function turnto(position)
928
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
929
end
930
931
--//=================================\\
932
--||	     WEAPON CREATION
933
--\\=================================//
934
935
local FIST = CreatePart(3, Weapon, "Neon", 0, 0, "White", "Neon Gauntlet Part", VT(1.01*0.1,1.4*0.1,1.01*0.1),false)
936
local weld = CreateWeldOrSnapOrMotor("Weld", FIST, RightArm, FIST, CF(0 * 0.1, -0.25 * 0.1, 0 * 0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
937
 
938
939
for _, c in pairs(Weapon:GetChildren()) do
940
	if c.ClassName == "Part" then
941
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
942
	end
943
end
944
945
Weapon.Parent = Character
946
947
Humanoid.Died:connect(function()
948
	ATTACK = true
949
end)
950
951
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")
952
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")
953
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")
954
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")
955
local SKILL7FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame")
956
957
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] SMASH!", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1")
958
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] DETROIT SMASH!", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2")
959
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] TELEPORT!", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 3")
960
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] TEAXS SMASH!", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text4")
961
local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[P] ONE FOR ALL FULL COWL!!!!!", SKILLTEXTCOLOR, 7, "Garamond", 0, 2, 1, "Text 7")
962
963
--//=================================\\
964
--||	     DAMAGE FUNCTIONS
965
--\\=================================//
966
967
function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
968
	local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
969
	STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
970
	local BODYGYRO = IT("BodyGyro", STATPART)
971
	local BODYPOSITION = IT("BodyPosition", STATPART)
972
	BODYPOSITION.P = 2000
973
	BODYPOSITION.D = 100
974
	BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
975
	BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
976
	game:GetService("Debris"):AddItem(STATPART ,5)
977
	local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
978
	BILLBOARDGUI.Adornee = STATPART
979
	BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
980
	BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
981
	BILLBOARDGUI.AlwaysOnTop = false
982
	local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
983
	TEXTLABEL.BackgroundTransparency = 1
984
	TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
985
	TEXTLABEL.Text = TEXT
986
	TEXTLABEL.Font = "SciFi"
987
	TEXTLABEL.FontSize="Size42"
988
	TEXTLABEL.TextColor3 = COLOR
989
	TEXTLABEL.TextStrokeTransparency = 1
990
	TEXTLABEL.TextScaled = true
991
	TEXTLABEL.TextWrapped = true
992
	coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
993
		if LABELTYPE == "Normal" then
994
			for i = 1, 30 do
995
				Swait()
996
				STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
997
				TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
998
			end
999
		elseif LABELTYPE == "Debuff" then
1000
			for i = 1, 30 do
1001
				Swait()
1002
				STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
1003
				TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
1004
			end
1005
		elseif LABELTYPE == "Shock" then
1006
			local ORIGIN = STATPART.Position
1007
			for i = 1, 30 do
1008
				Swait()
1009
				STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
1010
				TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
1011
			end
1012
		end
1013
		THEPART.Parent = nil
1014
	end),STATPART, BODYPOSITION, TEXTLABEL)
1015
end
1016
1017
--//=================================\\
1018
--||			DAMAGING
1019
--\\=================================//
1020
1021
function killnearest(position,range,maxstrength,direction)
1022
	for i,v in ipairs(workspace:GetChildren()) do
1023
	local body = v:GetChildren()
1024
		for part = 1, #body do
1025
			if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
1026
				if(body[part].Position - position).Magnitude < range then
1027
					if v.ClassName == "Model" then
1028
						--v:BreakJoints()
1029
					end
1030
					local POS = position
1031
					coroutine.resume(coroutine.create(function()
1032
						body[part].Anchored = true
1033
						body[part].Parent = Effects
1034
						body[part].CanCollide = true
1035
						local SIZE = body[part].Size
1036
						body[part].Material = "Neon"
1037
						CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10)
1038
						for i = 1, 75 do
1039
							Swait()
1040
							body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
1041
							body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
1042
						end
1043
						coroutine.resume(coroutine.create(function()
1044
							while true do
1045
								Swait()
1046
								body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
1047
								body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
1048
							end
1049
						end))
1050
						body[part].Anchored = false
1051
						body[part].Velocity = direction.lookVector*maxstrength
1052
					end))
1053
				end
1054
			end
1055
		end
1056
		if v.ClassName == "Part" then
1057
			if v.Anchored == false and (v.Position - position).Magnitude < range then
1058
				local POS = position
1059
				coroutine.resume(coroutine.create(function()
1060
					v.Anchored = true
1061
					v.Parent = Effects
1062
					local SIZE = v.Size
1063
					v.Material = "Neon"
1064
					CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10)
1065
					for i = 1, 75 do
1066
						Swait()
1067
						v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
1068
						v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
1069
					end
1070
					coroutine.resume(coroutine.create(function()
1071
						while true do
1072
							Swait()
1073
							v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
1074
							v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
1075
						end
1076
					end))
1077
					v.Anchored = false
1078
					v.Velocity = direction.lookVector*maxstrength
1079
				end))
1080
			end
1081
		end
1082
	end
1083
end
1084
1085
--//=================================\\
1086
--||	ATTACK FUNCTIONS AND STUFF
1087
--\\=================================//
1088
1089
function AttackTemplate()
1090
	ATTACK = true
1091
	Rooted = false
1092
	for i=0, 1, 0.1 / Animation_Speed do
1093
		Swait()
1094
		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)
1095
		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)
1096
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1097
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1098
		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)
1099
		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)
1100
	end
1101
	ATTACK = false
1102
	Rooted = false
1103
end
1104
1105
function GoldenPunch()
1106
	ATTACK = true
1107
	Rooted = false
1108
	local SPEED = Speed
1109
	Speed = 8
1110
	CreateSound("169445572", RightArm, 10, 1.1)
1111
	for i=0, 4, 0.1 / Animation_Speed do
1112
		Swait()
1113
		turnto(Mouse.Hit.p)
1114
		MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"White",VT(-1/15,-1/15,-1/15))
1115
		MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"White",VT(-2/15,-2/15,-2/15))
1116
		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)
1117
		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)
1118
		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)
1119
		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)
1120
		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)
1121
		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)
1122
	end
1123
	for i=0, 0.15, 0.1 / Animation_Speed do
1124
		Swait()
1125
		turnto(Mouse.Hit.p)
1126
		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)
1127
		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)
1128
		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)
1129
		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)
1130
		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)
1131
		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)
1132
	end
1133
	local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "White", "Punch", VT(50,50,50),false)
1134
	PART.CFrame = RootPart.CFrame * CF(0,0,-25)
1135
	PART.Shape = "Ball"
1136
	local bv = Instance.new("BodyVelocity") 
1137
	bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1138
	bv.velocity = RootPart.CFrame.lookVector*600
1139
	bv.Parent = PART
1140
	bv.Name = "PROJECTILEVELOCITY"
1141
	CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"White",VT(2.5,0.2,2.5))
1142
	CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"White",VT(3,0.2,3))
1143
	CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"White",VT(2,0.6,2))
1144
	CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"White",VT(2.2,0.6,2.2))
1145
	CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10)
1146
	coroutine.resume(coroutine.create(function()
1147
		for i = 1, 10 do
1148
			Swait()
1149
			PART.Transparency = PART.Transparency + 0.2/10
1150
			PART.Size = PART.Size + VT(5,5,5)
1151
			killnearest(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame)
1152
		end
1153
		PART:Destroy()
1154
	end))
1155
	for i=0, 1, 0.1 / Animation_Speed do
1156
		Swait()
1157
		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)
1158
		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)
1159
		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)
1160
		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)
1161
		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)
1162
		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)
1163
	end
1164
	Speed = SPEED
1165
	ATTACK = false
1166
	Rooted = false
1167
end
1168
1169
function GoldenGrasp()
1170
	ATTACK = true
1171
	Rooted = false
1172
	local HASGRABBED = false
1173
	local WELD = nil
1174
	local TORS = nil
1175
	local hitting = FIST.Touched:connect(function(hit) 
1176
		if hit.Parent:FindFirstChild("Humanoid") then
1177
			if hit.Parent.Humanoid.Health ~= 0 then
1178
				UNANCHOR = false
1179
				TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
1180
				TORS.Anchored = true
1181
				TORS.CFrame = RightArm.CFrame * CF(0,-1.15,0) * ANGLES(RAD(90), RAD(0), RAD(0))
1182
           		WELD = weldBetween(RightArm,TORS)
1183
				HASGRABBED = true
1184
				Rooted = true
1185
			end
1186
		end
1187
	end)
1188
	for i=0, 1, 0.1 / Animation_Speed do
1189
		Swait()
1190
		if HASGRABBED == true then
1191
			break
1192
		end
1193
		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)
1194
		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)
1195
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1196
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1197
		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)
1198
		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)
1199
	end
1200
	hitting:disconnect()
1201
	if HASGRABBED == true then
1202
		TORS.Anchored = false
1203
        RootPart.Anchored = true
1204
		for i=0, 2, 0.1 / Animation_Speed do
1205
			Swait()
1206
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1207
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1208
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1209
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1210
			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)
1211
			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)
1212
		end
1213
		CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"White",VT(0.5,0.3,0.5))
1214
		CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"White",VT(0.6,0.3,0.6))
1215
		local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "White", "Sound", VT(0,0,0))
1216
		SOUNDPART.CFrame = RootPart.CFrame
1217
		Debris:AddItem(SOUNDPART,5)
1218
		CreateSound("1295446488", SOUNDPART, 2, 1)
1219
		for i = 1, 15 do
1220
			Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(-180,180)), RAD(90)),"White", 1 + MRANDOM(1,30)/15)
1221
		end
1222
		for i=0, 2, 0.1 / Animation_Speed do
1223
			Swait()
1224
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 50000000) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
1225
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1226
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1227
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1228
			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)
1229
			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)
1230
		end
1231
		for i=0, 0.25, 0.1 / Animation_Speed do
1232
			Swait()
1233
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 3 / Animation_Speed)
1234
			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)
1235
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
1236
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 3 / Animation_Speed)
1237
			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)
1238
			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)
1239
		end
1240
		if HITFLOOR ~= nil then
1241
			CreateDebreeRing(HITFLOOR,CF(RootPart.Position)*CF(0,-3,0).p,15,VT(7,7,7),85)
1242
		end
1243
		CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10)
1244
		WELD:remove()
1245
		for i = 1, 25 do
1246
			Swait()
1247
			killnearest(RootPart.Position,45,100,Torso.CFrame)
1248
			CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"White",VT(0.3,3,0.3))
1249
			CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"White",VT(1,0.4,1))
1250
			CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"White",VT(2.3,0.3,2.3))
1251
			Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"White", 1 + MRANDOM(1,30)/5)
1252
			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))),"White", 1 + MRANDOM(1,30)/15)
1253
		end
1254
	end
1255
	UNANCHOR = true
1256
	ATTACK = false
1257
	Rooted = false
1258
end
1259
1260
function Mach20()
1261
	local ORIGIN = RootPart.Position
1262
	CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"White",VT(0.2,3,0.4))
1263
	CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"White",VT(0.2,3.1,0.6))
1264
	local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Pearl", "Sound", VT(0,0,0))
1265
	SOUNDPART.CFrame = RootPart.CFrame
1266
	Debris:AddItem(SOUNDPART,5)
1267
	CreateSound("1295446488", SOUNDPART, 2, 1)
1268
	RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),VT(ORIGIN.X,Mouse.Hit.p.Y,ORIGIN.Z))
1269
	Swait()
1270
	CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"White",VT(0.2,3,0.4))
1271
	CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"White",VT(0.2,3.1,0.6))
1272
	local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "White", "Sound", VT(0,0,0))
1273
	SOUNDPART.CFrame = RootPart.CFrame
1274
	Debris:AddItem(SOUNDPART,5)
1275
	CreateSound("1295446488", SOUNDPART, 2, 1)
1276
	if MRANDOM(1,8) == 1 then
1277
		ATTACK = true
1278
		Rooted = true
1279
		local FRUITSTABLE = {
1280
			{MeshId = "0", TextureId = "0", Color = "White"},
1281
			{MeshId = "0", TextureId = "0", Color = "White"},
1282
			{MeshId = "0", TextureId = "0", Color = "White"}
1283
		}
1284
		local FRUIT = FRUITSTABLE[MRANDOM(1, #FRUITSTABLE)]
1285
		local FRUITMODEL = CreatePart(3, Effects, "Neon", 0, 0, FRUIT.Color, "Fruit", VT(0,0,0),false)
1286
 		CreateMesh("SpecialMesh", FRUITMODEL, "FileMesh", FRUIT.MeshId, FRUIT.TextureId, VT(2,2,2), VT(0,0,0))
1287
		FRUITMODEL.CFrame = RightArm.CFrame * CF(0,-1.5,0)
1288
		weldBetween(RightArm,FRUITMODEL)
1289
		for i=0, 4, 0.1 / Animation_Speed do
1290
			Swait()
1291
			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)
1292
			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)
1293
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-145)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1294
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1295
			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)
1296
			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)
1297
		end
1298
		CreateSound("414517163", RightArm, 10, MRANDOM(7, 12) / 10)
1299
		FRUITMODEL:remove()
1300
		for i = 1, 15 do
1301
			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)
1302
		end
1303
		for i=0, 0.5, 0.1 / Animation_Speed do
1304
			Swait()
1305
			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)
1306
			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)
1307
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-175)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1308
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1309
			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)
1310
			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)
1311
		end
1312
		ATTACK = false
1313
		Rooted = false
1314
	end
1315
end
1316
1317
function ImplosionCollision()
1318
	ATTACK = true
1319
	Rooted = true
1320
	CreateSound("169445572", RightArm, 10, 0.8)
1321
	for i=0, 8, 0.1 / Animation_Speed do
1322
		Swait()
1323
		turnto(Mouse.Hit.p)
1324
		CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"White",VT(0.2,0,0.2))
1325
		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),"White",VT(0.001,0.001,1),0)
1326
		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),"White",VT(0.001,0.001,2),0)
1327
		MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"White",VT(-1/15,-1/15,-1/15))		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)
1328
		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)
1329
		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)
1330
		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)
1331
		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)
1332
		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)
1333
	end
1334
	for i=0, 0.15, 0.1 / Animation_Speed do
1335
		Swait()
1336
		turnto(Mouse.Hit.p)
1337
		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)
1338
		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)
1339
		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)
1340
		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)
1341
		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)
1342
		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)
1343
	end
1344
	MagicSphere(VT(4,4,4),100,RootPart.CFrame * CF(0,0,-6),"White",VT(-0.04,-0.04,-0.04))
1345
	MagicSphere(VT(3.5,3.5,3.5),100,RootPart.CFrame * CF(0,0,-6),"White",VT(-0.035,-0.035,-0.035))
1346
	coroutine.resume(coroutine.create(function()
1347
		Swait(100)
1348
		for i = 1, 5 do
1349
			MagicSphere(VT(150,150,150),75,RootPart.CFrame * CF(0,0,-72*i),"White",VT(-150/(150-(15*i)),-150/(150-(15*i)),-150/(150-(15*i))))
1350
            CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"White",VT(4.5*i,0.2,4.5*i))
1351
			CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"White",VT(5*i,0.2,5*i))
1352
			CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"White",VT(4*i,0.6,4*i))
1353
			CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"White",VT(5.2*i,0.6,5.2*i))
1354
		end
1355
		killnearest(RootPart.CFrame * CF(0,0,-500).p,500,1000,RootPart.CFrame)
1356
		for i = 1, 5 do
1357
			CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10)
1358
			CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10)
1359
		end
1360
		coroutine.resume(coroutine.create(function()
1361
			for i = 1, 50 do
1362
				Swait()
1363
				for i = 1, 1 do
1364
					Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"White", 1 + MRANDOM(1,30)/5)
1365
				end
1366
			end
1367
		end))
1368
	end))
1369
	for i=0, 4, 0.1 / Animation_Speed do
1370
		Swait()
1371
		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)
1372
		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)
1373
		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)
1374
		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)
1375
		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)
1376
		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)
1377
	end
1378
	ATTACK = false
1379
	Rooted = false
1380
end
1381
1382
--//=================================\\
1383
--||	  ASSIGN THINGS TO KEYS
1384
--\\=================================//
1385
1386
function MouseDown(Mouse)
1387
	if ATTACK == false then
1388
	end
1389
end
1390
1391
function MouseUp(Mouse)
1392
HOLD = false
1393
end
1394
1395
function KeyDown(Key)
1396
	KEYHOLD = true
1397
	if Key == "z" and ATTACK == false then
1398
		GoldenPunch()
1399
	end
1400
1401
	if Key == "b" and ATTACK == false then
1402
		GoldenGrasp()
1403
	end
1404
1405
	if Key == "c" and ATTACK == false then
1406
		Mach20()
1407
	end
1408
1409
	if Key == "x" and ATTACK == false then
1410
		ImplosionCollision()
1411
	end
1412
1413
	if Key == "p" and ATTACK == false then
1414
		if Speed == 16 then
1415
			Speed = 150
1416
		elseif Speed == 150 then
1417
			Speed = 16
1418
		end
1419
	end
1420
end
1421
1422
function KeyUp(Key)
1423
	KEYHOLD = false
1424
end
1425
1426
	Mouse.Button1Down:connect(function(NEWKEY)
1427
		MouseDown(NEWKEY)
1428
	end)
1429
	Mouse.Button1Up:connect(function(NEWKEY)
1430
		MouseUp(NEWKEY)
1431
	end)
1432
	Mouse.KeyDown:connect(function(NEWKEY)
1433
		KeyDown(NEWKEY)
1434
	end)
1435
	Mouse.KeyUp:connect(function(NEWKEY)
1436
		KeyUp(NEWKEY)
1437
	end)
1438
1439
--//=================================\\
1440
--\\=================================//
1441
1442
1443
function unanchor()
1444
	if UNANCHOR == true then
1445
		g = Character:GetChildren()
1446
		for i = 1, #g do
1447
			if g[i].ClassName == "Part" then
1448
				g[i].Anchored = false
1449
			end
1450
		end
1451
	end
1452
end
1453
1454
1455
--//=================================\\
1456
--||	WRAP THE WHOLE SCRIPT UP
1457
--\\=================================//
1458
1459
Humanoid.Changed:connect(function(Jump)
1460
	if Jump == "Jump" and (Disable_Jump == true) then
1461
		Humanoid.Jump = false
1462
	end
1463
end)
1464
1465
while true do
1466
	Swait()
1467
	ANIMATE.Parent = nil
1468
	local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
1469
	IDLEANIMATION:Play()
1470
	SINE = SINE + CHANGE
1471
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1472
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1473
	local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
1474
	HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
1475
	local WALKSPEEDVALUE = 0
1476
	if Speed < 35 then
1477
		WALKSPEEDVALUE = 6
1478
	else
1479
		WALKSPEEDVALUE = 3
1480
	end
1481
	if ANIM == "Walk" and TORSOVELOCITY > 1 and Rooted == false then
1482
		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)
1483
		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)
1484
		if Speed < 35 then
1485
			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)
1486
			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)
1487
		else
1488
			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)
1489
			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)
1490
		end
1491
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or Rooted == true then
1492
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1493
		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)
1494
		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)
1495
		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)
1496
	end
1497
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
1498
		ANIM = "Jump"
1499
		if ATTACK == false then
1500
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1501
			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)
1502
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1503
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1504
			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)
1505
			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)
1506
	    end
1507
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
1508
		ANIM = "Fall"
1509
		if ATTACK == false then
1510
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1511
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1512
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1513
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1514
			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)
1515
			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)
1516
		end
1517
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1518
		ANIM = "Idle"
1519
		if ATTACK == false then
1520
			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)
1521
			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)
1522
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1523
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1524
			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)
1525
			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)
1526
		end
1527
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil and Rooted == false then
1528
		ANIM = "Walk"
1529
		WALK = WALK + 1 / Animation_Speed
1530
		if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
1531
			WALK = 0
1532
			if WALKINGANIM == true then
1533
				WALKINGANIM = false
1534
			elseif WALKINGANIM == false then
1535
				WALKINGANIM = true
1536
			end
1537
		end
1538
		--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)
1539
		--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)
1540
		if ATTACK == false then
1541
			if Speed < 35 then
1542
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1543
				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)
1544
				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)
1545
				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)
1546
				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)
1547
				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)
1548
			else
1549
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1550
				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)
1551
				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)
1552
				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)
1553
				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)
1554
				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)
1555
			end
1556
		end
1557
	end
1558
	unanchor()
1559
	Humanoid.MaxHealth = "inf"
1560
	Humanoid.Health = "inf"
1561
	if Rooted == false then
1562
		Disable_Jump = false
1563
		Humanoid.WalkSpeed = Speed
1564
	elseif Rooted == true then
1565
		Disable_Jump = true
1566
		Humanoid.WalkSpeed = 0
1567
	end
1568
	local MATHS = {"0","1"}
1569
	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)]
1570
	Humanoid.PlatformStand = false
1571
end
1572
1573
--//=================================\\
1574
--\\=================================//
1575
1576
1577
1578
1579
1580
--//====================================================\\--
1581
--||			  		 END OF SCRIPT
1582
--\\====================================================//--