View difference between Paste ID: 4hkryEkk and Ua91frpY
SHOW: | | - or go back to the newest paste.
1
--//====================================================\\--
2
--||	CREATED BY SHACKLUSTER, EDIT BY PSYCHO PLAYS
3
--\\====================================================//--
4
5
6
-- This script has been converted to FE by iPxter
7
8
9-
warn'edit by boss_kiddos abye'
9+
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
10
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
11
do
12
	print("Testing! 1..2..3")
13-
Player = game:GetService("Players").LocalPlayer
13+
	script.Parent = Player.Character
14
15
	--RemoteEvent for communicating
16
	local Event = Instance.new("RemoteEvent")
17
	Event.Name = "UserInput_Event"
18
19-
Mouse = Player:GetMouse()
19+
	--Fake event to make stuff like Mouse.KeyDown work
20
	local function fakeEvent()
21
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
22
		t.connect = t.Connect
23
		return t
24
	end
25
26
	--Creating fake input objects with fake variables
27
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
28
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
29
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
30
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
31
	end}
32
	--Merged 2 functions into one by checking amount of arguments
33
	CAS.UnbindAction = CAS.BindAction
34
35
	--This function will trigger the events that have been :Connect()'ed
36
	local function te(self,ev,...)
37
		local t = m[ev]
38
		if t and t._fakeEvent and t.Function then
39
			t.Function(...)
40
		end
41
	end
42
	m.TrigEvent = te
43
	UIS.TrigEvent = te
44
45
	Event.OnServerEvent:Connect(function(plr,io)
46
	    if plr~=Player then return end
47
		if io.isMouse then
48
			m.Target = io.Target
49
			m.Hit = io.Hit
50
		else
51
			local b = io.UserInputState == Enum.UserInputState.Begin
52
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
53
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
54
			end
55
			for _,t in pairs(CAS.Actions) do
56
				for _,k in pairs(t.Keys) do
57
					if k==io.KeyCode then
58
						t.Function(t.Name,io.UserInputState,io)
59
					end
60
				end
61
			end
62
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
63
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
64
	    end
65
	end)
66
	Event.Parent = NLS([==[
67
	local Player = game:GetService("Players").LocalPlayer
68
	local Event = script:WaitForChild("UserInput_Event")
69
70
	local UIS = game:GetService("UserInputService")
71
	local input = function(io,a)
72
		if a then return end
73
		--Since InputObject is a client-side instance, we create and pass table instead
74
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
75
	end
76
	UIS.InputBegan:Connect(input)
77
	UIS.InputEnded:Connect(input)
78
79
	local Mouse = Player:GetMouse()
80
	local h,t
81
	--Give the server mouse data 30 times every second, but only if the values changed
82
	--If player is not moving their mouse, client won't fire events
83
	while wait(1/30) do
84
		if h~=Mouse.Hit or t~=Mouse.Target then
85
			h,t=Mouse.Hit,Mouse.Target
86
			Event:FireServer({isMouse=true,Target=t,Hit=h})
87
		end
88
	end]==],Player.Character)
89
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
90
end
91
92
93
94
wait(0.2)
95
96
warn'Dont say i didnt warn you..'
97
warn'Time is now and now is time'
98
warn'and guess what right now '
99
wait(0.3)
100
warn'its time to die'
101
102
Player = owner
103
PlayerGui = Player.PlayerGui
104
Cam = workspace.CurrentCamera
105
Backpack = Player.Backpack
106
Character = Player.Character
107
Humanoid = Character.Humanoid
108
RootPart = Character["HumanoidRootPart"]
109
Torso = Character["Torso"]
110
Head = Character["Head"]
111
RightArm = Character["Right Arm"]
112
LeftArm = Character["Left Arm"]
113
RightLeg = Character["Right Leg"]
114
LeftLeg = Character["Left Leg"]
115
RootJoint = RootPart["RootJoint"]
116
Neck = Torso["Neck"]
117
RightShoulder = Torso["Right Shoulder"]
118
LeftShoulder = Torso["Left Shoulder"]
119
RightHip = Torso["Right Hip"]
120
LeftHip = Torso["Left Hip"]
121
local sick = Instance.new("Sound",Character)
122
sick.SoundId = "rbxassetid://142748120"
123
sick.Looped = true
124
sick.Pitch = 1
125
sick.Volume = 5
126
sick:Play()
127
Humanoid.DisplayDistanceType = "None"
128
129
local naeeym2 = Instance.new("BillboardGui",Character)
130
naeeym2.AlwaysOnTop = true
131
naeeym2.Size = UDim2.new(5,35,2,35)
132
naeeym2.StudsOffset = Vector3.new(0,1,0)
133
naeeym2.Adornee = Character.Head
134
naeeym2.Name = "Name"
135
naeeym2.PlayerToHideFrom = Player
136
local tecks2 = Instance.new("TextLabel",naeeym2)
137
tecks2.BackgroundTransparency = 1
138
tecks2.TextScaled = true
139
tecks2.BorderSizePixel = 0
140
tecks2.Text = "SAD"
141
tecks2.Font = "Bodoni"
142
tecks2.TextSize = 30
143
tecks2.TextStrokeTransparency = 0.5
144
tecks2.TextColor3 = Color3.new(23,0,0)
145
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
146
tecks2.Size = UDim2.new(1,0,0.5,0)
147
tecks2.Parent = naeeym2
148
149
IT = Instance.new
150
CF = CFrame.new
151
VT = Vector3.new
152
RAD = math.rad
153
C3 = Color3.new
154
UD2 = UDim2.new
155
BRICKC = BrickColor.new
156
ANGLES = CFrame.Angles
157
EULER = CFrame.fromEulerAnglesXYZ
158
COS = math.cos
159
ACOS = math.acos
160
SIN = math.sin
161
ASIN = math.asin
162
ABS = math.abs
163
MRANDOM = math.random
164
FLOOR = math.floor
165
166
local sound = IT("Sound")
167
168
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
169
	local NEWMESH = IT(MESH)
170
	if MESH == "SpecialMesh" then
171
		NEWMESH.MeshType = MESHTYPE
172
		if MESHID ~= "nil" and MESHID ~= "" then
173
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
174
		end
175
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
176
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
177
		end
178
	end
179
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
180
	NEWMESH.Scale = SCALE
181
	NEWMESH.Parent = PARENT
182
	return NEWMESH
183
end
184
185
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
186
	local NEWPART = IT("Part")
187
	NEWPART.formFactor = FORMFACTOR
188
	NEWPART.Reflectance = REFLECTANCE
189
	NEWPART.Transparency = TRANSPARENCY
190
	NEWPART.CanCollide = false
191
	NEWPART.Locked = true
192
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
193
	NEWPART.Name = NAME
194
	NEWPART.Size = SIZE
195
	NEWPART.Position = Torso.Position
196
	NEWPART.Material = MATERIAL
197
	NEWPART:BreakJoints()
198
	NEWPART.Parent = PARENT
199
	return NEWPART
200
end
201
202
local EyeSizes={
203
	NumberSequenceKeypoint.new(0,1,0),
204
	NumberSequenceKeypoint.new(1,0.2,0)
205
}
206
local EyeTrans={
207
	NumberSequenceKeypoint.new(0,0.8,0),
208
	NumberSequenceKeypoint.new(1,1,0)
209
}
210
local PE=Instance.new("ParticleEmitter")
211
PE.LightEmission=0
212
PE.Size=NumberSequence.new(EyeSizes)
213
PE.Transparency=NumberSequence.new(EyeTrans)
214
PE.Lifetime=NumberRange.new(0.35,0.35,0.35)
215
PE.Rotation=NumberRange.new(0,360)
216
PE.Rate=15
217
PE.Acceleration = Vector3.new(0,75,0)
218
PE.Drag = 5
219
PE.Enabled = false
220
PE.Speed = NumberRange.new(0,0,0)
221
PE.Texture="http://www.roblox.com/asset/?id=1179557490"
222
PE.ZOffset = 0
223
PE.Name = "Inferno"
224
225
function particles(art)
226
local particle = PE:Clone()
227
particle.Parent = art
228
particle.Enabled = true
229
end
230
231
--//=================================\\
232
--||		  CUSTOMIZATION
233
--\\=================================//
234
235
Class_Name = "SAD"
236
Weapon_Name = "Add-ons"
237
238
Custom_Colors = {
239
	Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
240
	Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
241
242
	Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
243
	Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
244
	Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
245
	Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
246
	Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
247
248
	Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
249
	Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
250
	Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
251
	Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
252
	Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
253
}
254
255
256
Player_Size = 1 --Size of the player.
257
Animation_Speed = 3
258
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
259
260
local Speed = 16
261
local Effects2 = {}
262
263
--//=================================\\
264
--|| 	  END OF CUSTOMIZATION
265
--\\=================================//
266
267
	local function weldBetween(a, b)
268
	    local weldd = Instance.new("ManualWeld")
269
	    weldd.Part0 = a
270
	    weldd.Part1 = b
271
	    weldd.C0 = CFrame.new()
272
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
273
	    weldd.Parent = a
274
	    return weldd
275
	end
276
277
function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
278
local acs = Instance.new("Part")
279
acs.CanCollide = false
280
acs.Anchored = false
281
acs.Size = Vector3.new(0,0,0)
282
acs.CFrame = attachmentpart.CFrame
283
acs.Parent = Character
284
acs.BrickColor = color
285
    local meshs = Instance.new("SpecialMesh")
286
    meshs.MeshId = mesh
287
    meshs.TextureId = texture
288
    meshs.Parent = acs
289
    meshs.Scale = scale
290
    meshs.Offset = offset
291
weldBetween(attachmentpart,acs)
292
end
293
294
function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
295
if TYPE == "Gem" then
296
	local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
297
	acs.Anchored = false
298
    acs.CanCollide = false
299
	acs.CFrame = PART.CFrame
300
	local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
301
weldBetween(PART,acs)
302
elseif TYPE == "Skull" then
303
	local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
304
	acs.Anchored = false
305
    acs.CanCollide = false
306
	acs.CFrame = PART.CFrame
307
	local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
308
weldBetween(PART,acs)
309
elseif TYPE == "Eye" then
310
	local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
311
	acs.Anchored = false
312
    acs.CanCollide = false
313
	acs.CFrame = PART.CFrame
314
	local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
315
weldBetween(PART,acs)
316
end
317
end
318
319
--//=================================\\
320
--|| 	      USEFUL VALUES
321
--\\=================================//
322
323
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
324
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
325
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
326
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
327
local CO1 = 0
328
local CO2 = 0
329
local CO3 = 0
330
local CO4 = 0
331
local CHANGEDEFENSE = 0
332
local CHANGEDAMAGE = 0
333
local CHANGEMOVEMENT = 0
334
local ANIM = "Idle"
335
local ATTACK = false
336
local EQUIPPED = false
337
local HOLD = false
338
local COMBO = 1
339
local LASTPOINT = nil
340
local BLCF = nil
341
local SCFR = nil
342
local STAGGERHITANIM = false
343
local STAGGERANIM = false
344
local STUNANIM = false
345
local CRITCHANCENUMBER = 0
346
local IDLENUMBER = 0
347
local DONUMBER = 0
348
local HANDIDLE = false
349
local SINE = 0
350
local CHANGE = 2 / Animation_Speed
351
local WALKINGANIM = false
352
local WALK = 0
353
local DISABLEJUMPING = false
354
local HASBEENBLOCKED = false
355
local STUNDELAYNUMBER = 0
356
local MANADELAYNUMBER = 0
357
local OTHERWORLD = false
358
local SECONDARYMANADELAYNUMBER = 0
359
local ROBLOXIDLEANIMATION = IT("Animation")
360
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
361
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=1531934905"
362
--ROBLOXIDLEANIMATION.Parent = Humanoid
363
local WEAPONGUI = IT("ScreenGui", nil)
364
WEAPONGUI.Name = "Weapon GUI"
365
local WEAPONTOOL = IT("HopperBin", nil)
366
WEAPONTOOL.Name = Weapon_Name
367
local Weapon = IT("Model")
368
Weapon.Name = Weapon_Name
369
local Effects = IT("Folder", Weapon)
370
Effects.Name = "Effects"
371
local ANIMATOR = Humanoid.Animator
372
local ANIMATE = Character.Animate
373
local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
374
local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
375
local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
376
local HITBLOCKSOUNDS = {"199148933", "199148947"}
377
local UNANCHOR = true
378
379
--//=================================\\
380
--\\=================================//
381
382
383
384
385
--//=================================\\
386
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
387
--\\=================================//
388
389
ArtificialHB = Instance.new("BindableEvent", script)
390
ArtificialHB.Name = "ArtificialHB"
391
392
script:WaitForChild("ArtificialHB")
393
394
frame = Frame_Speed
395
tf = 0
396
allowframeloss = false
397
tossremainder = false
398
lastframe = tick()
399
script.ArtificialHB:Fire()
400
401
game:GetService("RunService").Heartbeat:connect(function(s, p)
402
	tf = tf + s
403
	if tf >= frame then
404
		if allowframeloss then
405
			script.ArtificialHB:Fire()
406
			lastframe = tick()
407
		else
408
			for i = 1, math.floor(tf / frame) do
409
				script.ArtificialHB:Fire()
410
			end
411
		lastframe = tick()
412
		end
413
		if tossremainder then
414
			tf = 0
415
		else
416
			tf = tf - frame * math.floor(tf / frame)
417
		end
418
	end
419
end)
420
421
--//=================================\\
422
--\\=================================//
423
424
425
426
427
428
--//=================================\\
429
--|| 	      SOME FUNCTIONS
430
--\\=================================//
431
432
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
433
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
434
end
435
436
function PositiveAngle(NUMBER)
437
	if NUMBER >= 0 then
438
		NUMBER = 0
439
	end
440
	return NUMBER
441
end
442
443
function NegativeAngle(NUMBER)
444
	if NUMBER <= 0 then
445
		NUMBER = 0
446
	end
447
	return NUMBER
448
end
449
450
function Swait(NUMBER)
451
	if NUMBER == 0 or NUMBER == nil then
452
		ArtificialHB.Event:wait()
453
	else
454
		for i = 1, NUMBER do
455
			ArtificialHB.Event:wait()
456
		end
457
	end
458
end
459
460
function QuaternionFromCFrame(cf)
461
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
462
	local trace = m00 + m11 + m22
463
	if trace > 0 then 
464
		local s = math.sqrt(1 + trace)
465
		local recip = 0.5 / s
466
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
467
	else
468
		local i = 0
469
		if m11 > m00 then
470
			i = 1
471
		end
472
		if m22 > (i == 0 and m00 or m11) then
473
			i = 2
474
		end
475
		if i == 0 then
476
			local s = math.sqrt(m00 - m11 - m22 + 1)
477
			local recip = 0.5 / s
478
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
479
		elseif i == 1 then
480
			local s = math.sqrt(m11 - m22 - m00 + 1)
481
			local recip = 0.5 / s
482
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
483
		elseif i == 2 then
484
			local s = math.sqrt(m22 - m00 - m11 + 1)
485
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
486
		end
487
	end
488
end
489
 
490
function QuaternionToCFrame(px, py, pz, x, y, z, w)
491
	local xs, ys, zs = x + x, y + y, z + z
492
	local wx, wy, wz = w * xs, w * ys, w * zs
493
	local xx = x * xs
494
	local xy = x * ys
495
	local xz = x * zs
496
	local yy = y * ys
497
	local yz = y * zs
498
	local zz = z * zs
499
	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))
500
end
501
 
502
function QuaternionSlerp(a, b, t)
503
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
504
	local startInterp, finishInterp;
505
	if cosTheta >= 0.0001 then
506
		if (1 - cosTheta) > 0.0001 then
507
			local theta = ACOS(cosTheta)
508
			local invSinTheta = 1 / SIN(theta)
509
			startInterp = SIN((1 - t) * theta) * invSinTheta
510
			finishInterp = SIN(t * theta) * invSinTheta
511
		else
512
			startInterp = 1 - t
513
			finishInterp = t
514
		end
515
	else
516
		if (1 + cosTheta) > 0.0001 then
517
			local theta = ACOS(-cosTheta)
518
			local invSinTheta = 1 / SIN(theta)
519
			startInterp = SIN((t - 1) * theta) * invSinTheta
520
			finishInterp = SIN(t * theta) * invSinTheta
521
		else
522
			startInterp = t - 1
523
			finishInterp = t
524
		end
525
	end
526
	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
527
end
528
529
function Clerp(a, b, t)
530
	local qa = {QuaternionFromCFrame(a)}
531
	local qb = {QuaternionFromCFrame(b)}
532
	local ax, ay, az = a.x, a.y, a.z
533
	local bx, by, bz = b.x, b.y, b.z
534
	local _t = 1 - t
535
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
536
end
537
538
539
function CreateSound(ID, PARENT, VOLUME, PITCH)
540
	coroutine.resume(coroutine.create(function()
541
		local NEWSOUND = IT("Sound", PARENT)
542
		NEWSOUND.Volume = VOLUME
543
		NEWSOUND.Pitch = PITCH
544
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
545
		Swait()
546
		NEWSOUND:play()
547
		game:GetService("Debris"):AddItem(NEWSOUND, 10)
548
	end))
549
end
550
551
local decal = IT("Decal")
552
553
function CreatePentagram(size,doesrotate,rotatedirection,waitt,cframe,offset,doeskill)
554
	local sinkhole = IT("Part",workspace)
555
	if doeskill == true then
556
		local hit = sinkhole.Touched:Connect(function(hit)
557
			if hit.Parent ~= Character and hit.Parent:FindFirstChild("Humanoid") then
558
				kill(hit.Parent,true)
559
				hit.Parent:remove()
560
			end
561
		end)
562
	end
563
	sinkhole.Size = VT(size,0,size)
564
	sinkhole.CFrame = cframe * CF(0,offset,0)
565
	sinkhole.Material = "Granite"
566
	sinkhole.Color = C3(1,0,0)
567
	sinkhole.Anchored = true
568
	sinkhole.CanCollide = false
569
	sinkhole.Transparency = 1
570
	local decal = decal:Clone()
571
	decal.Parent = sinkhole
572
	decal.Face = "Top"
573
	decal.Texture = "http://www.roblox.com/asset/?id=0"
574
	coroutine.resume(coroutine.create(function(PART)
575
		for i = 1, waitt do
576
			Swait()
577
			if doesrotate == true then
578
				sinkhole.CFrame = sinkhole.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
579
			end
580
			if i > waitt-11 then
581
				decal.Transparency = decal.Transparency + 0.1
582
			end
583
		end
584
		sinkhole:remove()
585
	end))
586
	return sinkhole
587
end
588
589
Weapon.Parent = Character
590
591
Humanoid.Died:connect(function()
592
	workspace:ClearAllChildren()
593
end)
594
595
--//=================================\\
596
--\\=================================//
597
598
599
--//=================================\\
600
--||			DAMAGING
601
--\\=================================//
602
603
function kill(target,extratrue)
604
	if OTHERWORLD == false or extratrue == true then
605
		f = target:GetChildren()
606
		for i = 1, #f do
607
			if f[i].ClassName == "Part" or f[i].ClassName == "MeshPart" then
608
				local effect = f[i]:Clone()
609
				effect.Color = C3(1,1,1)
610
				effect.Material = "Granite"
611
				effect.Parent = workspace
612
				effect.Anchored = true
613
				effect.CanCollide = false
614
				local hit = effect.Touched:Connect(function(hit)
615
					if hit.Parent ~= Character and hit.Parent:FindFirstChild("Humanoid") then
616
						kill(hit.Parent)
617
						hit.Parent:remove()
618
					end
619
				end)
620
				m = effect:GetChildren()
621
				for j = 1, #m do
622
				if m[j].ClassName ~= "SpecialMesh" and m[j].ClassName ~= "BlockMesh" then
623
				m[j]:remove()
624
				end
625
				end
626
				table.insert(Effects2,{effect,"Disappear",0.01,1,1,1,15})
627
			end
628
		end
629
	target:remove()
630
	end
631
end
632
633
--//=================================\\
634
--||	ATTACK FUNCTIONS AND STUFF
635
--\\=================================//
636
637
local hit = Torso.Touched:Connect(function(hit)
638
	if hit.Parent:FindFirstChild("Humanoid") then
639
		kill(hit.Parent)
640
	end
641
end)
642
local hit = RightArm.Touched:Connect(function(hit)
643
	if hit.Parent:FindFirstChild("Humanoid") then
644
		kill(hit.Parent)
645
	end
646
end)
647
local hit = LeftArm.Touched:Connect(function(hit)
648
	if hit.Parent:FindFirstChild("Humanoid") then
649
		kill(hit.Parent)
650
	end
651
end)
652
local hit = RightLeg.Touched:Connect(function(hit)
653
	if hit.Parent:FindFirstChild("Humanoid") then
654
		kill(hit.Parent)
655
	end
656
end)
657
local hit = LeftLeg.Touched:Connect(function(hit)
658
	if hit.Parent:FindFirstChild("Humanoid") then
659
		kill(hit.Parent)
660
	end
661
end)
662
local hit = Head.Touched:Connect(function(hit)
663
	if hit.Parent:FindFirstChild("Humanoid") then
664
		kill(hit.Parent)
665
	end
666
end)
667
668
function Warp()
669
	ATTACK = true
670
	local originalcframe = RootPart.CFrame
671
	RootPart.CFrame = CF(VT(Mouse.Hit.p.X,Mouse.Hit.p.Y+(RootPart.Size.Y+1.5),Mouse.Hit.Z),originalcframe.p)
672
	if OTHERWORLD == false then
673
		local penta = CreatePentagram(15,false,0,100,CF(RootPart.Position),-3.2)
674
		CreateSound("971126018", penta, 2, 1)
675
	end
676
	ATTACK = false
677
end
678
679
function burnchildren(v)
680
local get = v:GetChildren()
681
	for i = 1, #get do
682
		local child = get[i]
683
		if child.ClassName == "Part" or child.ClassName == "MeshPart" then
684
			particles(child)
685
			child.Color = C3(0,0,0)
686
		elseif child.ClassName == "CharacterMesh" then
687
			child.OverlayTextureId = "99174105"
688
		elseif child.ClassName == "Hat" or child.ClassName == "Accessory" then
689
			child.Handle.Color = C3(0,0,0)
690
			child.Handle.Mesh.TextureId = ""
691
			particles(child.Handle)
692
		end
693
	end
694
end
695
696
function dragnearest(position,range)
697
	for i,v in ipairs(workspace:GetChildren()) do
698
	if game.Players:FindFirstChild(v.Name) == nil then
699
		local body = v:GetChildren()
700
			for part = 1, #body do
701
				if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
702
					if(body[part].Position - position).Magnitude < range then
703
						v.Parent = Cam
704
						burnchildren(v)
705
						if v:FindFirstChild("Humanoid") then
706
							v.Humanoid:remove()
707
						end
708
					end
709
				end
710
			end
711
			if v.ClassName == "Part" then
712
				if v.Anchored == false and (v.Position - position).Magnitude < range then
713
					v.Parent = Cam
714
					particles(v)
715
					v.Color = C3(0,0,0)
716
				end
717
			end
718
		end
719
	end
720
end
721
722
function Drag()
723
	local penta = CreatePentagram(25,true,0.3,100,CF(Mouse.Hit.p),0)
724
	CreateSound("971126018", penta, 2, 1, false)
725
	dragnearest(penta.Position,15)
726
end
727
728
--//=================================\\
729
--||	  ASSIGN THINGS TO KEYS
730
--\\=================================//
731
732
local light2 = nil
733
734
function MouseDown(Mouse)
735
	HOLD = true
736
	if OTHERWORLD then
737
		repeat
738
			Swait()
739
			CreatePentagram(15,false,0,12,CF(RootPart.Position),-2.8,true)
740
		until HOLD == false
741
	end
742
end
743
744
function MouseUp(Mouse)
745
	HOLD = false
746
end
747
748
function KeyDown(Key)
749
	if Key == "e" then
750
		Warp()
751
	end
752
	if Key == "h" then
753
		camchild = Cam:GetChildren()
754
		for child = 1, #camchild do
755
			if camchild[child] ~= Character and camchild[child].Name ~= "ColorCorrection" then
756
				camchild[child].Parent = workspace
757
			end
758
		end
759
	end
760
	if Key == "q" then
761
		Drag()
762
	end
763
	if Key == "r" and ATTACK == false then
764
		if OTHERWORLD == false then
765
			OTHERWORLD = true
766
			light2 = IT("ColorCorrectionEffect",Cam)
767
			light2.Brightness = -0.300
768
			light2.Contrast = 1
769
			light2.Saturation = -2
770
			local penta = CreatePentagram(25,false,0,50,CF(RootPart.Position),-2.8)
771
			CreateSound("971126018", penta, 2, 1.5)
772
			Character.Parent = Cam
773
		elseif OTHERWORLD == true then
774
			OTHERWORLD = false
775
			local penta = CreatePentagram(25,false,0,50,CF(RootPart.Position),-2.8)
776
			CreateSound("971126018", penta, 2, 1.5)
777
			light2:remove()
778
			Character.Parent = workspace
779
		end
780
	end
781
	if Key == "g" and OTHERWORLD == true and ATTACK == false then
782
		ATTACK = true
783
		local del = 35
784
		for i =1, 35 do
785
			Swait(del)
786
			del = del - 1
787
			local head = IT("Part",workspace)
788
			head.Size = VT(0.2,0.2,0.2)
789
			head.CFrame = Head.CFrame * CF(math.random(-700,700),0,math.random(-700,700))
790
			head.Transparency = 1
791
			head.CanCollide = false
792
			head.Anchored = true
793
			CreateSound("305685800", head, 10, 2)	
794
			coroutine.resume(coroutine.create(function()
795
				for i = 1, 100 do
796
					Swait()
797
				end
798
				if head then
799
					head:remove()
800
				end
801
			end))
802
		end
803
		Swait(100)
804
		CreateSound("305685800", workspace, 10, 0.8)	
805
		Swait(250)
806
		ATTACK = false
807
	end
808
	if Key == "t" and ATTACK == false then
809
		if OTHERWORLD == false then
810
			CreateSound("305685800", Head, 5, 2)
811
		elseif OTHERWORLD == true then
812
			local head = IT("Part",workspace)
813
			head.Size = VT(0.2,0.2,0.2)
814
			head.CFrame = Head.CFrame
815
			head.Transparency = 1
816
			head.CanCollide = false
817
			head.Anchored = true
818
			CreateSound("305685800", head, 5, 2)	
819
			coroutine.resume(coroutine.create(function()
820
				for i = 1, 100 do
821
					Swait()
822
					if head then
823
						head.CFrame = Head.CFrame
824
					end
825
				end
826
				if head then
827
					head:remove()
828
				end
829
			end))
830
		end
831
	end
832
end
833
834
function KeyUp(Key)
835
end
836
837
	Mouse.Button1Down:connect(function(NEWKEY)
838
		MouseDown(NEWKEY)
839
	end)
840
	Mouse.Button1Up:connect(function(NEWKEY)
841
		MouseUp(NEWKEY)
842
	end)
843
	Mouse.KeyDown:connect(function(NEWKEY)
844
		KeyDown(NEWKEY)
845
	end)
846
	Mouse.KeyUp:connect(function(NEWKEY)
847
		KeyUp(NEWKEY)
848
	end)
849
850
--//=================================\\
851
--\\=================================//
852
853
854
function unanchor()
855
	if UNANCHOR == true then
856
		g = Character:GetChildren()
857
		for i = 1, #g do
858
			if g[i].ClassName == "Part" then
859
				g[i].Anchored = false
860
			end
861
		end
862
	end
863
end
864
865
866
--//=================================\\
867
--||	WRAP THE WHOLE SCRIPT UP
868
--\\=================================//
869
870
while true do
871
	Swait()
872
873
if #Effects2>0 then
874
for e=1,#Effects2 do
875
if Effects2[e]~=nil then
876
local Thing=Effects2[e]
877
if Thing~=nil then
878
local Part=Thing[1]
879
local Mode=Thing[2]
880
local Delay=Thing[3]
881
local IncX=Thing[4]
882
local IncY=Thing[5]
883
local IncZ=Thing[6]
884
local Part2=Thing[8]
885
if Thing[1].Transparency<=1 then
886
if Thing[2]=="Block1" then
887
Thing[1].CFrame=Thing[1].CFrame
888
Mesh=Thing[1].Mesh
889
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
890
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
891
elseif Thing[2]=="Cylinder" then
892
Mesh=Thing[1].Mesh
893
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
894
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
895
elseif Thing[2]=="Blood" then
896
Mesh=Thing[7]
897
Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
898
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
899
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
900
elseif Thing[2]=="Elec" then
901
Mesh=Thing[1].Mesh
902
Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
903
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
904
elseif Thing[2]=="Disappear" then
905
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
906
end
907
else
908
Part.Parent=nil
909
table.remove(Effects2,e)
910
end
911
end
912
end
913
end
914
end
915
unanchor()
916
Humanoid.MaxHealth = "inf"
917
Humanoid.Health = "inf"
918
q = Character:GetChildren()
919
for u = 1, #q do
920
	if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
921
		q[u]:remove()
922
	elseif q[u].ClassName == "Shirt" then
923
		q[u]:Destroy()
924
	elseif q[u].ClassName == "Pants" then
925
		q[u]:Destroy()
926
	elseif q[u].ClassName == "CharacterMesh" then
927
		q[u]:remove()
928
	elseif q[u].ClassName == "ShirtGraphic" then
929
		q[u]:remove()
930
	elseif q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then
931
		q[u].Color = Color3.new(200/255, 200/255, 200/255)
932
		if OTHERWORLD == false then
933
			q[u].Transparency = 0
934
			Humanoid.WalkSpeed = 16
935
			sick.Parent = Character
936
			sick.Pitch = 0.8
937
		elseif OTHERWORLD == true then
938
			Humanoid.WalkSpeed = 75
939
			sick.Parent = workspace
940
			sick.Pitch = 0.3
941
		end
942
	end
943
end
944
if Head:FindFirstChild("Mesh") then
945
	local mesh = Head.Mesh
946
	if mesh.ClassName == "SpecialMesh" then
947
		mesh:remove()
948
		local m = IT("BlockMesh",Head)
949
	end
950
end
951
if Head:FindFirstChild("face") then
952
	if math.random(1,50) == 1 then
953
		Head.face.Texture = "rbxassetid://1471407701"
954
		tecks2.Text = "EVIL"
955
	else
956
		Head.face.Texture = "rbxassetid://595644042"
957
		tecks2.Text = "SAD"
958
	end
959
end
960
if sick == nil then
961
	local sick = Instance.new("Sound",Character)
962
	sick.SoundId = "rbxassetid://142748120"
963
	sick.Looped = true
964
	sick.Pitch = 0.9
965
	sick.Volume = 5
966
	sick:Play()
967
end
968
if OTHERWORLD == false then
969
	CreatePentagram(7,false,0,15,CF(RootPart.Position),-2.8,true)
970
end
971
end
972
973
--//=================================\\
974
--\\=================================//
975
976
977
978
979
980
--//====================================================\\--
981
--||			  		 END OF SCRIPT
982
--\\====================================================//--