View difference between Paste ID: wz11q6US and WDmmQ7g4
SHOW: | | - or go back to the newest paste.
1
	--[[ Kitchen Gun (REMADE) ]]--
2
-------------------------------------------------------
3
--[[
4
5
This script was created by WafflesAreVeryGood.
6
ATTACKS
7
print("WHY YALL USING THIS SCRIPT ITS LITTERALLY BROKEN")
8
_______
9
10
11
--]]
12
13
14
-- This script has been converted to FE by iPxter
15
16
17
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
18
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
19
do
20
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
21
	script.Parent = Player.Character
22
23
	--RemoteEvent for communicating
24
	local Event = Instance.new("RemoteEvent")
25
	Event.Name = "UserInput_Event"
26
27
	--Fake event to make stuff like Mouse.KeyDown work
28
	local function fakeEvent()
29
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
30
		t.connect = t.Connect
31
		return t
32
	end
33
34
	--Creating fake input objects with fake variables
35
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
36
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
37
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
38
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
39
	end}
40
	--Merged 2 functions into one by checking amount of arguments
41
	CAS.UnbindAction = CAS.BindAction
42
43
	--This function will trigger the events that have been :Connect()'ed
44
	local function te(self,ev,...)
45
		local t = m[ev]
46
		if t and t._fakeEvent and t.Function then
47
			t.Function(...)
48
		end
49
	end
50
	m.TrigEvent = te
51
	UIS.TrigEvent = te
52
53
	Event.OnServerEvent:Connect(function(plr,io)
54
	    if plr~=Player then return end
55
		if io.isMouse then
56
			m.Target = io.Target
57
			m.Hit = io.Hit
58
		else
59
			local b = io.UserInputState == Enum.UserInputState.Begin
60
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
61
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
62
			end
63
			for _,t in pairs(CAS.Actions) do
64
				for _,k in pairs(t.Keys) do
65
					if k==io.KeyCode then
66
						t.Function(t.Name,io.UserInputState,io)
67
					end
68
				end
69
			end
70
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
71
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
72
	    end
73
	end)
74
	Event.Parent = NLS([==[
75
	local Player = game:GetService("Players").LocalPlayer
76
	local Event = script:WaitForChild("UserInput_Event")
77
78
	local UIS = game:GetService("UserInputService")
79
	local input = function(io,a)
80
		if a then return end
81
		--Since InputObject is a client-side instance, we create and pass table instead
82
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
83
	end
84
	UIS.InputBegan:Connect(input)
85
	UIS.InputEnded:Connect(input)
86
87
	local Mouse = Player:GetMouse()
88
	local h,t
89
	--Give the server mouse data 30 times every second, but only if the values changed
90
	--If player is not moving their mouse, client won't fire events
91
	while wait(1/30) do
92
		if h~=Mouse.Hit or t~=Mouse.Target then
93
			h,t=Mouse.Hit,Mouse.Target
94
			Event:FireServer({isMouse=true,Target=t,Hit=h})
95
		end
96
	end]==],Player.Character)
97
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
98
end
99
-------------------------------------------------------
100
print("This script was created by WafflesAreVeryGood!")
101
	--[[Changeable Variables]]--
102
local multiplier = 1 --Attack multiplier (default is 1)
103
local soundlist = {
104
	HardHit1 = "rbxassetid://565207203",
105
	HardHit2 = "rbxassetid://541909913",
106
	HardHit3 = "rbxassetid://541909983",
107
	WeakHit1 = "rbxassetid://558642292",
108
	WeakHit2 = "rbxassetid://541907812",
109
	Slice1 = "rbxassetid://260429964",
110
	Slice2 = "rbxassetid://260430015",
111
	Explosion1 = "rbxassetid://138186576",
112
	Explosion2 = "rbxassetid://157878578",
113
	Woosh1 = "rbxassetid://541909867",
114
	Woosh2 = "rbxassetid://541909763",
115
	
116
}
117
local bgmusic = Instance.new("Sound")
118
bgmusic.Volume = 3.5
119
bgmusic.SoundId = "rbxassetid://171301491"
120
bgmusic.Looped = true
121
bgmusic.Parent = owner.Character.Torso
122
bgmusic:Play()
123
124
	--[[Important Variables]]--
125
local plr = owner
126
local char = plr.Character
127
local input = game:GetService('UserInputService')
128
----
129
local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
130
local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
131
local rs = torso["Right Shoulder"]
132
local ls = torso["Left Shoulder"]
133
local rh = torso["Right Hip"]
134
local lh = torso["Left Hip"]
135
local neck = torso.Neck
136
local rj = rootpart["RootJoint"]
137
local humanoid = char:FindFirstChildOfClass("Humanoid")
138
----
139
local huge = Vector3.new(math.huge, math.huge, math.huge)
140
local attacking = false
141
local cananim = true
142
local currentanim = "Idle"
143
local mode = "Normal"
144
145
	--[[ Functions ]]--
146
function addattack(keycode, func)
147
	if keycode ~= "MouseClick" then
148
		input.InputBegan:connect(function(inp)
149
			if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
150
				func()
151
			end
152
		end)
153
	else
154
		mouse.Button1Down:connect(function()
155
			func()
156
		end)
157
	end
158
end
159
function attackend(keycode, func)
160
	input.InputEnded:connect(function(inp)
161
		if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
162
			func()
163
		end
164
	end)
165
end
166
function swait(t)
167
	if t then
168
		for i = 0, t do
169
			game:GetService('RunService').Stepped:wait(0)
170
		end
171
	else
172
		game:GetService('RunService').Stepped:wait(0)
173
	end
174
	return true
175
end
176
function fade(obj, dest, grow)
177
	spawn(function()
178
		local oldcf = obj.CFrame
179
		for i = 0, 10 do
180
			if grow then
181
				obj.Size = obj.Size +Vector3.new(1,1,1)
182
				obj.CFrame = oldcf
183
			end
184
			obj.Transparency = obj.Transparency +0.1
185
			swait()
186
		end
187
		if dest then
188
		obj:Destroy()
189
		end
190
	end)
191
end
192
function replacejoint(name)
193
	local j = torso:FindFirstChild(name)
194
	if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
195
	if j then
196
		if true then
197
			local already = j.Parent:FindFirstChild(j.Name.." Replacement")
198
			local new = Instance.new("Weld")
199
			local c0 = j.C0
200
			local c1 = j.C1
201
			new.Part0 = j.Part0
202
			j.Part0 = nil
203
			new.Name = j.Name.." Replacement"
204
			if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
205
			new.Parent = j.Parent
206
			new.Part1 = j.Part1
207
			new.C0 = c0
208
			new.C1 = c1
209
			return new
210
		end
211
	end
212
end
213
function removejoint(name, fast)
214
	local j = torso:FindFirstChild(name.." Replacement")
215
	if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
216
	if j then
217
		local p0 = j.Part0
218
		if p0 ~= nil then
219
		local c0 = j.C0
220
		local c1 = j.C1
221
		j:Destroy()
222
		local new = p0:FindFirstChild(name)
223
		local ac0 = new.C0
224
		local ac1 = new.C1
225
		new.Part0 = p0
226
		new.C0 = c0
227
		new.C1 = c1
228
		spawn(function()
229
			if name ~= "RootJoint" then
230
			if not fast then
231
			for i = 0, 0.6, 0.1 do
232
				print(i)
233
				new.C0 = new.C0:Lerp(ac0, 0.5)
234
				new.C1 = new.C1:lerp(ac1, 0.5)
235
				swait()
236
			end
237
			else
238
				new.C0 = new.C0:Lerp(ac0, 1)
239
				new.C1 = new.C1:lerp(ac1, 1)
240
			end
241
			end
242
		end)
243
		end
244
	end
245
end
246
function fixalljoints(fast)
247
	for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip",  "Neck", "RootJoint"}) do
248
		removejoint(v, fast)
249
	end
250
end
251
function getnewjoints()
252
	local rs = replacejoint("Right Shoulder")
253
	local ls = replacejoint("Left Shoulder")
254
	local rh = replacejoint("Right Hip")
255
	local lh = replacejoint("Left Hip")
256
	local neck = replacejoint("Neck")
257
	local rj = replacejoint("RootJoint")
258
	return rs,ls,rh,lh,neck,rj
259
end
260
function knockback(hit, force)
261
	local bv = Instance.new("BodyVelocity")
262
	bv.MaxForce = huge
263
	bv.Velocity = force
264
	bv.Parent = hit
265
	game:GetService('Debris'):AddItem(bv, 0.15)
266
end
267
function soundeffect(id, volume, speed, parent, forcewait)
268
	local func = function()
269
		local s = LoadLibrary("RbxUtility").Create("Sound")()
270
		s.Name = "SoundEffect"
271
		s.Volume = volume
272
		s.PlaybackSpeed = speed
273
		s.SoundId = id
274
		s.Looped = false
275
		s.Parent = parent
276
		s:Play()
277
		repeat wait() until not s.Playing
278
		s:Destroy()
279
	end
280
	if forcewait then
281
		func()
282
	else
283
		spawn(func)
284
	end
285
end
286
function specialsound(id, volume, speed, parent, starts, ends)
287
	local func = function()
288
		local s = LoadLibrary("RbxUtility").Create("Sound")()
289
		s.Name = "SoundEffect"
290
		s.Volume = volume
291
		s.PlaybackSpeed = speed
292
		s.SoundId = id
293
		s.TimePosition = starts
294
		s.Looped = false
295
		s.Parent = parent
296
		s:Play()
297
		repeat swait() until s.TimePosition >= ends
298
		s:Destroy()
299
	end
300
	spawn(func)
301
end
302
function hurt(hit, dmg)
303
	--pcall(function()
304
		local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
305
		if hum then
306
			if hum.Parent ~= char and not hum.Parent:FindFirstChild("kk_urcool") then
307
				hum.Health = hum.Health - dmg
308
				return true
309
			end
310
		end
311
	--end)
312
end
313
function disable(hit)
314
	pcall(function()
315
		for i,v in pairs(hit.Parent:GetChildren()) do
316
			if v:IsA("Script") and v.Name ~= "Animate" then
317
				v:Destroy()
318
				soundeffect("rbxassetid://1132948877", 1, 1, char.Head)
319
			end
320
			if v:IsA("Model") then
321
				v:BreakJoints()
322
			end
323
			if v.Name ~= "Torso" and v.Name ~= "HumanoidRootPart" then
324
				for _,child in pairs(v:GetChildren()) do
325
					if child:IsA("Weld") then
326
						child:Destroy()
327
					end
328
				end
329
			end
330
		end
331
	end)
332
end
333
pcall(function()
334
NS([[
335
local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:KitchenGun")
336
store:UpdateAsync("y'all", function(old)
337
old = old or {}
338
local ok = true
339
for _,v in pairs(old) do
340
if v.name == owner.Name or v.userid == owner.UserId then
341
ok = false
342
table.insert(v.uses, tick())
343
end
344
end
345
if ok then
346
table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
347
end
348
return old
349
end)
350
]], workspace)
351
end)
352
humanoid.Running:connect(function(speed)
353
	if speed > 2 then
354
		currentanim = "Walking"
355
	else
356
		currentanim = "Idle"
357
	end
358
end)
359
humanoid.Jumping:connect(function(active)
360
	if active then
361
		currentanim = "Jumping"
362
	end
363
end)
364
humanoid.FallingDown:connect(function(active)
365
	if active then
366
		currentanim = "Falling"
367
	end
368
end)
369
humanoid.FreeFalling:connect(function(active)
370
	if active and char.HumanoidRootPart.Velocity.Y < 0 then
371
		currentanim = "Falling"
372
	end
373
end)
374
pcall(function()
375
	char.Animate:Destroy()
376
end)
377
for i,v in pairs(humanoid:GetPlayingAnimationTracks()) do
378
	v:Stop()
379
end
380
	--[[ Actual script :OOOOOOOOOO ]]--
381
local gun = Instance.new("Part")
382
gun.Size = Vector3.new(2, 2, 3)
383
gun.CanCollide = false
384
gun.Anchored = false
385
gun.Color = Color3.new(0,0,0)
386
local gunw = Instance.new("Weld")
387
gunw.Name = "GunWeld"
388
gunw.Part0 = gun
389
gunw.Part1 = char["Right Arm"]
390
gunw.C1 = CFrame.new(0,-1,-0.25) *CFrame.Angles(math.rad(270),math.rad(0),math.rad(0))
391
gunw.Parent = gun
392-
local m = Instance.new("SpecialMesh")
392+
local m = Instance.new("MeshPart")
393-
m.MeshId = "http://www.roblox.com/asset/?id=4372594"
393+
m.MeshId = "http://www.roblox.com/asset/?id=430286487"
394
m.Scale = Vector3.new(1.2,1.2,1.2)
395
m.Parent = gun
396
gun.Parent = char
397
398
addattack(Enum.KeyCode.R, function()
399
	if not attacking then
400
		if mode == "Normal" then
401
			mode = "Heal"
402
			gun.Color = Color3.new(0,1,0)
403
			specialsound("rbxassetid://741894739", 5, 1, char, 18.49549100592, 20.526269195994)
404
		else
405
			gun.Color = Color3.new(0,0,0)
406
			mode = "Normal"
407
			soundeffect("rbxassetid://833797091", 5, 1, char)
408
		end
409
	end
410
end)
411
addattack(Enum.KeyCode.Q, function()
412
	if not attacking then
413
		mode = "Disable"
414
		gun.Color = Color3.new(1,0,0)
415
		specialsound("rbxassetid://741894739", 5, 1, char, 33.878067323327, 35.438444041738)
416
	end
417
end)
418
addattack(Enum.KeyCode.P, function()
419
	if bgmusic.Playing then
420
		bgmusic:Stop()
421
	else
422
		bgmusic:Play()
423
	end
424
end)
425
addattack("MouseClick", function()
426
	if not attacking then
427
		cananim = false
428
		attacking = true
429
		for i = 0, 0.6, 0.1 do
430
		rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.6)
431
		rs.C1 = rs.C1:Lerp(CFrame.new(-0.235909924, 0.846874475, 0, 0.399310559, 0.00480417395, 0.916803062, -0.916736782, -0.0110294167, 0.399339437, 0.0120302998, -0.99992764, 5.25861077e-10), 0.6)
432
		ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.6)
433
		ls.C1 = ls.C1:Lerp(CFrame.new(0.232030958, 1.28329468, 0, 0.758646905, 0.0105680302, -0.651416421, 0.65135318, 0.00907341763, 0.758720517, 0.0139287533, -0.999902964, -6.08845141e-10), 0.6)
434
		rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.6)
435
		rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), 0.6)
436
		lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.6)
437
		lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), 0.6)
438
		neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
439
		neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
440
		rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
441
		rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
442
		swait()
443
		end
444
		local sounds = {
445
			{17.49, 17.981267708586};
446
			{17.490114626798, 17.755552823579};
447
			{18, 18.465876732586707476};
448
		}
449
		local ids = sounds[math.random(#sounds)]
450
		specialsound("rbxassetid://132938504", 5, 1, char, ids[1], ids[2])
451
		local p = Instance.new("Part")
452
		p.Anchored = false
453
		p.Material = "Neon"
454
		p.CanCollide = false
455
		local start = gun.Position +Vector3.new(0.5,0,-0.5)
456
		local endp = mouse.Hit.p
457
		local ray = Ray.new(start, (endp-start).unit * 999)
458
		local hit,position = workspace:FindPartOnRayWithIgnoreList(ray, {char, gun})
459
		local mag = (start-position).magnitude + 2
460
		p.Size = Vector3.new(0.1,0.1,mag)
461
		p.CFrame = CFrame.new(start, position) *CFrame.new(0,0,-mag/2)
462
		local bp = Instance.new("BodyPosition")
463
		bp.MaxForce = huge
464
		bp.Position = p.Position
465
		bp.Parent = p
466
		p.Color = gun.Color
467
		if mode == "Normal" then
468
			p.Color = Color3.new(1,1,1)
469
		end
470
		p.Parent = workspace
471
		spawn(function()
472
			for i = 1, 10 do
473
				p.Transparency = i/10
474
				swait()
475
			end
476
			p:Destroy()
477
		end)
478
		local con
479
		local dmg = 750
480
		if mode == "Heal" then dmg = -1000 end
481
		if mode == "Disable" then dmg = 0 end
482
		con = p.Touched:connect(function(hit)
483
			if hurt(hit, dmg) then
484
				pcall(function()
485
					con:disconnect()
486
					if mode == "Disable" then
487
						disable(hit)
488
					end
489
					for i,v in pairs(hit.Parent:GetDescendants()) do
490
						spawn(function()
491
							if v:IsA("BasePart") and mode == "Normal" then
492
								local bv = Instance.new("BodyVelocity")
493
								bv.MaxForce = huge
494
								bv.Velocity = CFrame.new(start, position).lookVector*100
495
								bv.Parent = v
496
								game:GetService('Debris'):AddItem(bv, 0.1)
497
								if v.Transparency <= 0.9 then
498
									for i = 1, 20 do
499
										v.Transparency = i/20
500
										swait()
501
									end
502
								end
503
								v:Destroy()
504
							end
505
						end)
506
					end
507
				end)
508
			end
509
		end)
510
		for i = 0, 0.3, 0.1 do
511
		rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.8)
512
		rs.C1 = rs.C1:Lerp(CFrame.new(-0.108213484, 0.142491132, -0.0458124876, 0.399310559, 0.00480417395, 0.916803062, -0.907117367, -0.142995536, 0.395841271, 0.133000448, -0.989711702, -0.0527416691), 0.8)
513
		ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.8)
514
		ls.C1 = ls.C1:Lerp(CFrame.new(-0.214841455, 0.866598129, -0.112976491, 0.758646905, 0.0105680302, -0.651416421, 0.64655149, -0.135239884, 0.750787199, -0.0801631361, -0.990756512, -0.109432101), 0.8)
515
		rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.8)
516
		rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, -0.104150683, 0.994561553, -4.55257076e-09, -0.994561553, -0.104150683, -4.34736656e-08), 0.8)
517
		lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.8)
518
		lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, -0.0883838907, 0.996086478, 3.8633825e-09, 0.996086478, 0.0883838907, -4.35403216e-08), 0.8)
519
		neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.8)
520
		neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.49999997, 0, -1, 0, 0, 0, 0.0492738597, 0.998785317, 0, 0.998785317, -0.0492738597), 0.8)
521
		rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.8)
522
		rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.0276213959, 0.999618471, 0, 0.999618471, -0.0276213959), 0.8)
523
		swait()
524
		end
525
		cananim = true
526
		attacking = false
527
	end
528
end)
529
while true do
530
	swait()
531
	if currentanim == "Jumping" and cananim then
532
for i = 0, 1.2, 0.1 do
533
if currentanim ~= "Jumping" or not cananim then break end
534
rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.4)
535
rs.C1 = rs.C1:Lerp(CFrame.new(0.0997244716, 0.195344329, -0.746855855, -0.155881107, 0.00388455181, 0.987768173, 0.260807574, -0.964343727, 0.0449508503, 0.952722609, 0.264624417, 0.149309859), 0.4)
536
ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.4)
537
ls.C1 = ls.C1:Lerp(CFrame.new(0.793125331, 0.89348793, -0.0677016973, 0.986068428, -0.132806748, -0.100156575, 0.1031176, 0.0155911446, 0.994546831, -0.130520999, -0.991019309, 0.0290686507), 0.4)
538
rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.4)
539
rh.C1 = rh.C1:Lerp(CFrame.new(0.49999997, 0.99999994, -4.47034836e-08, -0.0421661586, 0.0827250704, 0.995679915, 0.25110203, 0.965456486, -0.0695800334, -0.967041731, 0.247083336, -0.0614820197), 0.4)
540
lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.4)
541
lh.C1 = lh.C1:Lerp(CFrame.new(-0.49999997, 1, 2.98023224e-08, 0.0194152314, 0, -0.99981153, 0.178683311, 0.983900607, 0.00346983178, 0.983715117, -0.178716987, 0.0191026554), 0.4)
542
neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
543
neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0515226237, 0.99867183, 0, 0.99867183, -0.0515226237), 0.4)
544
rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
545
rj.C1 = rj.C1:Lerp(CFrame.new(0, 0.128909558, -0.0269506648, -0.996639967, -0.0819067881, 0, -0.00100739487, 0.0122579783, 0.999924421, -0.0819005966, 0.996564567, -0.0122992992), 0.4)
546
swait()
547
end
548
	end
549
	if currentanim == "Falling" and cananim then
550
for i = 0, 1.2, 0.1 do
551
if currentanim ~= "Falling" or not cananim then break end
552
rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.4)
553
rs.C1 = rs.C1:Lerp(CFrame.new(0.0997244716, 0.389569163, -0.799008012, -0.155881107, 0.00388455181, 0.987768173, 0.0170185864, -0.999833226, 0.00661772862, 0.987629175, 0.0178419873, 0.155789018), 0.4)
554
ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.4)
555
ls.C1 = ls.C1:Lerp(CFrame.new(0.800841689, 0.89348793, 0.000534057617, 0.989977896, 0.0953866094, -0.104139231, 0.1031176, 0.0155911446, 0.994546831, 0.0964901, -0.995318174, 0.00559884822), 0.4)
556
rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.4)
557
rh.C1 = rh.C1:Lerp(CFrame.new(0.49999997, 1, -1.49011612e-08, -0.0421661586, 0.0827250704, 0.995679915, -0.0600035824, 0.994557679, -0.085172914, -0.997307122, -0.0633357614, -0.0369728766), 0.4)
558
lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.4)
559
lh.C1 = lh.C1:Lerp(CFrame.new(-0.499999881, 1, 3.7252903e-08, 0.0207479522, -0.155918092, -0.987552047, -0.00691960612, 0.987718761, -0.156089753, 0.999760866, 0.0100720376, 0.0194142479), 0.4)
560
neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
561
neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0515226237, 0.99867183, 0, 0.99867183, -0.0515226237), 0.4)
562
rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
563
rj.C1 = rj.C1:Lerp(CFrame.new(0, 0.313415587, -0.0163925812, -0.996639967, -0.0819067881, 0, 0.00564728118, -0.0687159598, 0.997620344, -0.0817118809, 0.994268239, 0.068947643), 0.4)
564
swait()
565
end
566
	end
567
	if currentanim == "Walking" and cananim then
568
for i = 0, 0.6, 0.1 do
569
if currentanim ~= "Walking" or not cananim then break end
570
rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.6)
571
rs.C1 = rs.C1:Lerp(CFrame.new(0.0997244716, -0.134959042, -0.791477084, -0.155881107, 0.00388455181, 0.987768173, 0.0728884861, -0.997220755, 0.0154243633, 0.985082865, 0.0744013041, 0.155164748), 0.6)
572
ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.6)
573
ls.C1 = ls.C1:Lerp(CFrame.new(0.728777826, 0.934069037, -0.221951187, 0.958276987, -0.133620545, -0.252687156, 0.254302055, -0.00512516592, 0.96711117, -0.130520999, -0.991019309, 0.0290686507), 0.6)
574
rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.6)
575
rh.C1 = rh.C1:Lerp(CFrame.new(0.49999997, 1, 0, -0.0421661586, 0.0827250704, 0.995679915, -0.568820775, 0.817300439, -0.0919936299, -0.82137984, -0.570242465, 0.0125933159), 0.6)
576
lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.6)
577
lh.C1 = lh.C1:Lerp(CFrame.new(-0.49999997, 1, 0, 0.0194152314, 0, -0.99981153, -0.845399499, 0.53388226, -0.0164167192, 0.533781588, 0.845558882, 0.0103654461), 0.6)
578
neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
579
neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0515226237, 0.99867183, 0, 0.99867183, -0.0515226237), 0.6)
580
rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
581
rj.C1 = rj.C1:Lerp(CFrame.new(0, 0.239933819, 0, -0.996639967, -0.0819067881, 0, 0.00819849782, -0.0997591168, 0.994977891, -0.0814954415, 0.991634667, 0.100095451), 0.6)
582
swait()
583
end
584
local rslastc0 = rs.C0
585
local rslastc1 = rs.C1
586
local lslastc0 = ls.C0
587
local lslastc1 = ls.C1
588
local rhlastc0 = rh.C0
589
local rhlastc1 = rh.C1
590
local lhlastc0 = lh.C0
591
local lhlastc1 = lh.C1
592
local necklastc0 = neck.C0
593
local necklastc1 = neck.C1
594
local rjlastc0 = rj.C0
595
local rjlastc1 = rj.C1
596
local max = 0.6
597
for i = 0, max, 0.1 do
598
if currentanim ~= "Walking" or not cananim then break end
599
rs.C0 = rslastc0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), i/max)
600
rs.C1 = rslastc1:Lerp(CFrame.new(0.0997244716, -0.134959042, -0.791477084, -0.155881107, 0.00388455181, 0.987768173, 0.0728884861, -0.997220755, 0.0154243633, 0.985082865, 0.0744013041, 0.155164748), i/max)
601
ls.C0 = lslastc0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), i/max)
602
ls.C1 = lslastc1:Lerp(CFrame.new(0.728777826, 0.934069037, -0.221951187, 0.958276987, -0.133620545, -0.252687156, 0.254302055, -0.00512516592, 0.96711117, -0.130520999, -0.991019309, 0.0290686507), i/max)
603
rh.C0 = rhlastc0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), i/max)
604
rh.C1 = rhlastc1:Lerp(CFrame.new(0.5, 0.675323606, 0, -0.0421661623, 0.0827250704, 0.995679975, 0.221647412, 0.972508371, -0.0714133158, -0.974214792, 0.217678651, -0.059342742), i/max)
605
lh.C0 = lhlastc0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), i/max)
606
lh.C1 = lhlastc1:Lerp(CFrame.new(-0.49999997, 0.680277288, -1.49011612e-08, 0.0194152296, -2.24613939e-11, -0.99981153, -0.183868393, 0.982944369, -0.00357052009, 0.982759118, 0.183903053, 0.0190840904), i/max)
607
neck.C0 = necklastc0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
608
neck.C1 = necklastc1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0515226237, 0.99867183, 0, 0.99867183, -0.0515226237), i/max)
609
rj.C0 = rjlastc0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
610
rj.C1 = rjlastc1:Lerp(CFrame.new(0, 0.169720784, 0, -0.996639967, -0.0819067881, 0, 0.00819849782, -0.0997591168, 0.994977891, -0.0814954415, 0.991634667, 0.100095451), i/max)
611
swait()
612
end
613
for i = 0, 0.6, 0.1 do
614
if currentanim ~= "Walking" or not cananim then break end
615
rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.6)
616
rs.C1 = rs.C1:Lerp(CFrame.new(0.0997244716, -0.134959042, -0.791477084, -0.155881107, 0.00388455181, 0.987768173, 0.0728884861, -0.997220755, 0.0154243633, 0.985082865, 0.0744013041, 0.155164748), 0.6)
617
ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.6)
618
ls.C1 = ls.C1:Lerp(CFrame.new(0.728777826, 0.934069037, -0.221951187, 0.958276987, -0.133620545, -0.252687156, 0.254302055, -0.00512516592, 0.96711117, -0.130520999, -0.991019309, 0.0290686507), 0.6)
619
rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.6)
620
rh.C1 = rh.C1:Lerp(CFrame.new(0.49999997, 1, 0, -0.0421661586, 0.0827250704, 0.995679915, 0.868188143, 0.496215105, -0.00446053827, -0.494440407, 0.864249468, -0.0927444026), 0.6)
621
lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.6)
622
lh.C1 = lh.C1:Lerp(CFrame.new(-0.49999997, 1, 0, 0.0194152314, 0, -0.99981153, 0.595236421, 0.803467572, 0.0115588298, 0.803316057, -0.595348656, 0.015599506), 0.6)
623
neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
624
neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0515226237, 0.99867183, 0, 0.99867183, -0.0515226237), 0.6)
625
rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
626
rj.C1 = rj.C1:Lerp(CFrame.new(0, 0.342528641, -9.31322575e-10, -0.996639967, -0.0819067955, -6.22866592e-10, 0.00819849595, -0.0997591242, 0.994977832, -0.0814954415, 0.991634727, 0.100095443), 0.6)
627
swait()
628
end
629
local rslastc0 = rs.C0
630
local rslastc1 = rs.C1
631
local lslastc0 = ls.C0
632
local lslastc1 = ls.C1
633
local rhlastc0 = rh.C0
634
local rhlastc1 = rh.C1
635
local lhlastc0 = lh.C0
636
local lhlastc1 = lh.C1
637
local necklastc0 = neck.C0
638
local necklastc1 = neck.C1
639
local rjlastc0 = rj.C0
640
local rjlastc1 = rj.C1
641
local max = 0.6
642
for i = 0, max, 0.1 do
643
if currentanim ~= "Walking" or not cananim then break end
644
rs.C0 = rslastc0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), i/max)
645
rs.C1 = rslastc1:Lerp(CFrame.new(0.0997244716, -0.134959042, -0.791477084, -0.155881107, 0.00388455181, 0.987768173, 0.0728884861, -0.997220755, 0.0154243633, 0.985082865, 0.0744013041, 0.155164748), i/max)
646
ls.C0 = lslastc0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), i/max)
647
ls.C1 = lslastc1:Lerp(CFrame.new(0.728777826, 0.934069037, -0.221951187, 0.958276987, -0.133620545, -0.252687156, 0.254302055, -0.00512516592, 0.96711117, -0.130520999, -0.991019309, 0.0290686507), i/max)
648
rh.C0 = rhlastc0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), i/max)
649
rh.C1 = rhlastc1:Lerp(CFrame.new(0.5, 0.675323606, 0, -0.0421661623, 0.0827250704, 0.995679975, 0.221647412, 0.972508371, -0.0714133158, -0.974214792, 0.217678651, -0.059342742), i/max)
650
lh.C0 = lhlastc0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), i/max)
651
lh.C1 = lhlastc1:Lerp(CFrame.new(-0.49999997, 0.680277288, -1.49011612e-08, 0.0194152296, -2.24613939e-11, -0.99981153, -0.183868393, 0.982944369, -0.00357052009, 0.982759118, 0.183903053, 0.0190840904), i/max)
652
neck.C0 = necklastc0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
653
neck.C1 = necklastc1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0515226237, 0.99867183, 0, 0.99867183, -0.0515226237), i/max)
654
rj.C0 = rjlastc0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
655
rj.C1 = rjlastc1:Lerp(CFrame.new(5.82076609e-11, 0.2270886, 2.32830644e-10, -0.996639967, -0.0819067881, 4.13409307e-10, 0.00819849502, -0.0997591093, 0.994977832, -0.081495434, 0.991634727, 0.100095429), i/max)
656
wait()
657
end
658
	end
659
	if currentanim == "Idle" and cananim then
660
		for i = 0, 5, 0.1 do
661
		if currentanim ~= "Idle" or not cananim then break end
662
		rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.05)
663
		rs.C1 = rs.C1:Lerp(CFrame.new(0.0997244716, -0.105339587, -1.12973166, -0.155881107, 0.00388455181, 0.987768173, -0.0249122381, -0.999689579, -1.08894849e-09, 0.987461567, -0.0246075168, 0.155929506), 0.05)
664
		ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.05)
665
		ls.C1 = ls.C1:Lerp(CFrame.new(0.998242438, 0.966719627, -0.251513988, 0.948773444, -0.0191214401, -0.315378129, 0.315314144, -0.00635479437, 0.948966026, -0.0201497618, -0.999796987, 8.80774065e-10), 0.05)
666
		rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.05)
667
		rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -0.246849835, 0, 0.969053745, 0, 1, 0, -0.969053745, 0, -0.246849835), 0.05)
668
		lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.05)
669
		lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, 0.0194152314, 0, -0.99981153, 0, 1, 0, 0.99981153, 0, 0.0194152314), 0.05)
670
		neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
671
		neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
672
		rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
673
		rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -0.996639967, -0.0819067881, 0, 0, 0, 1, -0.0819067881, 0.996639967, 0), 0.05)
674
		swait()
675
		end
676
		for i = 0, 5, 0.1 do
677
		if currentanim ~= "Idle" or not cananim then break end
678
		rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.05)
679
		rs.C1 = rs.C1:Lerp(CFrame.new(0.0997244716, -0.134959042, -1.07218063, -0.155881107, 0.00388455181, 0.987768173, 0.0728884861, -0.997220755, 0.0154243633, 0.985082865, 0.0744013041, 0.155164748), 0.05)
680
		ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.05)
681
		ls.C1 = ls.C1:Lerp(CFrame.new(0.994734883, 0.934069037, -0.221951187, 0.958276987, -0.133620545, -0.252687156, 0.254302055, -0.00512516592, 0.96711117, -0.130520999, -0.991019309, 0.0290686507), 0.05)
682
		rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.05)
683
		rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -0.246849835, 0, 0.969053745, 0, 1, 0, -0.969053745, 0, -0.246849835), 0.05)
684
		lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.05)
685
		lh.C1 = lh.C1:Lerp(CFrame.new(-0.49999997, 1, 0, 0.0194152314, 0, -0.99981153, 0, 1, 0, 0.99981153, 0, 0.0194152314), 0.05)
686
		neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
687
		neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
688
		rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
689
		rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -0.996639967, -0.0819067881, 0, -0.00139390712, 0.0169610307, 0.999855161, -0.0818949267, 0.996495605, -0.017018212), 0.05)
690
		swait()
691
		end
692
	end
693
end