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