View difference between Paste ID: FpZa20FD and LLf164qp
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,game,owner = owner,game
3
local RealPlayer = Player
4
do
5
	print("FE Compatibility code by Mokiros")
6
	local rp = RealPlayer
7
	script.Parent = rp.Character
8
	
9
	--RemoteEvent for communicating
10
	local Event = Instance.new("RemoteEvent")
11
	Event.Name = "UserInput_Event"
12
13
	--Fake event to make stuff like Mouse.KeyDown work
14
	local function fakeEvent()
15
		local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
16
		t.connect = t.Connect
17
		return t
18
	end
19
20
	--Creating fake input objects with fake variables
21
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
22
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
23
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
24
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
25
	end}
26
	--Merged 2 functions into one by checking amount of arguments
27
	CAS.UnbindAction = CAS.BindAction
28
29
	--This function will trigger the events that have been :Connect()'ed
30
	local function te(self,ev,...)
31
		local t = m[ev]
32
		if t and t._fakeEvent then
33
			for _,f in pairs(t.Functions) do
34
				f(...)
35
			end
36
		end
37
	end
38
	m.TrigEvent = te
39
	UIS.TrigEvent = te
40
41
	Event.OnServerEvent:Connect(function(plr,io)
42
	    if plr~=rp then return end
43
		m.Target = io.Target
44
		m.Hit = io.Hit
45
		if not io.isMouse then
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 Mouse = Player:GetMouse()
66
	local UIS = game:GetService("UserInputService")
67
	local input = function(io,a)
68
		if a then return end
69
		--Since InputObject is a client-side instance, we create and pass table instead
70
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
71
	end
72
	UIS.InputBegan:Connect(input)
73
	UIS.InputEnded:Connect(input)
74
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
85
	----Sandboxed game object that allows the usage of client-side methods and services
86
	--Real game object
87
	local _rg = game
88
89
	--Metatable for fake service
90
	local fsmt = {
91
		__index = function(self,k)
92
			local s = rawget(self,"_RealService")
93
			if s then return s[k] end
94
		end,
95
		__newindex = function(self,k,v)
96
			local s = rawget(self,"_RealService")
97
			if s then s[k]=v end
98
		end,
99
		__call = function(self,...)
100
			local s = rawget(self,"_RealService")
101
			if s then return s(...) end
102
		end
103
	}
104
	local function FakeService(t,RealService)
105
		t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
106
		return setmetatable(t,fsmt)
107
	end
108
109
	--Fake game object
110
	local g = {
111
		GetService = function(self,s)
112
			return self[s]
113
		end,
114
		Players = FakeService({
115
			LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
116
		},"Players"),
117
		UserInputService = FakeService(UIS,"UserInputService"),
118
		ContextActionService = FakeService(CAS,"ContextActionService"),
119
	}
120
	rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
121
	g.service = g.GetService
122
	
123
	g.RunService = FakeService({
124
		RenderStepped = _rg:GetService("RunService").Heartbeat,
125
		BindToRenderStep = function(self,name,_,fun)
126
127
		end,
128
		UnbindFromRenderStep = function(self,name)
129
			self._btrs[name]:Disconnect()
130
		end,
131
	},"RunService")
132
133
	setmetatable(g,{
134
		__index=function(self,s)
135
			return _rg:GetService(s) or typeof(_rg[s])=="function"
136
			and function(_,...)return _rg[s](_rg,...)end or _rg[s]
137
		end,
138
		__newindex = fsmt.__newindex,
139
		__call = fsmt.__call
140
	})
141
	--Changing owner to fake player object to support owner:GetMouse()
142
	game,owner = g,g.Players.LocalPlayer
143
end
144
----------------------
145
-- Synapse Decompiler
146
-- Purchase Here: https://brack4712.xyz/synapse/purchase/
147
148
wait(0.2)
149
Player = owner
150
PlayerGui = Player.PlayerGui
151
Cam = workspace.CurrentCamera
152
Backpack = Player.Backpack
153
Character = Player.Character
154
Humanoid = Character.Humanoid
155
Mouse = Player:GetMouse()
156
RootPart = Character.HumanoidRootPart
157
Torso = Character.Torso
158
Head = Character.Head
159
RightArm = Character["Right Arm"]
160
LeftArm = Character["Left Arm"]
161
RightLeg = Character["Right Leg"]
162
LeftLeg = Character["Left Leg"]
163
RootJoint = RootPart.RootJoint
164
Neck = Torso.Neck
165
RightShoulder = Torso["Right Shoulder"]
166
LeftShoulder = Torso["Left Shoulder"]
167
RightHip = Torso["Right Hip"]
168
LeftHip = Torso["Left Hip"]
169
Humanoid.JumpPower = 0
170
local sick = Instance.new("Sound", Character)
171
sick.SoundId = "rbxassetid://131904397"
172
sick.Name = "BGM"
173
sick.Looped = true
174
sick.Pitch = 1
175
sick.Volume = 4
176
sick:Play()
177
musictime = 0
178
Character.ChildRemoved:connect(function(removed)
179
if removed.Name == "BGM" then
180
local sick = Instance.new("Sound", Character)
181
sick.SoundId = "rbxassetid://131904397"
182
sick.Name = "BGM"
183
sick.Looped = true
184
sick.Pitch = 1
185
sick.Volume = 4
186
sick.TimePosition = musictime
187
sick:Play()
188
end
189
end)
190
IT = Instance.new
191
CF = CFrame.new
192
VT = Vector3.new
193
RAD = math.rad
194
C3 = Color3.new
195
UD2 = UDim2.new
196
BRICKC = BrickColor.new
197
ANGLES = CFrame.Angles
198
EULER = CFrame.fromEulerAnglesXYZ
199
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
200
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
201
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
202
COS = math.cos
203
ACOS = math.acos
204
SIN = math.sin
205
ASIN = math.asin
206
ABS = math.abs
207
MRANDOM = math.random
208
FLOOR = math.floor
209
local LAUGHS = {834001699,834001752,834001828}
210
local CHOICE = MRANDOM(1,4)
211
212
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
213
	local NEWMESH = IT(MESH)
214
	if MESH == "SpecialMesh" then
215
		NEWMESH.MeshType = MESHTYPE
216
		if MESHID ~= "nil" and MESHID ~= "" then
217
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID
218
		end
219
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
220
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID
221
		end
222
	end
223
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
224
	NEWMESH.Scale = SCALE
225
	NEWMESH.Parent = PARENT
226
	return NEWMESH
227
end
228
229
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
230
	local NEWPART = IT("Part")
231
	NEWPART.formFactor = FORMFACTOR
232
	NEWPART.Reflectance = REFLECTANCE
233
	NEWPART.Transparency = TRANSPARENCY
234
	NEWPART.CanCollide = false
235
	NEWPART.Locked = true
236
	NEWPART.Anchored = true
237
	if ANCHOR == false then
238
		NEWPART.Anchored = false
239
	end
240
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
241
	NEWPART.Name = NAME
242
	NEWPART.Size = SIZE
243
	NEWPART.Position = Torso.Position
244
	NEWPART.Material = MATERIAL
245
	NEWPART:BreakJoints()
246
	NEWPART.Parent = PARENT
247
	return NEWPART
248
end
249
Player_Size = 1
250
Animation_Speed = 3
251
Frame_Speed = 0.016666666666666666
252
local Speed = 20
253
local Effects2 = {}
254
local weldBetween = function(a, b)
255
	local weldd = Instance.new("ManualWeld")
256
	weldd.Part0 = a
257
	weldd.Part1 = b
258
	weldd.C0 = CFrame.new()
259
	weldd.C1 = b.CFrame:inverse() * a.CFrame
260
	weldd.Parent = a
261
	return weldd
262
end
263
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
264
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
265
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
266
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
267
local CHANGEDEFENSE = 0
268
local CHANGEDAMAGE = 0
269
local CHANGEMOVEMENT = 0
270
local ANIM = "Idle"
271
local ATTACK = false
272
local EQUIPPED = false
273
local HOLD = false
274
local COMBO = 1
275
local Rooted = false
276
local SINE = 0
277
local KEYHOLD = false
278
local CHANGE = 2 / Animation_Speed
279
local WALKINGANIM = false
280
local WALK = 0
281
local VALUE1 = false
282
local VALUE2 = false
283
local ROBLOXIDLEANIMATION = IT("Animation")
284
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
285
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
286
local WEAPONGUI = IT("ScreenGui", PlayerGui)
287
WEAPONGUI.Name = "Weapon GUI"
288
local Effects = IT("Folder", Character)
289
Effects.Name = "Effects"
290
local ANIMATOR = Humanoid.Animator
291
local ANIMATE = Character.Animate
292
293
local UNANCHOR = true
294
295
ArtificialHB = Instance.new("BindableEvent", script)
296
ArtificialHB.Name = "ArtificialHB"
297
script:WaitForChild("ArtificialHB")
298
frame = Frame_Speed
299
tf = 0
300
allowframeloss = false
301
tossremainder = false
302
lastframe = tick()
303
script.ArtificialHB:Fire()
304
game:GetService("RunService").Heartbeat:connect(function(s, p)
305
	tf = tf + s
306
	if tf >= frame then
307
		if allowframeloss then
308
			script.ArtificialHB:Fire()
309
			lastframe = tick()
310
		else
311
			for i = 1, math.floor(tf / frame) do
312
				script.ArtificialHB:Fire()
313
			end
314
			lastframe = tick()
315
		end
316
		if tossremainder then
317
			tf = 0
318
		else
319
			tf = tf - frame * math.floor(tf / frame)
320
		end
321
	end
322
end)
323
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
324
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
325
end
326
function PositiveAngle(NUMBER)
327
	if NUMBER >= 0 then
328
		NUMBER = 0
329
	end
330
	return NUMBER
331
end
332
function NegativeAngle(NUMBER)
333
	if NUMBER <= 0 then
334
		NUMBER = 0
335
	end
336
	return NUMBER
337
end
338
function Swait(NUMBER)
339
	if NUMBER == 0 or NUMBER == nil then
340
		ArtificialHB.Event:wait()
341
	else
342
		for i = 1, NUMBER do
343
			ArtificialHB.Event:wait()
344
		end
345
	end
346
end
347
function QuaternionFromCFrame(cf)
348
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
349
	local trace = m00 + m11 + m22
350
	if trace > 0 then
351
		local s = math.sqrt(1 + trace)
352
		local recip = 0.5 / s
353
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
354
	else
355
		local i = 0
356
		if m00 < m11 then
357
			i = 1
358
		end
359
		if m22 > (i == 0 and m00 or m11) then
360
			i = 2
361
		end
362
		if i == 0 then
363
			local s = math.sqrt(m00 - m11 - m22 + 1)
364
			local recip = 0.5 / s
365
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
366
		elseif i == 1 then
367
			local s = math.sqrt(m11 - m22 - m00 + 1)
368
			local recip = 0.5 / s
369
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
370
		elseif i == 2 then
371
			local s = math.sqrt(m22 - m00 - m11 + 1)
372
			local recip = 0.5 / s
373
			return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
374
		end
375
	end
376
end
377
function QuaternionToCFrame(px, py, pz, x, y, z, w)
378
	local xs, ys, zs = x + x, y + y, z + z
379
	local wx, wy, wz = w * xs, w * ys, w * zs
380
	local xx = x * xs
381
	local xy = x * ys
382
	local xz = x * zs
383
	local yy = y * ys
384
	local yz = y * zs
385
	local zz = z * zs
386
	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))
387
end
388
Head.Color = C3(0,0,0)
389
Torso.Color = C3(0,0,0)
390
LeftArm.Color = C3(0,0,0)
391
RightArm.Color = C3(0,0,0)
392
LeftLeg.Color = C3(0,0,0)
393
RightLeg.Color = C3(0,0,0)
394
function QuaternionSlerp(a, b, t)
395
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
396
	local startInterp, finishInterp
397
	if cosTheta >= 1.0E-4 then
398
		if 1 - cosTheta > 1.0E-4 then
399
			local theta = ACOS(cosTheta)
400
			local invSinTheta = 1 / SIN(theta)
401
			startInterp = SIN((1 - t) * theta) * invSinTheta
402
			finishInterp = SIN(t * theta) * invSinTheta
403
		else
404
			startInterp = 1 - t
405
			finishInterp = t
406
		end
407
	elseif 1 + cosTheta > 1.0E-4 then
408
		local theta = ACOS(-cosTheta)
409
		local invSinTheta = 1 / SIN(theta)
410
		startInterp = SIN((t - 1) * theta) * invSinTheta
411
		finishInterp = SIN(t * theta) * invSinTheta
412
	else
413
		startInterp = t - 1
414
		finishInterp = t
415
	end
416
	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
417
end
418
function Clerp(a, b, t)
419
	local qa = {
420
		QuaternionFromCFrame(a)
421
	}
422
	local qb = {
423
		QuaternionFromCFrame(b)
424
	}
425
	local ax, ay, az = a.x, a.y, a.z
426
	local bx, by, bz = b.x, b.y, b.z
427
	local _t = 1 - t
428
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
429
end
430
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
431
	local frame = IT("Frame")
432
	frame.BackgroundTransparency = TRANSPARENCY
433
	frame.BorderSizePixel = BORDERSIZEPIXEL
434
	frame.Position = POSITION
435
	frame.Size = SIZE
436
	frame.BackgroundColor3 = COLOR
437
	frame.BorderColor3 = BORDERCOLOR
438
	frame.Name = NAME
439
	frame.Parent = PARENT
440
	return frame
441
end
442
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
443
	local label = IT("TextLabel")
444
	label.BackgroundTransparency = 1
445
	label.Size = UD2(1, 0, 1, 0)
446
	label.Position = UD2(0, 0, 0, 0)
447
	label.TextColor3 = TEXTCOLOR
448
	label.TextStrokeTransparency = STROKETRANSPARENCY
449
	label.TextTransparency = TRANSPARENCY
450
	label.FontSize = TEXTFONTSIZE
451
	label.Font = TEXTFONT
452
	label.BorderSizePixel = BORDERSIZEPIXEL
453
	label.TextScaled = false
454
	label.Text = TEXT
455
	label.Name = NAME
456
	label.Parent = PARENT
457
	return label
458
end
459
function NoOutlines(PART)
460
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
461
end
462
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
463
	local NEWWELD = IT(TYPE)
464
	NEWWELD.Part0 = PART0
465
	NEWWELD.Part1 = PART1
466
	NEWWELD.C0 = C0
467
	NEWWELD.C1 = C1
468
	NEWWELD.Parent = PARENT
469
	return NEWWELD
470
end
471
local S = IT("Sound")
472
function CreateSound(ID, PARENT, VOLUME, PITCH)
473
	local NEWSOUND
474
	coroutine.resume(coroutine.create(function()
475
		NEWSOUND = S:Clone()
476
		NEWSOUND.Parent = PARENT
477
		NEWSOUND.Volume = VOLUME
478
		NEWSOUND.Pitch = PITCH
479
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
480
		Swait()
481
		NEWSOUND:play()
482
		game:GetService("Debris"):AddItem(NEWSOUND, 10)
483
	end))
484
	return NEWSOUND
485
end
486
function CFrameFromTopBack(at, top, back)
487
	local right = top:Cross(back)
488
	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)
489
end
490
function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
491
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
492
	local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
493
	wave.CFrame = CFRAME
494
	coroutine.resume(coroutine.create(function(PART)
495
		for i = 1, WAIT do
496
			Swait()
497
			mesh.Scale = mesh.Scale + GROW
498
			mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
499
			if DOESROT == true then
500
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
501
			end
502
			wave.Transparency = wave.Transparency + 0.5 / WAIT
503
			if wave.Transparency > 0.99 then
504
				wave:remove()
505
			end
506
		end
507
	end))
508
end
509
function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW)
510
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
511
	local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0, 0, 0))
512
	wave.CFrame = CFRAME
513
	coroutine.resume(coroutine.create(function(PART)
514
		for i = 1, WAIT do
515
			Swait()
516
			mesh.Scale = mesh.Scale + GROW
517
			if DOESROT == true then
518
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
519
			end
520
			wave.Transparency = wave.Transparency + 0.5 / WAIT
521
			if wave.Transparency > 0.99 then
522
				wave:remove()
523
			end
524
		end
525
	end))
526
end
527
528
function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW)
529
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
530
	local mesh
531
	if KIND == "Base" then
532
		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0))
533
	elseif KIND == "Thin" then
534
		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
535
	elseif KIND == "Round" then
536
		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
537
	end
538
	wave.CFrame = CFRAME
539
	coroutine.resume(coroutine.create(function(PART)
540
		for i = 1, WAIT do
541
			Swait()
542
			mesh.Scale = mesh.Scale + GROW / 10
543
			wave.Transparency = wave.Transparency + 0.5 / WAIT
544
			if wave.Transparency > 0.99 then
545
				wave:remove()
546
			end
547
		end
548
	end))
549
end
550
function AddChildrenToTable(FROM, PARENT, DIST, TABLE)
551
	for _, c in pairs(PARENT:GetChildren()) do
552
		if c.ClassName == "Model" then
553
			if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
554
				local HUMANOID = c:FindFirstChildOfClass("Humanoid")
555
				local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
556
				if DIST > (TORSO.Position - FROM).Magnitude then
557
					table.insert(TABLE, c)
558
				end
559
				AddChildrenToTable(FROM, c, DIST, TABLE)
560
			elseif c.ClassName == "Folder" then
561
				AddChildrenToTable(FROM, c, DIST, TABLE)
562
			end
563
		end
564
	end
565
end
566
function MakeForm(PART, TYPE)
567
	if TYPE == "Cyl" then
568
		local MSH = IT("CylinderMesh", PART)
569
	elseif TYPE == "Ball" then
570
		local MSH = IT("SpecialMesh", PART)
571
		MSH.MeshType = "Sphere"
572
	elseif TYPE == "Wedge" then
573
		local MSH = IT("SpecialMesh", PART)
574
		MSH.MeshType = "Wedge"
575
	end
576
end
577
578
local Particle = IT("ParticleEmitter",nil)
579
Particle.Enabled = false
580
Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
581
Particle.LightEmission = 0.5
582
Particle.Rate = 150
583
Particle.ZOffset = 1
584
Particle.Rotation = NumberRange.new(-180, 180)
585
Particle.RotSpeed = NumberRange.new(-180, 180)
586
Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
587
Particle.Color = ColorSequence.new(C3(177, 0, 193),C3(177, 0, 193))
588
589
--ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
590
function ParticleEmitter(Table)
591
	local PRTCL = Particle:Clone()
592
	local Speed = Table.Speed or 5
593
	local Drag = Table.Drag or 0
594
	local Size1 = Table.Size1 or 1
595
	local Size2 = Table.Size2 or 5
596
	local Lifetime1 = Table.Lifetime1 or 1
597
	local Lifetime2 = Table.Lifetime2 or 1.5
598
	local Parent = Table.Parent or Torso
599
	local Emit = Table.Emit or 100
600
	local Offset = Table.Offset or 360
601
	local Acel = Table.Acel or VT(0,0,0)
602
	local Enabled = Table.Enabled or false
603
	PRTCL.Parent = Parent
604
	PRTCL.Size = NumberSequence.new(Size1,Size2)
605
	PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
606
	PRTCL.Speed = NumberRange.new(Speed)
607
	PRTCL.VelocitySpread = Offset
608
	PRTCL.Drag = Drag
609
	PRTCL.Acceleration = Acel
610
	if Enabled == false then
611
		PRTCL:Emit(Emit)
612
		Debris:AddItem(PRTCL,Lifetime2)
613
	else
614
		PRTCL.Enabled = true
615
	end
616
	return PRTCL
617
end
618
619
local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightLeg, Emit = 100, Offset = 360, Enabled = true})
620
PRT.LockedToPart = true
621
local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftLeg, Emit = 100, Offset = 360, Enabled = true})
622
PRT.LockedToPart = true
623
local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.3, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = true})
624
PRT.LockedToPart = true
625
local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightArm, Emit = 100, Offset = 360, Enabled = true})
626
PRT.LockedToPart = true
627
local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftArm, Emit = 100, Offset = 360, Enabled = true})
628
PRT.LockedToPart = true
629
630
631
632
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Metenga", "Eye", VT(1,0.4,1.8)/2,false)
633
MakeForm(Eye,"Ball")
634
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
635
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Metenga", "Eye", VT(1,0.4,1.8)/2,false)
636
MakeForm(Eye,"Ball")
637
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
638
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Metenga", "Eye", VT(0.1,1,1)/2,false)
639
MakeForm(Eye,"Ball")
640
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
641
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Metenga", "Eye", VT(0.1,1,1)/2,false)
642
MakeForm(Eye,"Ball")
643
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
644
645
function FireArc(Part, ToLocation, AmountOfTime, Height, DoesCourontine)
646
	if DoesCourontine == false then
647
		local Direction = CF(Part.Position, ToLocation)
648
		local Distance = (Part.Position - ToLocation).magnitude
649
		for i = 1, AmountOfTime do
650
			Swait()
651
			Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime)
652
			Direction = Part.CFrame
653
		end
654
		Part:remove()
655
	elseif DoesCourontine == true then
656
		coroutine.resume(coroutine.create(function()
657
			local Direction = CF(Part.Position, ToLocation)
658
			local Distance = (Part.Position - ToLocation).magnitude
659
			for i = 1, AmountOfTime do
660
				Swait()
661
				Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime)
662
				Direction = Part.CFrame
663
			end
664
			Part:remove()
665
		end))
666
	end
667
end
668
function CheckTableForString(Table, String)
669
	for i, v in pairs(Table) do
670
		if string.find(string.lower(String), string.lower(v)) then
671
			return true
672
		end
673
	end
674
	return false
675
end
676
function CheckIntangible(Hit)
677
	local ProjectileNames = {
678
		"Water",
679
		"Arrow",
680
		"Projectile",
681
		"Effect",
682
		"Rail",
683
		"Lightning",
684
		"Bullet"
685
	}
686
	if Hit and Hit.Parent and (not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid") then
687
		return true
688
	end
689
	return false
690
end
691
Debris = game:GetService("Debris")
692
function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
693
	local Direction = CFrame.new(StartPos, Vec).lookVector
694
	local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
695
	local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
696
	if RayHit and CheckIntangible(RayHit) then
697
		if DelayIfHit then
698
			wait()
699
		end
700
		RayHit, RayPos, RayNormal = CastZapRay(RayPos + Vec * 0.01, Vec, Length - (StartPos - RayPos).magnitude, Ignore, DelayIfHit)
701
	end
702
	return RayHit, RayPos, RayNormal
703
end
704
function turnto(position)
705
	RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0)
706
end
707
local naeeym2 = Instance.new("BillboardGui", Character)
708
naeeym2.AlwaysOnTop = true
709
naeeym2.Size = UDim2.new(15, 35, 2, 15)
710
naeeym2.StudsOffset = Vector3.new(0, 3, 0)
711
naeeym2.Adornee = Character.Head
712
naeeym2.Name = "Name"
713
local tecks2 = Instance.new("TextLabel", naeeym2)
714
tecks2.BackgroundTransparency = 1
715
tecks2.TextScaled = true
716
tecks2.BorderSizePixel = 0
717
tecks2.Text = "The Unmaker"
718
tecks2.Font = "Antique"
719
tecks2.TextSize = 30
720
tecks2.TextStrokeTransparency = 0
721
tecks2.TextColor3 = Color3.new(1, 1, 1)
722
tecks2.TextStrokeColor3 = BrickColor.new("Really black").Color
723
tecks2.Size = UDim2.new(1, 0, 0.5, 0)
724
tecks2.Parent = naeeym2
725
Humanoid.Died:connect(function()
726
	Humanoid.Parent = nil
727
	Humanoid.MaxHealth = "inf"
728
	Humanoid.Health = "inf"
729
	refit()
730
	Humanoid.Parent = Character
731
	CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso,10,0.8)
732
	for i = 1, 5 do
733
	end
734
	killnearest(Torso.Position, 25, 180)
735
end)
736
737
function killnearest(position, range, maxstrength)
738
	for i, v in ipairs(workspace:GetChildren()) do
739
		local body = v:GetChildren()
740
		for part = 1, #body do
741
			if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude then
742
				if v.ClassName == "Model" then
743
					v:BreakJoints()
744
				end
745
				local bv = Instance.new("BodyVelocity")
746
				bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
747
				bv.velocity = CF(position, body[part].Position).lookVector * maxstrength
748
				bv.Parent = body[part]
749
				Debris:AddItem(bv, 0.2)
750
			end
751
		end
752
		if v.ClassName == "Part" and v.Anchored == false and range > (v.Position - position).Magnitude then
753
			v.Velocity = CFrame.new(position, v.Position).lookVector * 5 * maxstrength
754
		end
755
	end
756
end
757
function Transparency(TRANS)
758
	tecks2.TextTransparency = TRANS
759
	tecks2.TextStrokeTransparency = TRANS
760
	for _, c in pairs(Character:GetChildren()) do
761
		if c.ClassName == "Part" and c ~= RootPart then
762
			c.Transparency = TRANS
763
			if c:FindFirstChildOfClass("Decal") then
764
				c:FindFirstChildOfClass("Decal").Transparency = TRANS
765
			end
766
		elseif c.ClassName == "Accessory" then
767
			c.Handle.Transparency = TRANS
768
		elseif c.ClassName == "Model" then
769
			for _, q in pairs(c:GetChildren()) do
770
				if q.ClassName == "Part" then
771
					q.Transparency = TRANS
772
					if q:FindFirstChildOfClass("Decal") then
773
						q:FindFirstChildOfClass("Decal").Transparency = TRANS
774
					end
775
				end
776
			end
777
		end
778
	end
779
end
780
781
function Savage_Fire()
782
	ATTACK = true
783
	Rooted = true
784
	VALUE1 = true
785
	local HITBODIES = {}
786
787
	for i = 0, 1.2, 0.1 / Animation_Speed do
788
		Swait()
789
790
		if MRANDOM(1, 2) == 1 then
791
			do
792
			
793
			end
794
		end
795
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
796
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
797
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.25 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
798
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.25 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
799
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
800
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
801
	end
802
	Character.Archivable = true
803
	local CLONE = Character:Clone()
804
	CLONE.BGM:remove()
805
	CLONE.Effects:remove()
806
	CLONE.Parent = Effects
807
808
	local ORIGINPOS = RootPart.Position
809
	Transparency(1)
810
	VALUE2 = true
811
	RootPart.CFrame = CF(Mouse.Hit.p + VT(0, 5, 0), ORIGINPOS)
812
	for i = 1, 50 do
813
		Swait()
814
815
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
816
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
817
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.25 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
818
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.25 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
819
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
820
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
821
	end
822
823
	coroutine.resume(coroutine.create(function()
824
		local PITS = {}
825
		local HITFLOOR, HITPOS, NORMAL = Raycast(CLONE.Torso.Position, CF(CLONE.Torso.Position, CLONE.Torso.Position + VT(0, -1, 0)).lookVector, 25 * Player_Size, Character)
826
827
		if HITFLOOR ~= nil then
828
			local POS = CLONE.Torso.Position
829
			CLONE:remove()
830
			for i = 1, 150 do
831
				Swait()
832
				local PEWSOUND = {
833
					"907527750",
834
					"907527912",
835
					"907528019",
836
					"907530553"
837
				}
838
				AddChildrenToTable(HITPOS, workspace, i, HITBODIES)
839
				if MRANDOM(1, 2) == 1 then
840
					local ICICLE = IT("CornerWedgePart", Effects)
841
					ICICLE.Locked = true
842
					ICICLE.CanCollide = false
843
					ICICLE.Anchored = true
844
					ICICLE.BrickColor = BRICKC("Royal purple")
845
					ICICLE.Material = "Neon"
846
					ICICLE.Size = VT(i / 10, i / 2, i / 10)
847
848
					ICICLE.CFrame = CF(HITPOS) * CF(MRANDOM(-i / 2, i / 2), 0, MRANDOM(-i / 2, i / 2)) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-25, 25)))
849
					table.insert(PITS, ICICLE)
850
					for e = 1, #HITBODIES do
851
						if HITBODIES[e] ~= nil then
852
							local BOD = HITBODIES[e]
853
							local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso")
854
							if TORS then
855
								BOD:BreakJoints()
856
								for _, c in pairs(BOD:GetChildren()) do
857
									if c.ClassName == "Part" or c.ClassName == "MeshPart" then
858
										local bv = Instance.new("BodyVelocity")
859
										bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
860
										bv.velocity = CF(POS, c.Position).lookVector * 250
861
										bv.Parent = c
862
										Debris:AddItem(bv, 0.2)
863
									end
864
								end
865
							end
866
						end
867
					end
868
					HITBODIES = {}
869
				end
870
			end
871
			coroutine.resume(coroutine.create(function()
872
				for i = 1, 10 do
873
					Swait()
874
					for e = 1, #PITS do
875
						if PITS[e] ~= nil then
876
							local E = PITS[e]
877
							E.Transparency = E.Transparency + 0.1
878
						end
879
					end
880
				end
881
				for e = 1, #PITS do
882
					if PITS[e] ~= nil then
883
						local E = PITS[e]
884
						E:remove()
885
					end
886
				end
887
			end))
888
		end
889
	end))
890
	VALUE2 = false
891
	VALUE1 = false
892
	ATTACK = false
893
	Rooted = false
894
	for i = 1, 10 do
895
		Swait()
896
		Transparency(1 - i / 10)
897
	end
898
end
899
function Grave_Encounter()
900
	local HITBODIES = {}
901
	local PEWSOUND = {
902
		"907527750",
903
		"907527912",
904
		"907528019",
905
		"907530553"
906
	}
907
	local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character)
908
	if HITFLOOR ~= nil then
909
		CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso,10,0.8)
910
		ATTACK = true
911
		Rooted = false
912
		local GYRO = IT("BodyGyro", RootPart)
913
		GYRO.D = 100
914
		GYRO.P = 2000
915
		GYRO.MaxTorque = VT(0, 4000000, 0)
916
		GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
917
		for i = 0, 3.5, 0.1 / Animation_Speed do
918
			Swait()
919
			GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
920
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
921
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
922
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(32 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
923
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
924
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
925
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
926
		end
927
		for i = 0, 0.15, 0.1 / Animation_Speed do
928
			Swait()
929
			GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
930
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
931
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
932
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
933
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
934
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
935
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
936
		end
937
		Rooted = true
938
		GYRO:remove()
939
		coroutine.resume(coroutine.create(function()
940
			local PITS = {}
941
			local FRAME = RootPart.CFrame
942
			for i = 1, 200 do
943
				Swait()
944
				for e = 1, #HITBODIES do
945
					if HITBODIES[e] ~= nil then
946
						local BOD = HITBODIES[e]
947
						local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso")
948
						if TORS then
949
							BOD:BreakJoints()
950
							table.remove(HITBODIES, e)
951
						end
952
					end
953
				end
954
				local GLITCH = CreatePart(3, Effects, "Neon", 0, 0, "Royal purple", "Puddle", VT(2 + i / 2, 0, 2 + i / 2))
955
				MakeForm(GLITCH, "Cyl")
956
				GLITCH.CFrame = FRAME * CF(MRANDOM(-5, 5), 0, 5 - i * 3)
957
				local HITFLOOR, HITPOS, NORMAL = Raycast(GLITCH.Position, CF(GLITCH.Position, GLITCH.Position + VT(0, -1, 0)).lookVector, 25 * Player_Size, Character)
958
				if HITFLOOR ~= nil then
959
					table.insert(PITS, GLITCH)
960
					GLITCH.CFrame = CF(HITPOS, HITPOS + NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0))
961
					AddChildrenToTable(HITPOS, workspace, i / 2, HITBODIES)
962
					if MRANDOM(1, 2) == 1 then
963
						local ICICLE = IT("CornerWedgePart", Effects)
964
						ICICLE.Locked = true
965
						ICICLE.CanCollide = false
966
						ICICLE.Anchored = true
967
						ICICLE.BrickColor = BRICKC("Royal purple")
968
						ICICLE.Material = "Neon"
969
						ICICLE.Size = VT(i / 10, i / 2, i / 10)
970
						CreateSound(PEWSOUND[MRANDOM(1, #PEWSOUND)], ICICLE, 10, 0.8)
971
						ICICLE.CFrame = CF(HITPOS) * CF(MRANDOM(-i / 10, i / 10), 0, MRANDOM(-i / 10, i / 10)) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-25, 25)))
972
						table.insert(PITS, ICICLE)
973
					end
974
				else
975
					GLITCH:remove()
976
					break
977
				end
978
			end
979
			coroutine.resume(coroutine.create(function()
980
				for i = 1, 10 do
981
					Swait()
982
					for e = 1, #PITS do
983
						if PITS[e] ~= nil then
984
							local E = PITS[e]
985
							E.Transparency = E.Transparency + 0.1
986
						end
987
					end
988
				end
989
				for e = 1, #PITS do
990
					if PITS[e] ~= nil then
991
						local E = PITS[e]
992
						E:remove()
993
					end
994
				end
995
			end))
996
		end))
997
		for i = 0, 1, 0.1 / Animation_Speed do
998
			Swait()
999
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
1000
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
1001
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(145), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1002
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1003
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1004
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1005
		end
1006
		ATTACK = false
1007
		Rooted = false
1008
	end
1009
end
1010
function Endless_Pain()
1011
	local HITBODIES = {}
1012
	local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character)
1013
	if HITFLOOR ~= nil then
1014
		CreateSound("463598785", RootPart, 10, 0.8)
1015
		ATTACK = true
1016
		Rooted = true
1017
		VALUE1 = true
1018
		for i = 50, 500 do
1019
			Swait()
1020
			AddChildrenToTable(HITPOS, workspace, i / 3, HITBODIES)
1021
			for e = 1, #HITBODIES do
1022
				if HITBODIES[e] ~= nil then
1023
					local BOD = HITBODIES[e]
1024
					local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso")
1025
					if TORS and TORS:FindFirstChild("BV") == nil then
1026
						local bv = Instance.new("BodyVelocity")
1027
						bv.Name = "BV"
1028
						bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
1029
						bv.velocity = CF(TORS.Position, TORS.Position + VT(0, 1, 0)).lookVector * 20
1030
						bv.Parent = TORS
1031
						Debris:AddItem(bv, 0.1)
1032
					end
1033
				end
1034
			end
1035
		end
1036
		coroutine.resume(coroutine.create(function()
1037
			for e = 1, #HITBODIES do
1038
				Swait()
1039
				if HITBODIES[e] ~= nil then
1040
					local BOD = HITBODIES[e]
1041
					for i = 1, #HITBODIES do
1042
						if HITBODIES[i] == BOD and i ~= e then
1043
							table.remove(HITBODIES, i)
1044
						end
1045
					end
1046
					local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso")
1047
					if TORS then
1048
						TORS.Anchored = false
1049
						CreateSound("92597369", TORS, 10, 0.8)
1050
						BOD:BreakJoints()
1051
						for _, c in pairs(BOD:GetChildren()) do
1052
							if c.ClassName == "Part" or c.ClassName == "MeshPart" then
1053
								local bv = Instance.new("BodyVelocity")
1054
								bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
1055
								bv.velocity = CF(HITPOS, c.Position).lookVector * 250
1056
								bv.Parent = c
1057
								Debris:AddItem(bv, 0.2)
1058
							end
1059
						end
1060
					end
1061
				end
1062
			end
1063
		end))
1064
		VALUE1 = false
1065
		ATTACK = false
1066
		Rooted = false
1067
	end
1068
end
1069
function Kill(Char)
1070
	local NewCharacter = IT("Model",Effects)
1071
	NewCharacter.Name = "Ow im ded ;-;"
1072
	for _, c in pairs(Char:GetDescendants()) do
1073
		if c:IsA("BasePart") and c.Transparency == 0 then
1074
			if c.Parent == Char then
1075
				
1076
			end
1077
			c:BreakJoints()
1078
			c.Material = "Glass"
1079
			c.Color = C3(0.5,0,0)
1080
			c.CanCollide = true
1081
			c.Transparency = 0.3
1082
			if c:FindFirstChildOfClass("SpecialMesh") then
1083
				c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
1084
			end
1085
			if c.Name == "Head" then
1086
				c:ClearAllChildren()
1087
				c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
1088
			end
1089
			if c.ClassName == "MeshPart" then
1090
				c.TextureID = ""
1091
			end
1092
			if c:FindFirstChildOfClass("BodyPosition") then
1093
				c:FindFirstChildOfClass("BodyPosition"):remove()
1094
			end
1095
			if c:FindFirstChildOfClass("ParticleEmitter") then
1096
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
1097
			end
1098
			c.Parent = NewCharacter
1099
			c.Name = "DeadPart"
1100
			c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
1101
			c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
1102
		end
1103
	end
1104
	Char:remove()
1105
	Debris:AddItem(NewCharacter,5)
1106
end
1107
INSTAKILL = true
1108
function ApplyAoE(POSITION,RANGE,BRUTAL)
1109
	local CHILDREN = workspace:GetDescendants()
1110
	for index, CHILD in pairs(CHILDREN) do
1111
		if CHILD.ClassName == "Model" and CHILD ~= Character then
1112
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1113
			if HUM then
1114
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1115
				if TORSO then
1116
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
1117
						if BRUTAL == true then
1118
							Kill(CHILD)
1119
						else
1120
							CHILD:BreakJoints()
1121
						end
1122
					end
1123
				end
1124
			end
1125
		end
1126
	end
1127
end
1128
function Morning_Star()
1129
	ATTACK = true
1130
	Rooted = true
1131
	
1132
	for i=0, 0.5, 0.1 / Animation_Speed do
1133
		Swait()
1134
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1135
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
1136
	end
1137
	coroutine.resume(coroutine.create(function()
1138
		local POS = Mouse.Hit.p
1139
		
1140
		local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,0,0))
1141
		MakeForm(SPHERE,"Ball")
1142
		
1143
		
1144
	
1145
		SPHERE.CFrame = CF(POS)
1146
		CreateSound(144699494, SPHERE, 10, 0.8, false)
1147
		CreateSound(1146688617, SPHERE, 10, 0.8, false)
1148
		for i = 1, 200 do
1149
			Swait()
1150
			
1151
			
1152
			SPHERE.Size = SPHERE.Size + VT(2,2,2)
1153
			
1154
			ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
1155
		end	
1156
		for i = 1, 45 do
1157
			Swait()
1158
			
1159
			SPHERE.Transparency = SPHERE.Transparency + 1/45
1160
			
1161
		end
1162
		
1163
		
1164
		SPHERE:remove()
1165
	end))
1166
	for i=0, 0.1, 0.1 / Animation_Speed do
1167
		Swait()
1168
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
1169
	end
1170
	ATTACK = false
1171
	Rooted = false
1172
end
1173
function KillChildren(Char)
1174
	local NewCharacter = IT("Model",Effects)
1175
	NewCharacter.Name = "Ow im ded ;-;"
1176
	for _, c in pairs(Char:GetDescendants()) do
1177
		if c:IsA("BasePart") and c.Transparency == 0 then
1178
			if c.Parent == Char then
1179
				
1180
			end
1181
			c:BreakJoints()
1182
			c.Material = "Glass"
1183
			c.Color = C3(0.5,0,0)
1184
			c.CanCollide = true
1185
			c.Transparency = 0.3
1186
			if c:FindFirstChildOfClass("SpecialMesh") then
1187
				c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
1188
			end
1189
			if c.Name == "Head" then
1190
				c:ClearAllChildren()
1191
				c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
1192
			end
1193
			if c.ClassName == "MeshPart" then
1194
				c.TextureID = ""
1195
			end
1196
			if c:FindFirstChildOfClass("BodyPosition") then
1197
				c:FindFirstChildOfClass("BodyPosition"):remove()
1198
			end
1199
			if c:FindFirstChildOfClass("ParticleEmitter") then
1200
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
1201
			end
1202
			c.Parent = NewCharacter
1203
			c.Name = "DeadPart"
1204
			c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
1205
			c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
1206
		end
1207
	end
1208
	Char:remove()
1209
	Debris:AddItem(NewCharacter,5)
1210
end
1211
1212
1213
local Decal = IT("Decal")
1214
BODY = {}
1215
function Teleport()
1216
	ATTACK = true
1217
	Rooted = false
1218
	for i=0, 0.5, 0.1 / Animation_Speed do
1219
		Swait()
1220
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1221
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
1222
	end
1223
	for e = 1, #BODY do
1224
		if BODY[e] ~= nil then
1225
			local STUFF = BODY[e]
1226
			local PART = STUFF[1]
1227
			if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then
1228
				local PRT = PART:Clone()
1229
				PRT.Anchored = true
1230
				PRT.CanCollide = false
1231
				PRT.Material = "Neon"
1232
				PRT.Color = C3(177,0,232)
1233
				PRT.Name = "WarpEffect"
1234
				PRT.Parent = Effects
1235
				PRT.CFrame = PART.CFrame
1236
				PRT:BreakJoints()
1237
				if PRT:FindFirstChildOfClass("Sound") then
1238
					PRT:FindFirstChildOfClass("Sound"):remove()
1239
				end
1240
				if PRT:FindFirstChildOfClass("Decal") then
1241
					PRT:FindFirstChildOfClass("Decal"):remove()
1242
				end
1243
				coroutine.resume(coroutine.create(function()
1244
					for i = 1, 100 do
1245
						Swait()
1246
						PRT.Transparency = PRT.Transparency + 1/100
1247
					end
1248
					PRT:remove()
1249
				end))
1250
			end
1251
		end
1252
	end
1253
	CreateSound(217767125, Torso, 10, 1)
1254
	local POS = RootPart.Orientation
1255
	RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0))
1256
	RootPart.Orientation = POS
1257
	RootJoint.Parent = RootPart
1258
	for i=0, 0.5, 0.1 / Animation_Speed do
1259
		Swait()
1260
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1261
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-15), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
1262
	end
1263
	for i=0, 0.1, 0.1 / Animation_Speed do
1264
		Swait()
1265
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
1266
	end
1267
	ATTACK = false
1268
	Rooted = false
1269
end
1270
function TAUNT1()
1271
        ATTACK = true
1272
	Humanoid.WalkSpeed = 0
1273
	CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso,10,0.8)
1274
wait(2.5)
1275
	for i = 0,12.5,0.08 do
1276
		Swait()
1277
		RootJoint.C0 = Clerp(RootJoint.C0, RootCF * CF(0, 0, -0.1 + 0.1 * COS(SINE / 2)) * ANGLES(RAD(-30), RAD(0), RAD(0)), 0.15)
1278
		Torso.Neck.C0 = Clerp(Torso.Neck.C0, NECKC0 * ANGLES(RAD(-30 - 2.5 * SIN(SINE / 2)), RAD(0), RAD(0)), 0.3)
1279
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 2), 0.025 * COS(SINE / 2)) * RHCF * ANGLES(RAD(-4.5 - 7.5 * SIN(SINE / 2)), RAD(0), RAD(-30)), 0.15)
1280
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 2), 0.025 * COS(SINE / 2)) * LHCF * ANGLES(RAD(-6.5 - 7.5 * SIN(SINE / 2)), RAD(0), RAD(30)), 0.15)
1281
	end
1282
	ATTACK = false
1283
	Humanoid.WalkSpeed = 20
1284
end
1285
function Petrify(Foe)
1286
	local STONEMODEL = IT("Model", Effects)
1287
	local CHILDREN = Foe:GetDescendants()
1288
	for index, CHILD in pairs(CHILDREN) do
1289
		if CHILD:IsA("BasePart") and CHILD.Parent.ClassName ~= "Folder" then
1290
			CHILD.Parent = STONEMODEL
1291
			CHILD.Material = "Neon"
1292
			CHILD.Color = C3(0, 0, 0)
1293
			if CHILD:FindFirstChildOfClass("SpecialMesh") then
1294
				local mesh = CHILD:FindFirstChildOfClass("SpecialMesh")
1295
				mesh.TextureId = ""
1296
			end
1297
			if CHILD:FindFirstChildOfClass("Decal") then
1298
				local mesh = CHILD:FindFirstChildOfClass("Decal")
1299
				mesh:remove()
1300
			end
1301
			if CHILD.ClassName == "MeshPart" then
1302
				CHILD.TextureID = ""
1303
			end
1304
			if CHILD.ClassName == "UnionOperation" then
1305
				CHILD.UsePartColor = true
1306
			end
1307
			CHILD.CanCollide = true
1308
		end
1309
	end
1310
	Debris:AddItem(STONEMODEL, 5)
1311
end
1312
function Voided()
1313
	ATTACK = true
1314
	Rooted = true
1315
	if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
1316
		local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
1317
		local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
1318
		if TORSO then
1319
			local GYRO = IT("BodyGyro", RootPart)
1320
			GYRO.D = 750
1321
			GYRO.P = 2000
1322
			GYRO.MaxTorque = VT(0, 40000, 0)
1323
			CreateSound("907329669", Torso, 10, 1)
1324
			for i = 0, 1.6, 0.1 / Animation_Speed do
1325
				Swait()
1326
				
1327
				GYRO.cframe = CF(RootPart.Position, TORSO.Position)
1328
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.2 / Animation_Speed)
1329
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.2 / Animation_Speed)
1330
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(120), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-45)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1331
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1332
				if ANIM == "Idle" then
1333
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1334
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1335
				elseif ANIM == "Walk" then
1336
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
1337
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
1338
				elseif ANIM == "Jump" or ANIM == "Fall" then
1339
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1340
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
1341
				end
1342
			end
1343
			GYRO:remove()
1344
			for i = 1, 15 do
1345
				
1346
			end
1347
			local bv = Instance.new("BodyVelocity")
1348
			bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
1349
			bv.velocity = CF(Torso.Position, TORSO.Position).lookVector * 5
1350
			bv.Parent = TORSO
1351
			Debris:AddItem(bv, 0.05)
1352
			CreateSound("1222405264", TORSO, 10, 1)
1353
			Petrify(HUM.Parent)
1354
			for i = 0, 0.5, 0.1 / Animation_Speed do
1355
				Swait()
1356
				
1357
				GYRO.cframe = CF(RootPart.Position, TORSO.Position)
1358
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 2 / Animation_Speed)
1359
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 2 / Animation_Speed)
1360
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 22), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1361
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1362
				if ANIM == "Idle" then
1363
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1364
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1365
				elseif ANIM == "Walk" then
1366
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
1367
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
1368
				elseif ANIM == "Jump" or ANIM == "Fall" then
1369
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1370
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
1371
				end
1372
			end
1373
		end
1374
	end
1375
	ATTACK = false
1376
	Rooted = false
1377
end
1378
1379
function TAUNT2()
1380
			CreateSound("907329044", Torso, 10, 1)
1381
	end
1382
function TAUNT3()
1383
			CreateSound("907329293", Torso, 10, 1)
1384
	end
1385
function TAUNT4()
1386
			CreateSound("907332525", Torso, 10, 1)
1387
	end
1388
function TAUNT5()
1389
			CreateSound("907333406", Torso, 10, 1)
1390
	end
1391
function TAUNT6()
1392
			CreateSound("907330011", Torso, 10, 1)
1393
	end
1394
function TAUNT7()
1395
			CreateSound("907329532", Torso, 10, 1)
1396
	end
1397
function TAUNT8()
1398
			CreateSound("907328384", Torso, 10, 1)
1399
	end
1400
function TAUNT9()
1401
			CreateSound("907333294", Torso, 10, 1)
1402
	end
1403
function TAUNT0()
1404
			CreateSound("907332856", Torso, 10, 1)
1405
	end
1406
function TAUNT10()
1407
			CreateSound("907332670", Torso, 10, 1)
1408
	end
1409
function TAUNT11()
1410
			CreateSound("907332235", Torso, 10, 1)
1411
	end
1412
function TAUNT12()
1413
			CreateSound("907332040", Torso, 10, 1)
1414
	end
1415
function TAUNT13()
1416
			CreateSound("907331575", Torso, 10, 1)
1417
	end
1418
function TAUNT14()
1419
			CreateSound("907331038", Torso, 10, 1)
1420
	end
1421
function TAUNT15()
1422
			CreateSound("907330447", Torso, 10, 1)
1423
	end
1424
function TAUNT16()
1425
			CreateSound("907330198", Torso, 10, 1)
1426
	end
1427
function TAUNT17()
1428
			CreateSound("907329669", Torso, 10, 1)
1429
	end
1430
function TAUNT18()
1431
			CreateSound("907332997", Torso, 10, 1)
1432
	end
1433
function TAUNT19()
1434
			CreateSound("907328689", Torso, 10, 1)
1435
	end
1436
function TAUNT20()
1437
			CreateSound("907328516", Torso, 10, 1)
1438
	end
1439
function TAUNT21()
1440
			CreateSound("907328262", Torso, 10, 1)
1441
	end
1442
function TAUNT22()
1443
			CreateSound("907328147", Torso, 10, 1)
1444
	end
1445
function TAUNT23()
1446
			CreateSound("907331307", Torso, 10, 1)
1447
	end
1448
1449
local HEADLERP = Instance.new("ManualWeld")
1450
HEADLERP.Parent = Head
1451
HEADLERP.Part0 = Head
1452
HEADLERP.Part1 = Head
1453
HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
1454
MseGuide = true
1455
RunSrv = game:GetService("RunService")
1456
RenderStepped = game:GetService("RunService").RenderStepped
1457
OrgnC0 = Neck.C0
1458
local movelimbs = coroutine.wrap(function()
1459
while RunSrv.RenderStepped:wait() do
1460
TrsoLV = Torso.CFrame.lookVector
1461
Dist = nil
1462
Diff = nil
1463
if not MseGuide then
1464
print("Failed to recognize")
1465
else
1466
local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, Mouse.Hit.lookVector), Workspace, false, true)
1467
Dist = (Head.CFrame.p-Point).magnitude
1468
Diff = Head.CFrame.Y-Point.Y
1469
HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
1470
Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1)
1471
end
1472
end
1473
end)
1474
movelimbs()
1475
1476
1477
1478
1479
1480
1481
function MouseDown(Mouse)
1482
	if ATTACK == false then
1483
	end
1484
end
1485
function MouseUp(Mouse)
1486
	HOLD = false
1487
end
1488
function KeyDown(Key)
1489
	KEYHOLD = true
1490
if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
1491
	if Key == "z" and ATTACK == false then
1492
		Voided()
1493
1494
	elseif Key == "b" and ATTACK == false then
1495
		Savage_Fire()
1496
1497
	elseif Key == "c" and ATTACK == false then
1498
		Grave_Encounter()
1499
1500
	elseif Key == "v" and ATTACK == false then
1501
		Endless_Pain()
1502
1503
	elseif Key == "x" and ATTACK == false then
1504
		Morning_Star()
1505
1506
	elseif Key == "q" and ATTACK == false then
1507
		Teleport()
1508
1509
1510
elseif Key == "r" and ATTACK == false then
1511
			TAUNT1()
1512
		elseif Key == "u" and ATTACK == false then
1513
			TAUNT2()
1514
		elseif Key == "y" and ATTACK == false then
1515
			TAUNT3()
1516
		elseif Key == "j" and ATTACK == false then
1517
			TAUNT4()
1518
		elseif Key == "h" and ATTACK == false then
1519
			TAUNT5()
1520
		elseif Key == "p" and ATTACK == false then
1521
			TAUNT6()
1522
		elseif Key == "[" and ATTACK == false then
1523
			TAUNT7()
1524
		elseif Key == "]" and ATTACK == false then
1525
			TAUNT8()
1526
	       	elseif Key == "f" and ATTACK == false then
1527
			TAUNT9()
1528
		elseif Key == "=" and ATTACK == false then
1529
			TAUNT0()
1530
		elseif Key == "-" and ATTACK == false then
1531
			TAUNT10()
1532
		elseif Key == "g" and ATTACK == false then
1533
			TAUNT11()
1534
		elseif Key == "o" and ATTACK == false then
1535
			TAUNT12()
1536
		elseif Key == "i" and ATTACK == false then
1537
			TAUNT13()
1538
		elseif Key == "7" and ATTACK == false then
1539
			TAUNT14()
1540
		elseif Key == "6" and ATTACK == false then
1541
			TAUNT15()
1542
		elseif Key == "t" and ATTACK == false then
1543
			TAUNT16()
1544
		elseif Key == "4" and ATTACK == false then
1545
			TAUNT17()
1546
		elseif Key == "3" and ATTACK == false then
1547
			TAUNT18()
1548
		elseif Key == "2" and ATTACK == false then
1549
			TAUNT19()
1550
		elseif Key == "1" and ATTACK == false then
1551
			TAUNT20()
1552
		elseif Key == "e" and ATTACK == false then
1553
			TAUNT21()
1554
		elseif Key == "l" and ATTACK == false then
1555
			TAUNT22()
1556
		elseif Key == "k" and ATTACK == false then
1557
			TAUNT23()
1558
end
1559
end
1560
end
1561
function KeyUp(Key)
1562
	KEYHOLD = false
1563
end
1564
Mouse.Button1Down:connect(function(NEWKEY)
1565
	MouseDown(NEWKEY)
1566
1567
end)
1568
Mouse.Button1Up:connect(function(NEWKEY)
1569
	MouseUp(NEWKEY)
1570
end)
1571
Mouse.KeyDown:connect(function(NEWKEY)
1572
	KeyDown(NEWKEY)
1573
end)
1574
Mouse.KeyUp:connect(function(NEWKEY)
1575
	KeyUp(NEWKEY)
1576
end)
1577
function unanchor()
1578
	if UNANCHOR == true then
1579
		g = Character:GetChildren()
1580
		for i = 1, #g do
1581
			if g[i].ClassName == "Part" then
1582
				g[i].Anchored = false
1583
			end
1584
		end
1585
	end
1586
end
1587
local FF = IT("ForceField", Character)
1588
FF.Visible = false
1589
function refit()
1590
	RootJoint.Parent = RootPart
1591
	Neck.Parent = Torso
1592
	RightShoulder.Parent = Torso
1593
	LeftShoulder.Parent = Torso
1594
	RightHip.Parent = Torso
1595
	LeftHip.Parent = Torso
1596
	RootPart.Parent = Character
1597
	LeftArm.Parent = Character
1598
	RightArm.Parent = Character
1599
	RightLeg.Parent = Character
1600
	LeftLeg.Parent = Character
1601
	Torso.Parent = Character
1602
	Head.Parent = Character
1603
FF.Parent = Character
1604
end
1605
1606
Humanoid.Changed:connect(function(Jump)
1607
	if Jump == "Jump" and Disable_Jump == true then
1608
		Humanoid.Jump = false
1609
	end
1610
end)
1611
    
1612
    sick.Parent = Character
1613
   script.Parent = WEAPONGUI
1614
    Character.Parent = workspace
1615
    Humanoid.PlatformStand = false
1616
    Humanoid.Name = "Unmaker"
1617
    Humanoid.DisplayDistanceType = "None"
1618
Humanoid.HipHeight = 2
1619
Head:ClearAllChildren()
1620
1621
Speed = 20
1622
    for _, c in pairs(Character:GetChildren()) do
1623
        if c.ClassName == "Part" then
1624
            c.Material = "Neon"
1625
1626
1627
        
1628
           if c == Head then
1629
                if c:FindFirstChild("Dominus") == nil then
1630
                    local M = CreateMesh("SpecialMesh", c, "FileMesh", "21057410", "", VT(1, 1, 1) * 1.1, VT(0, 0, 0))
1631
                    M.Name = "Dominus"
1632
                end
1633
                if c:FindFirstChild("face") then
1634
                    c.face:remove()
1635
                end
1636
            end
1637
        elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" then
1638
            c:remove()
1639
        end
1640
end
1641
SIZE = 1
1642
	Humanoid.MaxHealth = "inf"
1643
	Humanoid.Health = "inf"
1644
1645
local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
1646
while true do
1647
	Swait()
1648
	ANIMATE.Parent = nil
1649
	IDLEANIMATION:Play()
1650
SINE = SINE + CHANGE
1651
local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1652
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1653
	local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
1654
	local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character)
1655
	if TORSOVELOCITY < 1 then
1656
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1657
		
1658
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1659
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1660
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.15 / Animation_Speed)
1661
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(25)), 0.15 / Animation_Speed)
1662
		elseif TORSOVELOCITY > 1 then
1663
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(30 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(2.5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
1664
			
1665
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1666
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1667
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1668
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1669
		end
1670
1671
	unanchor()
1672
end