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