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