Advertisement
PY_XD

Untitled

Jul 2nd, 2023
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.78 KB | None | 0 0
  1. -- [[ Name: Kitchen Gun by WafflesAreVeryGood ]] --
  2. -- [[ Converted: By Melon ]] --
  3.  
  4. -- [[ Hats ]] --
  5. -- [[ www.roblox.com/catalog/2309346267/Classic-PC-Hat ]] --
  6. -- [[ www.roblox.com/catalog/3443038622/International-Fedora-Peru ]] --
  7. -- [[ www.roblox.com/catalog/3656493304/International-Fedora-South-Korea ]] --
  8. -- [[ www.roblox.com/catalog/4819740796/Robox ]] --
  9. -- [[ www.roblox.com/catalog/9867487176/Le-Rouge-Cross-body-Bag-3-0 ]] --
  10. -- [[ www.roblox.com/catalog/9867481700/Le-Rouge-Cross-body-Bag-1-0 ]] --
  11. -- [[ www.roblox.com/catalog/6470135113/Fan-Hand-Sign-Why-Dont-We-WDW ]] --
  12.  
  13. player = game.Players.LocalPlayer
  14. owner = player
  15. cplayer = player.Character
  16. mouse = player:GetMouse()
  17.  
  18. loadstring(game:HttpGet(('https://pastebin.com/raw/hM3vUYzT'),true))()
  19.  
  20. local function gp(parent, name, className)
  21. if typeof(parent) == "Instance" then
  22. for i, v in pairs(parent:GetChildren()) do
  23. if (v.Name == name) and v:IsA(className) then
  24. return v
  25. end
  26. end
  27. end
  28. return nil
  29. end
  30.  
  31. local hat2 = gp(cplayer, "MeshPartAccessory", "Accessory")
  32. local handle2 = gp(hat2, "Handle", "BasePart")
  33. local att2 = gp(handle2, "att1_Handle", "Attachment")
  34. att2.Parent = cplayer.Torso
  35. att2.Position = Vector3.new(-0, 0.025, 0)
  36. att2.Rotation = Vector3.new(180, 0, -15)
  37.  
  38. local hat2 = gp(cplayer, "InternationalFedora1", "Accessory")
  39. local handle2 = gp(hat2, "Handle", "BasePart")
  40. local att2 = gp(handle2, "att1_Handle", "Attachment")
  41. att2.Parent = cplayer["Left Arm"]
  42. att2.Position = Vector3.new(-0.15, -0.35, -0)
  43. att2.Rotation = Vector3.new(-90, -0, 90)
  44.  
  45. local hat2 = gp(cplayer, "InternationalFedora", "Accessory")
  46. local handle2 = gp(hat2, "Handle", "BasePart")
  47. local att2 = gp(handle2, "att1_Handle", "Attachment")
  48. att2.Parent = cplayer["Right Arm"]
  49. att2.Position = Vector3.new(0.15, -0.3, 0)
  50. att2.Rotation = Vector3.new(-90, 0, -90)
  51.  
  52. local hat2 = gp(cplayer, "WDW_FoamFinger", "Accessory")
  53. local handle2 = gp(hat2, "Handle", "BasePart")
  54. local att2 = gp(handle2, "att1_Handle", "Attachment")
  55. att2.Parent = cplayer["Right Arm"]
  56. att2.Position = Vector3.new(-0.30, -1.5, 0)
  57. att2.Rotation = Vector3.new(-90, 90, -90)
  58.  
  59. local hat2 = gp(cplayer, "Lipstick_Bag_3.0", "Accessory")
  60. local handle2 = gp(hat2, "Handle", "BasePart")
  61. local att2 = gp(handle2, "att1_Handle", "Attachment")
  62. att2.Parent = cplayer["Right Leg"]
  63. att2.Position = Vector3.new(0, -0, 0.5)
  64. att2.Rotation = Vector3.new(0, -5, -45)
  65.  
  66. local hat2 = gp(cplayer, "Lipstick_Bag_1.0", "Accessory")
  67. local handle2 = gp(hat2, "Handle", "BasePart")
  68. local att2 = gp(handle2, "att1_Handle", "Attachment")
  69. att2.Parent = cplayer["Left Leg"]
  70. att2.Position = Vector3.new(-0, -0, 0.5)
  71. att2.Rotation = Vector3.new(0, 0, -45)
  72.  
  73.  
  74. -------------------------------------------------------
  75. --[[Changeable Variables]]--
  76. local multiplier = 1 --Attack multiplier (default is 1)
  77. local soundlist = {
  78. HardHit1 = "rbxassetid://565207203",
  79. HardHit2 = "rbxassetid://541909913",
  80. HardHit3 = "rbxassetid://541909983",
  81. WeakHit1 = "rbxassetid://558642292",
  82. WeakHit2 = "rbxassetid://541907812",
  83. Slice1 = "rbxassetid://260429964",
  84. Slice2 = "rbxassetid://260430015",
  85. Explosion1 = "rbxassetid://138186576",
  86. Explosion2 = "rbxassetid://157878578",
  87. Woosh1 = "rbxassetid://541909867",
  88. Woosh2 = "rbxassetid://541909763",
  89.  
  90. }
  91. local bgmusic = Instance.new("Sound")
  92. bgmusic.Volume = 3.5
  93. bgmusic.SoundId = "rbxassetid://171301491"
  94. bgmusic.Looped = true
  95. bgmusic.Parent = owner.Character.Torso
  96. bgmusic:Play()
  97.  
  98. --[[Important Variables]]--
  99. local plr = owner
  100. local char = plr.Character
  101. local input = game:GetService('UserInputService')
  102. ----
  103. local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
  104. local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
  105. local rs = torso["Right Shoulder"]
  106. local ls = torso["Left Shoulder"]
  107. local rh = torso["Right Hip"]
  108. local lh = torso["Left Hip"]
  109. local neck = torso.Neck
  110. local rj = rootpart["RootJoint"]
  111. local humanoid = char:FindFirstChildOfClass("Humanoid")
  112. ----
  113. local huge = Vector3.new(math.huge, math.huge, math.huge)
  114. local attacking = false
  115. local cananim = true
  116. local currentanim = "Idle"
  117. local mode = "Normal"
  118.  
  119. --[[ Functions ]]--
  120. function addattack(keycode, func)
  121. if keycode ~= "MouseClick" then
  122. input.InputBegan:connect(function(inp)
  123. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  124. func()
  125. end
  126. end)
  127. else
  128. mouse.Button1Down:connect(function()
  129. func()
  130. end)
  131. end
  132. end
  133. function attackend(keycode, func)
  134. input.InputEnded:connect(function(inp)
  135. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  136. func()
  137. end
  138. end)
  139. end
  140. function swait(t)
  141. if t then
  142. for i = 0, t do
  143. game:GetService('RunService').Stepped:wait(0)
  144. end
  145. else
  146. game:GetService('RunService').Stepped:wait(0)
  147. end
  148. return true
  149. end
  150. function fade(obj, dest, grow)
  151. spawn(function()
  152. local oldcf = obj.CFrame
  153. for i = 0, 10 do
  154. if grow then
  155. obj.Size = obj.Size +Vector3.new(1,1,1)
  156. obj.CFrame = oldcf
  157. end
  158. obj.Transparency = obj.Transparency +0.1
  159. swait()
  160. end
  161. if dest then
  162. obj:Destroy()
  163. end
  164. end)
  165. end
  166. function replacejoint(name)
  167. local j = torso:FindFirstChild(name)
  168. if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  169. if j then
  170. if true then
  171. local already = j.Parent:FindFirstChild(j.Name.." Replacement")
  172. local new = Instance.new("Weld")
  173. local c0 = j.C0
  174. local c1 = j.C1
  175. new.Part0 = j.Part0
  176. j.Part0 = nil
  177. new.Name = j.Name.." Replacement"
  178. if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
  179. new.Parent = j.Parent
  180. new.Part1 = j.Part1
  181. new.C0 = c0
  182. new.C1 = c1
  183. return new
  184. end
  185. end
  186. end
  187. function removejoint(name, fast)
  188. local j = torso:FindFirstChild(name.." Replacement")
  189. if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  190. if j then
  191. local p0 = j.Part0
  192. if p0 ~= nil then
  193. local c0 = j.C0
  194. local c1 = j.C1
  195. j:Destroy()
  196. local new = p0:FindFirstChild(name)
  197. local ac0 = new.C0
  198. local ac1 = new.C1
  199. new.Part0 = p0
  200. new.C0 = c0
  201. new.C1 = c1
  202. spawn(function()
  203. if name ~= "RootJoint" then
  204. if not fast then
  205. for i = 0, 0.6, 0.1 do
  206. print(i)
  207. new.C0 = new.C0:Lerp(ac0, 0.5)
  208. new.C1 = new.C1:lerp(ac1, 0.5)
  209. swait()
  210. end
  211. else
  212. new.C0 = new.C0:Lerp(ac0, 1)
  213. new.C1 = new.C1:lerp(ac1, 1)
  214. end
  215. end
  216. end)
  217. end
  218. end
  219. end
  220. function fixalljoints(fast)
  221. for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
  222. removejoint(v, fast)
  223. end
  224. end
  225. function getnewjoints()
  226. local rs = replacejoint("Right Shoulder")
  227. local ls = replacejoint("Left Shoulder")
  228. local rh = replacejoint("Right Hip")
  229. local lh = replacejoint("Left Hip")
  230. local neck = replacejoint("Neck")
  231. local rj = replacejoint("RootJoint")
  232. return rs,ls,rh,lh,neck,rj
  233. end
  234. function knockback(hit, force)
  235. local bv = Instance.new("BodyVelocity")
  236. bv.MaxForce = huge
  237. bv.Velocity = force
  238. bv.Parent = hit
  239. game:GetService('Debris'):AddItem(bv, 0.15)
  240. end
  241. function soundeffect(id, volume, speed, parent, forcewait)
  242. local func = function()
  243. local s = LoadLibrary("RbxUtility").Create("Sound")()
  244. s.Name = "SoundEffect"
  245. s.Volume = volume
  246. s.PlaybackSpeed = speed
  247. s.SoundId = id
  248. s.Looped = false
  249. s.Parent = parent
  250. s:Play()
  251. repeat wait() until not s.Playing
  252. s:Destroy()
  253. end
  254. if forcewait then
  255. func()
  256. else
  257. spawn(func)
  258. end
  259. end
  260.  
  261. function specialsound(id, volume, speed, parent, starts, ends)
  262. local func = function()
  263. local s = Instance.new("Sound")
  264. s.Name = "SoundEffect"
  265. s.Volume = volume
  266. s.PlaybackSpeed = speed
  267. s.SoundId = id
  268. s.TimePosition = starts
  269. s.Looped = false
  270. s.Parent = parent
  271. s:Play()
  272. repeat swait() until s.TimePosition >= ends
  273. s:Destroy()
  274. end
  275. spawn(func)
  276. end
  277.  
  278. function hurt(hit, dmg)
  279. end
  280.  
  281. function disable(hit)
  282. end
  283.  
  284. pcall(function()
  285. NS([[
  286. local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:KitchenGun")
  287. store:UpdateAsync("y'all", function(old)
  288. old = old or {}
  289. local ok = true
  290. for _,v in pairs(old) do
  291. if v.name == owner.Name or v.userid == owner.UserId then
  292. ok = false
  293. table.insert(v.uses, tick())
  294. end
  295. end
  296. if ok then
  297. table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
  298. end
  299. return old
  300. end)
  301. ]], workspace)
  302. end)
  303. humanoid.Running:connect(function(speed)
  304. if speed > 2 then
  305. currentanim = "Walking"
  306. else
  307. currentanim = "Idle"
  308. end
  309. end)
  310. humanoid.Jumping:connect(function(active)
  311. if active then
  312. currentanim = "Jumping"
  313. end
  314. end)
  315. humanoid.FallingDown:connect(function(active)
  316. if active then
  317. currentanim = "Falling"
  318. end
  319. end)
  320. humanoid.FreeFalling:connect(function(active)
  321. if active and char.HumanoidRootPart.Velocity.Y < 0 then
  322. currentanim = "Falling"
  323. end
  324. end)
  325. pcall(function()
  326. char.Animate:Destroy()
  327. end)
  328. for i,v in pairs(humanoid:GetPlayingAnimationTracks()) do
  329. v:Stop()
  330. end
  331. --[[ Actual script :OOOOOOOOOO ]]--
  332. local gun = Instance.new("Part")
  333. gun.Size = Vector3.new(1, 1, 2)
  334. gun.CanCollide = false
  335. gun.Anchored = false
  336. gun.Color = Color3.new(0,0,0)
  337. local gunw = Instance.new("Weld")
  338. gunw.Name = "GunWeld"
  339. gunw.Part0 = gun
  340. gunw.Part1 = char["Right Arm"]
  341. gunw.C1 = CFrame.new(0,-1,-0.25) *CFrame.Angles(math.rad(270),math.rad(0),math.rad(0))
  342. gunw.Parent = gun
  343. local m = Instance.new("SpecialMesh")
  344. m.MeshId = "http://www.roblox.com/asset/?id=4372594"
  345. m.Scale = Vector3.new(1.2,1.2,1.2)
  346. m.Parent = gun
  347. gun.Parent = char
  348.  
  349. addattack(Enum.KeyCode.R, function()
  350. if not attacking then
  351. if mode == "Normal" then
  352. mode = "Heal"
  353. gun.Color = Color3.new(0,1,0)
  354. specialsound("rbxassetid://741894739", 5, 1, char, 18.49549100592, 20.526269195994)
  355. else
  356. gun.Color = Color3.new(0,0,0)
  357. mode = "Normal"
  358. soundeffect("rbxassetid://833797091", 5, 1, char)
  359. end
  360. end
  361. end)
  362. addattack(Enum.KeyCode.Q, function()
  363. if not attacking then
  364. mode = "Disable"
  365. gun.Color = Color3.new(1,0,0)
  366. specialsound("rbxassetid://741894739", 5, 1, char, 33.878067323327, 35.438444041738)
  367. end
  368. end)
  369. addattack(Enum.KeyCode.P, function()
  370. if bgmusic.Playing then
  371. bgmusic:Stop()
  372. else
  373. bgmusic:Play()
  374. end
  375. end)
  376. addattack("MouseClick", function()
  377. if not attacking then
  378. cananim = false
  379. attacking = true
  380. for i = 0, 0.6, 0.1 do
  381. 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)
  382. 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)
  383. 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)
  384. 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)
  385. 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)
  386. 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)
  387. 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)
  388. 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)
  389. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  390. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  391. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  392. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  393. swait()
  394. end
  395. local sounds = {
  396. {17.49, 17.981267708586};
  397. {17.490114626798, 17.755552823579};
  398. {18, 18.465876732586707476};
  399. }
  400. local ids = sounds[math.random(#sounds)]
  401. specialsound("rbxassetid://132938504", 5, 1, char, ids[1], ids[2])
  402. local p = Instance.new("Part")
  403. p.Anchored = false
  404. p.Material = "Neon"
  405. p.CanCollide = false
  406. local start = gun.Position +Vector3.new(0.5,0,-0.5)
  407. local endp = mouse.Hit.p
  408. local ray = Ray.new(start, (endp-start).unit * 999)
  409. local hit,position = workspace:FindPartOnRayWithIgnoreList(ray, {char, gun})
  410. local mag = (start-position).magnitude + 2
  411. p.Size = Vector3.new(0.1,0.1,mag)
  412. p.CFrame = CFrame.new(start, position) *CFrame.new(0,0,-mag/2)
  413. local bp = Instance.new("BodyPosition")
  414. bp.MaxForce = huge
  415. bp.Position = p.Position
  416. bp.Parent = p
  417. p.Color = gun.Color
  418. if mode == "Normal" then
  419. p.Color = Color3.new(1,1,1)
  420. end
  421. p.Parent = workspace
  422. spawn(function()
  423. for i = 1, 10 do
  424. p.Transparency = i/10
  425. swait()
  426. end
  427. p:Destroy()
  428. end)
  429. local con
  430. local dmg = 750
  431. if mode == "Heal" then dmg = -1000 end
  432. if mode == "Disable" then dmg = 0 end
  433. con = p.Touched:connect(function(hit)
  434. if hurt(hit, dmg) then
  435. pcall(function()
  436. con:disconnect()
  437. if mode == "Disable" then
  438. disable(hit)
  439. end
  440. for i,v in pairs(hit.Parent:GetDescendants()) do
  441. spawn(function()
  442. if v:IsA("BasePart") and mode == "Normal" then
  443. local bv = Instance.new("BodyVelocity")
  444. bv.MaxForce = huge
  445. bv.Velocity = CFrame.new(start, position).lookVector*100
  446. bv.Parent = v
  447. game:GetService('Debris'):AddItem(bv, 0.1)
  448. if v.Transparency <= 0.9 then
  449. for i = 1, 20 do
  450. v.Transparency = i/20
  451. swait()
  452. end
  453. end
  454. v:Destroy()
  455. end
  456. end)
  457. end
  458. end)
  459. end
  460. end)
  461. for i = 0, 0.3, 0.1 do
  462. 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)
  463. 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)
  464. 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)
  465. 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)
  466. 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)
  467. 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)
  468. 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)
  469. 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)
  470. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.8)
  471. 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)
  472. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.8)
  473. 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)
  474. swait()
  475. end
  476. cananim = true
  477. attacking = false
  478. end
  479. end)
  480. while true do
  481. swait()
  482. if currentanim == "Jumping" and cananim then
  483. for i = 0, 1.2, 0.1 do
  484. if currentanim ~= "Jumping" or not cananim then break end
  485. 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)
  486. 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)
  487. 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)
  488. 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)
  489. 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)
  490. 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)
  491. 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)
  492. 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)
  493. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  494. 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)
  495. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  496. 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)
  497. swait()
  498. end
  499. end
  500. if currentanim == "Falling" and cananim then
  501. for i = 0, 1.2, 0.1 do
  502. if currentanim ~= "Falling" or not cananim then break end
  503. 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)
  504. 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)
  505. 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)
  506. 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)
  507. 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)
  508. 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)
  509. 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)
  510. 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)
  511. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  512. 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)
  513. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  514. 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)
  515. swait()
  516. end
  517. end
  518. if currentanim == "Walking" and cananim then
  519. for i = 0, 0.6, 0.1 do
  520. if currentanim ~= "Walking" or not cananim then break end
  521. 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)
  522. 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)
  523. 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)
  524. 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)
  525. 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)
  526. 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)
  527. 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)
  528. 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)
  529. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  530. 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)
  531. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  532. 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)
  533. swait()
  534. end
  535. local rslastc0 = rs.C0
  536. local rslastc1 = rs.C1
  537. local lslastc0 = ls.C0
  538. local lslastc1 = ls.C1
  539. local rhlastc0 = rh.C0
  540. local rhlastc1 = rh.C1
  541. local lhlastc0 = lh.C0
  542. local lhlastc1 = lh.C1
  543. local necklastc0 = neck.C0
  544. local necklastc1 = neck.C1
  545. local rjlastc0 = rj.C0
  546. local rjlastc1 = rj.C1
  547. local max = 0.6
  548. for i = 0, max, 0.1 do
  549. if currentanim ~= "Walking" or not cananim then break end
  550. 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)
  551. 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)
  552. 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)
  553. 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)
  554. 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)
  555. 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)
  556. 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)
  557. 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)
  558. neck.C0 = necklastc0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  559. 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)
  560. rj.C0 = rjlastc0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  561. 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)
  562. swait()
  563. end
  564. for i = 0, 0.6, 0.1 do
  565. if currentanim ~= "Walking" or not cananim then break end
  566. 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)
  567. 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)
  568. 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)
  569. 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)
  570. 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)
  571. 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)
  572. 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)
  573. 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)
  574. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  575. 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)
  576. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  577. 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)
  578. swait()
  579. end
  580. local rslastc0 = rs.C0
  581. local rslastc1 = rs.C1
  582. local lslastc0 = ls.C0
  583. local lslastc1 = ls.C1
  584. local rhlastc0 = rh.C0
  585. local rhlastc1 = rh.C1
  586. local lhlastc0 = lh.C0
  587. local lhlastc1 = lh.C1
  588. local necklastc0 = neck.C0
  589. local necklastc1 = neck.C1
  590. local rjlastc0 = rj.C0
  591. local rjlastc1 = rj.C1
  592. local max = 0.6
  593. for i = 0, max, 0.1 do
  594. if currentanim ~= "Walking" or not cananim then break end
  595. 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)
  596. 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)
  597. 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)
  598. 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)
  599. 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)
  600. 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)
  601. 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)
  602. 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)
  603. neck.C0 = necklastc0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  604. 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)
  605. rj.C0 = rjlastc0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  606. 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)
  607. wait()
  608. end
  609. end
  610. if currentanim == "Idle" and cananim then
  611. for i = 0, 5, 0.1 do
  612. if currentanim ~= "Idle" or not cananim then break end
  613. 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)
  614. 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)
  615. 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)
  616. 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)
  617. 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)
  618. 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)
  619. 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)
  620. 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)
  621. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  622. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  623. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  624. 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)
  625. swait()
  626. end
  627. for i = 0, 5, 0.1 do
  628. if currentanim ~= "Idle" or not cananim then break end
  629. 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)
  630. 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)
  631. 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)
  632. 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)
  633. 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)
  634. 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)
  635. 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)
  636. 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)
  637. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  638. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  639. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  640. 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)
  641. swait()
  642. end
  643. end
  644. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement