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