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