View difference between Paste ID: 8ZA65Z2Z and NZJAiw7n
SHOW: | | - or go back to the newest paste.
1
--//====================================================\\--
2
--||			   CREATED BY SHACKLUSTER
3
--\\====================================================//--
4
5
--//====================================================\\--
6
--||			   ⭐EDITED BY JOE201501⭐
7
--\\====================================================//--
8
9
--//====================================================\\--
10
--||			   YAY Mario's Head is here!
11
--\\====================================================//--
12
13
--//====================================================\\--
14
--||			    Jump Up Super Star!
15
--\\====================================================//--
16
17
18
wait(0.2)
19
20
Player = game:GetService("Players").LocalPlayer
21
PlayerGui = Player.PlayerGui
22
Cam = workspace.CurrentCamera
23
Backpack = Player.Backpack
24
Character = Player.Character
25
Humanoid = Character.Humanoid
26
Mouse = Player:GetMouse()
27
RootPart = Character["HumanoidRootPart"]
28
Torso = Character["Torso"]
29
Head = Character["Head"]
30
RightArm = Character["Right Arm"]
31
LeftArm = Character["Left Arm"]
32
RightLeg = Character["Right Leg"]
33
LeftLeg = Character["Left Leg"]
34
RootJoint = RootPart["RootJoint"]
35
Neck = Torso["Neck"]
36
RightShoulder = Torso["Right Shoulder"]
37
LeftShoulder = Torso["Left Shoulder"]
38
RightHip = Torso["Right Hip"]
39
LeftHip = Torso["Left Hip"]
40
local sick = Instance.new("Sound",Character)
41
42
IT = Instance.new
43
CF = CFrame.new
44
VT = Vector3.new
45
RAD = math.rad
46
C3 = Color3.new
47
UD2 = UDim2.new
48
BRICKC = BrickColor.new
49
ANGLES = CFrame.Angles
50
EULER = CFrame.fromEulerAnglesXYZ
51-
local Walkspeed = 16
51+
52
ACOS = math.acos
53
SIN = math.sin
54
ASIN = math.asin
55
ABS = math.abs
56
MRANDOM = math.random
57
FLOOR = math.floor
58
59
60
------Mario's Head-------
61
game.Players.LocalPlayer.Character.Head.Mesh.Scale = Vector3.new(0.45,0.45,0.45)
62
game.Players.LocalPlayer.Character.Head.Mesh.Offset = Vector3.new(0,0.3,-0.1)
63
game.Players.LocalPlayer.Character.Head.Mesh.MeshId = "rbxassetid://494265290"
64
game.Players.LocalPlayer.Character.Head.Mesh.TextureId = "rbxassetid://494265293"
65
--------END-------------
66
67
68
--//=================================\\
69
--|| 	      USEFUL VALUES
70
--\\=================================//
71
Humanoid.MaxHealth = 99999
72
73
Animation_Speed = 3
74
local Walkspeed = 50
75
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
76
local Speed = 16
77
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
78
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
79
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
80
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
81
local DAMAGEMULTIPLIER = 1
82-
local SHOCKSOUND = 1544280726
82+
83-
local RINGSOUND = 340505360
83+
84-
local ULTHIT = 412831137
84+
85
local HOLD = false
86
local COMBO = 1
87
local Rooted = false
88
local SINE = 0
89
local KEYHOLD = false
90
local CHANGE = 2 / Animation_Speed
91
local WALKINGANIM = false
92
local VALUE1 = false
93
local VALUE2 = false
94
local ROBLOXIDLEANIMATION = IT("Animation")
95
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
96
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
97
--ROBLOXIDLEANIMATION.Parent = Humanoid
98
local WEAPONGUI = IT("ScreenGui", PlayerGui)
99
WEAPONGUI.Name = "Weapon GUI"
100
local Effects = IT("Folder", Character)
101
Effects.Name = "Effects"
102
local ANIMATOR = Humanoid.Animator
103
local ANIMATE = Character.Animate
104
local UNANCHOR = true
105
local SHOCKSOUND = 781691209
106
local RINGSOUND = 198973822
107
local ULTHIT = 781691209
108
109
--//=================================\\
110
--\\=================================//
111
112
113
--//=================================\\
114
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
115
--\\=================================//
116
117
ArtificialHB = Instance.new("BindableEvent", script)
118
ArtificialHB.Name = "ArtificialHB"
119
120
script:WaitForChild("ArtificialHB")
121
122
frame = Frame_Speed
123
tf = 0
124
allowframeloss = false
125
tossremainder = false
126
lastframe = tick()
127
script.ArtificialHB:Fire()
128
129
game:GetService("RunService").Heartbeat:connect(function(s, p)
130
	tf = tf + s
131
	if tf >= frame then
132
		if allowframeloss then
133
			script.ArtificialHB:Fire()
134
			lastframe = tick()
135
		else
136
			for i = 1, math.floor(tf / frame) do
137
				script.ArtificialHB:Fire()
138
			end
139
		lastframe = tick()
140
		end
141
		if tossremainder then
142
			tf = 0
143
		else
144
			tf = tf - frame * math.floor(tf / frame)
145
		end
146
	end
147
end)
148
149
--//=================================\\
150
--\\=================================//
151
152
--//=================================\\
153
--|| 	         TITLE
154
--\\=================================//
155
local love = 100000000
156
local lovecounter = true
157
158
local txt = Instance.new("BillboardGui", Character)
159
txt.Adornee = Head
160
txt.Name = "_status"
161
txt.Size = UDim2.new(2, 0, 1.2, 0)
162
txt.StudsOffset = Vector3.new(-9, 11, 0)
163
local text = Instance.new("TextLabel", txt)
164
text.Size = UDim2.new(10, 0, 7, 0)
165
text.FontSize = "Size24"
166
text.TextScaled = true
167
text.TextTransparency = 0
168
text.BackgroundTransparency = 1
169
text.TextTransparency = 0
170
text.TextStrokeTransparency = 0
171
text.Font = "Arcade"
172
text.TextStrokeColor3 = Color3.new(255,0,0)
173
174
if lovecounter == true then
175
	text.Text = "Mario LV "..love	
176
end
177
178
--//=================================\\
179
--|| 	      SOME FUNCTIONS
180
--\\=================================//
181
182
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
183
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
184
end
185
186
function PositiveAngle(NUMBER)
187
	if NUMBER >= 0 then
188
		NUMBER = 0
189
	end
190
	return NUMBER
191
end
192
193
function NegativeAngle(NUMBER)
194
	if NUMBER <= 0 then
195
		NUMBER = 0
196
	end
197
	return NUMBER
198
end
199
200
function Swait(NUMBER)
201
	if NUMBER == 0 or NUMBER == nil then
202
		ArtificialHB.Event:wait()
203
	else
204
		for i = 1, NUMBER do
205
			ArtificialHB.Event:wait()
206
		end
207
	end
208
end
209
210
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
211
	local NEWMESH = IT(MESH)
212
	if MESH == "SpecialMesh" then
213
		NEWMESH.MeshType = MESHTYPE
214
		if MESHID ~= "nil" and MESHID ~= "" then
215
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
216
		end
217
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
218
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
219
		end
220
	end
221
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
222
	NEWMESH.Scale = SCALE
223
	NEWMESH.Parent = PARENT
224
	return NEWMESH
225
end
226
227
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
228
	local NEWPART = IT("Part")
229
	NEWPART.formFactor = FORMFACTOR
230
	NEWPART.Reflectance = REFLECTANCE
231
	NEWPART.Transparency = TRANSPARENCY
232
	NEWPART.CanCollide = false
233
	NEWPART.Locked = true
234
	NEWPART.Anchored = true
235
	if ANCHOR == false then
236
		NEWPART.Anchored = false
237
	end
238
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
239
	NEWPART.Name = NAME
240
	NEWPART.Size = SIZE
241
	NEWPART.Position = Torso.Position
242
	NEWPART.Material = MATERIAL
243
	NEWPART:BreakJoints()
244
	NEWPART.Parent = PARENT
245
	return NEWPART
246
end
247
248
	local function weldBetween(a, b)
249
	    local weldd = Instance.new("ManualWeld")
250
	    weldd.Part0 = a
251
	    weldd.Part1 = b
252
	    weldd.C0 = CFrame.new()
253
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
254
	    weldd.Parent = a
255
	    return weldd
256
	end
257
258
259
function QuaternionFromCFrame(cf)
260
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
261
	local trace = m00 + m11 + m22
262
	if trace > 0 then 
263
		local s = math.sqrt(1 + trace)
264
		local recip = 0.5 / s
265
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
266
	else
267
		local i = 0
268
		if m11 > m00 then
269
			i = 1
270
		end
271
		if m22 > (i == 0 and m00 or m11) then
272
			i = 2
273
		end
274
		if i == 0 then
275
			local s = math.sqrt(m00 - m11 - m22 + 1)
276
			local recip = 0.5 / s
277
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
278
		elseif i == 1 then
279
			local s = math.sqrt(m11 - m22 - m00 + 1)
280
			local recip = 0.5 / s
281
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
282
		elseif i == 2 then
283
			local s = math.sqrt(m22 - m00 - m11 + 1)
284
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
285
		end
286
	end
287
end
288
 
289
function QuaternionToCFrame(px, py, pz, x, y, z, w)
290
	local xs, ys, zs = x + x, y + y, z + z
291
	local wx, wy, wz = w * xs, w * ys, w * zs
292
	local xx = x * xs
293
	local xy = x * ys
294
	local xz = x * zs
295
	local yy = y * ys
296
	local yz = y * zs
297
	local zz = z * zs
298
	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))
299
end
300
 
301
function QuaternionSlerp(a, b, t)
302
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
303
	local startInterp, finishInterp;
304
	if cosTheta >= 0.0001 then
305
		if (1 - cosTheta) > 0.0001 then
306
			local theta = ACOS(cosTheta)
307
			local invSinTheta = 1 / SIN(theta)
308
			startInterp = SIN((1 - t) * theta) * invSinTheta
309
			finishInterp = SIN(t * theta) * invSinTheta
310
		else
311
			startInterp = 1 - t
312
			finishInterp = t
313
		end
314
	else
315
		if (1 + cosTheta) > 0.0001 then
316
			local theta = ACOS(-cosTheta)
317
			local invSinTheta = 1 / SIN(theta)
318
			startInterp = SIN((t - 1) * theta) * invSinTheta
319
			finishInterp = SIN(t * theta) * invSinTheta
320
		else
321
			startInterp = t - 1
322
			finishInterp = t
323
		end
324
	end
325
	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
326
end
327
328
function Clerp(a, b, t)
329
	local qa = {QuaternionFromCFrame(a)}
330
	local qb = {QuaternionFromCFrame(b)}
331
	local ax, ay, az = a.x, a.y, a.z
332
	local bx, by, bz = b.x, b.y, b.z
333
	local _t = 1 - t
334
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
335
end
336
337
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
338
	local frame = IT("Frame")
339
	frame.BackgroundTransparency = TRANSPARENCY
340
	frame.BorderSizePixel = BORDERSIZEPIXEL
341
	frame.Position = POSITION
342
	frame.Size = SIZE
343
	frame.BackgroundColor3 = COLOR
344
	frame.BorderColor3 = BORDERCOLOR
345
	frame.Name = NAME
346
	frame.Parent = PARENT
347
	return frame
348
end
349
350
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
351
	local label = IT("TextLabel")
352
	label.BackgroundTransparency = 1
353
	label.Size = UD2(1, 0, 1, 0)
354
	label.Position = UD2(0, 0, 0, 0)
355
	label.TextColor3 = TEXTCOLOR
356
	label.TextStrokeTransparency = STROKETRANSPARENCY
357
	label.TextTransparency = TRANSPARENCY
358
	label.FontSize = TEXTFONTSIZE
359
	label.Font = TEXTFONT
360
	label.BorderSizePixel = BORDERSIZEPIXEL
361
	label.TextScaled = false
362
	label.Text = TEXT
363
	label.Name = NAME
364
	label.Parent = PARENT
365
	return label
366
end
367
368
function NoOutlines(PART)
369
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
370
end
371
372
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
373
	local NEWWELD = IT(TYPE)
374
	NEWWELD.Part0 = PART0
375
	NEWWELD.Part1 = PART1
376
	NEWWELD.C0 = C0
377
	NEWWELD.C1 = C1
378
	NEWWELD.Parent = PARENT
379
	return NEWWELD
380
end
381
382
local S = IT("Sound")
383
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
384
	local NEWSOUND = nil
385
	coroutine.resume(coroutine.create(function()
386
		NEWSOUND = S:Clone()
387
		NEWSOUND.Parent = PARENT
388
		NEWSOUND.Volume = VOLUME
389
		NEWSOUND.Pitch = PITCH
390
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
391
		NEWSOUND:play()
392
		if DOESLOOP == true then
393
			NEWSOUND.Looped = true
394
		else
395
			repeat wait(1) until NEWSOUND.Playing == false
396
			NEWSOUND:remove()
397
		end
398
	end))
399
	return NEWSOUND
400
end
401
402
function CFrameFromTopBack(at, top, back)
403
	local right = top:Cross(back)
404
	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)
405
end
406
407
--WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
408
function WACKYEFFECT(Table)
409
	local TYPE = (Table.EffectType or "Sphere")
410
	local SIZE = (Table.Size or VT(1,1,1))
411
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
412
	local TRANSPARENCY = (Table.Transparency or 0)
413
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
414
	local CFRAME = (Table.CFrame or Torso.CFrame)
415
	local MOVEDIRECTION = (Table.MoveToPos or nil)
416
	local ROTATION1 = (Table.RotationX or 0)
417
	local ROTATION2 = (Table.RotationY or 0)
418
	local ROTATION3 = (Table.RotationZ or 0)
419
	local MATERIAL = (Table.Material or "Neon")
420
	local COLOR = (Table.Color or C3(1,1,1))
421
	local TIME = (Table.Time or 45)
422
	local SOUNDID = (Table.SoundID or nil)
423
	local SOUNDPITCH = (Table.SoundPitch or nil)
424
	local SOUNDVOLUME = (Table.SoundVolume or nil)
425
	coroutine.resume(coroutine.create(function()
426
		local PLAYSSOUND = false
427
		local SOUND = nil
428
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
429
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
430
			PLAYSSOUND = true
431
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
432
		end
433
		EFFECT.Color = COLOR
434
		local MSH = nil
435
		if TYPE == "Sphere" then
436
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
437
		elseif TYPE == "Block" then
438
			MSH = IT("BlockMesh",EFFECT)
439
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
440
		elseif TYPE == "Wave" then
441
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
442
		elseif TYPE == "Ring" then
443
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
444
		elseif TYPE == "Slash" then
445
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
446
		elseif TYPE == "Round Slash" then
447
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
448
		elseif TYPE == "Swirl" then
449
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
450
		elseif TYPE == "Skull" then
451
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
452
		elseif TYPE == "Crystal" then
453
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
454
		elseif TYPE == "Cloud" then
455
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1290033", "", SIZE, VT(0,0,0))
456
		end
457
		if MSH ~= nil then
458
			local MOVESPEED = nil
459
			if MOVEDIRECTION ~= nil then
460
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
461
			end
462
			local GROWTH = SIZE - ENDSIZE
463
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
464
			if TYPE == "Block" then
465
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
466
			else
467
				EFFECT.CFrame = CFRAME
468
			end
469
			for LOOP = 1, TIME+1 do
470
				Swait()
471
				MSH.Scale = MSH.Scale - GROWTH/TIME
472
				if TYPE == "Wave" then
473
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
474
				end
475
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
476
				if TYPE == "Block" then
477
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
478
				else
479
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
480
				end
481
				if MOVEDIRECTION ~= nil then
482
					local ORI = EFFECT.Orientation
483
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
484
					EFFECT.Orientation = ORI
485
				end
486
			end
487
			if PLAYSSOUND == false then
488
				EFFECT:remove()
489
			else
490
				repeat Swait() until SOUND.Playing == false
491
				EFFECT:remove()
492
			end
493
		else
494
			if PLAYSSOUND == false then
495
				EFFECT:remove()
496
			else
497
				repeat Swait() until SOUND.Playing == false
498
				EFFECT:remove()
499
			end
500
		end
501
	end))
502
end
503
504
function MakeForm(PART,TYPE)
505
	if TYPE == "Cyl" then
506
		local MSH = IT("CylinderMesh",PART)
507
	elseif TYPE == "Ball" then
508
		local MSH = IT("SpecialMesh",PART)
509
		MSH.MeshType = "Sphere"
510
	elseif TYPE == "Wedge" then
511
		local MSH = IT("SpecialMesh",PART)
512
		MSH.MeshType = "Wedge"
513
	end
514
end
515
516
Debris = game:GetService("Debris")
517
518
function CastProperRay(StartPos, EndPos, Distance, Ignore)
519
	local DIRECTION = CF(StartPos,EndPos).lookVector
520
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
521
end
522
523
function turnto(position)
524
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
525
end
526
527
--Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false})
528
function Lightning(Table)
529
	local Color = Table.Color or C3(1,1,1)
530
	local StartPos = Table.Start or Torso.Position
531
	local EndPos = Table.End or Mouse.Hit.p
532
	local SegmentLength = Table.SegmentL or 2
533
	local Thickness = Table.Thickness or 0.1
534
	local Dissapear = Table.DoesFade or false
535
	local Parent = Table.Ignore or Character
536
	local MaxDist = Table.MaxDist or 400
537
	local Branches = Table.Branches or false
538
	local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
539
	local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
540
	local LIGHTNINGMODEL = IT("Model",Effects)
541
	LIGHTNINGMODEL.Name = "Lightning"
542
	local LastBolt = nil
543
	for E = 1, DISTANCE do
544
		local ExtraSize = (DISTANCE-E)/25
545
		local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
546
		PART.Color = Color
547
		MakeForm(PART,"Cyl")
548
		if LastBolt == nil then
549
			PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
550
		else
551
			PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
552
		end
553
		LastBolt = PART
554
		if Branches == true then
555
			local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
556
			if CHOICE == 1 then
557
				local LASTBRANCH = nil
558
				for i = 1, MRANDOM(2,5) do
559
					local ExtraSize2 = ((DISTANCE-E)/35)/i
560
					local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
561
					PART.Color = Color
562
					MakeForm(PART,"Cyl")
563
					if LASTBRANCH == nil then
564
						PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
565
					else
566
						PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
567
					end
568
					LASTBRANCH = PART
569
				end
570
			end
571
		end
572
	end
573
	if Dissapear == true then
574
		coroutine.resume(coroutine.create(function()
575
			for i = 1, 30 do
576
				Swait()
577
				for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
578
					if c.ClassName == "Part" then
579
						c.Transparency = i/30
580
					end
581
				end
582
			end
583
			LIGHTNINGMODEL:remove()
584
		end))
585
	elseif Dissapear == false then
586
		Debris:AddItem(LIGHTNINGMODEL,0.1)
587
	end
588
	return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
589
end
590
591
local Particle = IT("ParticleEmitter",nil)
592
Particle.Enabled = false
593
Particle.LightEmission = 1
594
Particle.Rate = 150
595
Particle.ZOffset = 1
596-
local POWER = 250
596+
597-
local MAXPOWER = 500
597+
598
--ParticleEmitter({Speed = 5, RotSpeed = NumberRange.new(-15, 15), Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false, Color1 = C3(1,1,1), Color2 = C3(1,1,1), Texture = ""})
599
function ParticleEmitter(Table)
600
	local PRTCL = Particle:Clone()
601
	local Color1 = Table.Color1 or C3(1,1,1)
602
	local Color2 = Table.Color2 or C3(1,1,1)
603
	local Speed = Table.Speed or 5
604
	local Drag = Table.Drag or 0
605
	local Size1 = Table.Size1 or 1
606
	local Size2 = Table.Size2 or 5
607
	local Lifetime1 = Table.Lifetime1 or 1
608-
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Q] Poison Bolt", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
608+
609-
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[R] Toxic Stomp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
609+
610-
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[X] Toxic Devastation", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
610+
611
	local Offset = Table.Offset or 360
612
	local Acel = Table.Acel or VT(0,0,0)
613
	local Enabled = Table.Enabled or false
614-
local MANACOVER = CreateFrame(MANABAR, 0, 0, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), BRICKC"Dark indigo".Color, C3(0, 0, 0),"Mana Cover")
614+
615
	local RotS = Table.RotSpeed or NumberRange.new(-15, 15)
616
	local Trans1 = Table.Transparency1 or 0
617
	local Trans2 = Table.Transparency2 or 0
618-
local TORSOTHUNDER = ParticleEmitter({Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = A, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
618+
619
	PRTCL.RotSpeed = RotS
620
	PRTCL.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,Trans1),NumberSequenceKeypoint.new(1,Trans2)})
621-
local TORSOTHUNDER2 = ParticleEmitter({Texture = 281983242, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = A, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
621+
622
	PRTCL.Color = ColorSequence.new(Color1,Color2)
623
	PRTCL.Size = NumberSequence.new(Size1,Size2)
624
	PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
625
	PRTCL.Speed = NumberRange.new(Speed)
626-
local CHARGE = ParticleEmitter({Transparency1 = 1, Transparency2 = 0.5, Acel = VT(0,15,0), Texture = 301261210, Speed = 3, RotSpeed = NumberRange.new(-150, 150), Drag = -0.5, Size1 = 2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 1.2, Parent = B, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
626+
627
	PRTCL.Drag = Drag
628
	PRTCL.Acceleration = Acel
629
	if Enabled == false then
630
		PRTCL:Emit(Emit)
631
		Debris:AddItem(PRTCL,Lifetime2)
632
	else
633-
Humanoid.MaxHealth = 1200
633+
634-
Humanoid.Health = 1200
634+
635
	return PRTCL
636
end
637
638
--//=================================\\
639
--||	     WEAPON CREATION
640
--\\=================================//
641
642
local SKILLTEXTCOLOR = C3(1,1,1)
643
local SKILLFONT = "Fantasy"
644
local SKILLTEXTSIZE = 5
645
local POWER = 99999999999999999999999
646
local MAXPOWER = 99999999999999999999999
647
648
Humanoid.Died:connect(function()
649
	ATTACK = true
650
end)
651
652
local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.01, 0, 0.83, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
653
local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.012, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
654
local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.03, 0, 0.73, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
655
local SHIFTFR = CreateFrame(WEAPONGUI, 1, 2, UD2(0.30, 0, 0.87, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Charging")
656
657
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Q] Lighting Bolt", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
658
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[R] Mario Stomp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
659
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[X] Mario GIGA FIREBALL", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
660
local SHIFTX = CreateLabel(SHIFTFR, "[SHIFT] Charge", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "How2Shift")
661
662
local MANABAR = CreateFrame(WEAPONGUI, 0.5, 1, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.02, 0), C3(0,0,0), C3(0, 0, 0),"Mana Bar") 
663
local MANACOVER = CreateFrame(MANABAR, 0, 0, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), BRICKC"Really red".Color, C3(0, 0, 0),"Mana Cover")
664-
			local ZAP = ParticleEmitter({Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 2, Size2 = 3, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = Humanoid.Torso, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
664+
665
666
local A = IT("Attachment",Torso)
667
local TORSOTHUNDER = ParticleEmitter({Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = A, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Really red".Color, Color2 = BRICKC"Really red".Color})
668
TORSOTHUNDER.Enabled = false
669
TORSOTHUNDER.Rate = 5
670
local TORSOTHUNDER2 = ParticleEmitter({Texture = 281983242, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = A, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Really red".Color, Color2 = BRICKC"Really red".Color})
671
TORSOTHUNDER2.Enabled = false
672
TORSOTHUNDER2.Rate = 5
673
local B = IT("Attachment",RootPart)
674
B.Position = VT(0,-3,0)
675
local CHARGE = ParticleEmitter({Transparency1 = 1, Transparency2 = 0.5, Acel = VT(0,15,0), Texture = 301261210, Speed = 3, RotSpeed = NumberRange.new(-150, 150), Drag = -0.5, Size1 = 2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 1.2, Parent = B, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Really red".Color, Color2 = BRICKC"Really red".Color})
676
CHARGE.ZOffset = 1.5
677
CHARGE.Enabled = false
678
CHARGE.Rate = 999
679
680
local FF = IT("ForceField",Character)
681
FF.Visible = false
682
Humanoid.MaxHealth = 999999999
683
Humanoid.Health = 999999999
684
local HEALTHBAR = CreateFrame(WEAPONGUI, 0.5, 1, UD2(0.1, 0, 0.93, 0), UD2(0.26, 0, 0.02, 0), C3(0,0,0), C3(0, 0, 0),"Health Bar") 
685
local HEALTHCOVER = CreateFrame(HEALTHBAR, 0, 0, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), BRICKC"Shamrock".Color, C3(0, 0, 0),"Health Cover")
686
local HEALTHTEXT = CreateLabel(HEALTHBAR, Humanoid.Health.."/"..Humanoid.MaxHealth, SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "HP")
687
Character.Health:remove()
688
689
for _, c in pairs(Character:GetChildren()) do
690
    if (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
691
        c:remove()
692
    end
693
end
694
Head.face.Texture = "http://www.roblox.com/asset/?id=122497643"
695
local top = Instance.new("Shirt")
696
top.ShirtTemplate = "rbxassetid://76314492"
697
top.Parent = Character
698
top.Name = "Cloth"
699
local bottom = Instance.new("Pants")
700
bottom.PantsTemplate = "rbxassetid://76314557"
701
bottom.Parent = Character
702
bottom.Name = "Cloth"
703
704
--//=================================\\
705
--||			DAMAGING
706
--\\=================================//
707
708
function ApplyDamage(Humanoid,Damage,TorsoPart)
709
	local defence = Instance.new("BoolValue",Humanoid.Parent)
710
	defence.Name = ("HitBy"..Player.Name)
711
	game:GetService("Debris"):AddItem(defence, 0.001)
712
	Damage = Damage * DAMAGEMULTIPLIER
713
	if Humanoid.Health ~= 0 then
714
		local CritChance = MRANDOM(1,100)
715
		if Damage > Humanoid.Health then
716
			Damage = math.ceil(Humanoid.Health)
717
			if Damage == 0 then
718
				Damage = 0.1
719
			end
720
		end
721
		Humanoid.Health = Humanoid.Health - Damage
722
	end
723
end
724
725
function AfterZap(Humanoid,Times,Dmg)
726-
	BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1563007449"
726+
727
		if Humanoid ~= nil then
728
			local ZAP = ParticleEmitter({Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 2, Size2 = 3, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = Humanoid.Torso, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Really red".Color, Color2 = BRICKC"Really red".Color})
729
			ZAP.Rate = 75
730
			for i = 1, Times do
731-
	TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1563008191"
731+
732
				if Humanoid ~= nil and Humanoid.Health > 0 then
733-
	local T = ParticleEmitter({Transparency1 = 0.2, Transparency2 = 1, Texture = 1084975295, Speed = 0, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 0, Size2 = 10, Lifetime1 = 1, Lifetime2 = 1, Parent = RING, Emit = 25, Offset = 360, Enabled = false, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
733+
734
					CreateSound(SHOCKSOUND,Humanoid.Torso,1,MRANDOM(13,16)/10,false)
735
				else
736
					break
737
				end
738
			end
739
			ZAP.Enabled = false
740
			Debris:AddItem(ZAP,3)
741
		end
742
	end))
743
end
744
745
function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,DOESAFTERZAP,ZAPCOUNTER)
746
	local CHILDREN = workspace:GetDescendants()
747
	for index, CHILD in pairs(CHILDREN) do
748
		if CHILD.ClassName == "Model" and CHILD ~= Character then
749-
			POWER = POWER + 1
749+
750
			if HUM then
751
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
752
				if TORSO then
753
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
754
						if DOESAFTERZAP == true then
755
							AfterZap(HUM,ZAPCOUNTER,math.ceil(MINDMG/7))
756
						end
757
						local DMG = MRANDOM(MINDMG,MAXDMG)
758
						ApplyDamage(HUM,DMG,TORSO)
759
						if FLING > 0 then
760
							for _, c in pairs(CHILD:GetChildren()) do
761
								if c:IsA("BasePart") then
762
									local bv = Instance.new("BodyVelocity") 
763
									bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
764
									bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
765
									bv.Parent = c
766
									Debris:AddItem(bv,0.05)
767
								end
768
							end
769
						end
770
					end
771
				end
772
			end
773
		end
774
	end
775
end
776
777
--//=================================\\
778
--||	ATTACK FUNCTIONS AND STUFF
779
--\\=================================//
780
781
local DECAL = IT("Decal",nil)
782
783
function MagicRing(PART,CFRAME)
784
	local RING = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "MagicRing", VT(0,0,0),false)
785
	local WELD = CreateWeldOrSnapOrMotor("Weld", PART, PART, RING, CFRAME, CF(0, 0, 0))
786
	local MESH = IT("BlockMesh",RING)
787
	local BOTTOMTEXTURE = DECAL:Clone()
788
	BOTTOMTEXTURE.Parent = RING
789
	BOTTOMTEXTURE.Face = "Bottom"
790
	BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=73157030"
791
	BOTTOMTEXTURE.Name = "BottomTexture"
792
	local TOPTEXTURE = DECAL:Clone()
793
	TOPTEXTURE.Parent = RING
794
	TOPTEXTURE.Face = "Top"
795
	TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=73157030"
796
	TOPTEXTURE.Name = "TopTexture"
797
	local T = ParticleEmitter({Transparency1 = 0.2, Transparency2 = 1, Texture = 1084975295, Speed = 0, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 0, Size2 = 10, Lifetime1 = 1, Lifetime2 = 1, Parent = RING, Emit = 25, Offset = 360, Enabled = false, Color1 = BRICKC"Really red".Color, Color2 = BRICKC"Really red".Color})
798
	T.LockedToPart = true
799
	return RING,WELD,MESH
800
end
801
802
function Charge()
803
	ATTACK = true
804
	Rooted = true
805
	TORSOTHUNDER.Enabled = true
806
	TORSOTHUNDER2.Enabled = true
807
	CHARGE.Enabled = true
808
	local LOOP = CreateSound(516142778,Torso,0,1,true)
809
	local LOOP2 = CreateSound(1393698948,Torso,0,2,true)
810
	repeat
811
		Swait()
812
		if POWER < MAXPOWER then
813
			POWER = POWER + 9999
814
		elseif POWER > MAXPOWER then
815
			POWER = MAXPOWER
816
		end
817
		if LOOP.Volume < 5 then
818
			LOOP.Volume = LOOP.Volume + 0.2
819
		end
820
		if LOOP2.Volume < 5 then
821
			LOOP2.Volume = LOOP2.Volume + 0.2
822
		end
823
		TORSOTHUNDER.Rate = MRANDOM(15,45)
824
		TORSOTHUNDER2.Rate = MRANDOM(15,45)
825
		Humanoid.Health = Humanoid.Health + 1
826
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
827
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
828-
		local ZAP = Lightning({Color = BRICKC"Dark indigo".Color, Start = RING.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 100, Branches = false})
828+
829
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
830
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
831-
			WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(8,8,8)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(ZAP.End), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = SHOCKSOUND, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 6})
831+
832
	until KEYHOLD == false or POWER == MAXPOWER and Humanoid.Health == Humanoid.MaxHealth
833
	CHARGE.Enabled = false
834
	TORSOTHUNDER.Enabled = false
835-
		local ZAP = Lightning({Color = BRICKC"Dark indigo".Color, Start = RING.Position, End = Mouse.Hit.p, SegmentL = 2.5, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 200, Branches = false})
835+
836
	coroutine.resume(coroutine.create(function()
837
		repeat
838-
			WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(8,8,8)*4, Transparency = 0, Transparency2 = 1, CFrame = CF(ZAP.End), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = SHOCKSOUND, SoundPitch = MRANDOM(7,10)/10, SoundVolume = 6})
838+
839
			LOOP.Volume = LOOP.Volume - 0.2
840
			LOOP2.Volume = LOOP2.Volume - 0.2
841
		until LOOP.Volume <= 0
842-
		local ZAP = Lightning({Color = BRICKC"Dark indigo".Color, Start = RING.Position, End = Mouse.Hit.p, SegmentL = 3, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 300, Branches = true})
842+
843
	end))
844
	ATTACK = false
845-
			WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(8,8,8)*8, Transparency = 0, Transparency2 = 1, CFrame = CF(ZAP.End), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = SHOCKSOUND, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
845+
846
end
847
848-
				Lightning({Color = BRICKC"Dark indigo".Color, Start = ZAP.End, End = ZAP.End+VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)), SegmentL = 3, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 15, Branches = false})
848+
849
	ATTACK = false
850
	Rooted = true
851
	local STRENGTH = 100
852
	local TIER = 1
853
	local GRAV = IT("BodyPosition",RootPart)
854
	GRAV.D = 250
855
	GRAV.P = 20000
856
	GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
857
	GRAV.Position = RootPart.Position
858
	local G = IT("BodyGyro",RootPart)
859
	G.D = 250
860
	G.P = 200000
861
	G.MaxTorque = VT(math.huge,math.huge,math.huge)
862
	local RING,WELD,MESH = MagicRing(RightArm,CF(0,-1.2,0))
863
	CreateSound(RINGSOUND,RING,5,1,false)
864
	repeat
865
		Swait()
866
		STRENGTH = STRENGTH + 0.3
867
		if STRENGTH > 200 then
868
			STRENGTH = 200
869
		end
870
		if MESH.Scale.X < 120 then
871
			MESH.Scale = MESH.Scale + VT(3,0,3)
872
		elseif MESH.Scale.X < 200 then
873
			MESH.Scale = MESH.Scale + VT(0.3,0,0.3)
874
		end
875
		G.cframe = CF(RootPart.Position,Mouse.Hit.p)
876
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
877
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
878
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.2) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
879
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
880
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
881
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
882
	until KEYHOLD == false and MESH.Scale.X >= 120
883
	if STRENGTH >= 150 and STRENGTH ~= 200 and POWER >= 35 then
884
		POWER = POWER - 35
885
		TIER = 2
886
	elseif STRENGTH == 200 and POWER >= 75  then
887
		POWER = POWER - 75
888
		TIER = 3
889
	end
890
	--print("STRENGTH:"..STRENGTH.."/TIER:"..TIER)
891
	if TIER == 1 then
892
		local ZAP = Lightning({Color = BRICKC"Really red".Color, Start = RING.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 100, Branches = false})
893
		if ZAP.End ~= nil then
894
			ApplyAoE(ZAP.End,10,5,15,35,true,6)
895
			WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(8,8,8)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(ZAP.End), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = SHOCKSOUND, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 6})
896
			WACKYEFFECT({Time = 65, EffectType = "Cloud", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0.5, Transparency2 = 1, CFrame = CF(ZAP.End) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-100,100)/150, RotationY = MRANDOM(-100,100)/150, RotationZ = MRANDOM(-100,100)/150, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 3})
897
		end
898
	elseif TIER == 2 then
899
		local ZAP = Lightning({Color = BRICKC"Really red".Color, Start = RING.Position, End = Mouse.Hit.p, SegmentL = 2.5, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 200, Branches = false})
900
		if ZAP.End ~= nil then
901
			ApplyAoE(ZAP.End,15,15,25,35,true,8)
902
			WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(8,8,8)*4, Transparency = 0, Transparency2 = 1, CFrame = CF(ZAP.End), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = SHOCKSOUND, SoundPitch = MRANDOM(7,10)/10, SoundVolume = 6})
903
			WACKYEFFECT({Time = 75, EffectType = "Cloud", Size = VT(1,1,1), Size2 = VT(5,5,5)*2, Transparency = 0.5, Transparency2 = 1, CFrame = CF(ZAP.End) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-100,100)/150, RotationY = MRANDOM(-100,100)/150, RotationZ = MRANDOM(-100,100)/150, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 3})
904
		end
905
	elseif TIER == 3 then
906
		local ZAP = Lightning({Color = BRICKC"Really red".Color, Start = RING.Position, End = Mouse.Hit.p, SegmentL = 3, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 300, Branches = true})
907
		if ZAP.End ~= nil then
908
			ApplyAoE(ZAP.End,20,15,25,35,true,12)
909
			WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(8,8,8)*8, Transparency = 0, Transparency2 = 1, CFrame = CF(ZAP.End), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = SHOCKSOUND, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
910
			WACKYEFFECT({Time = 125, EffectType = "Cloud", Size = VT(1,1,1), Size2 = VT(5,5,5)*4, Transparency = 0.5, Transparency2 = 1, CFrame = CF(ZAP.End) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-100,100)/150, RotationY = MRANDOM(-100,100)/150, RotationZ = MRANDOM(-100,100)/150, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 3})
911
			for i = 1, 4 do
912
				Lightning({Color = BRICKC"Really red".Color, Start = ZAP.End, End = ZAP.End+VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)), SegmentL = 3, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 15, Branches = false})
913
			end
914
		end
915
	end
916
	wait(0.5)
917
	RING.Anchored = true
918
	WELD:remove()
919
	coroutine.resume(coroutine.create(function()
920
		for i = 1, 25 do
921
			Swait()
922
			RING.TopTexture.Transparency = RING.TopTexture.Transparency + 1/25
923
			RING.BottomTexture.Transparency = RING.BottomTexture.Transparency + 1/25
924
			MESH.Scale = MESH.Scale - VT(3,0,3)
925
		end
926
		RING:remove()
927
	end))
928
	ATTACK = false
929-
			local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
929+
930
	G:remove()
931-
			CreateSound(304999618,AOE,5,1,false)
931+
932-
			CreateSound(130972023,AOE,4,1,false)
932+
933
934-
			WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(45,3,45), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
934+
935
	ATTACK = false
936
	Rooted = false
937
	local GRAV = IT("BodyPosition",RootPart)
938
	GRAV.D = 250
939
	GRAV.P = 20000
940
	GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
941-
			local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
941+
942
	local RING,WELD,MESH = MagicRing(RightLeg,CF(0,-1.2,0))
943-
			CreateSound(304999618,AOE,5,1,false)
943+
944-
			CreateSound(130972023,AOE,4,1,false)
944+
945
	local TIER = 1
946-
			WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(55,3,55), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
946+
947
		Swait()
948
		STRENGTH = STRENGTH + 0.3
949
		if STRENGTH > 200 then
950
			STRENGTH = 200
951
		end
952
		if MESH.Scale.X < 120 then
953-
			local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
953+
954
		elseif MESH.Scale.X < 200 then
955-
			CreateSound(304999618,AOE,5,1,false)
955+
956-
			CreateSound(130972023,AOE,4,1,false)
956+
957
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
958-
				ApplyAoE(AOE.Position,30,5,15,5,true,7)WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(55,3,55), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
958+
959
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
960
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
961
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.25, -0.65) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
962
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
963
	until KEYHOLD == false and MESH.Scale.X >= 120
964
	if STRENGTH >= 150 and STRENGTH ~= 200 and POWER >= 45 then
965
		POWER = POWER - 45
966
		TIER = 2
967
	elseif STRENGTH == 200 and POWER >= 100 then
968
		POWER = POWER - 100
969
		TIER = 3
970
	end
971
	for i=0, 0.2, 0.1 / Animation_Speed do
972
		Swait()
973
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
974
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
975
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
976
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
977
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.25, -0.65) * ANGLES(RAD(10), RAD(90), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
978
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
979
	end
980
	for i=0, 0.2, 0.1 / Animation_Speed do
981
		Swait()
982
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.6) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
983
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
984
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
985
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
986
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.5) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
987
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-25), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
988
	end
989
	coroutine.resume(coroutine.create(function()
990
		if TIER == 1 then
991
			local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "Stomp", VT(30,0,30))
992
			AOE.CFrame = CF(RightLeg.Position-VT(0,1,0))
993
			local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Really red".Color, Color2 = BRICKC"Really red".Color})
994
			PARTCL.Rate = 999
995
			CreateSound(141679994,AOE,5,1,false)
996
			CreateSound(141679994,AOE,4,1,false)
997
			ApplyAoE(AOE.Position,15,15,25,35,true,5)
998
			WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(45,3,45), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
999
			wait(2)
1000
			PARTCL.Enabled = false
1001
			Debris:AddItem(AOE,2)
1002
		elseif TIER == 2 then
1003
			local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "Stomp", VT(40,0,40))
1004
			AOE.CFrame = CF(RightLeg.Position-VT(0,1,0))
1005
			local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Really red".Color, Color2 = BRICKC"Really red".Color})
1006
			PARTCL.Rate = 999
1007
			CreateSound(141679994,AOE,5,1,false)
1008
			CreateSound(141679994,AOE,4,1,false)
1009
			ApplyAoE(AOE.Position,20,25,35,35,true,6)
1010
			WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(55,3,55), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
1011
			wait(2)
1012
			PARTCL.Enabled = false
1013
			Debris:AddItem(AOE,2)
1014
		elseif TIER == 3 then
1015
			local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "Stomp", VT(50,0,50))
1016
			AOE.CFrame = CF(RightLeg.Position-VT(0,1,0))
1017
			local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Really red".Color, Color2 = BRICKC"Really red".Color})
1018
			PARTCL.Rate = 999
1019
			CreateSound(141679994,AOE,5,1,false)
1020
			CreateSound(141679994,AOE,4,1,false)
1021
			for i = 1, 3 do
1022
				ApplyAoE(AOE.Position,30,5,15,5,true,7)WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(55,3,55), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
1023
				wait(0.5)
1024
			end
1025
			wait(1.5)
1026
			PARTCL.Enabled = false
1027
			Debris:AddItem(AOE,2)
1028
		end
1029
	end))
1030
	for i=0, 2, 0.1 / Animation_Speed do
1031
		Swait()
1032
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.6) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
1033
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
1034
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1035
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1036
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.5) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1037-
	local ORB = CreatePart(3, Effects, "Neon", 0, 0, "Royal purple", "Ball", VT(3,3,3))
1037+
1038
	end
1039
	RING.Anchored = true
1040
	WELD:remove()
1041
	coroutine.resume(coroutine.create(function()
1042
		for i = 1, 25 do
1043
			Swait()
1044
			RING.TopTexture.Transparency = RING.TopTexture.Transparency + 1/25
1045
			RING.BottomTexture.Transparency = RING.BottomTexture.Transparency + 1/25
1046
			MESH.Scale = MESH.Scale - VT(3,0,3)
1047
		end
1048
		RING:remove()
1049
	end))
1050
	GRAV:remove()
1051
	ATTACK = false
1052
	Rooted = false
1053
end
1054
1055
function ToxicDevastation()
1056
	ATTACK = false
1057-
			POWER = POWER - 1
1057+
1058
	Speed = 5
1059
	local STRENGTH = 50
1060
	local TIER = 1
1061
	for i=0, 1, 0.1 / Animation_Speed do
1062
		Swait()
1063
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1064
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
1065
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1066
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1067
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.15, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1068
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1069
	end
1070
	local POS = RootPart.Position
1071
	Rooted = true
1072
	Speed = Walkspeed
1073
	local TIMER = 0
1074
	local bv = Instance.new("BodyVelocity") 
1075
	bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1076
	bv.velocity = CF(RootPart.Position,RootPart.Position+VT(0,5,0)).lookVector*150
1077
	bv.Parent = RootPart
1078
	WACKYEFFECT({EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(5,1,5), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position+VT(0,-3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = BRICKC"Pearl".Color, SoundID = 1112042117, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
1079
	repeat
1080
		Swait()
1081
		TIMER = TIMER + 1
1082
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1083
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1084
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1085
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1086
		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)
1087
		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)
1088
	until RootPart.Position.Y > POS.Y+80 or TIMER > 100
1089
	local GRAV = IT("BodyPosition",RootPart)
1090
	GRAV.D = 250
1091
	GRAV.P = 20000
1092-
					local FAKEORB = CreatePart(3, Effects, "Neon", 0, 0, "Royal purple", "Ball", ORB.Size)
1092+
1093
	GRAV.Position = RootPart.Position
1094
	bv:remove()
1095
	local G = IT("BodyGyro",RootPart)
1096
	G.D = 250
1097-
					WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = FAKEORB.Size, Size2 = VT(35+(25*TIER),35+(25*TIER),35+(25*TIER)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = COLOR, SoundID = 178452241, SoundPitch = 1, SoundVolume = 6})
1097+
1098
	G.MaxTorque = VT(math.huge,math.huge,math.huge)
1099
	local RING,WELD,MESH = MagicRing(Torso,CF(0,3,0))
1100
	CreateSound(RINGSOUND,RING,5,1,false)
1101
	local ORB = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Ball", VT(3,3,3))
1102
	MakeForm(ORB,"Ball")
1103
	local LOOP = 0
1104
	repeat
1105
		Swait()
1106
		LOOP = LOOP + 1
1107
		ORB.CFrame = Torso.CFrame*CF(0,4+ORB.Size.X/2,0)
1108
		STRENGTH = STRENGTH + 0.3
1109
		if STRENGTH > 200 then
1110
			STRENGTH = 200
1111-
							WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = FAKEORB.Size, Size2 = VT(35+(25*TIER),35+(25*TIER),35+(25*TIER)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = COLOR, SoundID = 178452241, SoundPitch = 1, SoundVolume = 6})
1111+
1112
			ORB.Size = ORB.Size + VT(0.02,0.02,0.02)
1113
		end
1114
		if MESH.Scale.X < 120 then
1115
			MESH.Scale = MESH.Scale + VT(5,0,5)
1116
		elseif MESH.Scale.X < 200 then
1117
			MESH.Scale = MESH.Scale + VT(0.6,0,0.6)
1118
		end
1119
		if LOOP == 4 then
1120
			LOOP = 0
1121
			POWER = POWER - 500
1122
		end
1123
		if MRANDOM(1,25) == 1 then
1124
			Lightning({Color = ORB.Color, Start = ORB.Position, End = ORB.Position+VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)), SegmentL = 1, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = ORB.Size.X, Branches = false})
1125
		end
1126
		G.cframe = CF(RootPart.Position,Mouse.Hit.p)
1127
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1128
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1129
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1130
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1131
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
1132
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
1133
	until (KEYHOLD == false and MESH.Scale.X >= 170) or POWER == 0
1134
	if STRENGTH >= 150 and STRENGTH ~= 200 then
1135
		TIER = 2
1136
	elseif STRENGTH == 200  then
1137
		TIER = 3
1138
	end
1139
	coroutine.resume(coroutine.create(function()
1140
		ORB.CFrame = CF(ORB.Position,Mouse.Hit.p)
1141
		CreateSound(1112042117,ORB,5,0.8,false)
1142
		for i = 1, 200 do
1143
			Swait()
1144
			ORB.CFrame = ORB.CFrame*CF(0,0,-2)
1145
			if MRANDOM(1,5) == 1 then
1146
				Lightning({Color = ORB.Color, Start = ORB.Position, End = ORB.Position+VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)), SegmentL = 1, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = ORB.Size.X, Branches = false})
1147
			end
1148
			local HIT = Raycast(ORB.Position, ORB.CFrame.lookVector, ORB.Size.X/2, Character)
1149
			if HIT ~= nil then
1150
				ORB.Transparency = 1
1151
				coroutine.resume(coroutine.create(function()
1152
					local COLOR = ORB.Color
1153
					local POS = ORB.Position
1154
					local SIZE = ORB.Size
1155
					local TIMES = 12 + TIER*3
1156
					local FAKEORB = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Ball", ORB.Size)
1157
					FAKEORB.CFrame = CF(POS)
1158
					MakeForm(FAKEORB,"Ball")
1159
					local TIME = 0
1160
					ApplyAoE(FAKEORB.Position,30+(25*TIER),15,25,0,true,10)
1161
					WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = FAKEORB.Size, Size2 = VT(35+(25*TIER),35+(25*TIER),35+(25*TIER)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = COLOR, SoundID = 781691209, SoundPitch = 1, SoundVolume = 6})
1162
					for i = 1, 5 do
1163
						WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(35+(25*TIER),3,35+(25*TIER)), Transparency = 0.5, Transparency2 = 1, CFrame = CF(POS) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = COLOR, SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
1164
					end
1165
					for i = 1, TIMES*20 do
1166
						TIME = TIME + 1
1167
						wait()
1168
						if MRANDOM(1,math.ceil(5+(i/15))) == 1 then
1169-
		POWER = POWER - 125
1169+
1170
						end
1171
						FAKEORB.Size = FAKEORB.Size - SIZE/(TIMES*20)
1172
						if TIME >= 20 then
1173
							TIME = 0
1174
							ApplyAoE(FAKEORB.Position,30+(25*TIER),15,25,0,true,10)
1175
							WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = FAKEORB.Size, Size2 = VT(35+(25*TIER),35+(25*TIER),35+(25*TIER)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = COLOR, SoundID = 781691209, SoundPitch = 1, SoundVolume = 6})
1176
							for i = 1, 5 do
1177
								WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(35+(25*TIER),3,35+(25*TIER)), Transparency = 0.5, Transparency2 = 1, CFrame = CF(POS) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = COLOR, SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
1178
							end
1179
						end
1180
					end
1181
					FAKEORB:remove()
1182
				end))
1183
				break
1184
			end
1185
		end
1186
		ORB:remove()
1187
	end))
1188
	for i=0, 1, 0.1 / Animation_Speed do
1189
		Swait()
1190
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
1191
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
1192
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1193
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1194
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
1195
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
1196
	end
1197
	coroutine.resume(coroutine.create(function()
1198
		for i = 1, 25 do
1199
			Swait()
1200
			RING.TopTexture.Transparency = RING.TopTexture.Transparency + 1/25
1201
			RING.BottomTexture.Transparency = RING.BottomTexture.Transparency + 1/25
1202
			MESH.Scale = MESH.Scale - VT(3,0,3)
1203
		end
1204
		RING:remove()
1205
	end))
1206
	GRAV:remove()
1207
	G:remove()
1208
	ATTACK = false
1209
	Rooted = false
1210
end
1211
1212
--//=================================\\
1213
--||	  ASSIGN THINGS TO KEYS
1214
--\\=================================//
1215
1216
function MouseDown(Mouse)
1217
	if ATTACK == false then
1218
	end
1219
end
1220
1221
function MouseUp(Mouse)
1222
HOLD = false
1223
end
1224
1225
function KeyDown(Key)
1226
	KEYHOLD = true
1227
	if Key == "q" and ATTACK == false and POWER >= 50 then
1228
		POWER = POWER - 50
1229
		PoisonBolt()
1230
	end
1231
1232
	if Key == "r" and ATTACK == false and POWER >= 125 then
1233
		POWER = POWER - 100
1234
		ToxicStomp()
1235
	end
1236
1237
	if Key == "x" and ATTACK == false and POWER >= 250 then
1238
		POWER = POWER - 250
1239
		ToxicDevastation()
1240
	end
1241
1242
	if string.byte(Key) == 48 and ATTACK == false and (POWER ~= MAXPOWER or Humanoid.Health ~= Humanoid.MaxHealth) then
1243
		Charge()
1244
	end
1245
1246
	if string.byte(Key) == 50 and ATTACK == false then
1247
		if Walkspeed == 16 then
1248
			Walkspeed = 30
1249
			Speed = 30
1250
		elseif Walkspeed == 30 then
1251
			Walkspeed = 16
1252
			Speed = 16
1253
		end
1254
	end
1255
end
1256
1257
function KeyUp(Key)
1258
	KEYHOLD = false
1259
end
1260
1261
	Mouse.Button1Down:connect(function(NEWKEY)
1262
		MouseDown(NEWKEY)
1263
	end)
1264
	Mouse.Button1Up:connect(function(NEWKEY)
1265
		MouseUp(NEWKEY)
1266
	end)
1267
	Mouse.KeyDown:connect(function(NEWKEY)
1268
		KeyDown(NEWKEY)
1269
	end)
1270
	Mouse.KeyUp:connect(function(NEWKEY)
1271
		KeyUp(NEWKEY)
1272
	end)
1273
1274
--//=================================\\
1275
--\\=================================//
1276
1277
1278
function unanchor()
1279
	if UNANCHOR == true then
1280
		g = Character:GetChildren()
1281
		for i = 1, #g do
1282
			if g[i].ClassName == "Part" then
1283
				g[i].Anchored = false
1284
			end
1285
		end
1286
	end
1287
end
1288
1289
1290
--//=================================\\
1291
--||	WRAP THE WHOLE SCRIPT UP
1292
--\\=================================//
1293
1294
Humanoid.Changed:connect(function(Jump)
1295
	if Jump == "Jump" and (Disable_Jump == true) then
1296
		Humanoid.Jump = false
1297
	end
1298
end)
1299
1300
while true do
1301
	Swait()
1302
	script.Parent = WEAPONGUI
1303
	ANIMATE.Parent = nil
1304
	for _,v in next, Humanoid:GetPlayingAnimationTracks() do
1305
	    v:Stop();
1306
	end
1307
	SINE = SINE + CHANGE
1308
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1309
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1310
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
1311
	local WALKSPEEDVALUE = 5
1312
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
1313
		if Humanoid.WalkSpeed <= 20 then
1314
			RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.05 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed)
1315
			Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * 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)
1316
			RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
1317
			LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
1318
		else
1319
			RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / (2*1.3)))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed)
1320
			Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / (2*1.3)))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1321
			RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), -0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed)
1322
			LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), 0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed)
1323
		end
1324-
	sick.SoundId = "rbxassetid://598848368"
1324+
1325
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1326
		Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1327-
	sick.Volume = 3
1327+
1328
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1329
	end
1330
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
1331
		ANIM = "Jump"
1332
		if ATTACK == false then
1333
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1334-
	Humanoid.Health = Humanoid.Health + 0.05
1334+
1335
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1336
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1337
			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)
1338
			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)
1339
	    end
1340
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
1341
		ANIM = "Fall"
1342
		if ATTACK == false then
1343
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1344
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1345
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1346
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1347
			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)
1348
			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)
1349
		end
1350
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1351
		ANIM = "Idle"
1352
		if ATTACK == false then
1353
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1354
			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)
1355
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(5 + 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1356
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-5 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1357
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1358
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1359
		end
1360
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
1361
		ANIM = "Walk"
1362
		if ATTACK == false then
1363
			if Humanoid.WalkSpeed <= 20 then
1364
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1365
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1366
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.85 / Animation_Speed)
1367
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.85 / Animation_Speed)
1368
				RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
1369
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
1370
			elseif Humanoid.WalkSpeed > 20 then
1371
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1372
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1373
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35), RAD(35), RAD(0)) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE*1.3)), RAD(0), RAD(2)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1374
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35), RAD(-35), RAD(0)) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE*1.3)), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1375
				RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(6)), 2 / Animation_Speed)
1376
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-6)), 2 / Animation_Speed)
1377
			end
1378
		end
1379
	end
1380
	unanchor()
1381
	if Rooted == false then
1382
		Disable_Jump = false
1383
		Humanoid.WalkSpeed = Speed
1384
	elseif Rooted == true then
1385
		Disable_Jump = true
1386
		Humanoid.WalkSpeed = 0
1387
	end
1388
	sick.SoundId = "rbxassetid://865650541"
1389
	sick.Looped = true
1390
	sick.Pitch = 1
1391
	sick.Volume = 1
1392
	sick.Parent = Torso
1393
	sick.Playing = true
1394
	MANACOVER:TweenSize(UD2(1 * (POWER / MAXPOWER), 0, 1, 0), "Out", "Quad", 0.1, 0.1)
1395
	MANATEXT.Text = POWER.."/"..MAXPOWER
1396
	HEALTHCOVER:TweenSize(UD2(1 * (Humanoid.Health / Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", 0.1, 0.1)
1397
	HEALTHTEXT.Text = math.ceil(Humanoid.Health).."/"..Humanoid.MaxHealth
1398
	Humanoid.Health = Humanoid.MaxHealth
1399
end
1400
1401
--//=================================\\
1402
--\\=================================//
1403
1404
1405
for _, c in pairs(Character:GetChildren()) do
1406
    if c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" then
1407
			c:remove()
1408
	end
1409
end
1410
1411
--//====================================================\\--
1412
--||			  		 END OF SCRIPT
1413
--\\====================================================//--