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