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