View difference between Paste ID: 78jNHnxv and XveaMnE1
SHOW: | | - or go back to the newest paste.
1-
'-- This script has been converted to FE by iPxter
1+
-- This script has been converted to FE by iPxter
2
3
4
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
6
do
7
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
8
	script.Parent = Player.Character
9
10
	--RemoteEvent for communicating
11
	local Event = Instance.new("RemoteEvent")
12
	Event.Name = "UserInput_Event"
13
14
	--Fake event to make stuff like Mouse.KeyDown work
15
	local function fakeEvent()
16
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
17
		t.connect = t.Connect
18
		return t
19
	end
20
21
	--Creating fake input objects with fake variables
22
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26
	end}
27
	--Merged 2 functions into one by checking amount of arguments
28
	CAS.UnbindAction = CAS.BindAction
29
30
	--This function will trigger the events that have been :Connect()'ed
31
	local function te(self,ev,...)
32
		local t = m[ev]
33
		if t and t._fakeEvent and t.Function then
34
			t.Function(...)
35
		end
36
	end
37
	m.TrigEvent = te
38
	UIS.TrigEvent = te
39
40
	Event.OnServerEvent:Connect(function(plr,io)
41
	    if plr~=Player then return end
42
		if io.isMouse then
43
			m.Target = io.Target
44
			m.Hit = io.Hit
45
		else
46
			local b = io.UserInputState == Enum.UserInputState.Begin
47
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
			end
50
			for _,t in pairs(CAS.Actions) do
51
				for _,k in pairs(t.Keys) do
52
					if k==io.KeyCode then
53
						t.Function(t.Name,io.UserInputState,io)
54
					end
55
				end
56
			end
57
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
	    end
60
	end)
61
	Event.Parent = NLS([==[
62
	local Player = game:GetService("Players").LocalPlayer
63
	local Event = script:WaitForChild("UserInput_Event")
64
65
	local UIS = game:GetService("UserInputService")
66
	local input = function(io,a)
67
		if a then return end
68
		--Since InputObject is a client-side instance, we create and pass table instead
69
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
70
	end
71
	UIS.InputBegan:Connect(input)
72
	UIS.InputEnded:Connect(input)
73
74
	local Mouse = Player:GetMouse()
75
	local h,t
76
	--Give the server mouse data 30 times every second, but only if the values changed
77
	--If player is not moving their mouse, client won't fire events
78
	while wait(1/30) do
79
		if h~=Mouse.Hit or t~=Mouse.Target then
80
			h,t=Mouse.Hit,Mouse.Target
81
			Event:FireServer({isMouse=true,Target=t,Hit=h})
82
		end
83
	end]==],Player.Character)
84
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
85
end
86
87
-----------------------
88
--[[ Name : Abyslumv2? Or Abyslum Remade?????  ]]--
89
-------------------------------------------------------
90
--A script By makhail07
91
--Credit to shackluster for the original script.
92
93
--Discord Creterisk#2958 
94
95
--NOTE THIS SCRIPT WAS PURELY MADE FROM MY FUCKING IMAGINATION
96
--IF IT HAPPENS TO LOOK LIKE ANOTHER SCRIPT
97
--DONT CALL IT A FUCKING BOOTLEG THANK YOU AND ENJOY THE SCRIPT
98
--YOU FUCKING SKIDS,
99
--For Those who log/decompile this, If you sell or trade this,
100
--and I find out who you are, i will take massive action.
101
102
-------------------------------------------------------
103
104
local FavIDs = {
105
	340106355, --Nefl Crystals
106
	927529620, --Dimension
107
	876981900, --Fantasy
108
	398987889, --Ordinary Days
109
	1117396305, --Oh wait, it's you.
110
	885996042, --Action Winter Journey
111
	919231299, --Sprawling Idiot Effigy
112
	743466274, --Good Day Sunshine
113
	727411183, --Knife Fight
114
	1402748531, --The Earth Is Counting On You!
115
	595230126 --Robot Language
116
	}
117
118
119
120
--The reality of my life isn't real but a Universe -makhail07
121
wait(0.2)
122
local plr = game:service'Players'.Veltrince
123
print('Local User is '..plr.Name)
124
print('Abyslum Loaded')
125
print('The Abyss Will Come...')
126
local char = plr.Character
127
local hum = char.Humanoid
128
local hed = char.Head
129
local root = char.HumanoidRootPart
130
local rootj = root.RootJoint
131
local tors = char.Torso
132
local ra = char["Right Arm"]
133
local la = char["Left Arm"]
134
local rl = char["Right Leg"]
135
local ll = char["Left Leg"]
136
local neck = tors["Neck"]
137
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
138
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
139
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
140
local maincolor = BrickColor.Random
141
hum.DisplayDistanceType = "None"
142
143
-------------------------------------------------------
144
--Start Good Stuff--
145
-------------------------------------------------------
146
cam = game.Workspace.CurrentCamera
147
CF = CFrame.new
148
angles = CFrame.Angles
149
attack = false
150
Euler = CFrame.fromEulerAnglesXYZ
151
Rad = math.rad
152
IT = Instance.new
153
BrickC = BrickColor.Random
154
Cos = math.cos
155
Acos = math.acos
156
Sin = math.sin
157
Asin = math.asin
158
Abs = math.abs
159
Mrandom = math.random
160
Floor = math.floor
161
-------------------------------------------------------
162
--End Good Stuff--
163
-------------------------------------------------------
164
necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
165
RSH, LSH = nil, nil 
166
RW = Instance.new("Weld") 
167
LW = Instance.new("Weld")
168
RH = tors["Right Hip"]
169
LH = tors["Left Hip"]
170
RSH = tors["Right Shoulder"] 
171
LSH = tors["Left Shoulder"] 
172
RSH.Parent = nil 
173
LSH.Parent = nil 
174
RW.Name = "RW"
175
RW.Part0 = tors 
176
RW.C0 = CF(1.5, 0.5, 0)
177
RW.C1 = CF(0, 0.5, 0) 
178
RW.Part1 = ra
179
RW.Parent = tors 
180
LW.Name = "LW"
181
LW.Part0 = tors 
182
LW.C0 = CF(-1.5, 0.5, 0)
183
LW.C1 = CF(0, 0.5, 0) 
184
LW.Part1 = la
185
LW.Parent = tors
186
Effects = {}
187
-------------------------------------------------------
188
--Start HeartBeat--
189
-------------------------------------------------------
190
ArtificialHB = Instance.new("BindableEvent", script)
191
ArtificialHB.Name = "Heartbeat"
192
script:WaitForChild("Heartbeat")
193
194
frame = 1 / 60
195
tf = 0
196
allowframeloss = false
197
tossremainder = false
198
199
200
lastframe = tick()
201
script.Heartbeat:Fire()
202
203
204
game:GetService("RunService").Heartbeat:connect(function(s, p)
205
	tf = tf + s
206
	if tf >= frame then
207
		if allowframeloss then
208
			script.Heartbeat:Fire()
209
			lastframe = tick()
210
		else
211
			for i = 1, math.floor(tf / frame) do
212
				script.Heartbeat:Fire()
213
			end
214
			lastframe = tick()
215
		end
216
		if tossremainder then
217
			tf = 0
218
		else
219
			tf = tf - frame * math.floor(tf / frame)
220
		end
221
	end
222
end)
223
-------------------------------------------------------
224
--End HeartBeat--
225
-------------------------------------------------------
226
227
-------------------------------------------------------
228
--Start Important Functions--
229
-------------------------------------------------------
230
function swait(num)
231
	if num == 0 or num == nil then
232
		game:service("RunService").Stepped:wait(0)
233
	else
234
		for i = 0, num do
235
			game:service("RunService").Stepped:wait(0)
236
		end
237
	end
238
end
239
function thread(f)
240
	coroutine.resume(coroutine.create(f))
241
end
242
function clerp(a, b, t)
243
	local qa = {
244
		QuaternionFromCFrame(a)
245
	}
246
	local qb = {
247
		QuaternionFromCFrame(b)
248
	}
249
	local ax, ay, az = a.x, a.y, a.z
250
	local bx, by, bz = b.x, b.y, b.z
251
	local _t = 1 - t
252
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
253
end
254
function QuaternionFromCFrame(cf)
255
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
256
	local trace = m00 + m11 + m22
257
	if trace > 0 then
258
		local s = math.sqrt(1 + trace)
259
		local recip = 0.5 / s
260
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
261
	else
262
		local i = 0
263
		if m00 < m11 then
264
			i = 1
265
		end
266
		if m22 > (i == 0 and m00 or m11) then
267
			i = 2
268
		end
269
		if i == 0 then
270
			local s = math.sqrt(m00 - m11 - m22 + 1)
271
			local recip = 0.5 / s
272
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
273
		elseif i == 1 then
274
			local s = math.sqrt(m11 - m22 - m00 + 1)
275
			local recip = 0.5 / s
276
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
277
		elseif i == 2 then
278
			local s = math.sqrt(m22 - m00 - m11 + 1)
279
			local recip = 0.5 / s
280
			return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
281
		end
282
	end
283
end
284
function QuaternionToCFrame(px, py, pz, x, y, z, w)
285
	local xs, ys, zs = x + x, y + y, z + z
286
	local wx, wy, wz = w * xs, w * ys, w * zs
287
	local xx = x * xs
288
	local xy = x * ys
289
	local xz = x * zs
290
	local yy = y * ys
291
	local yz = y * zs
292
	local zz = z * zs
293
	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))
294
end
295
function QuaternionSlerp(a, b, t)
296
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
297
	local startInterp, finishInterp
298
	if cosTheta >= 1.0E-4 then
299
		if 1 - cosTheta > 1.0E-4 then
300
			local theta = math.acos(cosTheta)
301
			local invSinTheta = 1 / Sin(theta)
302
			startInterp = Sin((1 - t) * theta) * invSinTheta
303
			finishInterp = Sin(t * theta) * invSinTheta
304
		else
305
			startInterp = 1 - t
306
			finishInterp = t
307
		end
308
	elseif 1 + cosTheta > 1.0E-4 then
309
		local theta = math.acos(-cosTheta)
310
		local invSinTheta = 1 / Sin(theta)
311
		startInterp = Sin((t - 1) * theta) * invSinTheta
312
		finishInterp = Sin(t * theta) * invSinTheta
313
	else
314
		startInterp = t - 1
315
		finishInterp = t
316
	end
317
	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
318
end
319
function rayCast(Position, Direction, Range, Ignore)
320
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
321
end
322
local RbxUtility = LoadLibrary("RbxUtility")
323
local Create = RbxUtility.Create
324
325
-------------------------------------------------------
326
--Start Damage Function--
327
-------------------------------------------------------
328
function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
329
	if hit.Parent == nil then
330
		return
331
	end
332
	local h = hit.Parent:FindFirstChildOfClass("Humanoid")
333
	for _, v in pairs(hit.Parent:children()) do
334
		if v:IsA("Humanoid") then
335
			h = v
336
		end
337
	end
338
         if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
339
	
340
         hit.Parent:FindFirstChild("Head"):BreakJoints()
341
         end
342
343
	if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
344
		if hit.Parent:findFirstChild("DebounceHit") ~= nil then
345
			if hit.Parent.DebounceHit.Value == true then
346
				return
347
			end
348
		end
349
         if insta == true then
350
         hit.Parent:FindFirstChild("Head"):BreakJoints()
351
         end
352
		local c = Create("ObjectValue"){
353
			Name = "creator",
354
			Value = game:service("Players").Veltrince,
355
			Parent = h,
356
		}
357
		game:GetService("Debris"):AddItem(c, .5)
358
		if HitSound ~= nil and HitPitch ~= nil then
359
			CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) 
360
		end
361
		local Damage = math.random(minim, maxim)
362
		local blocked = false
363
		local block = hit.Parent:findFirstChild("Block")
364
		if block ~= nil then
365
			if block.className == "IntValue" then
366
				if block.Value > 0 then
367
					blocked = true
368
					block.Value = block.Value - 1
369
					print(block.Value)
370
				end
371
			end
372
		end
373
		if blocked == false then
374
			h.Health = h.Health - Damage
375
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Random)
376
		else
377
			h.Health = h.Health - (Damage / 2)
378
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Random)
379
		end
380
		if Type == "Knockdown" then
381
			local hum = hit.Parent.Humanoid
382
			hum.PlatformStand = true
383
			coroutine.resume(coroutine.create(function(HHumanoid)
384
				swait(1)
385
				HHumanoid.PlatformStand = false
386
			end), hum)
387
			local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
388
			local bodvol = Create("BodyVelocity"){
389
				velocity = angle * knockback,
390
				P = 5000,
391
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
392
				Parent = hit,
393
			}
394
			local rl = Create("BodyAngularVelocity"){
395
				P = 3000,
396
				maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
397
				angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
398
				Parent = hit,
399
			}
400
			game:GetService("Debris"):AddItem(bodvol, .5)
401
			game:GetService("Debris"):AddItem(rl, .5)
402
		elseif Type == "Normal" then
403
			local vp = Create("BodyVelocity"){
404
				P = 500,
405
				maxForce = Vector3.new(math.huge, 0, math.huge),
406
				velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
407
			}
408
			if knockback > 0 then
409
				vp.Parent = hit.Parent.Torso
410
			end
411
			game:GetService("Debris"):AddItem(vp, .5)
412
		elseif Type == "Up" then
413
			local bodyVelocity = Create("BodyVelocity"){
414
				velocity = Vector3.new(0, 20, 0),
415
				P = 5000,
416
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
417
				Parent = hit,
418
			}
419
			game:GetService("Debris"):AddItem(bodyVelocity, .5)
420
		elseif Type == "DarkUp" then
421
			coroutine.resume(coroutine.create(function()
422
				for i = 0, 1, 0.1 do
423
					swait()
424
					Effects.Block.Create(BrickColor.Random, hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
425
				end
426
			end))
427
			local bodyVelocity = Create("BodyVelocity"){
428
				velocity = Vector3.new(0, 20, 0),
429
				P = 5000,
430
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
431
				Parent = hit,
432
			}
433
			game:GetService("Debris"):AddItem(bodyVelocity, 1)
434
		elseif Type == "Snare" then
435
			local bp = Create("BodyPosition"){
436
				P = 2000,
437
				D = 100,
438
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
439
				position = hit.Parent.Torso.Position,
440
				Parent = hit.Parent.Torso,
441
			}
442
			game:GetService("Debris"):AddItem(bp, 1)
443
		elseif Type == "Freeze" then
444
			local BodPos = Create("BodyPosition"){
445
				P = 50000,
446
				D = 1000,
447
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
448
				position = hit.Parent.Torso.Position,
449
				Parent = hit.Parent.Torso,
450
			}
451
			local BodGy = Create("BodyGyro") {
452
				maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
453
				P = 20e+003,
454
				Parent = hit.Parent.Torso,
455
				cframe = hit.Parent.Torso.CFrame,
456
			}
457
			hit.Parent.Torso.Anchored = true
458
			coroutine.resume(coroutine.create(function(Part) 
459
				swait(1.5)
460
				Part.Anchored = false
461
			end), hit.Parent.Torso)
462
			game:GetService("Debris"):AddItem(BodPos, 3)
463
			game:GetService("Debris"):AddItem(BodGy, 3)
464
		end
465
		local debounce = Create("BoolValue"){
466
			Name = "DebounceHit",
467
			Parent = hit.Parent,
468
			Value = true,
469
		}
470
		game:GetService("Debris"):AddItem(debounce, Delay)
471
		c = Create("ObjectValue"){
472
			Name = "creator",
473
			Value = Player,
474
			Parent = h,
475
		}
476
		game:GetService("Debris"):AddItem(c, .5)
477
	end
478
end
479
-------------------------------------------------------
480
--End Damage Function--
481
-------------------------------------------------------
482
483
-------------------------------------------------------
484
--Start Damage Function Customization--
485
-------------------------------------------------------
486
function ShowDamage(Pos, Text, Time, Color)
487
	local Rate = (1 / 30)
488
	local Pos = (Pos or Vector3.new(0, 0, 0))
489
	local Text = (Text or "")
490
	local Time = (Time or 2)
491
	local Color = (Color or Color3.new(1, 0, 1))
492
	local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.Random, "Effect", Vector3.new(0, 0, 0))
493
	EffectPart.Anchored = true
494
	local BillboardGui = Create("BillboardGui"){
495
		Size = UDim2.new(3, 0, 3, 0),
496
		Adornee = EffectPart,
497
		Parent = EffectPart,
498
	}
499
	local TextLabel = Create("TextLabel"){
500
		BackgroundTransparency = 1,
501
		Size = UDim2.new(1, 0, 1, 0),
502
		Text = Text,
503
		Font = "Bodoni",
504
		TextColor3 = Color,
505
		TextScaled = true,
506
		TextStrokeColor3 = Color3.fromRGB(0,0,0),
507
		Parent = BillboardGui,
508
	}
509
	game.Debris:AddItem(EffectPart, (Time))
510
	EffectPart.Parent = game:GetService("Workspace")
511
	delay(0, function()
512
		local Frames = (Time / Rate)
513
		for Frame = 1, Frames do
514
			wait(Rate)
515
			local Percent = (Frame / Frames)
516
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
517
			TextLabel.TextTransparency = Percent
518
		end
519
		if EffectPart and EffectPart.Parent then
520
			EffectPart:Destroy()
521
		end
522
	end)
523
end
524
-------------------------------------------------------
525
--End Damage Function Customization--
526
-------------------------------------------------------
527
528
function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
529
  for _, c in pairs(workspace:children()) do
530
    local hum = c:findFirstChild("Humanoid")
531
    if hum ~= nil then
532
      local head = c:findFirstChild("Head")
533
      if head ~= nil then
534
        local targ = head.Position - Part.Position
535
        local mag = targ.magnitude
536
        if magni >= mag and c.Name ~= plr.Name then
537
          Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
538
        end
539
      end
540
    end
541
  end
542
end
543
544
545
CFuncs = {
546
	Part = {
547
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
548
			local Part = Create("Part")({
549
				Parent = Parent,
550
				Reflectance = Reflectance,
551
				Transparency = Transparency,
552
				CanCollide = false,
553
				Locked = true,
554
				BrickColor = BrickColor.new(tostring(BColor)),
555
				Name = Name,
556
				Size = Size,
557
				Material = Material
558
			})
559
			RemoveOutlines(Part)
560
			return Part
561
		end
562
	},
563
	Mesh = {
564
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
565
			local Msh = Create(Mesh)({
566
				Parent = Part,
567
				Offset = OffSet,
568
				Scale = Scale
569
			})
570
			if Mesh == "SpecialMesh" then
571
				Msh.MeshType = MeshType
572
				Msh.MeshId = MeshId
573
			end
574
			return Msh
575
		end
576
	},
577
	Mesh = {
578
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
579
			local Msh = Create(Mesh)({
580
				Parent = Part,
581
				Offset = OffSet,
582
				Scale = Scale
583
			})
584
			if Mesh == "SpecialMesh" then
585
				Msh.MeshType = MeshType
586
				Msh.MeshId = MeshId
587
			end
588
			return Msh
589
		end
590
	},
591
	Weld = {
592
		Create = function(Parent, Part0, Part1, C0, C1)
593
			local Weld = Create("Weld")({
594
				Parent = Parent,
595
				Part0 = Part0,
596
				Part1 = Part1,
597
				C0 = C0,
598
				C1 = C1
599
			})
600
			return Weld
601
		end
602
	},
603
	Sound = {
604
		Create = function(id, par, vol, pit)
605
			coroutine.resume(coroutine.create(function()
606
				local S = Create("Sound")({
607
					Volume = vol,
608
					Pitch = pit or 1,
609
					SoundId = id,
610
					Parent = par or workspace
611
				})
612
				wait()
613
				S:play()
614
				game:GetService("Debris"):AddItem(S, 6)
615
			end))
616
		end
617
	},
618
	ParticleEmitter = {
619
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
620
			local fp = Create("ParticleEmitter")({
621
				Parent = Parent,
622
				Color = ColorSequence.new(Color1, Color2),
623
				LightEmission = LightEmission,
624
				Size = Size,
625
				Texture = Texture,
626
				Transparency = Transparency,
627
				ZOffset = ZOffset,
628
				Acceleration = Accel,
629
				Drag = Drag,
630
				LockedToPart = LockedToPart,
631
				VelocityInheritance = VelocityInheritance,
632
				EmissionDirection = EmissionDirection,
633
				Enabled = Enabled,
634
				Lifetime = LifeTime,
635
				Rate = Rate,
636
				Rotation = Rotation,
637
				RotSpeed = RotSpeed,
638
				Speed = Speed,
639
				VelocitySpread = VelocitySpread
640
			})
641
			return fp
642
		end
643
	}
644
}
645
function RemoveOutlines(part)
646
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
647
end
648
function CreatePart1(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
649
	local Part = Create("Part")({
650
		formFactor = FormFactor,
651
		Parent = Parent,
652
		Reflectance = Reflectance,
653
		Transparency = Transparency,
654
		CanCollide = false,
655
		Locked = true,
656
		BrickColor = BrickColor.new(tostring(BColor)),
657
		Name = Name,
658
		Size = Size,
659
		Material = Material
660
	})
661
	RemoveOutlines(Part)
662
	return Part
663
end
664
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
665
	local Msh = Create(Mesh)({
666
		Parent = Part,
667
		Offset = OffSet,
668
		Scale = Scale
669
	})
670
	if Mesh == "SpecialMesh" then
671
		Msh.MeshType = MeshType
672
		Msh.MeshId = MeshId
673
	end
674
	return Msh
675
end
676
function CreateWeld(Parent, Part0, Part1, C0, C1)
677
	local Weld = Create("Weld")({
678
		Parent = Parent,
679
		Part0 = Part0,
680
		Part1 = Part1,
681
		C0 = C0,
682
		C1 = C1
683
	})
684
	return Weld
685
end
686
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
687
	local NEWPART = IT("Part")
688
	NEWPART.formFactor = FORMFACTOR
689
	NEWPART.Reflectance = REFLECTANCE
690
	NEWPART.Transparency = TRANSPARENCY
691
	NEWPART.CanCollide = false
692
	NEWPART.Locked = true
693
	NEWPART.Anchored = true
694
	if ANCHOR == false then
695
		NEWPART.Anchored = false
696
	end
697
	NEWPART.BrickColor = BrickC(tostring(BRICKCOLOR))
698
	NEWPART.Name = NAME
699
	NEWPART.Size = SIZE
700
	NEWPART.Position = tors.Position
701
	NEWPART.Material = MATERIAL
702
	NEWPART:BreakJoints()
703
	NEWPART.Parent = PARENT
704
	return NEWPART
705
end
706
707
-------------------------------------------------------
708
--Start Effect Function--
709
-------------------------------------------------------
710
EffectModel = Instance.new("Model", char)
711
Effects = {
712
  Block = {
713
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
714
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
715
      prt.Anchored = true
716
      prt.CFrame = cframe
717
      local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
718
      game:GetService("Debris"):AddItem(prt, 10)
719
      if Type == 1 or Type == nil then
720
        table.insert(Effects, {
721
          prt,
722
          "Block1",
723
          delay,
724
          x3,
725
          y3,
726
          z3,
727
          msh
728
        })
729
      elseif Type == 2 then
730
        table.insert(Effects, {
731
          prt,
732
          "Block2",
733
          delay,
734
          x3,
735
          y3,
736
          z3,
737
          msh
738
        })
739
      else
740
        table.insert(Effects, {
741
          prt,
742
          "Block3",
743
          delay,
744
          x3,
745
          y3,
746
          z3,
747
          msh
748
        })
749
      end
750
    end
751
  },
752
  Sphere = {
753
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
754
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
755
      prt.Anchored = true
756
      prt.CFrame = cframe
757
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
758
      game:GetService("Debris"):AddItem(prt, 10)
759
      table.insert(Effects, {
760
        prt,
761
        "Cylinder",
762
        delay,
763
        x3,
764
        y3,
765
        z3,
766
        msh
767
      })
768
    end
769
  },
770
  Cylinder = {
771
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
772
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
773
      prt.Anchored = true
774
      prt.CFrame = cframe
775
      local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
776
      game:GetService("Debris"):AddItem(prt, 10)
777
      table.insert(Effects, {
778
        prt,
779
        "Cylinder",
780
        delay,
781
        x3,
782
        y3,
783
        z3,
784
        msh
785
      })
786
    end
787
  },
788
  Wave = {
789
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
790
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
791
      prt.Anchored = true
792
      prt.CFrame = cframe
793
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
794
      game:GetService("Debris"):AddItem(prt, 10)
795
      table.insert(Effects, {
796
        prt,
797
        "Cylinder",
798
        delay,
799
        x3 / 60,
800
        y3 / 60,
801
        z3 / 60,
802
        msh
803
      })
804
    end
805
  },
806
  Ring = {
807
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
808
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
809
      prt.Anchored = true
810
      prt.CFrame = cframe
811
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
812
      game:GetService("Debris"):AddItem(prt, 10)
813
      table.insert(Effects, {
814
        prt,
815
        "Cylinder",
816
        delay,
817
        x3,
818
        y3,
819
        z3,
820
        msh
821
      })
822
    end
823
  },
824
  Break = {
825
    Create = function(brickcolor, cframe, x1, y1, z1)
826
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
827
      prt.Anchored = true
828
      prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
829
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
830
      local num = math.random(10, 50) / 1000
831
      game:GetService("Debris"):AddItem(prt, 10)
832
      table.insert(Effects, {
833
        prt,
834
        "Shatter",
835
        num,
836
        prt.CFrame,
837
        math.random() - math.random(),
838
        0,
839
        math.random(50, 100) / 100
840
      })
841
    end
842
  },
843
Spiral = {
844
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
845
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
846
      prt.Anchored = true
847
      prt.CFrame = cframe
848
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
849
      game:GetService("Debris"):AddItem(prt, 10)
850
      table.insert(Effects, {
851
        prt,
852
        "Cylinder",
853
        delay,
854
        x3,
855
        y3,
856
        z3,
857
        msh
858
      })
859
    end
860
  },
861
Push = {
862
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
863
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
864
      prt.Anchored = true
865
      prt.CFrame = cframe
866
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
867
      game:GetService("Debris"):AddItem(prt, 10)
868
      table.insert(Effects, {
869
        prt,
870
        "Cylinder",
871
        delay,
872
        x3,
873
        y3,
874
        z3,
875
        msh
876
      })
877
    end
878
  }
879
}
880
function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
881
	local fp = IT("Part")
882
	fp.formFactor = formfactor 
883
	fp.Parent = parent
884
	fp.Reflectance = reflectance
885
	fp.Transparency = transparency
886
	fp.CanCollide = false 
887
	fp.Locked = true
888
	fp.BrickColor = brickcolor
889
	fp.Name = name
890
	fp.Size = size
891
	fp.Position = tors.Position 
892
	RemoveOutlines(fp)
893
	fp.Material = "SmoothPlastic"
894
	fp:BreakJoints()
895
	return fp 
896
end 
897
 
898
function mesh(Mesh,part,meshtype,meshid,offset,scale)
899
	local mesh = IT(Mesh) 
900
	mesh.Parent = part
901
	if Mesh == "SpecialMesh" then
902
		mesh.MeshType = meshtype
903
	if meshid ~= "nil" then
904
		mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
905
		end
906
	end
907
	mesh.Offset = offset
908
	mesh.Scale = scale
909
	return mesh
910
end
911
912
function Magic(bonuspeed, type, pos, scale, value, color, MType)
913
	local type = type
914
	local rng = Instance.new("Part", char)
915
	rng.Anchored = true
916
	rng.BrickColor = color
917
	rng.CanCollide = false
918
	rng.FormFactor = 3
919
	rng.Name = "Ring"
920
	rng.Material = "Neon"
921
	rng.Size = Vector3.new(1, 1, 1)
922
	rng.Transparency = 0
923
	rng.TopSurface = 0
924
	rng.BottomSurface = 0
925
	rng.CFrame = pos
926
	local rngm = Instance.new("SpecialMesh", rng)
927
	rngm.MeshType = MType
928
	rngm.Scale = scale
929
	local scaler2 = 1
930
	if type == "Add" then
931
		scaler2 = 1 * value
932
	elseif type == "Divide" then
933
		scaler2 = 1 / value
934
	end
935
	coroutine.resume(coroutine.create(function()
936
		for i = 0, 10 / bonuspeed, 0.1 do
937
			swait()
938
			if type == "Add" then
939
				scaler2 = scaler2 - 0.01 * value / bonuspeed
940
			elseif type == "Divide" then
941
				scaler2 = scaler2 - 0.01 / value * bonuspeed
942
			end
943
			rng.Transparency = rng.Transparency + 0.01 * bonuspeed
944
			rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
945
		end
946
		rng:Destroy()
947
	end))
948
end
949
950
function Eviscerate(dude)
951
	if dude.Name ~= char then
952
		local bgf = IT("BodyGyro", dude.Head)
953
		bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
954
		local val = IT("BoolValue", dude)
955
		val.Name = "IsHit"
956
		local ds = coroutine.wrap(function()
957
			dude:WaitForChild("Head"):BreakJoints()
958
			wait(0.5)
959
			target = nil
960
			coroutine.resume(coroutine.create(function()
961
				for i, v in pairs(dude:GetChildren()) do
962
					if v:IsA("Accessory") then
963
						v:Destroy()
964
					end
965
					if v:IsA("Humanoid") then
966
						v:Destroy()
967
					end
968
					if v:IsA("CharacterMesh") then
969
						v:Destroy()
970
					end
971
					if v:IsA("Model") then
972
						v:Destroy()
973
					end
974
					if v:IsA("Part") or v:IsA("MeshPart") then
975
						for x, o in pairs(v:GetChildren()) do
976
							if o:IsA("Decal") then
977
								o:Destroy()
978
							end
979
						end
980
						coroutine.resume(coroutine.create(function()
981
							v.Material = "Neon"
982
							v.CanCollide = false
983
							local PartEmmit1 = IT("ParticleEmitter", v)
984
							PartEmmit1.LightEmission = 1
985
							PartEmmit1.Texture = "rbxassetid://284205403"
986
							PartEmmit1.Color = ColorSequence.new(maincolor.Color)
987
							PartEmmit1.Rate = 150
988
							PartEmmit1.Lifetime = NumberRange.new(1)
989
							PartEmmit1.Size = NumberSequence.new({
990
								NumberSequenceKeypoint.new(0, 0.75, 0),
991
								NumberSequenceKeypoint.new(1, 0, 0)
992
							})
993
							PartEmmit1.Transparency = NumberSequence.new({
994
								NumberSequenceKeypoint.new(0, 0, 0),
995
								NumberSequenceKeypoint.new(1, 1, 0)
996
							})
997
							PartEmmit1.Speed = NumberRange.new(0, 0)
998
							PartEmmit1.VelocitySpread = 30000
999
							PartEmmit1.Rotation = NumberRange.new(-500, 500)
1000
							PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
1001
							local BodPoss = IT("BodyPosition", v)
1002
							BodPoss.P = 3000
1003
							BodPoss.D = 1000
1004
							BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
1005
							BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
1006
							v.Color = maincolor.Color
1007
							coroutine.resume(coroutine.create(function()
1008
								for i = 0, 49 do
1009
									swait(1)
1010
									v.Transparency = v.Transparency + 0.08
1011
								end
1012
								wait(0.5)
1013
								PartEmmit1.Enabled = false
1014
								wait(3)
1015
								v:Destroy()
1016
								dude:Destroy()
1017
							end))
1018
						end))
1019
					end
1020
				end
1021
			end))
1022
		end)
1023
		ds()
1024
	end
1025
end
1026
1027
function FindNearestHead(Position, Distance, SinglePlayer)
1028
	if SinglePlayer then
1029
		return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
1030
	end
1031
	local List = {}
1032
	for i, v in pairs(workspace:GetChildren()) do
1033
		if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
1034
			table.insert(List, v)
1035
		end
1036
	end
1037
	return List
1038
end
1039
1040
function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
1041
	local type = type
1042
	local rng = Instance.new("Part", char)
1043
	rng.Anchored = true
1044
	rng.BrickColor = Random
1045
	rng.CanCollide = false
1046
	rng.FormFactor = 3
1047
	rng.Name = "Ring"
1048
	rng.Material = "Neon"
1049
	rng.Size = Vector3.new(1, 1, 1)
1050
	rng.Transparency = 0
1051
	rng.TopSurface = 0
1052
	rng.BottomSurface = 0
1053
	rng.CFrame = pos
1054
	rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
1055
	local rngm = Instance.new("SpecialMesh", rng)
1056
	rngm.MeshType = MType
1057
	rngm.Scale = Vector3.new(x1, y1, z1)
1058
	local scaler2 = 1
1059
	local speeder = FastSpeed
1060
	if type == "Add" then
1061
		scaler2 = 1 * value
1062
	elseif type == "Divide" then
1063
		scaler2 = 1 / value
1064
	end
1065
	coroutine.resume(coroutine.create(function()
1066
		for i = 0, 10 / bonuspeed, 0.1 do
1067
			swait()
1068
			if type == "Add" then
1069
				scaler2 = scaler2 - 0.01 * value / bonuspeed
1070
			elseif type == "Divide" then
1071
				scaler2 = scaler2 - 0.01 / value * bonuspeed
1072
			end
1073
			speeder = speeder - 0.01 * FastSpeed * bonuspeed
1074
			rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
1075
			rng.Transparency = rng.Transparency + 0.01 * bonuspeed
1076
			rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
1077
		end
1078
		rng:Destroy()
1079
	end))
1080
end
1081
1082
function SoulSteal(dude)
1083
if dude.Name ~= char then
1084
local bgf = IT("BodyGyro", dude.Head)
1085
bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
1086
local val = IT("BoolValue", dude)
1087
val.Name = "IsHit"
1088
local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
1089
local soulst = coroutine.wrap(function()
1090
local soul = Instance.new("Part",dude)
1091
soul.Size = Vector3.new(1,1,1)
1092
soul.CanCollide = false
1093
soul.Anchored = false
1094
soul.Position = torso.Position
1095
soul.Transparency = 1
1096
local PartEmmit1 = IT("ParticleEmitter", soul)
1097
PartEmmit1.LightEmission = 1
1098
PartEmmit1.Texture = "rbxassetid://569507414"
1099
PartEmmit1.Color = ColorSequence.new(maincolor.Color)
1100
PartEmmit1.Rate = 250
1101
PartEmmit1.Lifetime = NumberRange.new(1.6)
1102
PartEmmit1.Size = NumberSequence.new({
1103
	NumberSequenceKeypoint.new(0, 1, 0),
1104
	NumberSequenceKeypoint.new(1, 0, 0)
1105
})
1106
PartEmmit1.Transparency = NumberSequence.new({
1107
	NumberSequenceKeypoint.new(0, 0, 0),
1108
	NumberSequenceKeypoint.new(1, 1, 0)
1109
})
1110
PartEmmit1.Speed = NumberRange.new(0, 0)
1111
PartEmmit1.VelocitySpread = 30000
1112
PartEmmit1.Rotation = NumberRange.new(-360, 360)
1113
PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
1114
local BodPoss = IT("BodyPosition", soul)
1115
BodPoss.P = 3000
1116
BodPoss.D = 1000
1117
BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
1118
BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
1119
wait(1.6)
1120
soul.Touched:connect(function(hit)
1121
	if hit.Parent == char then
1122
	soul:Destroy()
1123
	end
1124
end)
1125
wait(1.2)
1126
while soul do
1127
	swait()
1128
	PartEmmit1.Color = ColorSequence.new(maincolor.Color)
1129
	BodPoss.Position = tors.Position
1130
end
1131
end)
1132
	soulst()
1133
	end
1134
end
1135
function FaceMouse()
1136
local	Cam = workspace.CurrentCamera
1137
	return {
1138
		CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
1139
		Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
1140
	}
1141
end
1142
-------------------------------------------------------
1143
--End Effect Function--
1144
-------------------------------------------------------
1145
function Cso(ID, PARENT, VOLUME, PITCH)
1146
	local NSound = nil
1147
	coroutine.resume(coroutine.create(function()
1148
		NSound = IT("Sound", PARENT)
1149
		NSound.Volume = VOLUME
1150
		NSound.Pitch = PITCH
1151
		NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
1152
		swait()
1153
		NSound:play()
1154
		game:GetService("Debris"):AddItem(NSound, 10)
1155
	end))
1156
	return NSound
1157
end
1158
function CameraEnshaking(Length, Intensity)
1159
	coroutine.resume(coroutine.create(function()
1160
		local intensity = 1 * Intensity
1161
		local rotM = 0.01 * Intensity
1162
		for i = 0, Length, 0.1 do
1163
			swait()
1164
			intensity = intensity - 0.05 * Intensity / Length
1165
			rotM = rotM - 5.0E-4 * Intensity / Length
1166
			hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
1167
			cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
1168
		end
1169
		hum.CameraOffset = Vector3.new(0, 0, 0)
1170
	end))
1171
end
1172
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
1173
	local NEWWELD = IT(TYPE)
1174
	NEWWELD.Part0 = PART0
1175
	NEWWELD.Part1 = PART1
1176
	NEWWELD.C0 = C0
1177
	NEWWELD.C1 = C1
1178
	NEWWELD.Parent = PARENT
1179
	return NEWWELD
1180
end
1181
1182
function MakeForm(PART,TYPE)
1183
	local MSH = nil
1184
	if TYPE == "Cyl" then
1185
		MSH = IT("CylinderMesh",PART)
1186
	elseif TYPE == "Ball" then
1187
		MSH = IT("SpecialMesh",PART)
1188
		MSH.MeshType = "Sphere"
1189
	elseif TYPE == "Wedge" then
1190
		MSH = IT("SpecialMesh",PART)
1191
		MSH.MeshType = "Wedge"
1192
	elseif TYPE == "Block" then
1193
		MSH = IT("SpecialMesh",PART)
1194
		MSH.MeshType = "Brick"
1195
	end
1196
	return MSH
1197
end
1198
1199
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
1200
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
1201
end
1202
1203
function Sink(position,radius)
1204
	for i,v in ipairs(workspace:GetChildren()) do
1205
	if v:FindFirstChild("Hit2By"..plr.Name) == nil then
1206
		local body = v:GetChildren()
1207
			for part = 1, #body do
1208
				if(v:FindFirstChild("Hit2By"..plr.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= char) then
1209
					if(body[part].Position - position).Magnitude < radius then
1210
						if v.ClassName == "Model" then
1211
							v:FindFirstChildOfClass("Humanoid").Name = "Humanoid"
1212
							if v:FindFirstChild("Humanoid") then
1213
								local defence = Instance.new("BoolValue",v)
1214
								defence.Name = ("Hit2By"..plr.Name)
1215
								if v.Humanoid.Health ~= 0 then
1216
									local TORS = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
1217
									if TORS ~= nil then
1218
										local HITFLOOR2, HITPOS2 = Raycast(TORS.Position, (CF(TORS.Position, TORS.Position + Vector3.new(0, -1, 0))).lookVector, 25 * TORS.Size.Y/2, v)
1219
										coroutine.resume(coroutine.create(function()
1220
											if HITFLOOR2 ~= nil then
1221
												TORS.Anchored = true
1222
												local Hole2 = CreatePart(3, EffectModel, "Neon", 0, 0, "Really black", "Hole", Vector3.new(TORS.Size.X*4,0,TORS.Size.X*4))
1223
												Hole2.Color = Color3.new(0,0,0)
1224
												local MESH = MakeForm(Hole2,"Block")
1225
												MESH.Scale = Vector3.new(0,1,0)
1226
												Hole2.CFrame = CF(HITPOS2)
1227
												for i = 1, 10 do
1228
													swait()
1229
													MESH.Scale = MESH.Scale + Vector3.new(0.1,0,0.1)
1230
												end
1231
												Cso("160440683", v:FindFirstChild("Head"), 10, .8)
1232
												Cso("154955269", v:FindFirstChild("Head"), 10, 1)
1233
												repeat
1234
													swait()
1235
													TORS.CFrame = TORS.CFrame * CF(0,-0.1,0)
1236
													MESH.Scale = MESH.Scale + Vector3.new(0,1.6,0)
1237
												until TORS.Position.Y<position.Y-4
1238
												v:remove()
1239
												for i = 1, 10 do
1240
													swait()
1241
													MESH.Scale = MESH.Scale - Vector3.new(0.1,0,0.1)
1242
												end
1243
												Hole2:remove()
1244
											end
1245
										end))
1246
									end
1247
								end
1248
							end
1249
						end
1250
						--body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
1251
					end
1252
				end
1253
			end
1254
		end	
1255
	end
1256
end
1257
function Trail(Part)
1258
	local TRAIL = Part:Clone()
1259
	TRAIL.CanCollide = false
1260
	TRAIL.Anchored = true
1261
	TRAIL.Parent = EffectModel
1262
	TRAIL.Name = "Trail"
1263
	local TRANS = Part.Transparency
1264
	coroutine.resume(coroutine.create(function()
1265
		for i = 1, 20 do
1266
			swait()
1267
			TRAIL.Transparency = TRAIL.Transparency + ((1-TRANS)/20)
1268
		end
1269
		TRAIL:remove()
1270
	end))
1271
end
1272
-------------------------------------------------------
1273
--End Important Functions--
1274
-------------------------------------------------------
1275
1276
1277
-------------------------------------------------------
1278
--Start Customization--
1279
-------------------------------------------------------
1280
local Player_Size = 1
1281
if Player_Size ~= 1 then
1282
root.Size = root.Size * Player_Size
1283
tors.Size = tors.Size * Player_Size
1284
hed.Size = hed.Size * Player_Size
1285
ra.Size = ra.Size * Player_Size
1286
la.Size = la.Size * Player_Size
1287
rl.Size = rl.Size * Player_Size
1288
ll.Size = ll.Size * Player_Size
1289
----------------------------------------------------------------------------------
1290
rootj.Parent = root
1291
neck.Parent = tors
1292
RW.Parent = tors
1293
LW.Parent = tors
1294
RH.Parent = tors
1295
LH.Parent = tors
1296
----------------------------------------------------------------------------------
1297
rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
1298
rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
1299
neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
1300
neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
1301
RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
1302
LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
1303
----------------------------------------------------------------------------------
1304
RH.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))
1305
LH.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))
1306
RH.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))
1307
LH.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))
1308
--hat.Parent = Character
1309
end
1310
----------------------------------------------------------------------------------
1311
local SONG = 601069330
1312
local SONG2 = 0
1313
local Music = Instance.new("Sound",tors)
1314
Music.Volume = 2.5
1315
Music.Looped = true
1316
Music.Pitch = 1 --Pitcher
1317
----------------------------------------------------------------------------------
1318
local equipped = false
1319
local idle = 0
1320
local change = 1
1321
local val = 0
1322
local toim = 0
1323
local idleanim = 0.4
1324
local sine = 0
1325
local Sit = 1
1326
local VALUE1 = false
1327
local VALUE2 = false
1328
----------------------------------------------------------------------------------
1329
hum.WalkSpeed = 26
1330
hum.JumpPower = 57
1331
--hum.Animator.Parent = nil
1332
----------------------------------------------------------------------------------
1333
local naeeym2 = Instance.new("BillboardGui",char)
1334
naeeym2.AlwaysOnTop = true
1335
naeeym2.Size = UDim2.new(5,35,2,35)
1336
naeeym2.StudsOffset = Vector3.new(0,1,0)
1337
naeeym2.Adornee = hed
1338
naeeym2.Name = "Name"
1339
local tecks2 = Instance.new("TextLabel",naeeym2)
1340
tecks2.BackgroundTransparency = 1
1341
tecks2.TextScaled = true
1342
tecks2.BorderSizePixel = 0
1343
tecks2.Text = "The God of The Void"
1344
tecks2.Font = "Fantasy"
1345
tecks2.TextSize = 30
1346
tecks2.TextTransparency = 0
1347
tecks2.TextStrokeTransparency = 0
1348
tecks2.TextColor3 = Color3.new(0,0,0)
1349
tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
1350
tecks2.Size = UDim2.new(1,0,0.5,0)
1351
tecks2.Parent = naeeym2
1352
----------------------------------------------------------------------------------
1353
local Hole = CreatePart(3, EffectModel, "Neon", 0, 0, "Really black", "Hole", Vector3.new(15,0,15))
1354
local MESH = MakeForm(Hole,"Cyl")
1355
local ROBLOXIDLEANIMATION = IT("Animation")
1356
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
1357
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
1358
local ANIMATOR = hum.Animator
1359
local ANIMATE = char.Animate
1360
-------------------------------------------------------
1361
--End Customization--
1362
-------------------------------------------------------
1363
1364
1365
-------------------------------------------------------
1366
--Start Attacks N Stuff--
1367
-------------------------------------------------------
1368
function Intro()
1369
	coroutine.resume(coroutine.create(function()
1370
	attack = true
1371
	hum.WalkSpeed = 0
1372
	root.Anchored = true
1373
	tecks2.TextTransparency = 1
1374
	tecks2.TextStrokeTransparency = 1
1375
	for i = 0, 4, 0.1 do
1376
		swait()
1377
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.2)
1378
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.2)
1379
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.2)
1380
		LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.2)
1381
		RW.C0 = clerp(RW.C0, CF(.4* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-135)), 0.2)
1382
		LW.C0 = clerp(LW.C0, CF(-.4* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(0), Rad(-.6), Rad(135)), 0.2)
1383
	end
1384
	for i = 0, 4, 0.1 do
1385
		swait()
1386
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -10 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
1387
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.2)
1388
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.2)
1389
		LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.2)
1390
		RW.C0 = clerp(RW.C0, CF(.4* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-135)), 0.2)
1391
		LW.C0 = clerp(LW.C0, CF(-.4* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(0), Rad(-.6), Rad(135)), 0.2)
1392
	end
1393
	tecks2.TextTransparency = 0
1394
	tecks2.TextStrokeTransparency = 0
1395
	VALUE1 = true
1396
	local part = CreatePart(3, EffectModel, "Neon", 0, 0, "Really red", "Eye", Vector3.new(0.2,0.3,0.1),false)
1397
	local weld = CreateWeldOrSnapOrMotor("Weld", part, hed, part, CF(0.16,0.25,-0.5) * angles(Rad(0), Rad(0), Rad(-10)), CF(0, 0, 0))
1398
	MakeForm(part,"Ball")
1399
	local part = CreatePart(3, EffectModel, "Neon", 0, 0, "Really red", "Eye", Vector3.new(0.2,0.3,0.1),false)
1400
	local weld = CreateWeldOrSnapOrMotor("Weld", part, hed, part, CF(-0.16,0.25,-0.5) * angles(Rad(0), Rad(0), Rad(10)), CF(0, 0, 0))
1401
	MakeForm(part,"Ball")
1402
	swait(15)
1403
	Cso("649634100", hed, 10, 0.5)
1404
	for i = 0, 6, 0.1 do
1405
		swait()
1406
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 2 + 0.25* Player_Size * Cos(sine / 20)) * angles(Rad(-25), Rad(0), Rad(0)), 0.05)
1407
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-25 - 6.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.05)
1408
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.15 * Cos(sine / 20)* Player_Size, -0.1* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-8.5), Rad(0), Rad(-15)), 0.05)
1409
		LH.C0 = clerp(LH.C0, CF(-1.1* Player_Size, -0.6 - 0.15 * Cos(sine / 20)* Player_Size, -0.3* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-8.5), Rad(15), Rad(45)), 0.05)
1410
		RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.08 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(-.6), Rad(13)), 0.05)
1411
		LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.08 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(-.6), Rad(-13)), 0.05)
1412
	end
1413
	root.Anchored = false
1414
	attack = false
1415
	hum.WalkSpeed = 26
1416
	end))
1417
end
1418
function AbyssalGate()
1419
	coroutine.resume(coroutine.create(function()
1420
		attack = true
1421
		for i = 0, 6, 0.1 do
1422
		swait()
1423
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 2 + 0.25* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.05)
1424
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-25 - 6.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.05)
1425
		RH.C0 = clerp(RH.C0, CF(1.1* Player_Size, -0.6 - 0.15 * Cos(sine / 20)* Player_Size, -0.3* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-8.5), Rad(0), Rad(-15)), 0.05)
1426
		LH.C0 = clerp(LH.C0, CF(-1.1* Player_Size, -0.6 - 0.15 * Cos(sine / 20)* Player_Size, -0.3* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-8.5), Rad(15), Rad(45)), 0.05)
1427
		RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.08 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(5), Rad(-.6), Rad(75)), 0.05)
1428
		LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.08 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(5), Rad(-.6), Rad(-75)), 0.05)
1429
		end
1430
		Cso("1075001850", root, 10, 3)
1431
		for i = 1, 350 do
1432
			swait()
1433
			Hole.Size = Hole.Size + Vector3.new(.4,0,.4)
1434
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 2 + 0.25* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.05)
1435
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-25 - 6.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.05)
1436
		RH.C0 = clerp(RH.C0, CF(1.1* Player_Size, -0.6 - 0.15 * Cos(sine / 20)* Player_Size, -0.3* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-8.5), Rad(0), Rad(-15)), 0.05)
1437
		LH.C0 = clerp(LH.C0, CF(-1.1* Player_Size, -0.6 - 0.15 * Cos(sine / 20)* Player_Size, -0.3* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-8.5), Rad(15), Rad(45)), 0.05)
1438
		RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.08 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(5), Rad(-.6), Rad(75)), 0.05)
1439
		LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.08 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(5), Rad(-.6), Rad(-75)), 0.05)
1440
		end
1441
		swait()
1442
		for i = 1, 350 do
1443
			swait()
1444
			Hole.Size = Hole.Size - Vector3.new(.4,0,.4)
1445
			Trail(Hole)
1446
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 2 + 0.25* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.05)
1447
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-25 - 6.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.05)
1448
		RH.C0 = clerp(RH.C0, CF(1.1* Player_Size, -0.6 - 0.15 * Cos(sine / 20)* Player_Size, -0.3* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-8.5), Rad(0), Rad(-15)), 0.05)
1449
		LH.C0 = clerp(LH.C0, CF(-1.1* Player_Size, -0.6 - 0.15 * Cos(sine / 20)* Player_Size, -0.3* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-8.5), Rad(15), Rad(45)), 0.05)
1450
		RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.08 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(5), Rad(-.6), Rad(75)), 0.05)
1451
		LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.08 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(5), Rad(-.6), Rad(-75)), 0.05)
1452
		end
1453
		attack = false
1454
	end))
1455
end
1456
function SinkingWarp()
1457
	attack = true
1458
	hum.WalkSpeed = 0
1459
	root.Anchored = true
1460
	for i = 0, 6, 0.1 do
1461
		swait()
1462
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 2 + 0.25* Player_Size * Cos(sine / 20)) * angles(Rad(-50), Rad(0), Rad(0)), 0.05)
1463
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-25 - 6.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.05)
1464
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.15 * Cos(sine / 20)* Player_Size, -0.1* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-8.5), Rad(0), Rad(-25)), 0.05)
1465
		LH.C0 = clerp(LH.C0, CF(-1.1* Player_Size, -0.6 - 0.15 * Cos(sine / 20)* Player_Size, -0.3* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-8.5), Rad(15), Rad(76)), 0.05)
1466
		RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.08 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-50), Rad(-.6), Rad(13)), 0.05)
1467
		LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.08 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-50), Rad(-.6), Rad(-13)), 0.05)
1468
	end
1469
	tecks2.TextTransparency = 1
1470
	tecks2.TextStrokeTransparency = 1
1471
	for i = 0, 2, 0.1 do
1472
		swait()
1473
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -15 + 0.25* Player_Size * Cos(sine / 20)) * angles(Rad(-50), Rad(0), Rad(0)), 0.1)
1474
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-25 - 6.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
1475
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.15 * Cos(sine / 20)* Player_Size, -0.1* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-8.5), Rad(0), Rad(-25)), 0.1)
1476
		LH.C0 = clerp(LH.C0, CF(-1.1* Player_Size, -0.6 - 0.15 * Cos(sine / 20)* Player_Size, -0.3* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-8.5), Rad(15), Rad(76)), 0.1)
1477
		RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.08 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-50), Rad(-.6), Rad(13)), 0.1)
1478
		LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.08 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-50), Rad(-.6), Rad(-13)), 0.1)
1479
	end
1480
	for i = 1, 50 do
1481
		swait()
1482
		Trail(Hole)
1483
		MESH.Scale = MESH.Scale - Vector3.new(0.02,0,0.02)
1484
	end
1485
	local ORIGINPOS = root.Position
1486
	root.CFrame = CF(Vector3.new(mouse.Hit.p.X,root.Position.Y,mouse.Hit.p.Z),ORIGINPOS)
1487
	Cso("154955269", Hole, 10, .7)
1488
	for i = 1, 50 do
1489
		swait()
1490
		MESH.Scale = MESH.Scale + Vector3.new(0.02,0,0.02)
1491
	end
1492
	tecks2.TextTransparency = 0
1493
	tecks2.TextStrokeTransparency = 0
1494
	for i = 0, 6, 0.1 do
1495
		swait()
1496
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 2 + 0.25* Player_Size * Cos(sine / 20)) * angles(Rad(-25), Rad(0), Rad(0)), 0.05)
1497
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-25 - 6.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.05)
1498
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.15 * Cos(sine / 20)* Player_Size, -0.1* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-8.5), Rad(0), Rad(-15)), 0.05)
1499
		LH.C0 = clerp(LH.C0, CF(-1.1* Player_Size, -0.6 - 0.15 * Cos(sine / 20)* Player_Size, -0.3* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-8.5), Rad(15), Rad(45)), 0.05)
1500
		RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.08 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(-.6), Rad(13)), 0.05)
1501
		LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.08 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(-.6), Rad(-13)), 0.05)
1502
	end
1503
	attack = false
1504
	root.Anchored = false
1505
	hum.WalkSpeed = 26
1506
end
1507
function Taunt()
1508
	attack = true
1509
	Cso("649634100", hed, 10, 0.5)
1510
	for i = 0, 6, 0.1 do
1511
		swait()
1512
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 2 + 0.25* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.05)
1513
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-25 - 6.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.05)
1514
		RH.C0 = clerp(RH.C0, CF(1.1* Player_Size, -0.6 - 0.15 * Cos(sine / 20)* Player_Size, -0.3* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-8.5), Rad(0), Rad(-15)), 0.05)
1515
		LH.C0 = clerp(LH.C0, CF(-1.1* Player_Size, -0.6 - 0.15 * Cos(sine / 20)* Player_Size, -0.3* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-8.5), Rad(15), Rad(45)), 0.05)
1516
		RW.C0 = clerp(RW.C0, CF(.7* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-135)), 0.2)
1517
		LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.08 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(5), Rad(-.6), Rad(-75)), 0.05)
1518
	end
1519
	attack = false
1520
end
1521
function AnnoyingSink()
1522
	coroutine.resume(coroutine.create(function()
1523
		attack = true
1524
		for i = 0, 6, 0.1 do
1525
		swait()
1526
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 2 + 0.25* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.05)
1527
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-6.5 * Sin(sine / 20)), Rad(20), Rad(0)), 0.05)
1528
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.3 - 0.15 * Cos(sine / 20)* Player_Size, -0.1* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-8.5), Rad(0), Rad(15)), 0.05)
1529
		LH.C0 = clerp(LH.C0, CF(-1.1* Player_Size, -0.6 - 0.15 * Cos(sine / 20)* Player_Size, -0.3* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-8.5), Rad(15), Rad(45)), 0.05)
1530
		RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.08 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(90), Rad(-.6), Rad(7)), 0.2)
1531
		LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.08 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(5), Rad(-.6), Rad(-15)), 0.05)
1532
		end
1533
		local Hole2 = CreatePart(3, EffectModel, "Neon", 0, 0, "Really black", "Hole", Vector3.new(15,0,15))
1534
		Hole2.Color = Color3.new(0,0,0)
1535
		local MESH = MakeForm(Hole2,"Cyl")
1536
		MESH.Scale = Vector3.new(0,1,0)
1537
		Hole2.CFrame = CF(mouse.Hit.p)
1538
		Cso("154955269", Hole2, 10, .7)
1539
		for i = 0, 3, 0.1 do
1540
		swait()
1541
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 2 + 0.25* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.05)
1542
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-25 - 6.5 * Sin(sine / 20)), Rad(20), Rad(0)), 0.05)
1543
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.3 - 0.15 * Cos(sine / 20)* Player_Size, -0.1* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-8.5), Rad(0), Rad(15)), 0.05)
1544
		LH.C0 = clerp(LH.C0, CF(-1.1* Player_Size, -0.6 - 0.15 * Cos(sine / 20)* Player_Size, -0.3* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-8.5), Rad(15), Rad(45)), 0.05)
1545
		RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.08 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(145), Rad(-.6), Rad(7)), 0.2)
1546
		LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.08 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(5), Rad(-.6), Rad(-15)), 0.05)
1547
		end
1548
		attack = false
1549
		for i = 1, 50 do
1550
			swait()
1551
			MESH.Scale = MESH.Scale + Vector3.new(0.02,0,0.02)
1552
		end
1553
		for i = 1, 200 do
1554
			swait()
1555
			Sink(Hole2.Position,Hole2.Size.X/2.2)
1556
		end
1557
		swait(100)
1558
		for i = 1, 50 do
1559
			swait()
1560
			Trail(Hole2)
1561
			MESH.Scale = MESH.Scale - Vector3.new(0.02,0,0.02)
1562
		end
1563
		Hole2:remove()
1564
	end))
1565
end
1566
-------------------------------------------------------
1567
--End Attacks N Stuff--
1568
-------------------------------------------------------
1569
mouse.KeyDown:connect(function(key)
1570
	if attack == false then
1571
		if key == 'c' then
1572
			AbyssalGate()
1573
		elseif key == 'z' then
1574
			SinkingWarp()
1575
		elseif key == 'b' then
1576
			AnnoyingSink()
1577
		elseif key == 't' then
1578
			Taunt()
1579
		end
1580
	end
1581
end)
1582
1583
 
1584
1585
1586
1587
1588
1589
1590
-------------------------------------------------------
1591
--Start Animations--
1592
-------------------------------------------------------
1593
print("By Makhail07")
1594
Intro()
1595
while true do
1596
	swait()
1597
	ANIMATE.Parent = nil
1598
	local IDLEANIMATION = hum:LoadAnimation(ROBLOXIDLEANIMATION)
1599
	IDLEANIMATION:Play()
1600
	sine = sine + change
1601
	local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
1602
	local velderp = root.Velocity.y
1603
	hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 25 * Player_Size, char)
1604
	if equipped == true or equipped == false then
1605
		if attack == false then
1606
			idle = idle + 1
1607
		else
1608
			idle = 0
1609
		end
1610
		if 1 < root.Velocity.y and hitfloor == nil then
1611
			Anim = "Jump"
1612
			if attack == false then
1613
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
1614
				neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
1615
				RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
1616
				LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
1617
				RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
1618
				LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
1619
			end
1620
		elseif -1 > root.Velocity.y and hitfloor == nil then
1621
			Anim = "Fall"
1622
			if attack == false then
1623
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15)
1624
				neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
1625
				RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
1626
				LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
1627
				RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
1628
				LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
1629
			end
1630
		elseif torvel < 1 and hitfloor ~= nil then
1631
			Anim = "Idle"
1632
			change = 1
1633
			if attack == false then
1634
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 2 + 0.25* Player_Size * Cos(sine / 12)) * angles(Rad(25), Rad(0), Rad(0)), 0.1)
1635
				tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 6.5 * Sin(sine / 12)), Rad(0), Rad(0)), 0.05)
1636
				RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.15 * Cos(sine / 20)* Player_Size, -0.1* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-8.5 - 6.5 * Sin(sine / 12)), Rad(0), Rad(15)), 0.1)
1637
				LH.C0 = clerp(LH.C0, CF(-1.1* Player_Size, -0.6 - 0.15 * Cos(sine / 20)* Player_Size, -0.3* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-8.5 - 6.5 * Sin(sine / 12)), Rad(15), Rad(25)), 0.1)
1638
				RW.C0 = clerp(RW.C0, CF(1.4* Player_Size, 0.4 + 0.08 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(25 - 6.5 * Cos(sine / 12)), Rad(-.6), Rad(13 + 6.5 * Sin(sine / 12))), 0.1)
1639
				LW.C0 = clerp(LW.C0, CF(-1.4* Player_Size, 0.4 + 0.08 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(25 - 6.5 * Cos(sine / 12)), Rad(-.6), Rad(-13 - 6.5 * Sin(sine / 12))), 0.1)
1640
			end
1641
		elseif (tors.Velocity).magnitude < 200 and hitfloor ~= nil then
1642
			Anim = "Walk"
1643
			change = 1
1644
			if attack == false then
1645
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 2 + 0.25* Player_Size * Cos(sine / 12)) * angles(Rad(25), Rad(0), Rad(0)), 0.1)
1646
				tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-15 - 6.5 * Sin(sine / 12)), Rad(20), Rad(0)), 0.1)
1647
				RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.15 * Cos(sine / 20)* Player_Size, -0.1* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-18.5 - 6.5 * Sin(sine / 12)), Rad(0), Rad(-35)), 0.1)
1648
				LH.C0 = clerp(LH.C0, CF(-1.1* Player_Size, -0.6 - 0.15 * Cos(sine / 20)* Player_Size, -0.2* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-18.5 - 6.5 * Sin(sine / 12)), Rad(15), Rad(35)), 0.1)
1649
				RW.C0 = clerp(RW.C0, CF(1.4* Player_Size, 0.4 + 0.08 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-45 - 6.5 * Cos(sine / 12)), Rad(-.6), Rad(25 + 6.5 * Sin(sine / 12))), 0.1)
1650
				LW.C0 = clerp(LW.C0, CF(-1.4* Player_Size, 0.4 + 0.08 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-45 - 6.5 * Cos(sine / 12)), Rad(-.6), Rad(-25 - 6.5 * Sin(sine / 12))), 0.1)
1651
			end
1652
		end
1653
	end
1654
	if hitfloor ~= nil then
1655
		Hole.CFrame = CF(posfloor)
1656
	end
1657
	Sink(Hole.Position, Hole.Size.X/2.2*MESH.Scale.X)
1658
	Hole.Color = Color3.new(0,0,0)
1659
	if VALUE1 == true then
1660
		--hum.HipHeight = 2
1661
		q = char:GetChildren()
1662
		for u = 1, #q do
1663
			if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
1664
				q[u]:remove()
1665
			elseif q[u].ClassName == "Shirt" then
1666
				q[u]:Destroy()
1667
			elseif q[u].ClassName == "Pants" then
1668
				q[u]:Destroy()
1669
			elseif q[u].ClassName == "CharacterMesh" then
1670
				q[u]:remove()
1671
			elseif q[u].ClassName == "ShirtGraphic" then
1672
				q[u]:remove()
1673
			elseif q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then
1674
				q[u].Color = Color3.new(0,0,0)
1675
				q[u].Material = "Neon"
1676
			end
1677
		end
1678
		if hed:FindFirstChild("Mesh") then
1679
			local mesh = hed.Mesh
1680
			if mesh.ClassName == "SpecialMesh" then
1681
				mesh:remove()
1682
				local m = IT("BlockMesh",hed)
1683
				m.Scale = Vector3.new(0.5,1,1)
1684
			end
1685
		end
1686
		if hed:FindFirstChild("face") then
1687
			hed.face:remove()
1688
		end
1689
	end
1690
	Music.SoundId = "rbxassetid://"..SONG
1691
	Music.Looped = true
1692
	Music.Pitch = 1
1693
	Music.Volume = 5
1694
	Music.Parent = char
1695
	Music:Resume()
1696
	if 0 < #Effects then
1697
		for e = 1, #Effects do
1698
			if Effects[e] ~= nil then
1699
				local Thing = Effects[e]
1700
				if Thing ~= nil then
1701
					local Part = Thing[1]
1702
					local Mode = Thing[2]
1703
					local Delay = Thing[3]
1704
					local IncX = Thing[4]
1705
					local IncY = Thing[5]
1706
					local IncZ = Thing[6]
1707
					if 1 >= Thing[1].Transparency then
1708
						if Thing[2] == "Block1" then
1709
							Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1710
							local Mesh = Thing[1].Mesh
1711
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1712
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1713
						elseif Thing[2] == "Block2" then
1714
							Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
1715
							local Mesh = Thing[7]
1716
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1717
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1718
						elseif Thing[2] == "Block3" then
1719
							Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
1720
							local Mesh = Thing[7]
1721
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1722
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1723
						elseif Thing[2] == "Cylinder" then
1724
							local Mesh = Thing[1].Mesh
1725
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1726
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1727
						elseif Thing[2] == "Blood" then
1728
							local Mesh = Thing[7]
1729
							Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
1730
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1731
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1732
						elseif Thing[2] == "Elec" then
1733
							local Mesh = Thing[1].Mesh
1734
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
1735
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1736
						elseif Thing[2] == "Disappear" then
1737
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1738
						elseif Thing[2] == "Shatter" then
1739
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1740
							Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
1741
							Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
1742
							Thing[6] = Thing[6] + Thing[5]
1743
						end
1744
					else
1745
						Part.Parent = nil
1746
						table.remove(Effects, e)
1747
					end
1748
				end
1749
			end
1750
		end
1751
	end
1752
end
1753
-------------------------------------------------------
1754
--End Animations And Script--
1755
-------------------------------------------------------