View difference between Paste ID: Cp18yFS5 and gc5dnrAU
SHOW: | | - or go back to the newest paste.
1
--Wizard Boi
2
3
local plr = game:service'Players'.LocalPlayer
4
gui = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
5
text = Instance.new("TextButton", game.Players.LocalPlayer.PlayerGui.ScreenGui)
6-
text.Text = "Click here to be wizard."
6+
text.Text = "lol"
7-
text.Size = UDim2.new(0,200, 0,80)
7+
text.Size = UDim2.new(0,80, 0,80)
8
text.Transparency = 1
9-
text.Position = UDim2.new(0,600, 0,600)
9+
text.Position = UDim2.new(0,999, 0,710)
10-
function succ()
10+
function weez()
11-
BillboardGui0 = Instance.new("BillboardGui")
11+
12-
ImageLabel1 = Instance.new("ImageLabel")
12+
13-
BillboardGui0.Name = "Healthbar"
13+
14-
BillboardGui0.Size = UDim2.new(2, 0, 0.4, 0)
14+
15-
BillboardGui0.AlwaysOnTop = true
15+
16-
BillboardGui0.StudsOffset = Vector3.new(0, 5, 0)
16+
17-
ImageLabel1.Parent = BillboardGui0
17+
18-
ImageLabel1.Transparency = 1
18+
19-
ImageLabel1.Size = UDim2.new(1, 0, 5, 0)
19+
20-
ImageLabel1.BackgroundColor3 = Color3.new(1, 1, 1)
20+
21-
ImageLabel1.BackgroundTransparency = 1
21+
22-
ImageLabel1.ImageTransparency = 1
22+
23-
ImageLabel1.Image = "rbxassetid://98053986"
23+
24-
BillboardGui0.Parent = Torso
24+
25
LeftLeg = Character["Left Leg"]
26
RootJoint = RootPart["RootJoint"]
27
Neck = Torso["Neck"]
28
RightShoulder = Torso["Right Shoulder"]
29
LeftShoulder = Torso["Left Shoulder"]
30
RightHip = Torso["Right Hip"]
31
LeftHip = Torso["Left Hip"]
32
local sick = Instance.new("Sound",Character)
33
sick.SoundId = "rbxassetid://295032735"
34
sick.Looped = true
35
sick.Pitch = 1
36
sick.Volume = 1
37
sick:Play()
38
local sick2 = Instance.new("Sound",Character)
39
sick2.SoundId = "rbxassetid://181356699"
40
sick2.Looped = true
41
sick2.Pitch = 1
42
sick2.Volume = 10
43
Humanoid.DisplayDistanceType = "None"
44
Player:ClearCharacterAppearance()
45
46
IT = Instance.new
47-
sick.SoundId = "rbxassetid://27697743"
47+
48
VT = Vector3.new
49
RAD = math.rad
50
C3 = Color3.new
51
UD2 = UDim2.new
52
BRICKC = BrickColor.new
53-
sick2.SoundId = "rbxassetid://1149909908"
53+
54
EULER = CFrame.fromEulerAnglesXYZ
55
COS = math.cos
56
ACOS = math.acos
57
SIN = math.sin
58
ASIN = math.asin
59
ABS = math.abs
60
MRANDOM = math.random
61
FLOOR = math.floor
62
63
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
64
	local NEWMESH = IT(MESH)
65
	if MESH == "SpecialMesh" then
66
		NEWMESH.MeshType = MESHTYPE
67
		if MESHID ~= "nil" and MESHID ~= "" then
68
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
69
		end
70
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
71
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
72
		end
73
	end
74
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
75
	NEWMESH.Scale = SCALE
76
	NEWMESH.Parent = PARENT
77
	return NEWMESH
78
end
79
80
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
81
	local NEWPART = IT("Part")
82
	NEWPART.formFactor = FORMFACTOR
83
	NEWPART.Reflectance = REFLECTANCE
84
	NEWPART.Transparency = TRANSPARENCY
85
	NEWPART.CanCollide = false
86
	NEWPART.Locked = true
87
	NEWPART.Anchored = true
88
	if ANCHOR == false then
89
		NEWPART.Anchored = false
90
	end
91
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
92
	NEWPART.Name = NAME
93
	NEWPART.Size = SIZE
94
	NEWPART.Position = Torso.Position
95
	NEWPART.Material = MATERIAL
96
	NEWPART:BreakJoints()
97
	NEWPART.Parent = PARENT
98
	return NEWPART
99
end
100
101
local naeeym2 = Instance.new("BillboardGui",Character)
102
naeeym2.AlwaysOnTop = true
103
naeeym2.Size = UDim2.new(5,35,5,35)
104
naeeym2.StudsOffset = Vector3.new(0,1,0)
105
naeeym2.Adornee = Character.Head
106
naeeym2.Name = "Name"
107
naeeym2.PlayerToHideFrom = Player
108
local tecks2 = Instance.new("TextLabel",naeeym2)
109
tecks2.BackgroundTransparency = 1
110
tecks2.TextScaled = true
111
tecks2.BorderSizePixel = 0
112
tecks2.Text = "Ramen Wizard"
113
tecks2.Font = "SciFi"
114
tecks2.TextSize = 30
115
tecks2.TextStrokeTransparency = 0
116
tecks2.TextColor3 = Color3.new(0,1,0)
117
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
118
tecks2.Size = UDim2.new(1,0,0.5,0)
119
tecks2.Parent = naeeym2
120
121
122
Class_Name = "Wizard.boi"
123
Weapon_Name = "Add-ons"
124
125
Custom_Colors = {
126-
tecks2.Text = Player.Name..", the Galactic Wizard"
126+
127
	Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
128
129
	Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
130-
tecks2.TextColor3 = Color3.new(0.5,0,0.5)
130+
131
	Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
132
	Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
133
	Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
134
135
	Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
136-
Class_Name = "Ravager.exe"
136+
137
	Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
138
	Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
139
	Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
140
}
141
142
143
Player_Size = 1 --Size of the player.
144
Animation_Speed = 3
145
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
146
147
local Speed = 35
148
local Effects2 = {}
149
150
151
152
	local function weldBetween(a, b)
153
	    local weldd = Instance.new("ManualWeld")
154
	    weldd.Part0 = a
155
	    weldd.Part1 = b
156
	    weldd.C0 = CFrame.new()
157
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
158
	    weldd.Parent = a
159
	    return weldd
160
	end
161
162
function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
163
local acs = Instance.new("Part")
164
acs.CanCollide = false
165
acs.Anchored = false
166
acs.Size = Vector3.new(0,0,0)
167
acs.CFrame = attachmentpart.CFrame
168
acs.Parent = attachmentpart
169
acs.BrickColor = color
170
    local meshs = Instance.new("SpecialMesh")
171
    meshs.MeshId = mesh
172
    meshs.TextureId = texture
173
    meshs.Parent = acs
174
    meshs.Scale = scale
175
    meshs.Offset = offset
176
weldBetween(attachmentpart,acs)
177
end
178
179
function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
180
if TYPE == "Gem" then
181
	local acs = CreatePart(3, PART, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
182
	acs.Anchored = false
183
    acs.CanCollide = false
184
	acs.CFrame = PART.CFrame
185
	local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
186
weldBetween(PART,acs)
187
elseif TYPE == "Skull" then
188
	local acs = CreatePart(3, PART, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
189
	acs.Anchored = false
190
    acs.CanCollide = false
191
	acs.CFrame = PART.CFrame
192
	local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
193
weldBetween(PART,acs)
194
elseif TYPE == "Eye" then
195
	local acs = CreatePart(3, PART, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
196
	acs.Anchored = false
197
    acs.CanCollide = false
198
	acs.CFrame = PART.CFrame
199
	local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
200
weldBetween(PART,acs)
201
end
202
end
203
204
createaccessory(Head,"http://www.roblox.com/asset/?id=102724569","http://www.roblox.com/asset/?id=50891358",VT(1,1,1),VT(0,1,0),BRICKC"Lime green")
205
206
--//=================================\\
207
--|| 	      USEFUL VALUES
208
--\\=================================//
209
210
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
211
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
212
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
213
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
214
local CO1 = 0
215
local CO2 = 0
216
local CO3 = 0
217
local CO4 = 0
218-
createaccessory(Head,"http://www.roblox.com/asset/?id=102724569","http://www.roblox.com/asset/?id=86471921",VT(1,1,1),VT(0,1,0),BRICKC"Pearl")
218+
219
local CHANGEDAMAGE = 0
220
local CHANGEMOVEMENT = 0
221
local ANIM = "Idle"
222
local ATTACK = false
223
local EQUIPPED = false
224
local HOLD = false
225
local COMBO = 1
226
local LASTPOINT = nil
227
local BLCF = nil
228
local SCFR = nil
229
local KEYHOLD = false
230
local STAGGERHITANIM = false
231
local STAGGERANIM = false
232
local STUNANIM = false
233
local CRITCHANCENUMBER = 0
234
local IDLENUMBER = 0
235
local DONUMBER = 0
236
local HANDIDLE = false
237
local Rooted = false
238
local SINE = 0
239
local CHANGE = 2 / Animation_Speed
240
local WALKINGANIM = false
241
local WALK = 0
242
local DANCE = false
243
local DISABLEJUMPING = false
244
local ROBLOXIDLEANIMATION = IT("Animation")
245
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
246
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=250720232"
247
--ROBLOXIDLEANIMATION.Parent = Humanoid
248
local WEAPONGUI = IT("ScreenGui", PlayerGui)
249
WEAPONGUI.Name = "Weapon GUI"
250
local Weapon = IT("Model")
251
Weapon.Name = Weapon_Name
252
local Effects = IT("Folder", Weapon)
253
Effects.Name = "Effects"
254
local Bombs = IT("Folder", Weapon)
255
Bombs.Name = "BombsHolder"
256
local ANIMATOR = Humanoid.Animator
257
local ANIMATE = Character.Animate
258
local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
259
local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
260
local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
261
local HITBLOCKSOUNDS = {"199148933", "199148947"}
262
local UNANCHOR = true
263
local MAGICPARTICLE = "977861496"
264
265
local SKILLTEXTCOLOR = C3(0,0,0)
266
267
268
269
ArtificialHB = Instance.new("BindableEvent", script)
270
ArtificialHB.Name = "ArtificialHB"
271
272
script:WaitForChild("ArtificialHB")
273
274
frame = Frame_Speed
275
tf = 0
276
allowframeloss = false
277
tossremainder = false
278
lastframe = tick()
279
script.ArtificialHB:Fire()
280
281
game:GetService("RunService").Heartbeat:connect(function(s, p)
282
	tf = tf + s
283
	if tf >= frame then
284
		if allowframeloss then
285
			script.ArtificialHB:Fire()
286
			lastframe = tick()
287
		else
288
			for i = 1, math.floor(tf / frame) do
289
				script.ArtificialHB:Fire()
290
			end
291
		lastframe = tick()
292
		end
293
		if tossremainder then
294
			tf = 0
295
		else
296
			tf = tf - frame * math.floor(tf / frame)
297
		end
298
	end
299
end)
300
301
302
303
304
305
306
307
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
308
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
309
end
310
311
function PositiveAngle(NUMBER)
312
	if NUMBER >= 0 then
313
		NUMBER = 0
314
	end
315
	return NUMBER
316
end
317
318
function NegativeAngle(NUMBER)
319
	if NUMBER <= 0 then
320
		NUMBER = 0
321
	end
322
	return NUMBER
323
end
324
325
function Swait(NUMBER)
326
	if NUMBER == 0 or NUMBER == nil then
327
		ArtificialHB.Event:wait()
328
	else
329
		for i = 1, NUMBER do
330
			ArtificialHB.Event:wait()
331
		end
332
	end
333
end
334
335
function QuaternionFromCFrame(cf)
336
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
337
	local trace = m00 + m11 + m22
338
	if trace > 0 then 
339
		local s = math.sqrt(1 + trace)
340
		local recip = 0.5 / s
341
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
342
	else
343
		local i = 0
344
		if m11 > m00 then
345
			i = 1
346
		end
347
		if m22 > (i == 0 and m00 or m11) then
348
			i = 2
349
		end
350
		if i == 0 then
351
			local s = math.sqrt(m00 - m11 - m22 + 1)
352
			local recip = 0.5 / s
353
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
354
		elseif i == 1 then
355
			local s = math.sqrt(m11 - m22 - m00 + 1)
356
			local recip = 0.5 / s
357
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
358
		elseif i == 2 then
359
			local s = math.sqrt(m22 - m00 - m11 + 1)
360
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
361
		end
362
	end
363
end
364
 
365
function QuaternionToCFrame(px, py, pz, x, y, z, w)
366
	local xs, ys, zs = x + x, y + y, z + z
367
	local wx, wy, wz = w * xs, w * ys, w * zs
368
	local xx = x * xs
369
	local xy = x * ys
370
	local xz = x * zs
371
	local yy = y * ys
372
	local yz = y * zs
373
	local zz = z * zs
374
	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))
375
end
376
 
377
	function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
378
		local fp=IT("Part")
379
		fp.formFactor=formfactor
380
		fp.Parent=parent
381
		fp.Reflectance=reflectance
382
		fp.Transparency=transparency
383
		fp.CanCollide=false
384
		fp.Locked=true
385
		fp.BrickColor=BrickColor.new(tostring(brickcolor))
386
		fp.Name=name
387
		fp.Size=size
388
		fp.Position=Character.Torso.Position
389
		NoOutlines(fp)
390
		fp.Material=material
391
		fp:BreakJoints()
392
		return fp
393
	end
394
	
395
	function mesh(Mesh,part,meshtype,meshid,offset,scale)
396
		local mesh=IT(Mesh)
397
		mesh.Parent=part
398
		if Mesh=="SpecialMesh" then
399
			mesh.MeshType=meshtype
400
			mesh.MeshId=meshid
401
		end
402
		mesh.Offset=offset
403
		mesh.Scale=scale
404
		return mesh
405
	end
406
407
function QuaternionSlerp(a, b, t)
408
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
409
	local startInterp, finishInterp;
410
	if cosTheta >= 0.0001 then
411
		if (1 - cosTheta) > 0.0001 then
412
			local theta = ACOS(cosTheta)
413
			local invSinTheta = 1 / SIN(theta)
414
			startInterp = SIN((1 - t) * theta) * invSinTheta
415
			finishInterp = SIN(t * theta) * invSinTheta
416
		else
417
			startInterp = 1 - t
418
			finishInterp = t
419
		end
420
	else
421
		if (1 + cosTheta) > 0.0001 then
422
			local theta = ACOS(-cosTheta)
423
			local invSinTheta = 1 / SIN(theta)
424
			startInterp = SIN((t - 1) * theta) * invSinTheta
425
			finishInterp = SIN(t * theta) * invSinTheta
426
		else
427
			startInterp = t - 1
428
			finishInterp = t
429
		end
430
	end
431
	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
432
end
433
434
function Clerp(a, b, t)
435
	local qa = {QuaternionFromCFrame(a)}
436
	local qb = {QuaternionFromCFrame(b)}
437
	local ax, ay, az = a.x, a.y, a.z
438
	local bx, by, bz = b.x, b.y, b.z
439
	local _t = 1 - t
440
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
441
end
442
443
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
444
	local frame = IT("Frame")
445
	frame.BackgroundTransparency = TRANSPARENCY
446
	frame.BorderSizePixel = BORDERSIZEPIXEL
447
	frame.Position = POSITION
448
	frame.Size = SIZE
449
	frame.BackgroundColor3 = COLOR
450
	frame.BorderColor3 = BORDERCOLOR
451
	frame.Name = NAME
452
	frame.Parent = PARENT
453
	return frame
454
end
455
456
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
457
	local label = IT("TextLabel")
458
	label.BackgroundTransparency = 1
459
	label.Size = UD2(1, 0, 1, 0)
460
	label.Position = UD2(0, 0, 0, 0)
461
	label.TextColor3 = TEXTCOLOR
462
	label.TextStrokeTransparency = STROKETRANSPARENCY
463
	label.TextTransparency = TRANSPARENCY
464
	label.FontSize = TEXTFONTSIZE
465
	label.Font = TEXTFONT
466
	label.BorderSizePixel = BORDERSIZEPIXEL
467
	label.TextScaled = false
468
	label.Text = TEXT
469
	label.Name = NAME
470
	label.Parent = PARENT
471
	return label
472
end
473
474
function NoOutlines(PART)
475
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
476
end
477
478
479
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
480
	local NEWWELD = IT(TYPE)
481
	NEWWELD.Part0 = PART0
482
	NEWWELD.Part1 = PART1
483
	NEWWELD.C0 = C0
484
	NEWWELD.C1 = C1
485
	NEWWELD.Parent = PARENT
486
	return NEWWELD
487
end
488
489
function CreateSound(ID, PARENT, VOLUME, PITCH)
490
	local NEWSOUND = nil
491
	coroutine.resume(coroutine.create(function()
492
		NEWSOUND = IT("Sound", PARENT)
493
		NEWSOUND.Volume = VOLUME
494
		NEWSOUND.Pitch = PITCH
495
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
496
		Swait()
497
		NEWSOUND:play()
498
		game:GetService("Debris"):AddItem(NEWSOUND, 10)
499
	end))
500
	return NEWSOUND
501
end
502
503
function CFrameFromTopBack(at, top, back)
504
	local right = top:Cross(back)
505
	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)
506
end
507
508
function CreateWave(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
509
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
510
	local mesh = IT("SpecialMesh",wave)
511
	mesh.MeshType = "FileMesh"
512
	mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
513
	mesh.Scale = VT(size,size,size)
514
	mesh.Offset = VT(0,0,-size/8)
515
	wave.CFrame = cframe
516
	coroutine.resume(coroutine.create(function(PART)
517
		for i = 1, waitt do
518
			Swait()
519
			mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
520
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
521
			if doesrotate == true then
522
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
523
			end
524
			wave.Transparency = wave.Transparency + (0.5/waitt)
525
			if wave.Transparency > 0.99 then
526
				wave:remove()
527
			end
528
		end
529
	end))
530
end
531
532
function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
533
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
534
	local mesh = IT("SpecialMesh",wave)
535
	mesh.MeshType = "FileMesh"
536
	mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
537
	mesh.Scale = VT(size,size,size)
538
	wave.CFrame = cframe
539
	coroutine.resume(coroutine.create(function(PART)
540
		for i = 1, waitt do
541
			Swait()
542
			mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
543
			if doesrotate == true then
544
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
545
			end
546
			wave.Transparency = wave.Transparency + (0.5/waitt)
547
			if wave.Transparency > 0.99 then
548
				wave:remove()
549
			end
550
		end
551
	end))
552
end
553
554
function CreateTornado(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
555
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
556
	local mesh = IT("SpecialMesh",wave)
557
	mesh.MeshType = "FileMesh"
558
	mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
559
	mesh.Scale = VT(size,size,size)
560
	wave.CFrame = cframe
561
	coroutine.resume(coroutine.create(function(PART)
562
		for i = 1, waitt do
563
			Swait()
564
			mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
565
			if doesrotate == true then
566
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
567
			end
568
			wave.Transparency = wave.Transparency + (0.5/waitt)
569
			if wave.Transparency > 0.99 then
570
				wave:remove()
571
			end
572
		end
573
	end))
574
end
575
576
function CreateRing(inair,size,doesrotate,rotatedirection,waitt,cframe,spin1,spin2,color)
577
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
578
	local mesh = IT("SpecialMesh",wave)
579
	mesh.MeshType = "FileMesh"
580
	mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
581
	mesh.Scale = VT(size,size,size)
582
	mesh.Offset = VT(0,0,0)
583
	wave.CFrame = cframe
584
	coroutine.resume(coroutine.create(function(PART)
585
		for i = 1, waitt do
586
			Swait()
587
			mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
588
			if doesrotate == true then
589
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1)
590
			end
591
			wave.Transparency = wave.Transparency + (0.5/waitt)
592
			if wave.Transparency > 0.99 then
593
				wave:remove()
594
			end
595
		end
596
	end))
597
end
598
599
function MagicSphere(size,waitt,cframe,color)
600
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1))
601
	local mesh = IT("SpecialMesh",wave)
602
	mesh.MeshType = "Sphere"
603
	mesh.Scale = VT(size,size,size)
604
	mesh.Offset = VT(0,0,0)
605
	wave.CFrame = cframe
606
	coroutine.resume(coroutine.create(function(PART)
607
		for i = 1, waitt do
608
			Swait()
609
			mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
610
			wave.Transparency = wave.Transparency + (1/waitt)
611
			if wave.Transparency > 0.99 then
612
				wave:remove()
613
			end
614
		end
615
	end))
616
end
617
618
function MagicSphere2(size,waitt,cframe,color)
619
	local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1))
620
	local mesh = IT("SpecialMesh",wave)
621
	mesh.MeshType = "Sphere"
622
	mesh.Scale = VT(size,size,size)
623
	mesh.Offset = VT(0,0,0)
624
	wave.CFrame = cframe
625
	coroutine.resume(coroutine.create(function(PART)
626
		for i = 1, waitt do
627
			Swait()
628
			mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt)
629
			wave.Transparency = wave.Transparency - (1/waitt)
630
		end
631
		wave:remove()
632
	end))
633
end
634
635
function BreakEffect(brickcolor,cframe,x1,y1,z1,material)
636
	local prt=part("Custom",workspace,material,0,0,brickcolor,"Effect",VT(0.5,0.5,0.5))
637
	prt.Anchored=true
638
	prt.CFrame=cframe*EULER(math.random(-50,50),math.random(-50,50),math.random(-50,50))
639
	local msh=mesh("SpecialMesh",prt,"Sphere","",VT(0,0,0),VT(x1,y1,z1))
640
	coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) 
641
		CF=Part.CFrame
642
		Numbb=0
643
		randnumb=math.random()-math.random()
644
		for i=0,1,0.05 do
645
			wait()
646
			CF=CF*CF(0,1,0)
647
			--Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
648
			Part.CFrame=CF*EULER(Numbb,0,0)
649
			Part.Transparency=i
650
			Numbb=Numbb+randnumb
651
		end
652
		Part.Parent=nil
653
	end),prt)
654
end
655
656
function MagicBlock(size,waitt,cframe,color)
657
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size))
658
	local mesh = IT("BlockMesh",wave)
659
	wave.CFrame = cframe
660
	coroutine.resume(coroutine.create(function(PART)
661
		for i = 1, waitt do
662
			Swait()
663
			mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
664
			wave.CFrame = cframe * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
665
			wave.Transparency = wave.Transparency + (1/waitt)
666
			if wave.Transparency > 0.99 then
667
				wave:remove()
668
			end
669
		end
670
	end))
671
end
672
673
local EyeSizes={
674
	NumberSequenceKeypoint.new(0,1,0),
675
	NumberSequenceKeypoint.new(1,0.2,0)
676
}
677
local EyeTrans={
678
	NumberSequenceKeypoint.new(0,0.8,0),
679
	NumberSequenceKeypoint.new(1,1,0)
680
}
681
local PE=Instance.new("ParticleEmitter")
682
PE.LightEmission=0
683
PE.Size=NumberSequence.new(EyeSizes)
684
PE.Transparency=NumberSequence.new(EyeTrans)
685
PE.Lifetime=NumberRange.new(0.35,0.35,0.35)
686
PE.Rotation=NumberRange.new(0,360)
687
PE.Rate=15
688
PE.Acceleration = Vector3.new(0,75,0)
689
PE.Drag = 5
690
PE.Enabled = false
691
PE.Speed = NumberRange.new(0,0,0)
692
PE.Texture="http://www.roblox.com/asset/?id=247421728"
693
PE.ZOffset = 0
694
PE.Name = "Particles"
695
696
function CreateParticles(art,text,accel,drag,rate,type,isenabledbydefault)
697
	local particle = PE:Clone()
698
	particle.Parent = art
699
	particle.Acceleration = accel
700
	PE.Rate = rate
701
	if type == "Fire" then
702
		local EyeSizes={
703
			NumberSequenceKeypoint.new(0,1,0.3),
704
			NumberSequenceKeypoint.new(1,0.2,0.2)
705
		}
706
		PE.Size = NumberSequence.new(EyeSizes)
707
	elseif type == "Smoke" then
708
		local EyeSizes={
709
			NumberSequenceKeypoint.new(0,1,0),
710
			NumberSequenceKeypoint.new(1,5,0.5)
711
		}
712
		PE.Size = NumberSequence.new(EyeSizes)
713
	elseif type == "Solid" then
714
		local EyeSizes={
715
			NumberSequenceKeypoint.new(0,1,0),
716
			NumberSequenceKeypoint.new(1,1,0)
717
		}
718
		PE.Size = NumberSequence.new(EyeSizes)
719
	end
720
	PE.Drag = drag
721
	particle.Texture = "http://www.roblox.com/asset/?id="..text
722
	particle.Enabled = isenabledbydefault
723
return particle
724
end
725
726
function MakeForm(PART,TYPE)
727
	if TYPE == "Cyl" then
728
		local MSH = IT("CylinderMesh",PART)
729
	elseif TYPE == "Ball" then
730
		local MSH = IT("SpecialMesh",PART)
731
		MSH.MeshType = "Sphere"
732
	elseif TYPE == "Wedge" then
733
		local MSH = IT("SpecialMesh",PART)
734
		MSH.MeshType = "Wedge"
735
	end
736
end
737
738
--//=================================\\
739
--\\=================================//
740
741
function createaddongen(limb,position,size)
742
	local part = CreatePart(3, Weapon, "Marble", 0, 0, "Earth green", limb.Name.." Gauntlet Part", VT(0.25*Player_Size, size*0.8*Player_Size,size*0.8*Player_Size),false)
743
	local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0.45 * Player_Size, position * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, 0, 0))
744
	local part = CreatePart(3, Weapon, "Neon", 0, 0, "Lime green", limb.Name.." Neon Gauntlet Part", VT(0.25*Player_Size,size*Player_Size,size*Player_Size),false)
745
	local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0.425 * Player_Size, position * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, 0, 0))
746
end
747
748
function creategauntlet(limb)
749
	--main--
750
	local part = CreatePart(3, Weapon, "Marble", 0, 0, "Earth green", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.75+0.07*Player_Size,1.07*Player_Size),false)
751
	local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, -0.65 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
752
	local part = CreatePart(3, Weapon, "Marble", 0, 0, "Earth green", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.25*Player_Size,1.07*Player_Size),false)
753
	local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, -0.115 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
754
	MakeForm(part,"Wedge")
755
	local part = CreatePart(3, Weapon, "Marble", 0, 0, "Earth green", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.25*Player_Size,1.07*Player_Size),false)
756-
	local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(0.25*Player_Size, size*0.8*Player_Size,size*0.8*Player_Size),false)
756+
757
	MakeForm(part,"Wedge")
758-
	local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really blue", limb.Name.." Neon Gauntlet Part", VT(0.25*Player_Size,size*Player_Size,size*Player_Size),false)
758+
	local part = CreatePart(3, Weapon, "Marble", 0, 0, "Earth green", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.75+0.07*Player_Size,1.07*Player_Size),false)
759
	local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, 0.65 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
760
	--neon addons
761
	local part = CreatePart(3, Weapon, "Neon", 0, 0, "Lime green", limb.Name.." Neon Gauntlet Part", VT(1.05*Player_Size,2.05*Player_Size,1.05*Player_Size),false)
762
	local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
763
	--misc--
764-
	local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.75+0.07*Player_Size,1.07*Player_Size),false)
764+
765
	createaddongen(limb,-0.2,0.25)
766-
	local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.25*Player_Size,1.07*Player_Size),false)
766+
767
	createaddongen(limb,-0.65,0.45)
768
end
769-
	local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.25*Player_Size,1.07*Player_Size),false)
769+
770
--//=================================\\
771
--||	     WEAPON CREATION
772-
	local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.75+0.07*Player_Size,1.07*Player_Size),false)
772+
773
774
creategauntlet(RightArm)
775-
	local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really blue", limb.Name.." Neon Gauntlet Part", VT(1.05*Player_Size,2.05*Player_Size,1.05*Player_Size),false)
775+
776
777
if Player_Size ~= 1 then
778
	for _, v in pairs (Weapon:GetChildren()) do
779
		if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
780
			local p1 = v.Part1
781
			v.Part1 = nil
782
			local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
783
			v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
784
			v.Part1 = p1
785
		elseif v.ClassName == "Part" then
786
			for _, b in pairs (v:GetChildren()) do
787
				if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
788
					b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
789
				end
790
			end
791
		end
792
	end
793
end
794
795
for _, c in pairs(Weapon:GetChildren()) do
796
	if c.ClassName == "Part" then
797
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
798
	end
799
end
800
801
Weapon.Parent = Character
802
803
Humanoid.Died:connect(function()
804
	sick:remove()
805
	sick2:remove()
806
	CreateSound("267675816", Head, 3, 1)
807
	ATTACK = true
808
end)
809
810
print(Class_Name.." loaded.")
811
812
local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
813
local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
814
local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
815
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")
816
817
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Q] Ramen Mine", C3(0,1,0), 7, "SciFi", 0, 2, 1, "Text 1")
818
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[V] Grounded spikes", C3(0,1,0), 7, "SciFi", 0, 2, 1, "Text 2")
819
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[E] Teleport", C3(0,1,0), 10, "SciFi", 0, 2, 1, "Text 4")
820
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[Hold C] Ramen beam", C3(0,1,0), 5, "SciFi", 0, 2, 1, "Text 3")
821
822
823
824
function chatfunc(text,waitt)
825
local chat = coroutine.wrap(function()
826
if Character:FindFirstChild("TalkingBillBoard")~= nil then
827
Character:FindFirstChild("TalkingBillBoard"):destroy()
828
end
829
local naeeym2 = Instance.new("BillboardGui",Character)
830
naeeym2.Size = UDim2.new(0,100,0,40)
831-
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Galactic cannon", C3(0.5,0,0.5), 7, "SciFi", 0, 2, 1, "Text 1")
831+
832-
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Galaxy spikes", C3(0.5,0,0.5), 7, "SciFi", 0, 2, 1, "Text 2")
832+
833-
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[E] Teleport", C3(0.5,0,0.5), 10, "SciFi", 0, 2, 1, "Text 4")
833+
834-
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[Hold C] Galactic beam", C3(0,0,0), 5, "SciFi", 0, 2, 1, "Text 3")
834+
835
local tecks2 = Instance.new("TextLabel",naeeym2)
836
tecks2.BackgroundTransparency = 1
837
tecks2.BorderSizePixel = 0
838
tecks2.Text = ""
839
tecks2.Font = "SciFi"
840
tecks2.TextSize = 30
841
tecks2.TextStrokeTransparency = 1
842
tecks2.TextColor3 = SKILLTEXTCOLOR
843
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
844
tecks2.Size = UDim2.new(1,0,0.5,0)
845
for i = 1,string.len(text),1 do
846
tecks2.Text = string.sub(text,1,i)
847
Swait()
848
end
849
wait(waitt)
850
coroutine.resume(coroutine.create(function()
851
	for i = 1, 10 do
852
		tecks2.TextTransparency = tecks2.TextTransparency + 0.1
853
		Swait()
854
	end
855
	naeeym2:Destroy()
856
end))
857
end)
858
chat()
859
end
860
861
--//=================================\\
862
--||	     DAMAGE FUNCTIONS
863
--\\=================================//
864
865
function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
866
	local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
867
	STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
868
	local BODYGYRO = IT("BodyGyro", STATPART)
869
	local BODYPOSITION = IT("BodyPosition", STATPART)
870
	BODYPOSITION.P = 2000
871
	BODYPOSITION.D = 100
872
	BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
873
	if LABELTYPE == "Normal" then
874
		BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
875
	elseif LABELTYPE == "Debuff" then
876
		BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
877
	elseif LABELTYPE == "Interruption" then
878
		BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
879
	end
880
	game:GetService("Debris"):AddItem(STATPART ,5)
881
	local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
882
	BILLBOARDGUI.Adornee = STATPART
883
	BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
884
	BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
885
	BILLBOARDGUI.AlwaysOnTop = false
886
	local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
887
	TEXTLABEL.BackgroundTransparency = 1
888
	TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
889
	TEXTLABEL.Text = TEXT
890
	TEXTLABEL.Font = "SciFi"
891
	TEXTLABEL.FontSize="Size42"
892
	TEXTLABEL.TextColor3 = COLOR
893
	TEXTLABEL.TextStrokeTransparency = 1
894
	TEXTLABEL.TextScaled = true
895
	TEXTLABEL.TextWrapped = true
896
	coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
897
		wait(0.2)
898
		for i=1, 5 do
899
			wait()
900
			THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
901
		end
902
		wait(1.2)
903
		for i=1, 5 do
904
			wait()
905
			THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
906
			THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
907
			THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
908
		end
909
		THEPART.Parent = nil
910
	end),STATPART, BODYPOSITION, TEXTLABEL)
911
end
912
913
914
--//=================================\\
915
--||			DAMAGING
916
--\\=================================//
917
918
function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
919
	if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
920
		local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
921
		local dmg = math.random(min,max)
922
		if humanoid.Health > 0 then
923
			if beserk == true then
924
				humanoid.Health = 0
925
			else
926
				CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
927
				hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
928
				if math.random(1,100) < critrate+1 then
929
					humanoid.Health = humanoid.Health - dmg*critmultiplier
930
					StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
931
				else
932
					humanoid.Health = humanoid.Health - dmg
933
					StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
934
				end
935
				local defence = Instance.new("BoolValue",hit.Parent)
936
				defence.Name = ("HitBy"..Player.Name)
937
				game:GetService("Debris"):AddItem(defence, 0.5)
938
			end
939
		end
940
	end
941
end
942
943
function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping)
944
	local dmg = math.random(min,max)
945
	for i,v in ipairs(workspace:GetChildren()) do
946
	if v:FindFirstChild("HitBy"..Player.Name) == nil then
947
		local body = v:GetChildren()
948
			for part = 1, #body do
949
				if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
950
					if(body[part].Position - position).Magnitude < radius then
951
						if v.ClassName == "Model" then
952
							if v:FindFirstChild("Humanoid") then
953
								if v.Humanoid.Health ~= 0 then
954
									if CanBeDodgedByJumping == true then
955
										if body[part].Position.Y < position.Y+5 then
956
											if math.random(1,100) < critrate+1 then
957
												v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
958
												StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
959
											else
960
												v.Humanoid.Health = v.Humanoid.Health - dmg
961
												StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
962
											end
963
											local defence = Instance.new("BoolValue",v)
964
											defence.Name = ("HitBy"..Player.Name)
965
											game:GetService("Debris"):AddItem(defence, 0.5)
966
										end
967
									else
968
										if beserk == true then
969
											v.Humanoid.Health = 0
970
										end
971
										if math.random(1,100) < critrate+1 then
972
											v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
973
											StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
974
										else
975
											v.Humanoid.Health = v.Humanoid.Health - dmg
976
											StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
977
										end
978
										local defence = Instance.new("BoolValue",v)
979
										defence.Name = ("HitBy"..Player.Name)
980
										game:GetService("Debris"):AddItem(defence, 0.5)
981
									end
982
								end
983
							end
984
						end
985
						body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
986
					end
987
				end
988
			end
989
			if v.ClassName == "Part" then
990
				if v.Anchored == false and (v.Position - position).Magnitude < radius then
991
					v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
992
				end
993
			end
994
		end
995
	end
996
end
997
998
function killnearest(position,range,maxstrength)
999
	for i,v in ipairs(workspace:GetChildren()) do
1000
	local body = v:GetChildren()
1001
		for part = 1, #body do
1002
			if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
1003
				if(body[part].Position - position).Magnitude < range then
1004
					if v.ClassName == "Model" then
1005
						v:BreakJoints()
1006
					end
1007
					--table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
1008
					body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
1009
				end
1010
			end
1011
		end
1012
		if v.ClassName == "Part" then
1013
			if v.Anchored == false and (v.Position - position).Magnitude < range then
1014
				--table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
1015
				v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
1016
			end
1017
		end
1018
	end
1019
end
1020
1021
--//=================================\\
1022
--||	ATTACK FUNCTIONS AND STUFF
1023
--\\=================================//
1024
1025
function CheckTableForString(Table, String)
1026
	for i, v in pairs(Table) do
1027
		if string.find(string.lower(String), string.lower(v)) then
1028
			return true
1029
		end
1030
	end
1031
	return false
1032
end
1033
1034
function CheckIntangible(Hit)
1035
	local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
1036
	if Hit and Hit.Parent then
1037
		if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
1038
			return true
1039
		end
1040
	end
1041
	return false
1042
end
1043
1044
Debris = game:GetService("Debris")
1045
1046
function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
1047
	local Direction = CFrame.new(StartPos, Vec).lookVector
1048
	local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
1049
	local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
1050
	if RayHit and CheckIntangible(RayHit) then
1051
		if DelayIfHit then
1052
			wait()
1053
		end
1054
		RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
1055
	end
1056
	return RayHit, RayPos, RayNormal
1057
end
1058
1059
function turnto(position)
1060
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
1061
end
1062
1063
function ExplodeBomb(b)
1064
	b.Parent = Effects
1065
	b.Anchored = true
1066
	CreateSound("215395285", b, 10, 1)
1067
	MagicSphere(5,20,b.CFrame,"Lime green")
1068
	b.Transparency = 1
1069
	MagicBlock(3,15,b.CFrame,"Lime green")
1070
	--BreakEffect("Lime green",b.CFrame,2,2,2,"Neon")
1071
	for i = 1, 3 do
1072
		CreateSwirl(0,5,true,-0.2,25,b.CFrame * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Really black")
1073
	end
1074
	killnearest(b.Position,35,35)
1075
	game:GetService("Debris"):AddItem(b, 5)
1076
end
1077
1078
function Detonate()
1079
	bomb = Bombs:GetChildren()
1080
	for lol = 1, #bomb do
1081-
	MagicSphere(5,20,b.CFrame,"Really blue")
1081+
1082
			local b = bomb[lol]
1083-
	MagicBlock(3,15,b.CFrame,"Really blue")
1083+
1084-
	--BreakEffect("Royal purple",b.CFrame,2,2,2,"Neon")
1084+
1085
	end
1086
end
1087
1088-
	killnearest(b.Position,12,25)
1088+
1089
	ATTACK = true
1090
	for i=0, 1, 0.1 / Animation_Speed do
1091
		Swait()
1092
		turnto(Mouse.Hit.p)
1093
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed/5)
1094
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1095
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
1096
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(10 - 2.5 * COS(SINE / 16)), RAD(0), RAD(-25 + 2.5 * SIN(SINE / 24))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1097
		RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-1.25), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1098
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1.1 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1099
	end
1100
	local POS = Mouse.Hit.p
1101
	for i = 1, 5 do
1102
		MagicSphere(2,10,RightArm.CFrame * CF(0,-1,0),"Lime green")
1103
		Swait(5)
1104
	end
1105
	CreateSound("1202657035", RightArm, 5, 1)
1106
	MagicSphere(5,10,RightArm.CFrame * CF(0,-1,0),"Lime green")
1107
	local Projectile = CreatePart(3, Bombs, "Neon", 0, 0, "Lime green", "Bomb-Projectile", VT(1*Player_Size,1*Player_Size,1*Player_Size),false)
1108
	Projectile.CFrame = RightArm.CFrame * CF(0,-1,0)
1109
	Projectile.CanCollide = false
1110
	MakeForm(Projectile,"Ball")
1111
	local grav = Instance.new("BodyPosition",Projectile)
1112
	grav.P = 50000
1113
	grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1114
	grav.position = POS
1115
	grav.Name = "GravityForce"
1116-
		MagicSphere(2,10,RightArm.CFrame * CF(0,-1,0),"Really blue")
1116+
1117
		if hit.Parent ~= Character and hit.Parent:FindFirstChild("Humanoid") and Projectile.Parent ~= Effects then
1118
			ExplodeBomb(Projectile)
1119
		end
1120-
	MagicSphere(5,10,RightArm.CFrame * CF(0,-1,0),"Really blue")
1120+
1121-
	local Projectile = CreatePart(3, Bombs, "Neon", 0, 0, "Really blue", "Bomb-Projectile", VT(1*Player_Size,1*Player_Size,1*Player_Size),false)
1121+
1122
end
1123
1124
function RayCast(Position, Direction, MaxDistance, IgnoreList)
1125
	return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) 
1126
end
1127
1128
function EarthShatter()
1129
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
1130
	if HITFLOOR ~= nil then
1131
		ATTACK = true
1132
		Rooted = true
1133
		for i=0, 1, 0.1 / Animation_Speed/2 do
1134
			Swait()
1135
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed/8)
1136
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1137
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 1 * Player_Size, 1 * Player_Size) * ANGLES(RAD(30), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed/8)
1138
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed/8)
1139
			RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed/8)
1140
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(10)), 0.2 / Animation_Speed/8)
1141
		end
1142
		for i=0, 1, 0.1 / Animation_Speed*5 do
1143
			Swait()
1144
	        RootPart.Anchored = true
1145
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed*5)
1146
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed*5)
1147
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 1 * Player_Size, -1.4 * Player_Size) * ANGLES(RAD(30), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*5)
1148
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed*5)
1149
			RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed*5)
1150
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(10)), 0.2 / Animation_Speed*5)
1151
		end
1152
		local POS = RightArm.CFrame * CF(0,-1,0).p
1153
		CreateWave(0,10,true,0.05,25,CF(POS),"Really black")
1154
		CreateWave(0,6,true,-0.05,25,CF(POS),"Really black")
1155
		CreateWave(0,2,true,0.05,25,CF(POS),"Really black")
1156
		killnearest(POS,15,25)
1157
		CreateSound("438666141", RightArm, 5, 1)
1158
		for i = 1, 10 do
1159
			local angle = math.random(-180,180)
1160
			coroutine.resume(coroutine.create(function()
1161
				local RayHit, RayPos = RayCast(Torso.Position, Vector3.new(0, -15, 0), 10000, {Character})
1162
				local SpawnPosition = RayPos
1163
				local floor = RayHit
1164
				local needcframe = RootPart.CFrame*ANGLES(RAD(0),RAD(angle),RAD(0))
1165
				local LastPosition = RayPos
1166
				local Delay = 1
1167
				if floor ~= nil then
1168
					print(floor.Name)
1169
					for i = 1, 5 do
1170
						local RayHit, RayPos = RayCast(LastPosition, needcframe.lookVector, 10, {workspace})
1171
						local End = RayPos
1172
						LastPosition = End
1173
						killnearest(End,50,50)
1174
						local locatepart = Instance.new("Part",Effects)
1175
						locatepart.Size = VT(0.5,0.5,0.5)
1176
						locatepart.Position = End
1177
						locatepart.CanCollide = false
1178
						locatepart.Anchored = true
1179
						locatepart.Name = "L0"
1180
						locatepart.Transparency = 1
1181
							if SpawnPosition then
1182
								CreateSwirl(0,2,false,0.05,25,CF(End),"Forest green")
1183
								local spike = Instance.new("CornerWedgePart")
1184
								spike.Size = Vector3.new(1,15,1)
1185
								spike.Material = HITFLOOR.Material
1186
								spike.Color = HITFLOOR.Color
1187
								spike.Anchored = true
1188
								spike.CanCollide = false
1189
								spike.CFrame = CFrame.new(End.X,SpawnPosition.Y+2,End.Z)
1190
								spike.Orientation = Vector3.new(math.random(-15,15),math.random(-180,180),math.random(-15,15))
1191
								spike.Name = HITFLOOR.Name.."Spike"
1192
								CreateSound("341300954", spike, 1, (math.random(8,12)/10))
1193
								for i = 1, 3 do
1194
									local overlay = spike:Clone()
1195
									overlay.Size = overlay.Size + Vector3.new(0.2,0.2*2,0.2)
1196
									overlay.CFrame = spike.CFrame
1197
									overlay.Parent = nil
1198
									overlay.Orientation = Vector3.new(math.random(-15,15),math.random(-180,180),math.random(-15,15))
1199
									overlay.Parent = Effects
1200
									table.insert(Effects2,{overlay,"Disappear",0.01,0,0,0,0})
1201
								end
1202
								spike.Size = Vector3.new(2,25,2)
1203
								spike.Parent = Effects
1204
								table.insert(Effects2,{spike,"Disappear",0.01,0,0,0,0})
1205
							end
1206
						Swait(5)
1207
						game:GetService("Debris"):AddItem(locatepart, 5)
1208
					end
1209
				end
1210
			end))
1211
		end
1212
		for i=0, 6, 0.1 / Animation_Speed*5 do
1213
			Swait()
1214
	        RootPart.Anchored = true
1215
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed*5)
1216
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed*5)
1217
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 1 * Player_Size, -1.4 * Player_Size) * ANGLES(RAD(30), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*5)
1218
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed*5)
1219
			RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed*5)
1220
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(10)), 0.2 / Animation_Speed*5)
1221
		end
1222
		ATTACK = false
1223
		Rooted = false
1224
	end
1225
end
1226
1227
function RavagingOverthrower()
1228
	ATTACK = true
1229
	Rooted = true
1230
	chatfunc("RAMEN BEAM!",4)
1231
	for i=0, 1, 0.1 / Animation_Speed do
1232
		Swait()
1233
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1234
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1235
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1236
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1237
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1238
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1239
	end
1240
	CreateSound("348663022", Torso, 5, 1)
1241
	local StartPos = RootPart.CFrame * CF(0,10,0).p
1242
	for i = 1, 5 do
1243
		MagicSphere2(25,25,CF(StartPos),"Lime green")
1244-
	chatfunc("HYPERBEAM!",4)
1244+
1245
	end
1246
	local soundeffect = IT("Sound",Torso)
1247
	soundeffect.SoundId = "rbxassetid://1447681819"
1248
	soundeffect.Looped = false
1249
	soundeffect.Volume = 10
1250
	soundeffect.Playing = true
1251
	repeat
1252
		turnto(Mouse.Hit.p)
1253
		MagicSphere2(25,25,CF(StartPos),"Lime green")
1254
		MagicSphere(25/10,25,CF(StartPos),"Forest green")
1255
		local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Mouse.Hit.p, 750, Character, false)
1256
		local distance = (StartPos - RayPos).magnitude
1257
		local RayBeam = IT("Part",Effects)
1258
		RayBeam.Material = "Neon"
1259
		RayBeam.Anchored = true
1260
		RayBeam.BrickColor = BRICKC"Forest green"
1261
		local mesh = IT("SpecialMesh",RayBeam)
1262
		mesh.MeshType = "Cylinder"
1263
		RayBeam.Size = Vector3.new(distance+10, 5, 5)
1264
		RayBeam.CFrame = CFrame.new(StartPos, RayPos) * CFrame.new(0, 0, -distance/2) * ANGLES(RAD(0),RAD(90),RAD(0))
1265
		MagicSphere(15,5,CF(RayPos),"Lime green")
1266
		killnearest(RayPos,15,100)
1267
		for i = 1, 3 do
1268
			CreateSwirl(0,25,true,-0.2,5,CF(RayPos) * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Really black")
1269
		end
1270
		Swait()
1271
		if KEYHOLD == false then
1272
			coroutine.resume(coroutine.create(function()
1273
				for i = 1, 5 do
1274
					RayBeam.Transparency = RayBeam.Transparency + 1/5
1275
					Swait()
1276
				end
1277
				RayBeam:remove()
1278
			end))
1279
		else
1280
			RayBeam:remove()
1281
		end
1282
	until KEYHOLD == false
1283
	soundeffect:remove()
1284
	ATTACK = false
1285
	Rooted = false
1286
end
1287
1288
function dodadance()
1289
	ATTACK = true
1290
	Rooted = true
1291
	DANCE = true
1292
	sick:Stop()
1293
	sick2:Play()
1294
	local Animation_Speed2 = 0.8
1295
	tecks2.Text = "The dancin' wizard!"
1296
	repeat
1297
		for i=0, 1.3, 0.1 / Animation_Speed2 do
1298
			Swait()
1299
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(-15)), 0.15 / Animation_Speed2)
1300
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
1301
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
1302
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-180)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
1303
			RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.5 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(120), RAD(35)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
1304
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(-35)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
1305
		end
1306
		MagicSphere(5,15,Torso.CFrame,"Lime green")
1307
		for i=0, 1.3, 0.1 / Animation_Speed2 do
1308-
	local Animation_Speed2 = 3
1308+
1309
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(15)), 0.15 / Animation_Speed2)
1310
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
1311
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
1312
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-120)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
1313
			RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(35)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1314
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.5 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-120), RAD(-35)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1315
		end
1316
		MagicSphere(5,15,Torso.CFrame,"Lime green")
1317
	until DANCE == false
1318
	tecks2.Text = Player.Name..", the Ramen Wizard"
1319
	sick:Play()
1320-
		MagicSphere(5,15,Torso.CFrame,"Really blue")
1320+
1321
	ATTACK = false
1322
	Rooted = false
1323
end
1324
1325
function Warp()
1326
	MagicSphere2(12,6,Torso.CFrame,"Lime green")
1327
	RootPart.CFrame = CF(VT(Mouse.Hit.p.X,Mouse.Hit.p.Y+4,Mouse.Hit.p.Z))
1328
	CreateSound("282061340", Torso, 2, 1)
1329
	MagicSphere(6,6,Torso.CFrame,"Lime green")
1330-
		MagicSphere(5,15,Torso.CFrame,"Really blue")
1330+
1331
		CreateSwirl(0,5,true,-0.2,25,Torso.CFrame * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Really black")
1332-
	tecks2.Text = Player.Name..", the Galactic Wizard"
1332+
1333
	killnearest(Torso.Position,25,25)
1334
	Swait()
1335
	turnto(Mouse.Hit.p)
1336
end
1337
1338
--//=================================\\
1339
--||	  ASSIGN THINGS TO KEYS
1340-
	MagicSphere2(10,5,Torso.CFrame,"Really blue")
1340+
1341
1342
Humanoid.Changed:connect(function(Jump)
1343-
	MagicSphere(5,5,Torso.CFrame,"Really blue")
1343+
1344
		Humanoid.Jump = false
1345
	end
1346
end)
1347-
	killnearest(Torso.Position,12,25)
1347+
1348
function MouseDown(Mouse)
1349
	if ATTACK == false then
1350
	end
1351
end
1352
1353
function MouseUp(Mouse)
1354
HOLD = false
1355
end
1356
1357
function KeyDown(Key)
1358
	KEYHOLD = true
1359
	if Key == "q" and ATTACK == false then
1360
		TyranyCannon()
1361
	end
1362
1363
	if Key == "v" and ATTACK == false then
1364
		EarthShatter()
1365
	end
1366
1367
	if Key == "c" and ATTACK == false then
1368
		RavagingOverthrower()
1369
	end
1370
1371
	if Key == "m" and ATTACK == false then
1372
		Detonate()
1373-
	if Key == "y" and ATTACK == false then
1373+
1374
1375
	if Key == "e" and ATTACK == false then
1376
		Warp()
1377-
	if Key == "b" and ATTACK == false then
1377+
1378
1379
	if Key == "t" and ATTACK == false then
1380
		CreateSound("267397183", Head, 5, 0.8)
1381
	end
1382
1383
	if Key == "t" and DANCE == true then
1384
		CreateSound("267397183", Head, 5, 1)
1385
	end
1386
1387
	if Key == "x" and (ATTACK == false or DANCE == true) then
1388
		if DANCE == false then
1389
			dodadance()
1390
		elseif DANCE == true then
1391
			DANCE = false
1392
		end
1393
	end
1394
end
1395
1396
function KeyUp(Key)
1397
	KEYHOLD = false
1398
end
1399
1400
	Mouse.Button1Down:connect(function(NEWKEY)
1401
		MouseDown(NEWKEY)
1402
	end)
1403
	Mouse.Button1Up:connect(function(NEWKEY)
1404
		MouseUp(NEWKEY)
1405
	end)
1406
	Mouse.KeyDown:connect(function(NEWKEY)
1407
		KeyDown(NEWKEY)
1408
	end)
1409
	Mouse.KeyUp:connect(function(NEWKEY)
1410
		KeyUp(NEWKEY)
1411
	end)
1412
1413
--//=================================\\
1414
--\\=================================//
1415
1416
1417
function unanchor()
1418
	if UNANCHOR == true then
1419
		g = Character:GetChildren()
1420
		for i = 1, #g do
1421
			if g[i].ClassName == "Part" then
1422
				g[i].Anchored = false
1423
			end
1424
		end
1425
	end
1426
end
1427
1428
1429
--//=================================\\
1430
--||	WRAP THE WHOLE SCRIPT UP
1431
--\\=================================//
1432
1433
Humanoid.Changed:connect(function(Jump)
1434
	if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
1435
		Humanoid.Jump = false
1436
	end
1437
end)
1438
1439
		ANIMATE.Parent = nil
1440
		local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
1441
		IDLEANIMATION:Play()
1442
1443
createbodypart("Eye","Lime green",Head,VT(0, 0.2, -0.415),VT(19,8,8))
1444
1445
1446
while true do
1447
	Swait()
1448
	SINE = SINE + CHANGE
1449
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1450
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1451
	local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
1452
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
1453
	local WALKSPEEDVALUE = 12 / (Humanoid.WalkSpeed / 16)
1454
		if ANIM == "Walk" and TORSOVELOCITY > 1 then
1455
			RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1456
			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)
1457-
createbodypart("Eye","Really red",Head,VT(0, 0.2, -0.46),VT(18,6,6))
1457+
1458
			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)
1459
		elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
1460
			RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1461
			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)
1462
			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)
1463
			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)
1464
		end
1465
		if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
1466
			ANIM = "Jump"
1467
			if ATTACK == false then
1468
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1469
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1470
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
1471
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1472
				RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
1473
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1474
	        end
1475
		elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
1476
			ANIM = "Fall"
1477
			if ATTACK == false then
1478
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1479
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1480
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
1481
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1482
				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(20)), 0.2 / Animation_Speed)
1483
				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(10)), 0.2 / Animation_Speed)
1484
			end
1485
		elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1486
			ANIM = "Idle"
1487
			if ATTACK == false then
1488
				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(10), RAD(0), RAD(-20)), 0.15 / Animation_Speed)
1489
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(5)), 0.15 / Animation_Speed)
1490
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
1491
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(10 - 2.5 * COS(SINE / 16)), RAD(0), RAD(-25 + 2.5 * SIN(SINE / 24))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1492
				RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed)
1493
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
1494
			end
1495
		elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
1496
			ANIM = "Walk"
1497
			WALK = WALK + 1 / Animation_Speed
1498
			if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
1499
				WALK = 0
1500
				if WALKINGANIM == true then
1501
					WALKINGANIM = false
1502
				elseif WALKINGANIM == false then
1503
					WALKINGANIM = true
1504
				end
1505
			end
1506
			--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)
1507
			--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)
1508
			if ATTACK == false then
1509
				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(10), RAD(0), RAD(-20)), 0.15 / Animation_Speed)
1510
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(5)), 0.15 / Animation_Speed)
1511
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
1512
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1513
				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)
1514
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1515
			end
1516
		end
1517
if #Effects2>0 then
1518
for e=1,#Effects2 do
1519
if Effects2[e]~=nil then
1520
local Thing=Effects2[e]
1521
if Thing~=nil then
1522
local Part=Thing[1]
1523
local Mode=Thing[2]
1524
local Delay=Thing[3]
1525
local IncX=Thing[4]
1526
local IncY=Thing[5]
1527
local IncZ=Thing[6]
1528
local Part2=Thing[8]
1529
if Thing[1].Transparency<=1 then
1530
if Thing[2]=="Block1" then
1531
Thing[1].CFrame=Thing[1].CFrame
1532
Mesh=Thing[1].Mesh
1533
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
1534
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1535
elseif Thing[2]=="Cylinder" then
1536
Mesh=Thing[1].Mesh
1537
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
1538
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1539
elseif Thing[2]=="Blood" then
1540
Mesh=Thing[7]
1541
Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
1542
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
1543
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1544
elseif Thing[2]=="Elec" then
1545
Mesh=Thing[1].Mesh
1546
Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
1547
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1548
elseif Thing[2]=="Disappear" then
1549
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1550
end
1551
else
1552
Part.Parent=nil
1553
table.remove(Effects2,e)
1554
end
1555
end
1556
end
1557
end
1558
end
1559
unanchor()
1560
Humanoid.MaxHealth = "inf"
1561
Humanoid.Health = "inf"
1562
if Rooted == false then
1563
	Disable_Jump = false
1564
	Humanoid.WalkSpeed = Speed
1565
elseif Rooted == true then
1566
	Disable_Jump = true
1567
	Humanoid.WalkSpeed = 0
1568
end
1569
q = Character:GetChildren()
1570
for u = 1, #q do
1571
	if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
1572
		q[u]:remove()
1573
	elseif q[u].ClassName == "Shirt" then
1574
		q[u]:Destroy()
1575
	elseif q[u].ClassName == "Pants" then
1576
		q[u]:Destroy()
1577
	elseif q[u].ClassName == "CharacterMesh" then
1578
		q[u]:remove()
1579
	elseif q[u].ClassName == "ShirtGraphic" then
1580
		q[u]:remove()
1581
	elseif q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then
1582
		q[u].Color = Color3.new(0/255, 25/255, 0/255)
1583
	end
1584
end
1585
if Head:FindFirstChild("face") then
1586
	Head.face:remove()
1587
end
1588
if Head:FindFirstChild("Died") then
1589
	Head.Died:remove()
1590
end
1591
bomb = Bombs:GetChildren()
1592
	for lol = 1, #bomb do
1593
		if bomb[lol].ClassName == "Part" then
1594
			MagicSphere2(2,5,bomb[lol].CFrame,"ime green") --This needs to be written wrong. I'm lazy to write the normal color.
1595
		end
1596-
		q[u].Color = Color3.new(0/255, 0/255, 0/255)
1596+
1597
end
1598
end
1599
1600
text.MouseButton1Click:connect(weez)