View difference between Paste ID: Ahjspycz and AwyGFfef
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3
local RealPlayer = Player
4
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
5
-----------------------
6
--[[ Name : Error sans ]]--
7
-------------------------------------------------------
8
--A script By makhail07
9
10
--Credit To affady482 and 
11
12
13
14
--DoyouKnowDaWay
15
16
-------------------------------------------------------
17
18
local FavIDs = {
19
	340106355, --Nefl Crystals
20
	927529620, --Dimension
21
	876981900, --Fantasy
22
	398987889, --Ordinary Days
23
	1117396305, --Oh wait, it's you.
24
	885996042, --Action Winter Journey
25
	919231299, --Sprawling Idiot Effigy
26
	743466274, --Good Day Sunshine
27
	727411183, --Knife Fight
28
	1402748531, --The Earth Is Counting On You!
29
	595230126 --Robot Language
30
	}
31
32
33
34
--The reality of my life isn't real but a Universe -makhail07
35
wait(0.2)
36
local plr = game:service'Players'.LocalPlayer
37
print('Local User is '..plr.Name)
38
print('Chain Magician Loaded')
39
print('Was going to be a test script but fuck it.')
40
local char = plr.Character
41
local hum = char.Humanoid
42
local hed = char.Head
43
local root = char.HumanoidRootPart
44
local rootj = root.RootJoint
45
local tors = char.Torso
46
local ra = char["Right Arm"]
47
local la = char["Left Arm"]
48
local rl = char["Right Leg"]
49
local ll = char["Left Leg"]
50
local neck = tors["Neck"]
51
local mouse = plr:GetMouse()
52
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
53
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
54
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
55
local maincolor = BrickColor.new("Institutional blue")
56
57
ff = Instance.new("ForceField",char)
58
ff.Visible = false
59
hum.Name = "Base"
60
hum.MaxHealth = "inf"
61
hum.Health = "inf"
62
game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
63
  if hum.Health > 0.1 and hum.Health < 1.0E298 then
64
    hum.MaxHealth = "inf"
65
    hum.Health = "inf"
66
  end
67
end)
68
69
-------------------------------------------------------
70
--Start Good Stuff--
71
-------------------------------------------------------
72
cam = game.Workspace.CurrentCamera
73
CF = CFrame.new
74
angles = CFrame.Angles
75
attack = false
76
Euler = CFrame.fromEulerAnglesXYZ
77
Rad = math.rad
78
IT = Instance.new
79
BrickC = BrickColor.new
80
Cos = math.cos
81
Acos = math.acos
82
Sin = math.sin
83
Asin = math.asin
84
Abs = math.abs
85
Mrandom = math.random
86
Floor = math.floor
87
-------------------------------------------------------
88
--End Good Stuff--
89
-------------------------------------------------------
90
necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
91
RSH, LSH = nil, nil 
92
RW = Instance.new("Weld") 
93
LW = Instance.new("Weld")
94
RH = tors["Right Hip"]
95
LH = tors["Left Hip"]
96
RSH = tors["Right Shoulder"] 
97
LSH = tors["Left Shoulder"] 
98
RSH.Parent = nil 
99
LSH.Parent = nil 
100
RW.Name = "RW"
101
RW.Part0 = tors 
102
RW.C0 = CF(1.5, 0.5, 0)
103
RW.C1 = CF(0, 0.5, 0) 
104
RW.Part1 = ra
105
RW.Parent = tors 
106
LW.Name = "LW"
107
LW.Part0 = tors 
108
LW.C0 = CF(-1.5, 0.5, 0)
109
LW.C1 = CF(0, 0.5, 0) 
110
LW.Part1 = la
111
LW.Parent = tors
112
Effects = {}
113
-------------------------------------------------------
114
--Start HeartBeat--
115
-------------------------------------------------------
116
ArtificialHB = Instance.new("BindableEvent", script)
117
ArtificialHB.Name = "Heartbeat"
118
script:WaitForChild("Heartbeat")
119
120
frame = 1 / 60
121
tf = 0
122
allowframeloss = false
123
tossremainder = false
124
125
126
lastframe = tick()
127
script.Heartbeat:Fire()
128
129
130
game:GetService("RunService").Heartbeat:connect(function(s, p)
131
	tf = tf + s
132
	if tf >= frame then
133
		if allowframeloss then
134
			script.Heartbeat:Fire()
135
			lastframe = tick()
136
		else
137
			for i = 1, math.floor(tf / frame) do
138
				script.Heartbeat:Fire()
139
			end
140
			lastframe = tick()
141
		end
142
		if tossremainder then
143
			tf = 0
144
		else
145
			tf = tf - frame * math.floor(tf / frame)
146
		end
147
	end
148
end)
149
-------------------------------------------------------
150
--End HeartBeat--
151
-------------------------------------------------------
152
153
-------------------------------------------------------
154
--Start Important Functions--
155
-------------------------------------------------------
156
function swait(num)
157
	if num == 0 or num == nil then
158
		game:service("RunService").Stepped:wait(0)
159
	else
160
		for i = 0, num do
161
			game:service("RunService").Stepped:wait(0)
162
		end
163
	end
164
end
165
function thread(f)
166
	coroutine.resume(coroutine.create(f))
167
end
168
function clerp(a, b, t)
169
	local qa = {
170
		QuaternionFromCFrame(a)
171
	}
172
	local qb = {
173
		QuaternionFromCFrame(b)
174
	}
175
	local ax, ay, az = a.x, a.y, a.z
176
	local bx, by, bz = b.x, b.y, b.z
177
	local _t = 1 - t
178
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
179
end
180
function QuaternionFromCFrame(cf)
181
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
182
	local trace = m00 + m11 + m22
183
	if trace > 0 then
184
		local s = math.sqrt(1 + trace)
185
		local recip = 0.5 / s
186
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
187
	else
188
		local i = 0
189
		if m00 < m11 then
190
			i = 1
191
		end
192
		if m22 > (i == 0 and m00 or m11) then
193
			i = 2
194
		end
195
		if i == 0 then
196
			local s = math.sqrt(m00 - m11 - m22 + 1)
197
			local recip = 0.5 / s
198
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
199
		elseif i == 1 then
200
			local s = math.sqrt(m11 - m22 - m00 + 1)
201
			local recip = 0.5 / s
202
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
203
		elseif i == 2 then
204
			local s = math.sqrt(m22 - m00 - m11 + 1)
205
			local recip = 0.5 / s
206
			return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
207
		end
208
	end
209
end
210
function QuaternionToCFrame(px, py, pz, x, y, z, w)
211
	local xs, ys, zs = x + x, y + y, z + z
212
	local wx, wy, wz = w * xs, w * ys, w * zs
213
	local xx = x * xs
214
	local xy = x * ys
215
	local xz = x * zs
216
	local yy = y * ys
217
	local yz = y * zs
218
	local zz = z * zs
219
	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))
220
end
221
function QuaternionSlerp(a, b, t)
222
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
223
	local startInterp, finishInterp
224
	if cosTheta >= 1.0E-4 then
225
		if 1 - cosTheta > 1.0E-4 then
226
			local theta = math.acos(cosTheta)
227
			local invSinTheta = 1 / Sin(theta)
228
			startInterp = Sin((1 - t) * theta) * invSinTheta
229
			finishInterp = Sin(t * theta) * invSinTheta
230
		else
231
			startInterp = 1 - t
232
			finishInterp = t
233
		end
234
	elseif 1 + cosTheta > 1.0E-4 then
235
		local theta = math.acos(-cosTheta)
236
		local invSinTheta = 1 / Sin(theta)
237
		startInterp = Sin((t - 1) * theta) * invSinTheta
238
		finishInterp = Sin(t * theta) * invSinTheta
239
	else
240
		startInterp = t - 1
241
		finishInterp = t
242
	end
243
	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
244
end
245
function rayCast(Position, Direction, Range, Ignore)
246
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
247
end
248
local RbxUtility = LoadLibrary("RbxUtility")
249
local Create = RbxUtility.Create
250
-------------------------------------------------------
251
ypcall(function()
252
    char.Shirt:Destroy()
253
    char.Pants:Destroy()
254
    shirt = Instance.new("Shirt", char)
255
    shirt.Name = "Shirt"
256
    pants = Instance.new("Pants", char)
257
    pants.Name = "Pants"
258
    char.Shirt.ShirtTemplate = "rbxassetid://1511368672"
259
    char.Pants.PantsTemplate = "rbxassetid://818423314"
260
    char.Head.face.Texture = "rbxassetid://543498118"
261
    end)
262
-------------------------------------------------------
263
--Start Damage Function--
264
-------------------------------------------------------
265
function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
266
	if hit.Parent == nil then
267
		return
268
	end
269
	local h = hit.Parent:FindFirstChildOfClass("Humanoid")
270
	for _, v in pairs(hit.Parent:children()) do
271
		if v:IsA("Humanoid") then
272
			h = v
273
		end
274
	end
275
         if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
276
	
277
         hit.Parent:FindFirstChild("Head"):BreakJoints()
278
         end
279
280
	if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
281
		if hit.Parent:findFirstChild("DebounceHit") ~= nil then
282
			if hit.Parent.DebounceHit.Value == true then
283
				return
284
			end
285
		end
286
         if insta == true then
287
         hit.Parent:FindFirstChild("Head"):BreakJoints()
288
         end
289
		local c = Create("ObjectValue"){
290
			Name = "creator",
291
			Value = game:service("Players").LocalPlayer,
292
			Parent = h,
293
		}
294
		game:GetService("Debris"):AddItem(c, .5)
295
		if HitSound ~= nil and HitPitch ~= nil then
296
			CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) 
297
		end
298
		local Damage = math.random(minim, maxim)
299
		local blocked = false
300
		local block = hit.Parent:findFirstChild("Block")
301
		if block ~= nil then
302
			if block.className == "IntValue" then
303
				if block.Value > 0 then
304
					blocked = true
305
					block.Value = block.Value - 1
306
					print(block.Value)
307
				end
308
			end
309
		end
310
		if blocked == false then
311
			h.Health = h.Health - Damage
312
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
313
		else
314
			h.Health = h.Health - (Damage / 2)
315
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
316
		end
317
		if Type == "Knockdown" then
318
			local hum = hit.Parent.Humanoid
319
			hum.PlatformStand = true
320
			coroutine.resume(coroutine.create(function(HHumanoid)
321
				swait(1)
322
				HHumanoid.PlatformStand = false
323
			end), hum)
324
			local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
325
			local bodvol = Create("BodyVelocity"){
326
				velocity = angle * knockback,
327
				P = 5000,
328
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
329
				Parent = hit,
330
			}
331
			local rl = Create("BodyAngularVelocity"){
332
				P = 3000,
333
				maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
334
				angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
335
				Parent = hit,
336
			}
337
			game:GetService("Debris"):AddItem(bodvol, .5)
338
			game:GetService("Debris"):AddItem(rl, .5)
339
		elseif Type == "Normal" then
340
			local vp = Create("BodyVelocity"){
341
				P = 500,
342
				maxForce = Vector3.new(math.huge, 0, math.huge),
343
				velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
344
			}
345
			if knockback > 0 then
346
				vp.Parent = hit.Parent.Torso
347
			end
348
			game:GetService("Debris"):AddItem(vp, .5)
349
		elseif Type == "Up" then
350
			local bodyVelocity = Create("BodyVelocity"){
351
				velocity = Vector3.new(0, 20, 0),
352
				P = 5000,
353
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
354
				Parent = hit,
355
			}
356
			game:GetService("Debris"):AddItem(bodyVelocity, .5)
357
		elseif Type == "DarkUp" then
358
			coroutine.resume(coroutine.create(function()
359
				for i = 0, 1, 0.1 do
360
					swait()
361
					Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
362
				end
363
			end))
364
			local bodyVelocity = Create("BodyVelocity"){
365
				velocity = Vector3.new(0, 20, 0),
366
				P = 5000,
367
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
368
				Parent = hit,
369
			}
370
			game:GetService("Debris"):AddItem(bodyVelocity, 1)
371
		elseif Type == "Snare" then
372
			local bp = Create("BodyPosition"){
373
				P = 2000,
374
				D = 100,
375
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
376
				position = hit.Parent.Torso.Position,
377
				Parent = hit.Parent.Torso,
378
			}
379
			game:GetService("Debris"):AddItem(bp, 1)
380
		elseif Type == "Freeze" then
381
			local BodPos = Create("BodyPosition"){
382
				P = 50000,
383
				D = 1000,
384
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
385
				position = hit.Parent.Torso.Position,
386
				Parent = hit.Parent.Torso,
387
			}
388
			local BodGy = Create("BodyGyro") {
389
				maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
390
				P = 20e+003,
391
				Parent = hit.Parent.Torso,
392
				cframe = hit.Parent.Torso.CFrame,
393
			}
394
			hit.Parent.Torso.Anchored = true
395
			coroutine.resume(coroutine.create(function(Part) 
396
				swait(1.5)
397
				Part.Anchored = false
398
			end), hit.Parent.Torso)
399
			game:GetService("Debris"):AddItem(BodPos, 3)
400
			game:GetService("Debris"):AddItem(BodGy, 3)
401
		end
402
		local debounce = Create("BoolValue"){
403
			Name = "DebounceHit",
404
			Parent = hit.Parent,
405
			Value = true,
406
		}
407
		game:GetService("Debris"):AddItem(debounce, Delay)
408
		c = Create("ObjectValue"){
409
			Name = "creator",
410
			Value = Player,
411
			Parent = h,
412
		}
413
		game:GetService("Debris"):AddItem(c, .5)
414
	end
415
end
416
-------------------------------------------------------
417
--End Damage Function--
418
-------------------------------------------------------
419
420
-------------------------------------------------------
421
--Start Damage Function Customization--
422
-------------------------------------------------------
423
function ShowDamage(Pos, Text, Time, Color)
424
	local Rate = (1 / 30)
425
	local Pos = (Pos or Vector3.new(0, 0, 0))
426
	local Text = (Text or "")
427
	local Time = (Time or 2)
428
	local Color = (Color or Color3.new(1, 0, 1))
429
	local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
430
	EffectPart.Anchored = true
431
	local BillboardGui = Create("BillboardGui"){
432
		Size = UDim2.new(3, 0, 3, 0),
433
		Adornee = EffectPart,
434
		Parent = EffectPart,
435
	}
436
	local TextLabel = Create("TextLabel"){
437
		BackgroundTransparency = 1,
438
		Size = UDim2.new(1, 0, 1, 0),
439
		Text = Text,
440
		Font = "Bodoni",
441
		TextColor3 = Color,
442
		TextScaled = true,
443
		TextStrokeColor3 = Color3.fromRGB(0,255,255),
444
		Parent = BillboardGui,
445
	}
446
	game.Debris:AddItem(EffectPart, (Time))
447
	EffectPart.Parent = game:GetService("Workspace")
448
	delay(0, function()
449
		local Frames = (Time / Rate)
450
		for Frame = 1, Frames do
451
			wait(Rate)
452
			local Percent = (Frame / Frames)
453
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
454
			TextLabel.TextTransparency = Percent
455
		end
456
		if EffectPart and EffectPart.Parent then
457
			EffectPart:Destroy()
458
		end
459
	end)
460
end
461
-------------------------------------------------------
462
--End Damage Function Customization--
463
-------------------------------------------------------
464
465
function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
466
  for _, c in pairs(workspace:children()) do
467
    local hum = c:findFirstChild("Humanoid")
468
    if hum ~= nil then
469
      local head = c:findFirstChild("Head")
470
      if head ~= nil then
471
        local targ = head.Position - Part.Position
472
        local mag = targ.magnitude
473
        if magni >= mag and c.Name ~= plr.Name then
474
          Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
475
        end
476
      end
477
    end
478
  end
479
end
480
481
482
CFuncs = {
483
	Part = {
484
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
485
			local Part = Create("Part")({
486
				Parent = Parent,
487
				Reflectance = Reflectance,
488
				Transparency = Transparency,
489
				CanCollide = false,
490
				Locked = true,
491
				BrickColor = BrickColor.new(tostring(BColor)),
492
				Name = Name,
493
				Size = Size,
494
				Material = Material
495
			})
496
			RemoveOutlines(Part)
497
			return Part
498
		end
499
	},
500
	Mesh = {
501
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
502
			local Msh = Create(Mesh)({
503
				Parent = Part,
504
				Offset = OffSet,
505
				Scale = Scale
506
			})
507
			if Mesh == "SpecialMesh" then
508
				Msh.MeshType = MeshType
509
				Msh.MeshId = MeshId
510
			end
511
			return Msh
512
		end
513
	},
514
	Mesh = {
515
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
516
			local Msh = Create(Mesh)({
517
				Parent = Part,
518
				Offset = OffSet,
519
				Scale = Scale
520
			})
521
			if Mesh == "SpecialMesh" then
522
				Msh.MeshType = MeshType
523
				Msh.MeshId = MeshId
524
			end
525
			return Msh
526
		end
527
	},
528
	Weld = {
529
		Create = function(Parent, Part0, Part1, C0, C1)
530
			local Weld = Create("Weld")({
531
				Parent = Parent,
532
				Part0 = Part0,
533
				Part1 = Part1,
534
				C0 = C0,
535
				C1 = C1
536
			})
537
			return Weld
538
		end
539
	},
540
	Sound = {
541
		Create = function(id, par, vol, pit)
542
			coroutine.resume(coroutine.create(function()
543
				local S = Create("Sound")({
544
					Volume = vol,
545
					Pitch = pit or 1,
546
					SoundId = id,
547
					Parent = par or workspace
548
				})
549
				wait()
550
				S:play()
551
				game:GetService("Debris"):AddItem(S, 6)
552
			end))
553
		end
554
	},
555
	ParticleEmitter = {
556
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
557
			local fp = Create("ParticleEmitter")({
558
				Parent = Parent,
559
				Color = ColorSequence.new(Color1, Color2),
560
				LightEmission = LightEmission,
561
				Size = Size,
562
				Texture = Texture,
563
				Transparency = Transparency,
564
				ZOffset = ZOffset,
565
				Acceleration = Accel,
566
				Drag = Drag,
567
				LockedToPart = LockedToPart,
568
				VelocityInheritance = VelocityInheritance,
569
				EmissionDirection = EmissionDirection,
570
				Enabled = Enabled,
571
				Lifetime = LifeTime,
572
				Rate = Rate,
573
				Rotation = Rotation,
574
				RotSpeed = RotSpeed,
575
				Speed = Speed,
576
				VelocitySpread = VelocitySpread
577
			})
578
			return fp
579
		end
580
	}
581
}
582
function RemoveOutlines(part)
583
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
584
end
585
function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
586
	local Part = Create("Part")({
587
		formFactor = FormFactor,
588
		Parent = Parent,
589
		Reflectance = Reflectance,
590
		Transparency = Transparency,
591
		CanCollide = false,
592
		Locked = true,
593
		BrickColor = BrickColor.new(tostring(BColor)),
594
		Name = Name,
595
		Size = Size,
596
		Material = Material
597
	})
598
	RemoveOutlines(Part)
599
	return Part
600
end
601
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
602
	local Msh = Create(Mesh)({
603
		Parent = Part,
604
		Offset = OffSet,
605
		Scale = Scale
606
	})
607
	if Mesh == "SpecialMesh" then
608
		Msh.MeshType = MeshType
609
		Msh.MeshId = MeshId
610
	end
611
	return Msh
612
end
613
function CreateWeld(Parent, Part0, Part1, C0, C1)
614
	local Weld = Create("Weld")({
615
		Parent = Parent,
616
		Part0 = Part0,
617
		Part1 = Part1,
618
		C0 = C0,
619
		C1 = C1
620
	})
621
	return Weld
622
end
623
624
char["Body Colors"].HeadColor = BrickColor.new("Black")
625
char["Body Colors"].TorsoColor = BrickColor.new("Black")
626
char["Body Colors"].LeftArmColor = BrickColor.new("Black")
627
char["Body Colors"].RightArmColor = BrickColor.new("Black")
628
629
-------------------------------------------------------
630
--Start Effect Function--
631
-------------------------------------------------------
632
EffectModel = Instance.new("Model", char)
633
Effects = {
634
  Block = {
635
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
636
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
637
      prt.Anchored = true
638
      prt.CFrame = cframe
639
      local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
640
      game:GetService("Debris"):AddItem(prt, 10)
641
      if Type == 1 or Type == nil then
642
        table.insert(Effects, {
643
          prt,
644
          "Block1",
645
          delay,
646
          x3,
647
          y3,
648
          z3,
649
          msh
650
        })
651
      elseif Type == 2 then
652
        table.insert(Effects, {
653
          prt,
654
          "Block2",
655
          delay,
656
          x3,
657
          y3,
658
          z3,
659
          msh
660
        })
661
      else
662
        table.insert(Effects, {
663
          prt,
664
          "Block3",
665
          delay,
666
          x3,
667
          y3,
668
          z3,
669
          msh
670
        })
671
      end
672
    end
673
  },
674
  Sphere = {
675
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
676
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
677
      prt.Anchored = true
678
      prt.CFrame = cframe
679
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
680
      game:GetService("Debris"):AddItem(prt, 10)
681
      table.insert(Effects, {
682
        prt,
683
        "Cylinder",
684
        delay,
685
        x3,
686
        y3,
687
        z3,
688
        msh
689
      })
690
    end
691
  },
692
  Cylinder = {
693
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
694
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
695
      prt.Anchored = true
696
      prt.CFrame = cframe
697
      local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
698
      game:GetService("Debris"):AddItem(prt, 10)
699
      table.insert(Effects, {
700
        prt,
701
        "Cylinder",
702
        delay,
703
        x3,
704
        y3,
705
        z3,
706
        msh
707
      })
708
    end
709
  },
710
  Wave = {
711
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
712
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
713
      prt.Anchored = true
714
      prt.CFrame = cframe
715
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
716
      game:GetService("Debris"):AddItem(prt, 10)
717
      table.insert(Effects, {
718
        prt,
719
        "Cylinder",
720
        delay,
721
        x3 / 60,
722
        y3 / 60,
723
        z3 / 60,
724
        msh
725
      })
726
    end
727
  },
728
  Ring = {
729
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
730
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
731
      prt.Anchored = true
732
      prt.CFrame = cframe
733
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
734
      game:GetService("Debris"):AddItem(prt, 10)
735
      table.insert(Effects, {
736
        prt,
737
        "Cylinder",
738
        delay,
739
        x3,
740
        y3,
741
        z3,
742
        msh
743
      })
744
    end
745
  },
746
  Break = {
747
    Create = function(brickcolor, cframe, x1, y1, z1)
748
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
749
      prt.Anchored = true
750
      prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
751
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
752
      local num = math.random(10, 50) / 1000
753
      game:GetService("Debris"):AddItem(prt, 10)
754
      table.insert(Effects, {
755
        prt,
756
        "Shatter",
757
        num,
758
        prt.CFrame,
759
        math.random() - math.random(),
760
        0,
761
        math.random(50, 100) / 100
762
      })
763
    end
764
  },
765
Spiral = {
766
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
767
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
768
      prt.Anchored = true
769
      prt.CFrame = cframe
770
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
771
      game:GetService("Debris"):AddItem(prt, 10)
772
      table.insert(Effects, {
773
        prt,
774
        "Cylinder",
775
        delay,
776
        x3,
777
        y3,
778
        z3,
779
        msh
780
      })
781
    end
782
  },
783
Push = {
784
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
785
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
786
      prt.Anchored = true
787
      prt.CFrame = cframe
788
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
789
      game:GetService("Debris"):AddItem(prt, 10)
790
      table.insert(Effects, {
791
        prt,
792
        "Cylinder",
793
        delay,
794
        x3,
795
        y3,
796
        z3,
797
        msh
798
      })
799
    end
800
  }
801
}
802
function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
803
	local fp = IT("Part")
804
	fp.formFactor = formfactor 
805
	fp.Parent = parent
806
	fp.Reflectance = reflectance
807
	fp.Transparency = transparency
808
	fp.CanCollide = false 
809
	fp.Locked = true
810
	fp.BrickColor = brickcolor
811
	fp.Name = name
812
	fp.Size = size
813
	fp.Position = tors.Position 
814
	RemoveOutlines(fp)
815
	fp.Material = "SmoothPlastic"
816
	fp:BreakJoints()
817
	return fp 
818
end 
819
 
820
function mesh(Mesh,part,meshtype,meshid,offset,scale)
821
	local mesh = IT(Mesh) 
822
	mesh.Parent = part
823
	if Mesh == "SpecialMesh" then
824
		mesh.MeshType = meshtype
825
	if meshid ~= "nil" then
826
		mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
827
		end
828
	end
829
	mesh.Offset = offset
830
	mesh.Scale = scale
831
	return mesh
832
end
833
834
function Magic(bonuspeed, type, pos, scale, value, color, MType)
835
	local type = type
836
	local rng = Instance.new("Part", char)
837
	rng.Anchored = true
838
	rng.BrickColor = color
839
	rng.CanCollide = false
840
	rng.FormFactor = 3
841
	rng.Name = "Ring"
842
	rng.Material = "Neon"
843
	rng.Size = Vector3.new(1, 1, 1)
844
	rng.Transparency = 0
845
	rng.TopSurface = 0
846
	rng.BottomSurface = 0
847
	rng.CFrame = pos
848
	local rngm = Instance.new("SpecialMesh", rng)
849
	rngm.MeshType = MType
850
	rngm.Scale = scale
851
	local scaler2 = 1
852
	if type == "Add" then
853
		scaler2 = 1 * value
854
	elseif type == "Divide" then
855
		scaler2 = 1 / value
856
	end
857
	coroutine.resume(coroutine.create(function()
858
		for i = 0, 10 / bonuspeed, 0.1 do
859
			swait()
860
			if type == "Add" then
861
				scaler2 = scaler2 - 0.01 * value / bonuspeed
862
			elseif type == "Divide" then
863
				scaler2 = scaler2 - 0.01 / value * bonuspeed
864
			end
865
			rng.Transparency = rng.Transparency + 0.01 * bonuspeed
866
			rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
867
		end
868
		rng:Destroy()
869
	end))
870
end
871
872
function Eviscerate(dude)
873
	if dude.Name ~= char then
874
		local bgf = IT("BodyGyro", dude.Head)
875
		bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
876
		local val = IT("BoolValue", dude)
877
		val.Name = "IsHit"
878
		local ds = coroutine.wrap(function()
879
			dude:WaitForChild("Head"):BreakJoints()
880
			wait(0.5)
881
			target = nil
882
			coroutine.resume(coroutine.create(function()
883
				for i, v in pairs(dude:GetChildren()) do
884
					if v:IsA("Accessory") then
885
						v:Destroy()
886
					end
887
					if v:IsA("Humanoid") then
888
						v:Destroy()
889
					end
890
					if v:IsA("CharacterMesh") then
891
						v:Destroy()
892
					end
893
					if v:IsA("Model") then
894
						v:Destroy()
895
					end
896
					if v:IsA("Part") or v:IsA("MeshPart") then
897
						for x, o in pairs(v:GetChildren()) do
898
							if o:IsA("Decal") then
899
								o:Destroy()
900
							end
901
						end
902
						coroutine.resume(coroutine.create(function()
903
							v.Material = "Neon"
904
							v.CanCollide = false
905
							local PartEmmit1 = IT("ParticleEmitter", v)
906
							PartEmmit1.LightEmission = 1
907
							PartEmmit1.Texture = "rbxassetid://284205403"
908
							PartEmmit1.Color = ColorSequence.new(maincolor.Color)
909
							PartEmmit1.Rate = 150
910
							PartEmmit1.Lifetime = NumberRange.new(1)
911
							PartEmmit1.Size = NumberSequence.new({
912
								NumberSequenceKeypoint.new(0, 0.75, 0),
913
								NumberSequenceKeypoint.new(1, 0, 0)
914
							})
915
							PartEmmit1.Transparency = NumberSequence.new({
916
								NumberSequenceKeypoint.new(0, 0, 0),
917
								NumberSequenceKeypoint.new(1, 1, 0)
918
							})
919
							PartEmmit1.Speed = NumberRange.new(0, 0)
920
							PartEmmit1.VelocitySpread = 30000
921
							PartEmmit1.Rotation = NumberRange.new(-500, 500)
922
							PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
923
							local BodPoss = IT("BodyPosition", v)
924
							BodPoss.P = 3000
925
							BodPoss.D = 1000
926
							BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
927
							BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
928
							v.Color = maincolor.Color
929
							coroutine.resume(coroutine.create(function()
930
								for i = 0, 49 do
931
									swait(1)
932
									v.Transparency = v.Transparency + 0.08
933
								end
934
								wait(0.5)
935
								PartEmmit1.Enabled = false
936
								wait(3)
937
								v:Destroy()
938
								dude:Destroy()
939
							end))
940
						end))
941
					end
942
				end
943
			end))
944
		end)
945
		ds()
946
	end
947
end
948
949
function FindNearestHead(Position, Distance, SinglePlayer)
950
	if SinglePlayer then
951
		return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
952
	end
953
	local List = {}
954
	for i, v in pairs(workspace:GetChildren()) do
955
		if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
956
			table.insert(List, v)
957
		end
958
	end
959
	return List
960
end
961
962
function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
963
	local type = type
964
	local rng = Instance.new("Part", char)
965
	rng.Anchored = true
966
	rng.BrickColor = color
967
	rng.CanCollide = false
968
	rng.FormFactor = 3
969
	rng.Name = "Ring"
970
	rng.Material = "Neon"
971
	rng.Size = Vector3.new(1, 1, 1)
972
	rng.Transparency = 0
973
	rng.TopSurface = 0
974
	rng.BottomSurface = 0
975
	rng.CFrame = pos
976
	rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
977
	local rngm = Instance.new("SpecialMesh", rng)
978
	rngm.MeshType = MType
979
	rngm.Scale = Vector3.new(x1, y1, z1)
980
	local scaler2 = 1
981
	local speeder = FastSpeed
982
	if type == "Add" then
983
		scaler2 = 1 * value
984
	elseif type == "Divide" then
985
		scaler2 = 1 / value
986
	end
987
	coroutine.resume(coroutine.create(function()
988
		for i = 0, 10 / bonuspeed, 0.1 do
989
			swait()
990
			if type == "Add" then
991
				scaler2 = scaler2 - 0.01 * value / bonuspeed
992
			elseif type == "Divide" then
993
				scaler2 = scaler2 - 0.01 / value * bonuspeed
994
			end
995
			speeder = speeder - 0.01 * FastSpeed * bonuspeed
996
			rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
997
			rng.Transparency = rng.Transparency + 0.01 * bonuspeed
998
			rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
999
		end
1000
		rng:Destroy()
1001
	end))
1002
end
1003
1004
function SoulSteal(dude)
1005
if dude.Name ~= char then
1006
local bgf = IT("BodyGyro", dude.Head)
1007
bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
1008
local val = IT("BoolValue", dude)
1009
val.Name = "IsHit"
1010
local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
1011
local soulst = coroutine.wrap(function()
1012
local soul = Instance.new("Part",dude)
1013
soul.Size = Vector3.new(1,1,1)
1014
soul.CanCollide = false
1015
soul.Anchored = false
1016
soul.Position = torso.Position
1017
soul.Transparency = 1
1018
local PartEmmit1 = IT("ParticleEmitter", soul)
1019
PartEmmit1.LightEmission = 1
1020
PartEmmit1.Texture = "rbxassetid://569507414"
1021
PartEmmit1.Color = ColorSequence.new(maincolor.Color)
1022
PartEmmit1.Rate = 250
1023
PartEmmit1.Lifetime = NumberRange.new(1.6)
1024
PartEmmit1.Size = NumberSequence.new({
1025
	NumberSequenceKeypoint.new(0, 1, 0),
1026
	NumberSequenceKeypoint.new(1, 0, 0)
1027
})
1028
PartEmmit1.Transparency = NumberSequence.new({
1029
	NumberSequenceKeypoint.new(0, 0, 0),
1030
	NumberSequenceKeypoint.new(1, 1, 0)
1031
})
1032
PartEmmit1.Speed = NumberRange.new(0, 0)
1033
PartEmmit1.VelocitySpread = 30000
1034
PartEmmit1.Rotation = NumberRange.new(-360, 360)
1035
PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
1036
local BodPoss = IT("BodyPosition", soul)
1037
BodPoss.P = 3000
1038
BodPoss.D = 1000
1039
BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
1040
BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
1041
wait(1.6)
1042
soul.Touched:connect(function(hit)
1043
	if hit.Parent == char then
1044
	soul:Destroy()
1045
	end
1046
end)
1047
wait(1.2)
1048
while soul do
1049
	swait()
1050
	PartEmmit1.Color = ColorSequence.new(maincolor.Color)
1051
	BodPoss.Position = tors.Position
1052
end
1053
end)
1054
	soulst()
1055
	end
1056
end
1057
function FaceMouse()
1058
local	Cam = workspace.CurrentCamera
1059
	return {
1060
		CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
1061
		Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
1062
	}
1063
end
1064
-------------------------------------------------------
1065
--End Effect Function--
1066
-------------------------------------------------------
1067
function Cso(ID, PARENT, VOLUME, PITCH)
1068
	local NSound = nil
1069
	coroutine.resume(coroutine.create(function()
1070
		NSound = IT("Sound", PARENT)
1071
		NSound.Volume = VOLUME
1072
		NSound.Pitch = PITCH
1073
		NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
1074
		swait()
1075
		NSound:play()
1076
		game:GetService("Debris"):AddItem(NSound, 10)
1077
	end))
1078
	return NSound
1079
end
1080
function CameraEnshaking(Length, Intensity)
1081
	coroutine.resume(coroutine.create(function()
1082
		local intensity = 1 * Intensity
1083
		local rotM = 0.01 * Intensity
1084
		for i = 0, Length, 0.1 do
1085
			swait()
1086
			intensity = intensity - 0.05 * Intensity / Length
1087
			rotM = rotM - 5.0E-4 * Intensity / Length
1088
			hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
1089
			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)
1090
		end
1091
		hum.CameraOffset = Vector3.new(0, 0, 0)
1092
	end))
1093
end
1094
function getRegion(point,range,ignore)
1095
    return workspace:FindPartsInRegion3WithIgnoreList(Region3.new(point-Vector3.new(1,1,1)*range/2,point+Vector3.new(1,1,1)*range/2),ignore,100)
1096
end
1097
1098
function GetTorso(char)
1099
	return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
1100
end
1101
1102
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}
1103
1104
NewInstance = function(instance,parent,properties)
1105
	local inst = Instance.new(instance)
1106
	inst.Parent = parent
1107
	if(properties)then
1108
		for i,v in next, properties do
1109
			pcall(function() inst[i] = v end)
1110
		end
1111
	end
1112
	return inst;
1113
end
1114
1115
function Part(parent,color,material,size,cframe,anchored,cancollide)
1116
	local part = Instance.new("Part")
1117
	part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or Color3.new(0,0,0)
1118
	part.Material = material or Enum.Material.SmoothPlastic
1119
	part.TopSurface,part.BottomSurface=10,10
1120
	part.Size = size or Vector3.new(1,1,1)
1121
	part.CFrame = cframe or CF(0,0,0)
1122
	part.Anchored = anchored or true
1123
	part.CanCollide = cancollide or false
1124
	part.Parent = parent or char
1125
	return part
1126
end
1127
-------------------------------------------------------
1128
--End Important Functions--
1129
-------------------------------------------------------
1130
1131
1132
-------------------------------------------------------
1133
--Start Customization--
1134
-------------------------------------------------------
1135
local Player_Size = 1
1136
if Player_Size ~= 1 then
1137
root.Size = root.Size * Player_Size
1138
tors.Size = tors.Size * Player_Size
1139
hed.Size = hed.Size * Player_Size
1140
ra.Size = ra.Size * Player_Size
1141
la.Size = la.Size * Player_Size
1142
rl.Size = rl.Size * Player_Size
1143
ll.Size = ll.Size * Player_Size
1144
----------------------------------------------------------------------------------
1145
rootj.Parent = root
1146
neck.Parent = tors
1147
RW.Parent = tors
1148
LW.Parent = tors
1149
RH.Parent = tors
1150
LH.Parent = tors
1151
----------------------------------------------------------------------------------
1152
rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
1153
rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
1154
neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
1155
neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
1156
RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
1157
LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
1158
----------------------------------------------------------------------------------
1159
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))
1160
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))
1161
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))
1162
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))
1163
--hat.Parent = Character
1164
end
1165
----------------------------------------------------------------------------------
1166
local SONG = 562226927
1167
local SONG2 = 0
1168
local Music = Instance.new("Sound",tors)
1169
Music.Volume = 2
1170
Music.Looped = true
1171
Music.Pitch = 1 --Pitcher
1172
----------------------------------------------------------------------------------
1173
local equipped = false
1174
local idle = 0
1175
local change = 1
1176
local val = 0
1177
local toim = 0
1178
local idleanim = 0.4
1179
local sine = 0
1180
local Sit = 1
1181
----------------------------------------------------------------------------------
1182
hum.WalkSpeed = 120
1183
hum.JumpPower = 120
1184
hum.Animator.Parent = nil
1185
-------------------------------------------------------
1186
--End Customization--
1187
-------------------------------------------------------
1188
1189
-------------------------------------------------------
1190
--Start Attacks N Stuff--
1191
-------------------------------------------------------
1192
function DRAG_THEM_TO_HELL()
1193
	if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
1194
	local HUM = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
1195
	local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
1196
	local HEAD = HUM.Parent:FindFirstChild("Head")
1197
	if HEAD and TORSO and HUM.Health > 0 then
1198
	local GYRO = IT("BodyGyro",root)
1199
	GYRO.D = 275
1200
	GYRO.P = 20000
1201
	GYRO.MaxTorque = Vector3.new(0,40000,0)
1202
	attack = true
1203
	hum.WalkSpeed = 120
1204
	local hit,pos,hummie;
1205
	local Hook = Part(EffectModel, Color3.new(),Enum.Material.Neon,Vector3.new(.05,.05,.05),root.CFrame,true,false)
1206
	Hook.Transparency = 1
1207
	local A = NewInstance("Attachment",Hook)
1208
	local B = NewInstance("Attachment",ra,{Position = Vector3.new(0,-ra.Size.Y/2,0)})
1209
	local Chain = NewInstance("Beam",Hook,{Attachment0 = A,Attachment1=B,Color = Color3.fromRGB(0,255,255),FaceCamera=true,LightInfluence=0,Texture="rbxassetid://614117108",TextureLength=5,Transparency=NumberSequence.new(0),TextureSpeed=0,CurveSize0=0,CurveSize1=0,FaceCamera=true,Segments=10,Width0=1,Width1=1})
1210
	local POS = mouse.Hit.p
1211
	local CHAINS = false
1212
	local CHAINLINKS = {}
1213
	local A = IT("Attachment",ra)
1214
	A.Position = Vector3.new(1,-1,0)*Player_Size
1215
	A.Orientation = Vector3.new(-90, -89.982, 0)
1216
	local B = IT("Attachment",ra)
1217
	B.Position = Vector3.new(-1,-1,0)*Player_Size
1218
	B.Orientation = Vector3.new(-90, 89.988, 0)
1219
	local C = IT("Attachment",ra)
1220
	C.Position = Vector3.new(0.5,-1.3,0)*Player_Size
1221
	C.Orientation = Vector3.new(-90, -89.982, 0)
1222
	local D = IT("Attachment",ra)
1223
	D.Position = Vector3.new(-0.5,-1.3,0)*Player_Size
1224
	D.Orientation = Vector3.new(-90, 89.988, 0)
1225
	local LIGHT = IT("Attachment",ra)
1226
	LIGHT.Position = Vector3.new(0,-1,0)*Player_Size
1227
	local LIGHT2 = IT("PointLight",LIGHT)
1228
	LIGHT2.Range = 7
1229
	LIGHT2.Brightness = 5
1230
	LIGHT2.Color = Color3.new(0,0,0)
1231
	for i = 1, 2 do
1232
		local TWIST = -2
1233
		local START = A
1234
		local END = B
1235
		if i == 1 then
1236
			START = B
1237
			END = A
1238
		end
1239
		local ChainLink = IT("Beam",tors)
1240
		ChainLink.Texture = "rbxassetid://614117108"
1241
		ChainLink.Color = ColorSequence.new(Color3.fromRGB(0,255,255))
1242
		ChainLink.TextureSpeed = 1
1243
		ChainLink.Width0 = 1
1244
		ChainLink.Width1 = 1
1245
		ChainLink.TextureLength = 2.5
1246
		ChainLink.Attachment0 = START
1247
		ChainLink.Attachment1 = END
1248
		ChainLink.CurveSize0 = TWIST
1249
		ChainLink.CurveSize1 = TWIST
1250
		--ChainLink.FaceCamera = true
1251
		ChainLink.Segments = 45
1252
		ChainLink.Transparency = NumberSequence.new(0.25)
1253
		table.insert(CHAINLINKS,ChainLink)
1254
	end
1255
	for i = 1, 2 do
1256
		local TWIST = -1
1257
		local START = C
1258
		local END = D
1259
		if i == 1 then
1260
			START = D
1261
			END = C
1262
		end
1263
		local ChainLink = IT("Beam",tors)
1264
		ChainLink.Texture = "rbxassetid://614117108"
1265
		ChainLink.Color = ColorSequence.new(Color3.fromRGB(138,138,138))
1266
		ChainLink.TextureSpeed = 1
1267
		ChainLink.Width0 = 1
1268
		ChainLink.Width1 = 1
1269
		ChainLink.TextureLength = 5
1270
		ChainLink.Attachment0 = START
1271
		ChainLink.Attachment1 = END
1272
		ChainLink.CurveSize0 = TWIST
1273
		ChainLink.CurveSize1 = TWIST
1274
		--ChainLink.FaceCamera = true
1275
		ChainLink.Segments = 25
1276
		ChainLink.LightEmission = 0.5
1277
		ChainLink.Transparency = NumberSequence.new(0.25)
1278
		table.insert(CHAINLINKS,ChainLink)
1279
	end
1280
	for i = 0, 2.3, .1 do
1281
		swait()
1282
		GYRO.cframe = CF(root.Position,TORSO.Position)
1283
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(15), Rad(0), Rad(-45)), 0.15)
1284
		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)
1285
		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)
1286
		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)
1287
		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)
1288
		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)
1289
	end
1290
	Cso("169105657", ra, 7, 1.2)
1291
	for i = 0, 4, .1 do
1292
		if(hit)then break end
1293
		swait()
1294
		GYRO.cframe = CF(root.Position,TORSO.Position)
1295
		Hook.CFrame = HEAD.CFrame
1296
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(5), Rad(45)), 0.15)
1297
		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)
1298
		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)
1299
		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)
1300
		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)
1301
		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)
1302
	end
1303
	for _,v in next, getRegion(Hook.Position,1,{char}) do
1304
			if(v.Parent and GetTorso(v.Parent) and v.Parent:FindFirstChildOfClass'Humanoid')then
1305
				hit = GetTorso(v.Parent);
1306
				hummie = v.Parent:FindFirstChildOfClass'Humanoid';
1307
			break;
1308
		end
1309
	end
1310
	Cso("169105657", ra, 5, .8)
1311
	Cso("131228548", tors, 2, 1.1)
1312
	GYRO:remove()
1313
	for i = 0, 3, .1 do
1314
		swait()
1315
		HUM.PlatformStand = true
1316
		Hook.CFrame = Hook.CFrame:lerp(ra.CFrame * CF(0, 0, -1), .2)
1317
		if(hit)then hit.CFrame = Hook.CFrame; hit.Velocity = Vector3.new() 
1318
		end
1319
		if((Hook.CFrame.p-ra.CFrame.p).magnitude < 2)then
1320
			break
1321
		end
1322
		Chain.TextureLength = 4
1323
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(-5), Rad(-45)), 0.15)
1324
		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)
1325
		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)
1326
		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)
1327
		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)
1328
		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)
1329
	end
1330
		hum.WalkSpeed = 120
1331
		attack = false
1332
		Hook:Destroy()
1333
		A:remove()
1334
		B:remove()
1335
		C:remove()
1336
		D:remove()
1337
		end
1338
	end
1339
end
1340
--------------------------------------------------------
1341
--------------------------------------------------------
1342
--------------------------------------------------------
1343
--------------------------------------------------------
1344
--------------------------------------------------------
1345
--------------------------------------------------------
1346
--------------------------------------------------------
1347
function DRAG_YOURSELF_TO_HELL()
1348
	if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
1349
	local HUM = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
1350
	local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
1351
	local HEAD = HUM.Parent:FindFirstChild("Head")
1352
	if HEAD and TORSO and HUM.Health > 0 then
1353
	local GYRO = IT("BodyGyro",root)
1354
	GYRO.D = 275
1355
	GYRO.P = 20000
1356
	GYRO.MaxTorque = Vector3.new(0,40000,0)
1357
	attack = true
1358
	hum.WalkSpeed = 120
1359
	local hit,pos,hummie;
1360
	local Hook = Part(EffectModel, Color3.new(),Enum.Material.Neon,Vector3.new(.05,.05,.05),root.CFrame,true,false)
1361
	Hook.Transparency = 1
1362
	local A = NewInstance("Attachment",Hook)
1363
	local B = NewInstance("Attachment",ra,{Position = Vector3.new(0,-ra.Size.Y/2,0)})
1364
	local Chain = NewInstance("Beam",Hook,{Attachment0 = A,Attachment1=B,Color = Color3.fromRGB(138,138,138),FaceCamera=true,LightInfluence=0,Texture="rbxassetid://614117108",TextureLength=5,Transparency=NumberSequence.new(0),TextureSpeed=0,CurveSize0=0,CurveSize1=0,FaceCamera=true,Segments=10,Width0=1,Width1=1})
1365
	local POS = mouse.Hit.p
1366
	local CHAINS = false
1367
	local CHAINLINKS = {}
1368
	local A = IT("Attachment",ra)
1369
	A.Position = Vector3.new(1,-1,0)*Player_Size
1370
	A.Orientation = Vector3.new(-90, -89.982, 0)
1371
	local B = IT("Attachment",ra)
1372
	B.Position = Vector3.new(-1,-1,0)*Player_Size
1373
	B.Orientation = Vector3.new(-90, 89.988, 0)
1374
	local C = IT("Attachment",ra)
1375
	C.Position = Vector3.new(0.5,-1.3,0)*Player_Size
1376
	C.Orientation = Vector3.new(-90, -89.982, 0)
1377
	local D = IT("Attachment",ra)
1378
	D.Position = Vector3.new(-0.5,-1.3,0)*Player_Size
1379
	D.Orientation = Vector3.new(-90, 89.988, 0)
1380
	local LIGHT = IT("Attachment",ra)
1381
	LIGHT.Position = Vector3.new(0,-1,0)*Player_Size
1382
	local LIGHT2 = IT("PointLight",LIGHT)
1383
	LIGHT2.Range = 7
1384
	LIGHT2.Brightness = 5
1385
	LIGHT2.Color = Color3.new(0,0,0)
1386
	for i = 1, 2 do
1387
		local TWIST = -2
1388
		local START = A
1389
		local END = B
1390
		if i == 1 then
1391
			START = B
1392
			END = A
1393
		end
1394
		local ChainLink = IT("Beam",tors)
1395
		ChainLink.Texture = "rbxassetid://614117108"
1396
		ChainLink.Color = ColorSequence.new(Color3.fromRGB(138,138,138))
1397
		ChainLink.TextureSpeed = 1
1398
		ChainLink.Width0 = 1
1399
		ChainLink.Width1 = 1
1400
		ChainLink.TextureLength = 2.5
1401
		ChainLink.Attachment0 = START
1402
		ChainLink.Attachment1 = END
1403
		ChainLink.CurveSize0 = TWIST
1404
		ChainLink.CurveSize1 = TWIST
1405
		--ChainLink.FaceCamera = true
1406
		ChainLink.Segments = 45
1407
		ChainLink.Transparency = NumberSequence.new(0.25)
1408
		table.insert(CHAINLINKS,ChainLink)
1409
	end
1410
	for i = 1, 2 do
1411
		local TWIST = -1
1412
		local START = C
1413
		local END = D
1414
		if i == 1 then
1415
			START = D
1416
			END = C
1417
		end
1418
		local ChainLink = IT("Beam",tors)
1419
		ChainLink.Texture = "rbxassetid://614117108"
1420
		ChainLink.Color = ColorSequence.new(Color3.fromRGB(138,138,138))
1421
		ChainLink.TextureSpeed = 1
1422
		ChainLink.Width0 = 1
1423
		ChainLink.Width1 = 1
1424
		ChainLink.TextureLength = 5
1425
		ChainLink.Attachment0 = START
1426
		ChainLink.Attachment1 = END
1427
		ChainLink.CurveSize0 = TWIST
1428
		ChainLink.CurveSize1 = TWIST
1429
		--ChainLink.FaceCamera = true
1430
		ChainLink.Segments = 25
1431
		ChainLink.LightEmission = 0.5
1432
		ChainLink.Transparency = NumberSequence.new(0.25)
1433
		table.insert(CHAINLINKS,ChainLink)
1434
	end
1435
	for i = 0, 2.3, .1 do
1436
		swait()
1437
		GYRO.cframe = CF(root.Position,TORSO.Position)
1438
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(15), Rad(0), Rad(-45)), 0.15)
1439
		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)
1440
		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)
1441
		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)
1442
		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)
1443
		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)
1444
	end
1445
	Cso("169105657", ra, 7, 1.2)
1446
	for i = 0, 4, .1 do
1447
		if(hit)then break end
1448
		swait()
1449
		GYRO.cframe = CF(root.Position,TORSO.Position)
1450
		Hook.CFrame = HEAD.CFrame
1451
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(5), Rad(45)), 0.15)
1452
		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)
1453
		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)
1454
		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)
1455
		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)
1456
		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)
1457
	end
1458
	for _,v in next, getRegion(Hook.Position,1,{char}) do
1459
			if(v.Parent and GetTorso(v.Parent) and v.Parent:FindFirstChildOfClass'Humanoid')then
1460
				hit = GetTorso(v.Parent);
1461
				hummie = v.Parent:FindFirstChildOfClass'Humanoid';
1462
			break;
1463
		end
1464
	end
1465
	Cso("169105657", ra, 5, .8)
1466
	Cso("271693128", tors, 2, 1)
1467
	GYRO:remove()
1468
	for i = 0, 3, .1 do
1469
		swait()
1470
		root.CFrame = Hook.CFrame:lerp(ra.CFrame * CF(0, 0, -1), .2)
1471
		if(hit)then hit.CFrame = Hook.CFrame; hit.Velocity = Vector3.new() 
1472
		end
1473
		if((Hook.CFrame.p-ra.CFrame.p).magnitude < 2)then
1474
			break
1475
		end
1476
		Chain.TextureLength = 4
1477
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(90), Rad(-5), Rad(0)), 0.15)
1478
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-45 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
1479
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
1480
		LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
1481
		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(0), Rad(-.6), Rad(25)), 0.1)
1482
		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(-25)), 0.1)
1483
	end
1484
		hum.WalkSpeed = 120
1485
		attack = false
1486
		Hook:Destroy()
1487
		A:remove()
1488
		B:remove()
1489
		C:remove()
1490
		D:remove()
1491
		end
1492
	end
1493
end
1494
--------------------------------------------------------
1495
--------------------------------------------------------
1496
--------------------------------------------------------
1497
--------------------------------------------------------
1498
--------------------------------------------------------
1499
--------------------------------------------------------
1500
--------------------------------------------------------
1501
function GIMME_THOSE()
1502
	if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
1503
	local HUM = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
1504
	local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
1505
	local HEAD = HUM.Parent:FindFirstChild("Head")
1506
	local RIGHTARM = HUM.Parent:FindFirstChild("Right Arm") or HUM.Parent:FindFirstChild("RightLowerArm")
1507
	local LEFTARM = HUM.Parent:FindFirstChild("Left Arm") or HUM.Parent:FindFirstChild("LeftLowerArm")
1508
	if HEAD and TORSO and HUM.Health > 0 then
1509
	local GYRO = IT("BodyGyro",root)
1510
	GYRO.D = 275
1511
	GYRO.P = 20000
1512
	GYRO.MaxTorque = Vector3.new(0,40000,0)
1513
	attack = true
1514
	hum.WalkSpeed = 120
1515
	local hit,pos,hummie;
1516
	local Hook = Part(EffectModel, Color3.new(),Enum.Material.Neon,Vector3.new(.05,.05,.05),root.CFrame,true,false)
1517
	local Hook2 = Part(EffectModel, Color3.new(),Enum.Material.Neon,Vector3.new(.05,.05,.05),root.CFrame,true,false)
1518
	Hook.Transparency = 1
1519
	Hook2.Transparency = 1
1520
	local A = NewInstance("Attachment",Hook)
1521
	local B = NewInstance("Attachment",ra,{Position = Vector3.new(0,-ra.Size.Y/2,0)})
1522
	local A2 = NewInstance("Attachment",Hook2)
1523
	local B2 = NewInstance("Attachment",la,{Position = Vector3.new(0,-ra.Size.Y/2,0)})
1524
	local Chain = NewInstance("Beam",Hook,{Attachment0 = A,Attachment1=B,Color = Color3.fromRGB(138,138,138),FaceCamera=true,LightInfluence=0,Texture="rbxassetid://73042633",TextureLength=5,Transparency=NumberSequence.new(0),TextureSpeed=0,CurveSize0=0,CurveSize1=0,FaceCamera=true,Segments=10,Width0=1,Width1=1})
1525
	local Chain2 = NewInstance("Beam",Hook2,{Attachment0 = A2,Attachment1=B2,Color = Color3.fromRGB(138,138,138),FaceCamera=true,LightInfluence=0,Texture="rbxassetid://73042633",TextureLength=5,Transparency=NumberSequence.new(0),TextureSpeed=0,CurveSize0=0,CurveSize1=0,FaceCamera=true,Segments=10,Width0=1,Width1=1})
1526
	for i = 0, 2.3, .1 do
1527
		swait()
1528
		GYRO.cframe = CF(root.Position,TORSO.Position)
1529
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-7), Rad(0), Rad(0)), 0.15)
1530
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
1531
		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(-7)), 0.15)
1532
		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(7)), 0.15)
1533
		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)
1534
		LW.C0 = clerp(LW.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)
1535
	end
1536
	Cso("169105657", ra, 7, 1.2)
1537
	for i = 0, 5, .1 do
1538
		if(hit)then break end
1539
		swait()
1540
		GYRO.cframe = CF(root.Position,TORSO.Position)
1541
		Hook.CFrame = TORSO.CFrame
1542
		Hook2.CFrame = TORSO.CFrame
1543
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(7), Rad(0), Rad(0)), 0.15)
1544
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
1545
		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(7)), 0.15)
1546
		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(-7)), 0.15)
1547
		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)
1548
		LW.C0 = clerp(LW.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)
1549
	end
1550
	for _,v in next, getRegion(Hook.Position,1,{char}) do
1551
			if(v.Parent and GetTorso(v.Parent) and v.Parent:FindFirstChildOfClass'Humanoid')then
1552
				hit = GetTorso(v.Parent);
1553
				hummie = v.Parent:FindFirstChildOfClass'Humanoid';
1554
			break;
1555
		end
1556
	end
1557
	Cso("169105657", ra, 5, .8)
1558
	Cso("1474367957", TORSO, 2, 1)
1559
	GYRO:remove()
1560
	TORSO:BreakJoints()
1561
	for i = 0, 6, .1 do
1562
		swait()
1563
		Hook.CFrame = Hook.CFrame:lerp(tors.CFrame * CF(0, 0, -1), .2)
1564
		if(hit)then hit.CFrame = Hook.CFrame; hit.Velocity = Vector3.new() 
1565
		end
1566
		if((Hook.CFrame.p-tors.CFrame.p).magnitude < 2)then
1567
			break
1568
		end
1569
		Hook2.CFrame = Hook2.CFrame:lerp(tors.CFrame * CF(0, 0, -1), .2)
1570
		if(hit)then hit.CFrame = Hook2.CFrame; hit.Velocity = Vector3.new() 
1571
		end
1572
		if((Hook2.CFrame.p-tors.CFrame.p).magnitude < 2)then
1573
			break
1574
		end
1575
		Chain.TextureLength = 4
1576
		Chain2.TextureLength = 4
1577
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-7), Rad(0), Rad(0)), 0.15)
1578
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
1579
		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(90)), 0.15)
1580
		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(7)), 0.15)
1581
		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)
1582
		LW.C0 = clerp(LW.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)
1583
	end
1584
		hum.WalkSpeed = 120
1585
		attack = false
1586
		Hook2:Destroy()
1587
		Hook:Destroy()
1588
		end
1589
	end
1590
end
1591
-------------------------------------------------------
1592
--End Attacks N Stuff--
1593
-------------------------------------------------------
1594
mouse.KeyDown:connect(function(key)
1595
	if attack == false then
1596
		if key == 'b' then
1597
			DRAG_THEM_TO_HELL()
1598
		elseif key == 'v' then
1599
			DRAG_YOURSELF_TO_HELL()
1600
		elseif key == 'c' then
1601
			GIMME_THOSE()
1602
		end
1603
	end
1604
end)
1605
1606
 
1607
1608
1609
1610
1611
1612
-------------------------------------------------------
1613
--Start Animations--
1614
-------------------------------------------------------
1615
print("By Makhail07")
1616
while true do
1617
	swait()
1618
	sine = sine + change
1619
	local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
1620
	local velderp = root.Velocity.y
1621
	hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
1622
	if equipped == true or equipped == false then
1623
		if attack == false then
1624
			idle = idle + 1
1625
		else
1626
			idle = 0
1627
		end
1628
		if 1 < root.Velocity.y and hitfloor == nil then
1629
			Anim = "Jump"
1630
			if attack == false then
1631
				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)
1632
				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)
1633
				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)
1634
				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)
1635
				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)
1636
				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)
1637
			end
1638
		elseif -1 > root.Velocity.y and hitfloor == nil then
1639
			Anim = "Fall"
1640
			if attack == false then
1641
				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)
1642
				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)
1643
				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)
1644
				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)
1645
				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)
1646
				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)
1647
			end
1648
		elseif torvel < 1 and hitfloor ~= nil then
1649
			Anim = "Idle"
1650
			change = 1
1651
			if attack == false then
1652
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 12)) * angles(Rad(0), Rad(0), Rad(20)), 0.15)
1653
				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(-20)), 0.3)
1654
				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(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
1655
				LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
1656
				RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.05 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-76)), 0.1)
1657
				LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0.05 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(56)), 0.1)
1658
			end
1659
		elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
1660
			Anim = "Walk"
1661
			change = 1.1
1662
			if attack == false then
1663
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
1664
				tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
1665
				RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size)  * angles(Rad(-10 - 25 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
1666
         		LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 + 25 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
1667
				RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(37)  * Cos(sine / 7) , Rad(8 * Cos(sine / 7)), Rad(6) - ra.RotVelocity.Y / 75), 0.1)
1668
				LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-37)  * Cos(sine / 7) , Rad(8 * Cos(sine / 7)) ,	Rad(-6) + la.RotVelocity.Y / 75), 0.1)
1669
			end
1670
		elseif torvel >= 25 and hitfloor ~= nil then
1671
			Anim = "Sprint"
1672
			change = 1.35
1673
			if attack == false then
1674
			rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
1675
			tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
1676
			RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
1677
         	LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
1678
			RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(110)  * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
1679
			LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-110)  * Cos(sine / 7) , Rad(0) ,	Rad(-13) + la.RotVelocity.Y / 75), 0.15)
1680
			end
1681
		end
1682
	end
1683
	Music.SoundId = "rbxassetid://"..SONG
1684
	Music.Looped = true
1685
	Music.Pitch = 1
1686
	Music.Volume = 1.5
1687
	Music.Parent = tors
1688
	Music:Resume()
1689
	if 0 < #Effects then
1690
		for e = 1, #Effects do
1691
			if Effects[e] ~= nil then
1692
				local Thing = Effects[e]
1693
				if Thing ~= nil then
1694
					local Part = Thing[1]
1695
					local Mode = Thing[2]
1696
					local Delay = Thing[3]
1697
					local IncX = Thing[4]
1698
					local IncY = Thing[5]
1699
					local IncZ = Thing[6]
1700
					if 1 >= Thing[1].Transparency then
1701
						if Thing[2] == "Block1" then
1702
							Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1703
							local Mesh = Thing[1].Mesh
1704
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1705
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1706
						elseif Thing[2] == "Block2" then
1707
							Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
1708
							local Mesh = Thing[7]
1709
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1710
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1711
						elseif Thing[2] == "Block3" then
1712
							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)
1713
							local Mesh = Thing[7]
1714
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1715
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1716
						elseif Thing[2] == "Cylinder" then
1717
							local Mesh = Thing[1].Mesh
1718
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1719
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1720
						elseif Thing[2] == "Blood" then
1721
							local Mesh = Thing[7]
1722
							Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
1723
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1724
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1725
						elseif Thing[2] == "Elec" then
1726
							local Mesh = Thing[1].Mesh
1727
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
1728
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1729
						elseif Thing[2] == "Disappear" then
1730
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1731
						elseif Thing[2] == "Shatter" then
1732
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1733
							Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
1734
							Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
1735
							Thing[6] = Thing[6] + Thing[5]
1736
						end
1737
					else
1738
						Part.Parent = nil
1739
						table.remove(Effects, e)
1740
					end
1741
				end
1742
			end
1743
		end
1744
	end
1745
end
1746
-------------------------------------------------------
1747
--End Animations And Script--
1748
-------------------------------------------------------
1749
--------------------------------------------------------
1750
1751
        pls = game:GetService'Players'
1752
        rs = game:GetService'RunService'
1753
        uinps = game:GetService'UserInputService'
1754
        lp = pls.LocalPlayer
1755
        mouse = lp:GetMouse()
1756
        c = lp.Character
1757
        human = c.Humanoid
1758
        human.MaxHealth = 50
1759
        wait()
1760
        human.Health = 50
1761
        c.Health:Destroy()
1762
1763
--------------------------------------------------------
1764
1765
        Debounces = {
1766
                AnimationCycles = 0;
1767
                FPS = 0;
1768
                scalingDamage = false;
1769
                damageLevel = 0;
1770
                attackNumber = 0;
1771
                isAttacking = false;
1772
                isMoving = false;
1773
                isSprinting = false;
1774
                isBoosting = false;
1775
                isPassive = false;
1776
                isTyping = false;
1777
        }
1778
1779
--------------------------------------------------------
1780
1781
        numLerp = function(start, goal, alpha)
1782
                return(((goal - start) * alpha) + start)
1783
        end
1784
1785
        CFrameZero = function()
1786
                return CFrame.new(Vector3.new())
1787
        end
1788
1789
        rad = function(value)
1790
                return math.rad(value)
1791
        end
1792
1793
        CFAngles = function(Vector)
1794
                return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
1795
        end
1796
1797
--------------------------------------------------------
1798
1799
        AnimStat = {
1800
                lerpSpeed = .2;
1801
                lerpSpeed2 = .35;
1802
                lerpTween = 0;
1803
        }
1804
1805
        Joints = {
1806
                c.HumanoidRootPart.RootJoint;
1807
                c.Torso.Neck;
1808
                c.Torso['Left Shoulder'];
1809
                c.Torso['Right Shoulder'];
1810
                c.Torso['Left Hip'];
1811
                c.Torso['Right Hip'];
1812
        }
1813
1814
        JointTargets = {
1815
                CFrameZero();
1816
                CFrameZero();
1817
                CFrameZero();
1818
                CFrameZero();
1819
                CFrameZero();
1820
                CFrameZero();
1821
        }
1822
1823
--------------------------------------------------------
1824
1825
        prepareCharacter = function()
1826
                local transPoints = {
1827
                        NumberSequenceKeypoint.new(0,.819,.0375),
1828
                        NumberSequenceKeypoint.new(.207,.594,.0187),
1829
                        NumberSequenceKeypoint.new(.4,.55,.031),
1830
                        NumberSequenceKeypoint.new(.57,.619,.05),
1831
                        NumberSequenceKeypoint.new(.76,.8,.0375),
1832
                        NumberSequenceKeypoint.new(1,1,0),
1833
                }
1834
                local sizePoints = {
1835
                        NumberSequenceKeypoint.new(0,.687,0),
1836
                        NumberSequenceKeypoint.new(.111,.875,0),
1837
                        NumberSequenceKeypoint.new(.327,1.19,0),
1838
                        NumberSequenceKeypoint.new(.646,1.56,0),
1839
                        NumberSequenceKeypoint.new(.805,1.37,0),
1840
                        NumberSequenceKeypoint.new(.905,1.06,0),
1841
                        NumberSequenceKeypoint.new(.968,.938,0),
1842
                        NumberSequenceKeypoint.new(.984,1.13,0),
1843
                        NumberSequenceKeypoint.new(1,1.62,0),
1844
                }
1845
                local Size = NumberSequence.new(sizePoints)
1846
                local Transparency = NumberSequence.new(transPoints)
1847
                rayModel = Instance.new("Model",c)
1848
                efxBlock = Instance.new("Part",c)
1849
                efxBlock.BrickColor = BrickColor.new("Cyan")
1850
                efxBlock.Material = "Neon"
1851
                efxBlock.FormFactor = "Custom"
1852
                efxBlock.Transparency = .3
1853
                efxBlock.Size = Vector3.new(.3,.3,.3)
1854
                local mesh = Instance.new("SpecialMesh",efxBlock)
1855
                mesh.MeshType = Enum.MeshType.Sphere
1856
                mesh.Scale = Vector3.new(1,1,1)
1857
                light = Instance.new("PointLight",c.Head)
1858
                light.Range = 10
1859
                light.Color = Color3.new(0,200/255,1)
1860
                light.Shadows = false
1861
                local particles = Instance.new("ParticleEmitter",efxBlock)
1862
                particles.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255))
1863
                particles.LightEmission = .95
1864
                particles.Size = Size
1865
                particles.Name = "Fire"
1866
                particles.Transparency = Transparency
1867
                particles.LockedToPart = true
1868
                particles.VelocityInheritance = .5
1869
                particles.LockedToPart = true
1870
                particles.Rate = 70
1871
                particles.Texture = "rbxassetid://56561915"
1872
                particles.Lifetime = NumberRange.new(2,2)
1873
                particles.RotSpeed = NumberRange.new(100,100)
1874
                particles.Speed = NumberRange.new(7,7)
1875
                script.Parent = efxBlock
1876
                fire = particles
1877
                local offset = Vector3.new(-0.11, .23, -0.5)
1878
                local weld = Instance.new("Weld",c.Head)
1879
                weld.Part0 = c.Head
1880
                weld.Part1 = efxBlock
1881
                weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
1882
                efxBlock.Parent = c
1883
                local music = Instance.new("Sound",c)
1884
                music.SoundId = "rbxassetid://316012176"
1885
                music.Looped = true
1886
                music.Volume = 0
1887
                fight = music
1888
                pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
1889
                pointGyro.P = 1e7
1890
                pointGyro.D = 1e3
1891
                pointGyro.MaxTorque = Vector3.new(0,1e7,0)
1892
                animator = c.Humanoid:FindFirstChild("Animator")
1893
                if animator then
1894
                        animator:Destroy()
1895
                end
1896
                c.Torso.roblox:Destroy()
1897
                for i,v in pairs (c.Head:children()) do
1898
                        if v.ClassName == "Sound" then
1899
                                v:Destroy()
1900
                        end
1901
                end
1902
                for i = 1,#Joints do
1903
                        Joints[i].C1 = CFrame.new(Vector3.new())
1904
                end
1905
                human.WalkSpeed = 120
1906
                human.JumpPower = 120
1907
        end
1908
1909
        uinps.InputBegan:connect(function(InputObject)
1910
                if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
1911
                        Debounces.isPassive = not Debounces.isPassive
1912
                end
1913
        end)
1914
1915
        setJointCFrames = function(table)
1916
                for i = 1,#table do
1917
                        JointTargets[i] = table[i]
1918
                end
1919
                AnimationCycles = 0
1920
        end
1921
1922
        setLerp = function(speed)
1923
                AnimStat.lerpSpeed = speed
1924
        end
1925
1926
        setTween = function(tween)
1927
                AnimStat.lerpTween = tween
1928
        end
1929
1930
        takeDamage = function(position,damage,distance,platformStand)
1931
                for i,v in pairs (pls:children()) do
1932
                        if v.ClassName == "Player" and v:FindFirstChild("Character") then
1933
                                local torso = v.Character:FindFirstChild("Torso")
1934
                                if torso and (torso.Position - position).magnitude < distance then
1935
                                        v.Character.Humanoid:TakeDamage(damage)
1936
                                        if platformStand == true then
1937
                                                v.Character.PlatformStand = platformStand
1938
                                        end
1939
                                end
1940
                        end
1941
                end
1942
        end
1943
1944
--------------------------------------------------------
1945
1946
        prepareCharacter()
1947
1948
--------------------------------------------------------
1949
1950
        spawn(function()
1951
                local sine = 0
1952
                while wait() do
1953
                        pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
1954
                        if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
1955
                                setLerp(.1)
1956
                                if Debounces.isPassive == true then
1957
                                        setJointCFrames({
1958
                                                CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0));
1959
                                                CFrame.new(Vector3.new(-0.001, 1.52 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(-10.861 + math.sin((-tick() + 2) * 1.5) * 5, 13.765, -1.658));
1960
                                                CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0));
1961
                                                CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15));
1962
                                                CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489));
1963
                                                CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001));
1964
                                        })
1965
                                else
1966
                                        setJointCFrames({
1967
                                                CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
1968
                                                CFrame.new(Vector3.new(0, 1.5 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(1.554 + math.sin((-tick() + 2) * 1.5) * 5, -0.001, -0.001));
1969
                                                CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
1970
                                                CFrame.new(Vector3.new(1.059, -0.031 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, -3.842, -29.511));
1971
                                                CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
1972
                                                CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
1973
                                        })
1974
                                end
1975
                        elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
1976
                                sine = sine + math.rad(12)
1977
                                human.WalkSpeed = 15
1978
                                setLerp(.15)
1979
                                setJointCFrames({
1980
                                        CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
1981
                                        CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
1982
                                        CFrame.new(Vector3.new(-1.97, 0 + math.sin(sine + .5)/20, 0.1 + math.sin(-sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(sine) * 23, 0, 0));
1983
                                        CFrame.new(Vector3.new(1.97, 0 - math.sin(sine + .5)/20, 0.1 + math.sin(sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(-sine) * 23, 0, 0));
1984
                                        CFrame.new(Vector3.new(-0.5, -1.93 - math.cos(sine)/8.7, 0.2 + math.sin(sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(-sine) * 30, 0, 0));
1985
                                        CFrame.new(Vector3.new(0.5, -1.93 + math.cos(sine)/8.7, 0.2 + math.sin(-sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(sine) * 30, 0, 0));
1986
                                })
1987
                        end
1988
                        if Debounces.scalingDamage == true then
1989
                                takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
1990
                        end
1991
                end
1992
        end)
1993
1994
        human.Changed:connect(function(prop)
1995
                if prop == "MoveDirection" then
1996
                        if human.MoveDirection.magnitude > .02 then
1997
                                Debounces.isMoving = true
1998
                        else
1999
                                Debounces.isMoving = false
2000
                        end
2001
                end
2002
        end)
2003
2004
        uinps.InputBegan:connect(function(InputObject)
2005
                if InputObject.KeyCode == Enum.KeyCode.A and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
2006
                        Debounces.isBoosting = true
2007
                        Debounces.damageLevel = 10
2008
                        Debounces.scalingDamage = true
2009
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
2010
                        setLerp(.15)
2011
                        setJointCFrames({
2012
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
2013
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
2014
                                CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
2015
                                CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
2016
                                CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
2017
                                CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
2018
                        })
2019
                        local boostSpeed = 250
2020
                        local efx = Instance.new("Sound",c.Head)
2021
                        efx.SoundId = "rbxassetid://200632875"
2022
                        efx.Pitch = math.random(1100,1300)/1000
2023
                        efx.Volume = .5
2024
                        efx:Play()
2025
                        spawn(function()
2026
                                wait(5)
2027
                                efx:Destroy()
2028
                        end)
2029
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
2030
                        vel.P = 1e3
2031
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
2032
                        wait(.15)
2033
                        vel.P = 1000
2034
                        vel.MaxForce = Vector3.new(3000,0,3000)
2035
                        vel.Velocity = Vector3.new()
2036
                        wait(.3)
2037
                        setLerp(.3)
2038
                        setJointCFrames({
2039
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
2040
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
2041
                                CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
2042
                                CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
2043
                                CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
2044
                                CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
2045
                        })
2046
                        wait(.2)
2047
                        vel:Destroy()
2048
                        Debounces.damageLevel = 0
2049
                        Debounces.scalingDamage = false
2050
                        Debounces.isBoosting = false
2051
                end
2052
        end)
2053
2054
        uinps.InputBegan:connect(function(InputObject)
2055
                if InputObject.KeyCode == Enum.KeyCode.D and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
2056
                        Debounces.isBoosting = true
2057
                        Debounces.damageLevel = 10
2058
                        Debounces.scalingDamage = true
2059
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
2060
                        setLerp(.15)
2061
                        setJointCFrames({
2062
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
2063
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
2064
                                CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
2065
                                CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
2066
                                CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
2067
                                CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
2068
                        })
2069
                        local boostSpeed = 250
2070
                        local efx = Instance.new("Sound",c.Head)
2071
                        efx.SoundId = "rbxassetid://200632875"
2072
                        efx.Pitch = math.random(1100,1300)/1000
2073
                        efx.Volume = .5
2074
                        efx:Play()
2075
                        spawn(function()
2076
                                wait(5)
2077
                                efx:Destroy()
2078
                        end)
2079
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
2080
                        vel.P = 1e3
2081
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
2082
                        wait(.15)
2083
                        vel.P = 1000
2084
                        vel.MaxForce = Vector3.new(3000,0,3000)
2085
                        vel.Velocity = Vector3.new()
2086
                        wait(.3)
2087
                        setLerp(.3)
2088
                        setJointCFrames({
2089
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
2090
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
2091
                                CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
2092
                                CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
2093
                                CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
2094
                                CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
2095
                        })
2096
                        wait(.2)
2097
                        vel:Destroy()
2098
                        Debounces.damageLevel = 0
2099
                        Debounces.scalingDamage = false
2100
                        Debounces.isBoosting = false
2101
                end
2102
        end)
2103
2104
        uinps.InputBegan:connect(function(InputObject)
2105
                if InputObject.KeyCode == Enum.KeyCode.W and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
2106
                        Debounces.isBoosting = true
2107
                        Debounces.damageLevel = 10
2108
                        Debounces.scalingDamage = true
2109
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
2110
                        setLerp(.15)
2111
                        setJointCFrames({
2112
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
2113
                                CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
2114
                                CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
2115
                                CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
2116
                                CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
2117
                                CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
2118
                        })
2119
                        local boostSpeed = 250
2120
                        local efx = Instance.new("Sound",c.Head)
2121
                        efx.SoundId = "rbxassetid://200632875"
2122
                        efx.Pitch = math.random(1100,1300)/1000
2123
                        efx.Volume = .5
2124
                        efx:Play()
2125
                        spawn(function()
2126
                                wait(5)
2127
                                efx:Destroy()
2128
                        end)
2129
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
2130
                        vel.P = 1e3
2131
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
2132
                        wait(.15)
2133
                        vel.P = 1000
2134
                        vel.MaxForce = Vector3.new(3000,0,3000)
2135
                        vel.Velocity = Vector3.new()
2136
                        wait(.3)
2137
                        setLerp(.3)
2138
                        setJointCFrames({
2139
                                CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
2140
                                CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
2141
                                CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
2142
                                CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
2143
                                CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
2144
                                CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
2145
                        })
2146
                        wait(.2)
2147
                        vel:Destroy()
2148
                        Debounces.damageLevel = 0
2149
                        Debounces.scalingDamage = false
2150
                        Debounces.isBoosting = false
2151
                end
2152
        end)
2153
2154
        uinps.InputBegan:connect(function(InputObject)
2155
                if InputObject.KeyCode == Enum.KeyCode.S and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
2156
                        Debounces.isBoosting = true
2157
                        Debounces.damageLevel = 10
2158
                        Debounces.scalingDamage = true
2159
                        local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
2160
                        setLerp(.15)
2161
                        setJointCFrames({
2162
                                CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
2163
                                CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
2164
                                CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
2165
                                CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
2166
                                CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
2167
                                CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
2168
                        })
2169
                        local boostSpeed = 150
2170
                        local boostSpeed = 250
2171
                        local efx = Instance.new("Sound",c.Head)
2172
                        efx.SoundId = "rbxassetid://200632875"
2173
                        efx.Pitch = math.random(1100,1300)/1000
2174
                        efx.Volume = .5
2175
                        efx:Play()
2176
                        spawn(function()
2177
                                wait(5)
2178
                                efx:Destroy()
2179
                        end)
2180
                        vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
2181
                        vel.P = 1e3
2182
                        vel.MaxForce = Vector3.new(math.huge,0,math.huge)
2183
                        wait(.15)
2184
                        vel.P = 1000
2185
                        vel.MaxForce = Vector3.new(3000,0,3000)
2186
                        vel.Velocity = Vector3.new()
2187
                        wait(.3)
2188
                        setLerp(.3)
2189
                        setJointCFrames({
2190
                                CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
2191
                                CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
2192
                                CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
2193
                                CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
2194
                                CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
2195
                                CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
2196
                        })
2197
                        wait(.2)
2198
                        vel:Destroy()
2199
                        Debounces.damageLevel = 0
2200
                        Debounces.scalingDamage = false
2201
                        Debounces.isBoosting = false
2202
                end
2203
        end)
2204
2205
        uinps.InputBegan:connect(function(InputObject)
2206
                if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
2207
                        local isLooping = true
2208
                        uinps.InputEnded:connect(function(InputObject2)
2209
                                if InputObject2.KeyCode == Enum.KeyCode.Q then
2210
                                        isLooping = false
2211
                                end
2212
                        end)
2213
                        while true do
2214
                                if isLooping == false then
2215
                                        break
2216
                                end
2217
                                Debounces.attackNumber = Debounces.attackNumber + 1
2218
                                local aimPos = mouse.Hit.p
2219
                                local head = Instance.new("Part",c)
2220
                                head.Size = Vector3.new(12,.2,12)
2221
                                head.CanCollide = false
2222
                                head.Anchored = true
2223
                                head.Transparency = 1
2224
                                for i = 1,2 do
2225
                                        local decal = Instance.new("Decal",head)
2226
                                        decal.Texture = "rbxassetid://323497117"
2227
                                        if i == 1 then
2228
                                                decal.Face = Enum.NormalId.Top
2229
                                        else
2230
                                                decal.Face = Enum.NormalId.Bottom
2231
                                        end
2232
                                end
2233
                                if Debounces.attackNumber%2 == 1 then
2234
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
2235
                                else
2236
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
2237
                                end
2238
                                spawn(function()
2239
                                        local timer = 0
2240
                                        while rs.RenderStepped:wait() do
2241
                                                if timer >= 1.55 then
2242
                                                        break
2243
                                                end
2244
                                                head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
2245
                                                timer = timer + 1/30/(Debounces.FPS/60)
2246
                                        end
2247
                                        head.CFrame = CFrame.new(head.CFrame.p,aimPos)
2248
                                        local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
2249
                                        local hit, pos = workspace:FindPartOnRay(ray,c)
2250
                                        local dis = (head.CFrame.p - pos).magnitude
2251
                                        local rayPart = Instance.new("Part",rayModel)
2252
                                        rayPart.Material = "Neon"
2253
                                        rayPart.FormFactor = "Custom"
2254
                                        rayPart.BrickColor = BrickColor.new(1,1,1)
2255
                                        rayPart.Anchored = true
2256
                                        rayPart.CanCollide = false
2257
                                        rayPart.Size = Vector3.new(7,7,dis + 400)
2258
                                        local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2)
2259
                                        rayPart.CFrame = rayCFrame
2260
                                        head:Destroy()
2261
                                end)
2262
                                wait()
2263
                                local s = Instance.new("Sound",head)
2264
                                s.Volume = 1
2265
                                s.SoundId = "rbxassetid://332223043"
2266
                                s:Play()
2267
                                wait(.04)
2268
                        end
2269
                end
2270
        end)
2271
2272
        uinps.InputBegan:connect(function(InputObj)
2273
                if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
2274
                        Debounces.isAttacking = true
2275
                        local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
2276
                        local head = Instance.new("Part",c)
2277
                        head.Size = Vector3.new(18,.2,18)
2278
                        head.CanCollide = false
2279
                        head.Anchored = true
2280
                        head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
2281
                        head.Transparency = 1
2282
                        for i = 1,2 do
2283
                                local decal = Instance.new("Decal",head)
2284
                                decal.Texture = "rbxassetid://323497117"
2285
                                if i == 1 then
2286
                                        decal.Face = Enum.NormalId.Top
2287
                                else
2288
                                        decal.Face = Enum.NormalId.Bottom
2289
                                end
2290
                        end
2291
                        setLerp(.1)
2292
                        setJointCFrames({
2293
                                CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
2294
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
2295
                                CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
2296
                                CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
2297
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
2298
                                CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
2299
                        })
2300
                        spawn(function()
2301
                                local timer = 0
2302
                                while rs.RenderStepped:wait() do
2303
                                        if timer >= 1.55/.8 then
2304
                                                break
2305
                                        end
2306
                                        head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
2307
                                        timer = timer + 1/30/(Debounces.FPS/60)
2308
                                end
2309
                                head.CFrame = CFrame.new(head.CFrame.p,aimPos)
2310
                                local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
2311
                                local hit, pos = workspace:FindPartOnRay(ray,c)
2312
                                local dis = (head.CFrame.p - pos).magnitude
2313
                                local rayPart = Instance.new("Part",rayModel)
2314
                                rayPart.Material = "Neon"
2315
                                rayPart.FormFactor = "Custom"
2316
                                rayPart.Name = "Punch"
2317
                                rayPart.BrickColor = BrickColor.new(1,1,1)
2318
                                rayPart.Anchored = true
2319
                                rayPart.CanCollide = false
2320
                                rayPart.Size = Vector3.new(28,28,dis + 400)
2321
                                local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2)
2322
                                rayPart.CFrame = rayCFrame
2323
                                head:Destroy()
2324
                        end)
2325
                        wait()
2326
                        local s = Instance.new("Sound",head)
2327
                        s.Volume = 1
2328
                        s.SoundId = "rbxassetid://332223043"
2329
                        s.Pitch = .8
2330
                        s:Play()
2331
                        wait(.75)
2332
                        setLerp(.17)
2333
                        setJointCFrames({
2334
                                CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
2335
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
2336
                                CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
2337
                                CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
2338
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
2339
                                CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
2340
                        })
2341
                        wait(.5)
2342
                        Debounces.isAttacking = false
2343
                end
2344
        end)
2345
        
2346
        reflect = function(d,n)
2347
                local i, n = -1 * d.unit, n.unit
2348
                local dot = n:Dot(i)
2349
                return 2*dot*n - i
2350
        end
2351
2352
        makeReflectionBeam = function(pos,look,isCrit)
2353
                local ray = Ray.new(pos,look)
2354
                local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
2355
                local e = Instance.new("Part",rayModel)
2356
                e.Anchored = true
2357
                e.CanCollide = false
2358
                e.BrickColor = BrickColor.new("White")
2359
                e.Material = "Neon"
2360
                e.FormFactor = "Custom"
2361
                e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
2362
                if isCrit == true then
2363
                        e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
2364
                        e.Name = "Punch"
2365
                end
2366
                e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
2367
                local e = Instance.new("Sound",c)
2368
                if isCrit == true then
2369
                        e.Volume = .5
2370
                else
2371
                        e.Volume = .3
2372
                        e.Pitch = 1.5
2373
                end
2374
                e.SoundId = "rbxassetid://200632875"
2375
                e:Play()
2376
                spawn(function()
2377
                        wait(6)
2378
                        e:Destroy()
2379
                end)
2380
                wait(.05)
2381
                if hit ~= nil then
2382
                        newDir = reflect(look.unit,norm,isCrit)
2383
                        makeReflectionBeam(hitpos,newDir * 999,isCrit)
2384
                end
2385
        end
2386
2387
        uinps.InputBegan:connect(function(InputObject)
2388
                if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
2389
                        local isLooping = true
2390
                        uinps.InputEnded:connect(function(InputObject2)
2391
                                if InputObject2.KeyCode == Enum.KeyCode.Q then
2392
                                        isLooping = false
2393
                                end
2394
                        end)
2395
                        while true do
2396
                                if isLooping == false then
2397
                                        break
2398
                                end
2399
                                Debounces.attackNumber = Debounces.attackNumber + 1
2400
                                local aimPos = mouse.Hit.p
2401
                                local head = Instance.new("Part",c)
2402
                                head.Size = Vector3.new(12,.2,12)
2403
                                head.CanCollide = false
2404
                                head.Anchored = true
2405
                                head.Transparency = 1
2406
                                for i = 1,2 do
2407
                                        local decal = Instance.new("Decal",head)
2408
                                        decal.Texture = "rbxassetid://323497117"
2409
                                        if i == 1 then
2410
                                                decal.Face = Enum.NormalId.Top
2411
                                        else
2412
                                                decal.Face = Enum.NormalId.Bottom
2413
                                        end
2414
                                end
2415
                                if Debounces.attackNumber%2 == 1 then
2416
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
2417
                                else
2418
                                        head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
2419
                                end
2420
                                spawn(function()
2421
                                        local timer = 0
2422
                                        while rs.RenderStepped:wait() do
2423
                                                if timer >= 1.55 then
2424
                                                        break
2425
                                                end
2426
                                                head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
2427
                                                timer = timer + 1/30/(Debounces.FPS/60)
2428
                                        end
2429
                                        head.CFrame = CFrame.new(head.CFrame.p,aimPos)
2430
                                        head:Destroy()
2431
                                        makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)        
2432
                                end)
2433
                                
2434
                                wait()
2435
                                local s = Instance.new("Sound",head)
2436
                                s.Volume = 1
2437
                                s.SoundId = "rbxassetid://332223043"
2438
                                s.Pitch = 1.02
2439
                                s:Play()
2440
                                wait(.2)
2441
                        end
2442
                end
2443
        end)
2444
2445
        uinps.InputBegan:connect(function(InputObj)
2446
                if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
2447
                        Debounces.isAttacking = true
2448
                        local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
2449
                        local head = Instance.new("Part",c)
2450
                        head.Size = Vector3.new(18,.2,18)
2451
                        head.CanCollide = false
2452
                        head.Anchored = true
2453
                        head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
2454
                        head.Transparency = 1
2455
                        for i = 1,2 do
2456
                                local decal = Instance.new("Decal",head)
2457
                                decal.Texture = "rbxassetid://323497117"
2458
                                if i == 1 then
2459
                                        decal.Face = Enum.NormalId.Top
2460
                                else
2461
                                        decal.Face = Enum.NormalId.Bottom
2462
                                end
2463
                        end
2464
                        setLerp(.1)
2465
                        setJointCFrames({
2466
                                CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
2467
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
2468
                                CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
2469
                                CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
2470
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
2471
                                CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
2472
                        })
2473
                        spawn(function()
2474
                                local timer = 0
2475
                                while rs.RenderStepped:wait() do
2476
                                        if timer >= 1.55/.8 then
2477
                                                break
2478
                                        end
2479
                                        head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
2480
                                        timer = timer + 1/30/(Debounces.FPS/60)
2481
                                end
2482
                                head.CFrame = CFrame.new(head.CFrame.p,aimPos)
2483
                                head:Destroy()
2484
                                makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
2485
                        end)
2486
                        wait()
2487
                        local s = Instance.new("Sound",head)
2488
                        s.Volume = 2
2489
                        s.SoundId = "rbxassetid://332223043"
2490
                        s.Pitch = .8
2491
                        s:Play()
2492
                        wait(.75)
2493
                        setLerp(.17)
2494
                        setJointCFrames({
2495
                                CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
2496
                                CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
2497
                                CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
2498
                                CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
2499
                                CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
2500
                                CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
2501
                        })
2502
                        wait(.5)
2503
                        Debounces.isAttacking = false
2504
                end
2505
        end)
2506
2507
        uinps.InputBegan:connect(function(InputObj)
2508
                if InputObj.KeyCode == Enum.KeyCode.Slash then
2509
                        local finishEvent = nil
2510
                        Debounces.isTyping = true
2511
                        finishEvent = uinps.InputBegan:connect(function(InputObj)
2512
                                if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
2513
                                        Debounces.isTyping = false
2514
                                        finishEvent:disconnect()
2515
                                end
2516
                        end)
2517
                end
2518
        end)
2519
2520
        uinps.InputBegan:connect(function(InputObj)
2521
                if InputObj.KeyCode == Enum.KeyCode.LeftShift then
2522
                        Debounces.isSprinting = true
2523
                end
2524
        end)
2525
2526
        uinps.InputEnded:connect(function(InputObj)
2527
                if InputObj.KeyCode == Enum.KeyCode.LeftShift then
2528
                        Debounces.isSprinting = false
2529
                end
2530
        end)
2531
2532
        rs.RenderStepped:connect(function()
2533
                Debounces.FPS = 1/rs.RenderStepped:wait()
2534
                local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
2535
                if Debounces.isPassive == false then
2536
                        fire.Enabled = false
2537
                        light.Range = 0
2538
                        fight:Pause()
2539
                        sans:Resume()
2540
                        efxBlock.Transparency = 1
2541
                else
2542
                        fire.Enabled = true
2543
                        light.Range = 10
2544
                        fight:Resume()
2545
                        sans:Pause()
2546
                        efxBlock.Transparency = 0
2547
                end
2548
                for i,v in pairs (rayModel:children()) do
2549
                        if v.Transparency >= 1 then
2550
                                v:Destroy()
2551
                        else
2552
                                v.CanCollide = true
2553
                                local parts = v:GetTouchingParts()
2554
                                v.CanCollide = false
2555
                                for i = 1,#parts do
2556
                                        if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
2557
                                                parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
2558
                                        elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
2559
                                                parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
2560
                                        end
2561
                                end
2562
                                v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
2563
                                v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
2564
                        end
2565
                end
2566
                for i = 1,#Joints do
2567
                        Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
2568
                end
2569
                local sineval = math.sin(tick() * 2) * 3
2570
                fire.Acceleration = Vector3.new(sineval,1,sineval)
2571
                light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
2572
        end)