Advertisement
BAconTUbe

Kitchen gun FE

Jan 19th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 59.04 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. --[[ Kitchen Gun (REMADE) ]]--
  85. -------------------------------------------------------
  86. --[[
  87.  
  88. This script was created by WafflesAreVeryGood.
  89. ATTACKS
  90. _______
  91.  
  92.  
  93. --]]
  94. -------------------------------------------------------
  95. print("This script was created by WafflesAreVeryGood!")
  96. --[[Changeable Variables]]--
  97. local multiplier = 1 --Attack multiplier (default is 1)
  98. local soundlist = {
  99. HardHit1 = "rbxassetid://565207203",
  100. HardHit2 = "rbxassetid://541909913",
  101. HardHit3 = "rbxassetid://541909983",
  102. WeakHit1 = "rbxassetid://558642292",
  103. WeakHit2 = "rbxassetid://541907812",
  104. Slice1 = "rbxassetid://260429964",
  105. Slice2 = "rbxassetid://260430015",
  106. Explosion1 = "rbxassetid://138186576",
  107. Explosion2 = "rbxassetid://157878578",
  108. Woosh1 = "rbxassetid://541909867",
  109. Woosh2 = "rbxassetid://541909763",
  110.  
  111. }
  112. local bgmusic = Instance.new("Sound")
  113. bgmusic.Volume = 3.5
  114. bgmusic.SoundId = "rbxassetid://276873987"
  115. bgmusic.Looped = true
  116. bgmusic.Parent = game:GetService('Players').owner.Character.Torso
  117. bgmusic:Play()
  118.  
  119. --[[Important Variables]]--
  120. local plr = owner
  121. local char = plr.Character
  122. local mouse = plr:GetMouse()
  123. local input = game:GetService('UserInputService')
  124. ----
  125. local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
  126. local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
  127. local rs = torso["Right Shoulder"]
  128. local ls = torso["Left Shoulder"]
  129. local rh = torso["Right Hip"]
  130. local lh = torso["Left Hip"]
  131. local neck = torso.Neck
  132. local rj = rootpart["RootJoint"]
  133. local humanoid = char:FindFirstChildOfClass("Humanoid")
  134. ----
  135. local huge = Vector3.new(math.huge, math.huge, math.huge)
  136. local attacking = false
  137. local cananim = true
  138. local currentanim = "Idle"
  139. local mode = "Normal"
  140.  
  141. --[[ Functions ]]--
  142. function addattack(keycode, func)
  143. if keycode ~= "MouseClick" then
  144. input.InputBegan:connect(function(inp)
  145. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  146. func()
  147. end
  148. end)
  149. else
  150. mouse.Button1Down:connect(function()
  151. func()
  152. end)
  153. end
  154. end
  155. function attackend(keycode, func)
  156. input.InputEnded:connect(function(inp)
  157. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  158. func()
  159. end
  160. end)
  161. end
  162. function swait(t)
  163. if t then
  164. for i = 0, t do
  165. game:GetService('RunService').Stepped:wait(0)
  166. end
  167. else
  168. game:GetService('RunService').Stepped:wait(0)
  169. end
  170. return true
  171. end
  172. function fade(obj, dest, grow)
  173. spawn(function()
  174. local oldcf = obj.CFrame
  175. for i = 0, 10 do
  176. if grow then
  177. obj.Size = obj.Size +Vector3.new(1,1,1)
  178. obj.CFrame = oldcf
  179. end
  180. obj.Transparency = obj.Transparency +0.1
  181. swait()
  182. end
  183. if dest then
  184. obj:Destroy()
  185. end
  186. end)
  187. end
  188. function replacejoint(name)
  189. local j = torso:FindFirstChild(name)
  190. if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  191. if j then
  192. if true then
  193. local already = j.Parent:FindFirstChild(j.Name.." Replacement")
  194. local new = Instance.new("Weld")
  195. local c0 = j.C0
  196. local c1 = j.C1
  197. new.Part0 = j.Part0
  198. j.Part0 = nil
  199. new.Name = j.Name.." Replacement"
  200. if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
  201. new.Parent = j.Parent
  202. new.Part1 = j.Part1
  203. new.C0 = c0
  204. new.C1 = c1
  205. return new
  206. end
  207. end
  208. end
  209. function removejoint(name, fast)
  210. local j = torso:FindFirstChild(name.." Replacement")
  211. if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  212. if j then
  213. local p0 = j.Part0
  214. if p0 ~= nil then
  215. local c0 = j.C0
  216. local c1 = j.C1
  217. j:Destroy()
  218. local new = p0:FindFirstChild(name)
  219. local ac0 = new.C0
  220. local ac1 = new.C1
  221. new.Part0 = p0
  222. new.C0 = c0
  223. new.C1 = c1
  224. spawn(function()
  225. if name ~= "RootJoint" then
  226. if not fast then
  227. for i = 0, 0.6, 0.1 do
  228. print(i)
  229. new.C0 = new.C0:Lerp(ac0, 0.5)
  230. new.C1 = new.C1:lerp(ac1, 0.5)
  231. swait()
  232. end
  233. else
  234. new.C0 = new.C0:Lerp(ac0, 1)
  235. new.C1 = new.C1:lerp(ac1, 1)
  236. end
  237. end
  238. end)
  239. end
  240. end
  241. end
  242. function fixalljoints(fast)
  243. for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
  244. removejoint(v, fast)
  245. end
  246. end
  247. function getnewjoints()
  248. local rs = replacejoint("Right Shoulder")
  249. local ls = replacejoint("Left Shoulder")
  250. local rh = replacejoint("Right Hip")
  251. local lh = replacejoint("Left Hip")
  252. local neck = replacejoint("Neck")
  253. local rj = replacejoint("RootJoint")
  254. return rs,ls,rh,lh,neck,rj
  255. end
  256. function knockback(hit, force)
  257. local bv = Instance.new("BodyVelocity")
  258. bv.MaxForce = huge
  259. bv.Velocity = force
  260. bv.Parent = hit
  261. game:GetService('Debris'):AddItem(bv, 0.15)
  262. end
  263. function soundeffect(id, volume, speed, parent, forcewait)
  264. local func = function()
  265. local s = LoadLibrary("RbxUtility").Create("Sound")()
  266. s.Name = "SoundEffect"
  267. s.Volume = volume
  268. s.PlaybackSpeed = speed
  269. s.SoundId = id
  270. s.Looped = false
  271. s.Parent = parent
  272. s:Play()
  273. repeat wait() until not s.Playing
  274. s:Destroy()
  275. end
  276. if forcewait then
  277. func()
  278. else
  279. spawn(func)
  280. end
  281. end
  282. function specialsound(id, volume, speed, parent, starts, ends)
  283. local func = function()
  284. local s = LoadLibrary("RbxUtility").Create("Sound")()
  285. s.Name = "SoundEffect"
  286. s.Volume = volume
  287. s.PlaybackSpeed = speed
  288. s.SoundId = id
  289. s.TimePosition = starts
  290. s.Looped = false
  291. s.Parent = parent
  292. s:Play()
  293. repeat swait() until s.TimePosition >= ends
  294. s:Destroy()
  295. end
  296. spawn(func)
  297. end
  298. function hurt(hit, dmg)
  299. --pcall(function()
  300. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  301. if hum then
  302. if hum.Parent ~= char and not hum.Parent:FindFirstChild("kk_urcool") then
  303. hum.Health = hum.Health - dmg
  304. return true
  305. end
  306. end
  307. --end)
  308. end
  309. function disable(hit)
  310. pcall(function()
  311. for i,v in pairs(hit.Parent:GetChildren()) do
  312. if v:IsA("Script") and v.Name ~= "Animate" then
  313. v:Destroy()
  314. soundeffect("rbxassetid://141679994", 2, 2, char.Head)
  315. end
  316. if v:IsA("Model") then
  317. v:BreakJoints()
  318. end
  319. if v.Name ~= "Torso" and v.Name ~= "HumanoidRootPart" then
  320. for _,child in pairs(v:GetChildren()) do
  321. if child:IsA("Weld") then
  322. child:Destroy()
  323. end
  324. end
  325. end
  326. end
  327. end)
  328. end
  329. pcall(function()
  330. NS([[
  331. local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:KitchenGun")
  332. store:UpdateAsync("y'all", function(old)
  333. old = old or {}
  334. local ok = true
  335. for _,v in pairs(old) do
  336. if v.name == owner.Name or v.userid == owner.UserId then
  337. ok = false
  338. table.insert(v.uses, tick())
  339. end
  340. end
  341. if ok then
  342. table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
  343. end
  344. return old
  345. end)
  346. ]], workspace)
  347. end)
  348. humanoid.Running:connect(function(speed)
  349. if speed > 2 then
  350. currentanim = "Walking"
  351. else
  352. currentanim = "Idle"
  353. end
  354. end)
  355. humanoid.Jumping:connect(function(active)
  356. if active then
  357. currentanim = "Jumping"
  358. end
  359. end)
  360. humanoid.FallingDown:connect(function(active)
  361. if active then
  362. currentanim = "Falling"
  363. end
  364. end)
  365. humanoid.FreeFalling:connect(function(active)
  366. if active and char.HumanoidRootPart.Velocity.Y < 0 then
  367. currentanim = "Falling"
  368. end
  369. end)
  370. pcall(function()
  371. char.Animate:Destroy()
  372. end)
  373. for i,v in pairs(humanoid:GetPlayingAnimationTracks()) do
  374. v:Stop()
  375. end
  376. --[[ Actual script :OOOOOOOOOO ]]--
  377. local gun = Instance.new("Part")
  378. gun.Size = Vector3.new(1, 1, 2)
  379. gun.CanCollide = false
  380. gun.Anchored = false
  381. gun.Color = Color3.new(255,255,0)
  382. local gunw = Instance.new("Weld")
  383. gunw.Name = "GunWeld"
  384. gunw.Part0 = gun
  385. gunw.Part1 = char["Right Arm"]
  386. gunw.C1 = CFrame.new(0,-1,-0.25) *CFrame.Angles(math.rad(270),math.rad(0),math.rad(0))
  387. gunw.Parent = gun
  388. local m = Instance.new("SpecialMesh")
  389. m.MeshId = "http://www.roblox.com/asset/?id=4372594"
  390. m.Scale = Vector3.new(1.2,1.2,1.2)
  391. m.Parent = gun
  392. gun.Parent = char
  393.  
  394. addattack(Enum.KeyCode.R, function()
  395. if not attacking then
  396. if mode == "Normal" then
  397. mode = "Heal"
  398. gun.Color = Color3.new(0,0,255)
  399. specialsound("rbxassetid://174658105", 5, 1, char, 18.49549100592, 20.526269195994)
  400. else
  401. gun.Color = Color3.new(255,255,0)
  402. mode = "Normal"
  403. soundeffect("rbxassetid://174658105", 5, 1, char)
  404. end
  405. end
  406. end)
  407. addattack(Enum.KeyCode.Q, function()
  408. if not attacking then
  409. mode = "Disable"
  410. gun.Color = Color3.new(0,1,0)
  411. specialsound("rbxassetid://174658105", 5, 1, char, 33.878067323327, 35.438444041738)
  412. end
  413. end)
  414. addattack(Enum.KeyCode.P, function()
  415. if bgmusic.Playing then
  416. bgmusic:Stop()
  417. else
  418. bgmusic:Play()
  419. end
  420. end)
  421. addattack("MouseClick", function()
  422. if not attacking then
  423. cananim = false
  424. attacking = true
  425. for i = 0, 0.6, 0.1 do
  426. 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)
  427. 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)
  428. 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)
  429. 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)
  430. 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)
  431. 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)
  432. 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)
  433. 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)
  434. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  435. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  436. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  437. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  438. swait()
  439. end
  440. local sounds = {
  441. {17.49, 17.981267708586};
  442. {17.490114626798, 17.755552823579};
  443. {18, 18.465876732586707476};
  444. }
  445. local ids = sounds[math.random(#sounds)]
  446. specialsound("rbxassetid://741894739", 5, 1, char, ids[1], ids[2])
  447. local p = Instance.new("Part")
  448. p.Anchored = false
  449. p.Material = "Neon"
  450. p.CanCollide = false
  451. local start = gun.Position +Vector3.new(0.5,0,-0.5)
  452. local endp = mouse.Hit.p
  453. local ray = Ray.new(start, (endp-start).unit * 999)
  454. local hit,position = workspace:FindPartOnRayWithIgnoreList(ray, {char, gun})
  455. local mag = (start-position).magnitude + 2
  456. p.Size = Vector3.new(0.1,0.1,mag)
  457. p.CFrame = CFrame.new(start, position) *CFrame.new(0,0,-mag/2)
  458. local bp = Instance.new("BodyPosition")
  459. bp.MaxForce = huge
  460. bp.Position = p.Position
  461. bp.Parent = p
  462. p.Color = gun.Color
  463. if mode == "Normal" then
  464. p.Color = Color3.new(255,255,0)
  465. end
  466. p.Parent = workspace
  467. spawn(function()
  468. for i = 1, 10 do
  469. p.Transparency = i/10
  470. swait()
  471. end
  472. p:Destroy()
  473. end)
  474. local con
  475. local dmg = 750
  476. if mode == "Heal" then dmg = -1000 end
  477. if mode == "Disable" then dmg = 0 end
  478. con = p.Touched:connect(function(hit)
  479. if hurt(hit, dmg) then
  480. pcall(function()
  481. con:disconnect()
  482. if mode == "Disable" then
  483. disable(hit)
  484. end
  485. for i,v in pairs(hit.Parent:GetDescendants()) do
  486. spawn(function()
  487. if v:IsA("BasePart") and mode == "Normal" then
  488. local bv = Instance.new("BodyVelocity")
  489. bv.MaxForce = huge
  490. bv.Velocity = CFrame.new(start, position).lookVector*100
  491. bv.Parent = v
  492. game:GetService('Debris'):AddItem(bv, 0.1)
  493. if v.Transparency <= 0.9 then
  494. for i = 1, 20 do
  495. v.Transparency = i/20
  496. swait()
  497. end
  498. end
  499. v:Destroy()
  500. end
  501. end)
  502. end
  503. end)
  504. end
  505. end)
  506. for i = 0, 0.3, 0.1 do
  507. 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)
  508. 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)
  509. 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)
  510. 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)
  511. 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)
  512. 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)
  513. 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)
  514. 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)
  515. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.8)
  516. 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)
  517. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.8)
  518. 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)
  519. swait()
  520. end
  521. cananim = true
  522. attacking = false
  523. end
  524. end)
  525. while true do
  526. swait()
  527. if currentanim == "Jumping" and cananim then
  528. for i = 0, 1.2, 0.1 do
  529. if currentanim ~= "Jumping" or not cananim then break end
  530. 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)
  531. 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)
  532. 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)
  533. 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)
  534. 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)
  535. 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)
  536. 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)
  537. 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)
  538. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  539. 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)
  540. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  541. 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)
  542. swait()
  543. end
  544. end
  545. if currentanim == "Falling" and cananim then
  546. for i = 0, 1.2, 0.1 do
  547. if currentanim ~= "Falling" or not cananim then break end
  548. 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)
  549. 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)
  550. 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)
  551. 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)
  552. 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)
  553. 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)
  554. 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)
  555. 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)
  556. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  557. 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)
  558. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  559. 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)
  560. swait()
  561. end
  562. end
  563. if currentanim == "Walking" and cananim then
  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.568820775, 0.817300439, -0.0919936299, -0.82137984, -0.570242465, 0.0125933159), 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.845399499, 0.53388226, -0.0164167192, 0.533781588, 0.845558882, 0.0103654461), 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.239933819, 0, -0.996639967, -0.0819067881, 0, 0.00819849782, -0.0997591168, 0.994977891, -0.0814954415, 0.991634667, 0.100095451), 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(0, 0.169720784, 0, -0.996639967, -0.0819067881, 0, 0.00819849782, -0.0997591168, 0.994977891, -0.0814954415, 0.991634667, 0.100095451), i/max)
  607. swait()
  608. end
  609. for i = 0, 0.6, 0.1 do
  610. if currentanim ~= "Walking" or not cananim then break end
  611. 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)
  612. 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)
  613. 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)
  614. 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)
  615. 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)
  616. 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)
  617. 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)
  618. 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)
  619. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  620. 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)
  621. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  622. 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)
  623. swait()
  624. end
  625. local rslastc0 = rs.C0
  626. local rslastc1 = rs.C1
  627. local lslastc0 = ls.C0
  628. local lslastc1 = ls.C1
  629. local rhlastc0 = rh.C0
  630. local rhlastc1 = rh.C1
  631. local lhlastc0 = lh.C0
  632. local lhlastc1 = lh.C1
  633. local necklastc0 = neck.C0
  634. local necklastc1 = neck.C1
  635. local rjlastc0 = rj.C0
  636. local rjlastc1 = rj.C1
  637. local max = 0.6
  638. for i = 0, max, 0.1 do
  639. if currentanim ~= "Walking" or not cananim then break end
  640. 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)
  641. 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)
  642. 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)
  643. 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)
  644. 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)
  645. 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)
  646. 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)
  647. 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)
  648. neck.C0 = necklastc0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  649. 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)
  650. rj.C0 = rjlastc0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  651. 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)
  652. wait()
  653. end
  654. end
  655. if currentanim == "Idle" and cananim then
  656. for i = 0, 5, 0.1 do
  657. if currentanim ~= "Idle" or not cananim then break end
  658. 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)
  659. 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)
  660. 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)
  661. 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)
  662. 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)
  663. 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)
  664. 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)
  665. 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)
  666. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  667. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  668. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  669. 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)
  670. swait()
  671. end
  672. for i = 0, 5, 0.1 do
  673. if currentanim ~= "Idle" or not cananim then break end
  674. 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)
  675. 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)
  676. 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)
  677. 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)
  678. 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)
  679. 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)
  680. 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)
  681. 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)
  682. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  683. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  684. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  685. 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)
  686. swait()
  687. end
  688. end
  689. end
  690.  
  691. --[[ Kitchen Gun (REMADE) ]]--
  692. -------------------------------------------------------
  693. --[[
  694.  
  695. This script was created by WafflesAreVeryGood.
  696. ATTACKS
  697. _______
  698.  
  699.  
  700. --]]
  701. -------------------------------------------------------
  702. print("This script was created by WafflesAreVeryGood!")
  703. --[[Changeable Variables]]--
  704. local multiplier = 1 --Attack multiplier (default is 1)
  705. local soundlist = {
  706. HardHit1 = "rbxassetid://565207203",
  707. HardHit2 = "rbxassetid://541909913",
  708. HardHit3 = "rbxassetid://541909983",
  709. WeakHit1 = "rbxassetid://558642292",
  710. WeakHit2 = "rbxassetid://541907812",
  711. Slice1 = "rbxassetid://260429964",
  712. Slice2 = "rbxassetid://260430015",
  713. Explosion1 = "rbxassetid://138186576",
  714. Explosion2 = "rbxassetid://157878578",
  715. Woosh1 = "rbxassetid://541909867",
  716. Woosh2 = "rbxassetid://541909763",
  717.  
  718. }
  719. local bgmusic = Instance.new("Sound")
  720. bgmusic.Volume = 3.5
  721. bgmusic.SoundId = "rbxassetid://276873987"
  722. bgmusic.Looped = true
  723. bgmusic.Parent = game:GetService('Players').owner.Character.Torso
  724. bgmusic:Play()
  725.  
  726. --[[Important Variables]]--
  727. local plr = owner
  728. local char = plr.Character
  729. local mouse = plr:GetMouse()
  730. local input = game:GetService('UserInputService')
  731. ----
  732. local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
  733. local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
  734. local rs = torso["Right Shoulder"]
  735. local ls = torso["Left Shoulder"]
  736. local rh = torso["Right Hip"]
  737. local lh = torso["Left Hip"]
  738. local neck = torso.Neck
  739. local rj = rootpart["RootJoint"]
  740. local humanoid = char:FindFirstChildOfClass("Humanoid")
  741. ----
  742. local huge = Vector3.new(math.huge, math.huge, math.huge)
  743. local attacking = false
  744. local cananim = true
  745. local currentanim = "Idle"
  746. local mode = "Normal"
  747.  
  748. --[[ Functions ]]--
  749. function addattack(keycode, func)
  750. if keycode ~= "MouseClick" then
  751. input.InputBegan:connect(function(inp)
  752. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  753. func()
  754. end
  755. end)
  756. else
  757. mouse.Button1Down:connect(function()
  758. func()
  759. end)
  760. end
  761. end
  762. function attackend(keycode, func)
  763. input.InputEnded:connect(function(inp)
  764. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  765. func()
  766. end
  767. end)
  768. end
  769. function swait(t)
  770. if t then
  771. for i = 0, t do
  772. game:GetService('RunService').Stepped:wait(0)
  773. end
  774. else
  775. game:GetService('RunService').Stepped:wait(0)
  776. end
  777. return true
  778. end
  779. function fade(obj, dest, grow)
  780. spawn(function()
  781. local oldcf = obj.CFrame
  782. for i = 0, 10 do
  783. if grow then
  784. obj.Size = obj.Size +Vector3.new(1,1,1)
  785. obj.CFrame = oldcf
  786. end
  787. obj.Transparency = obj.Transparency +0.1
  788. swait()
  789. end
  790. if dest then
  791. obj:Destroy()
  792. end
  793. end)
  794. end
  795. function replacejoint(name)
  796. local j = torso:FindFirstChild(name)
  797. if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  798. if j then
  799. if true then
  800. local already = j.Parent:FindFirstChild(j.Name.." Replacement")
  801. local new = Instance.new("Weld")
  802. local c0 = j.C0
  803. local c1 = j.C1
  804. new.Part0 = j.Part0
  805. j.Part0 = nil
  806. new.Name = j.Name.." Replacement"
  807. if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
  808. new.Parent = j.Parent
  809. new.Part1 = j.Part1
  810. new.C0 = c0
  811. new.C1 = c1
  812. return new
  813. end
  814. end
  815. end
  816. function removejoint(name, fast)
  817. local j = torso:FindFirstChild(name.." Replacement")
  818. if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  819. if j then
  820. local p0 = j.Part0
  821. if p0 ~= nil then
  822. local c0 = j.C0
  823. local c1 = j.C1
  824. j:Destroy()
  825. local new = p0:FindFirstChild(name)
  826. local ac0 = new.C0
  827. local ac1 = new.C1
  828. new.Part0 = p0
  829. new.C0 = c0
  830. new.C1 = c1
  831. spawn(function()
  832. if name ~= "RootJoint" then
  833. if not fast then
  834. for i = 0, 0.6, 0.1 do
  835. print(i)
  836. new.C0 = new.C0:Lerp(ac0, 0.5)
  837. new.C1 = new.C1:lerp(ac1, 0.5)
  838. swait()
  839. end
  840. else
  841. new.C0 = new.C0:Lerp(ac0, 1)
  842. new.C1 = new.C1:lerp(ac1, 1)
  843. end
  844. end
  845. end)
  846. end
  847. end
  848. end
  849. function fixalljoints(fast)
  850. for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
  851. removejoint(v, fast)
  852. end
  853. end
  854. function getnewjoints()
  855. local rs = replacejoint("Right Shoulder")
  856. local ls = replacejoint("Left Shoulder")
  857. local rh = replacejoint("Right Hip")
  858. local lh = replacejoint("Left Hip")
  859. local neck = replacejoint("Neck")
  860. local rj = replacejoint("RootJoint")
  861. return rs,ls,rh,lh,neck,rj
  862. end
  863. function knockback(hit, force)
  864. local bv = Instance.new("BodyVelocity")
  865. bv.MaxForce = huge
  866. bv.Velocity = force
  867. bv.Parent = hit
  868. game:GetService('Debris'):AddItem(bv, 0.15)
  869. end
  870. function soundeffect(id, volume, speed, parent, forcewait)
  871. local func = function()
  872. local s = LoadLibrary("RbxUtility").Create("Sound")()
  873. s.Name = "SoundEffect"
  874. s.Volume = volume
  875. s.PlaybackSpeed = speed
  876. s.SoundId = id
  877. s.Looped = false
  878. s.Parent = parent
  879. s:Play()
  880. repeat wait() until not s.Playing
  881. s:Destroy()
  882. end
  883. if forcewait then
  884. func()
  885. else
  886. spawn(func)
  887. end
  888. end
  889. function specialsound(id, volume, speed, parent, starts, ends)
  890. local func = function()
  891. local s = LoadLibrary("RbxUtility").Create("Sound")()
  892. s.Name = "SoundEffect"
  893. s.Volume = volume
  894. s.PlaybackSpeed = speed
  895. s.SoundId = id
  896. s.TimePosition = starts
  897. s.Looped = false
  898. s.Parent = parent
  899. s:Play()
  900. repeat swait() until s.TimePosition >= ends
  901. s:Destroy()
  902. end
  903. spawn(func)
  904. end
  905. function hurt(hit, dmg)
  906. --pcall(function()
  907. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  908. if hum then
  909. if hum.Parent ~= char and not hum.Parent:FindFirstChild("kk_urcool") then
  910. hum.Health = hum.Health - dmg
  911. return true
  912. end
  913. end
  914. --end)
  915. end
  916. function disable(hit)
  917. pcall(function()
  918. for i,v in pairs(hit.Parent:GetChildren()) do
  919. if v:IsA("Script") and v.Name ~= "Animate" then
  920. v:Destroy()
  921. soundeffect("rbxassetid://141679994", 2, 2, char.Head)
  922. end
  923. if v:IsA("Model") then
  924. v:BreakJoints()
  925. end
  926. if v.Name ~= "Torso" and v.Name ~= "HumanoidRootPart" then
  927. for _,child in pairs(v:GetChildren()) do
  928. if child:IsA("Weld") then
  929. child:Destroy()
  930. end
  931. end
  932. end
  933. end
  934. end)
  935. end
  936. pcall(function()
  937. NS([[
  938. local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:KitchenGun")
  939. store:UpdateAsync("y'all", function(old)
  940. old = old or {}
  941. local ok = true
  942. for _,v in pairs(old) do
  943. if v.name == owner.Name or v.userid == owner.UserId then
  944. ok = false
  945. table.insert(v.uses, tick())
  946. end
  947. end
  948. if ok then
  949. table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
  950. end
  951. return old
  952. end)
  953. ]], workspace)
  954. end)
  955. humanoid.Running:connect(function(speed)
  956. if speed > 2 then
  957. currentanim = "Walking"
  958. else
  959. currentanim = "Idle"
  960. end
  961. end)
  962. humanoid.Jumping:connect(function(active)
  963. if active then
  964. currentanim = "Jumping"
  965. end
  966. end)
  967. humanoid.FallingDown:connect(function(active)
  968. if active then
  969. currentanim = "Falling"
  970. end
  971. end)
  972. humanoid.FreeFalling:connect(function(active)
  973. if active and char.HumanoidRootPart.Velocity.Y < 0 then
  974. currentanim = "Falling"
  975. end
  976. end)
  977. pcall(function()
  978. char.Animate:Destroy()
  979. end)
  980. for i,v in pairs(humanoid:GetPlayingAnimationTracks()) do
  981. v:Stop()
  982. end
  983. --[[ Actual script :OOOOOOOOOO ]]--
  984. local gun = Instance.new("Part")
  985. gun.Size = Vector3.new(1, 1, 2)
  986. gun.CanCollide = false
  987. gun.Anchored = false
  988. gun.Color = Color3.new(255,255,0)
  989. local gunw = Instance.new("Weld")
  990. gunw.Name = "GunWeld"
  991. gunw.Part0 = gun
  992. gunw.Part1 = char["Right Arm"]
  993. gunw.C1 = CFrame.new(0,-1,-0.25) *CFrame.Angles(math.rad(270),math.rad(0),math.rad(0))
  994. gunw.Parent = gun
  995. local m = Instance.new("SpecialMesh")
  996. m.MeshId = "http://www.roblox.com/asset/?id=4372594"
  997. m.Scale = Vector3.new(1.2,1.2,1.2)
  998. m.Parent = gun
  999. gun.Parent = char
  1000.  
  1001. addattack(Enum.KeyCode.R, function()
  1002. if not attacking then
  1003. if mode == "Normal" then
  1004. mode = "Heal"
  1005. gun.Color = Color3.new(0,0,255)
  1006. specialsound("rbxassetid://174658105", 5, 1, char, 18.49549100592, 20.526269195994)
  1007. else
  1008. gun.Color = Color3.new(255,255,0)
  1009. mode = "Normal"
  1010. soundeffect("rbxassetid://174658105", 5, 1, char)
  1011. end
  1012. end
  1013. end)
  1014. addattack(Enum.KeyCode.Q, function()
  1015. if not attacking then
  1016. mode = "Disable"
  1017. gun.Color = Color3.new(0,1,0)
  1018. specialsound("rbxassetid://174658105", 5, 1, char, 33.878067323327, 35.438444041738)
  1019. end
  1020. end)
  1021. addattack(Enum.KeyCode.P, function()
  1022. if bgmusic.Playing then
  1023. bgmusic:Stop()
  1024. else
  1025. bgmusic:Play()
  1026. end
  1027. end)
  1028. addattack("MouseClick", function()
  1029. if not attacking then
  1030. cananim = false
  1031. attacking = true
  1032. for i = 0, 0.6, 0.1 do
  1033. 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)
  1034. 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)
  1035. 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)
  1036. 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)
  1037. 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)
  1038. 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)
  1039. 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)
  1040. 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)
  1041. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  1042. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  1043. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  1044. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  1045. swait()
  1046. end
  1047. local sounds = {
  1048. {17.49, 17.981267708586};
  1049. {17.490114626798, 17.755552823579};
  1050. {18, 18.465876732586707476};
  1051. }
  1052. local ids = sounds[math.random(#sounds)]
  1053. specialsound("rbxassetid://741894739", 5, 1, char, ids[1], ids[2])
  1054. local p = Instance.new("Part")
  1055. p.Anchored = false
  1056. p.Material = "Neon"
  1057. p.CanCollide = false
  1058. local start = gun.Position +Vector3.new(0.5,0,-0.5)
  1059. local endp = mouse.Hit.p
  1060. local ray = Ray.new(start, (endp-start).unit * 999)
  1061. local hit,position = workspace:FindPartOnRayWithIgnoreList(ray, {char, gun})
  1062. local mag = (start-position).magnitude + 2
  1063. p.Size = Vector3.new(0.1,0.1,mag)
  1064. p.CFrame = CFrame.new(start, position) *CFrame.new(0,0,-mag/2)
  1065. local bp = Instance.new("BodyPosition")
  1066. bp.MaxForce = huge
  1067. bp.Position = p.Position
  1068. bp.Parent = p
  1069. p.Color = gun.Color
  1070. if mode == "Normal" then
  1071. p.Color = Color3.new(255,255,0)
  1072. end
  1073. p.Parent = workspace
  1074. spawn(function()
  1075. for i = 1, 10 do
  1076. p.Transparency = i/10
  1077. swait()
  1078. end
  1079. p:Destroy()
  1080. end)
  1081. local con
  1082. local dmg = 750
  1083. if mode == "Heal" then dmg = -1000 end
  1084. if mode == "Disable" then dmg = 0 end
  1085. con = p.Touched:connect(function(hit)
  1086. if hurt(hit, dmg) then
  1087. pcall(function()
  1088. con:disconnect()
  1089. if mode == "Disable" then
  1090. disable(hit)
  1091. end
  1092. for i,v in pairs(hit.Parent:GetDescendants()) do
  1093. spawn(function()
  1094. if v:IsA("BasePart") and mode == "Normal" then
  1095. local bv = Instance.new("BodyVelocity")
  1096. bv.MaxForce = huge
  1097. bv.Velocity = CFrame.new(start, position).lookVector*100
  1098. bv.Parent = v
  1099. game:GetService('Debris'):AddItem(bv, 0.1)
  1100. if v.Transparency <= 0.9 then
  1101. for i = 1, 20 do
  1102. v.Transparency = i/20
  1103. swait()
  1104. end
  1105. end
  1106. v:Destroy()
  1107. end
  1108. end)
  1109. end
  1110. end)
  1111. end
  1112. end)
  1113. for i = 0, 0.3, 0.1 do
  1114. 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)
  1115. 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)
  1116. 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)
  1117. 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)
  1118. 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)
  1119. 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)
  1120. 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)
  1121. 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)
  1122. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.8)
  1123. 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)
  1124. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.8)
  1125. 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)
  1126. swait()
  1127. end
  1128. cananim = true
  1129. attacking = false
  1130. end
  1131. end)
  1132. while true do
  1133. swait()
  1134. if currentanim == "Jumping" and cananim then
  1135. for i = 0, 1.2, 0.1 do
  1136. if currentanim ~= "Jumping" or not cananim then break end
  1137. 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)
  1138. 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)
  1139. 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)
  1140. 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)
  1141. 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)
  1142. 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)
  1143. 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)
  1144. 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)
  1145. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  1146. 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)
  1147. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  1148. 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)
  1149. swait()
  1150. end
  1151. end
  1152. if currentanim == "Falling" and cananim then
  1153. for i = 0, 1.2, 0.1 do
  1154. if currentanim ~= "Falling" or not cananim then break end
  1155. 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)
  1156. 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)
  1157. 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)
  1158. 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)
  1159. 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)
  1160. 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)
  1161. 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)
  1162. 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)
  1163. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  1164. 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)
  1165. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  1166. 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)
  1167. swait()
  1168. end
  1169. end
  1170. if currentanim == "Walking" and cananim then
  1171. for i = 0, 0.6, 0.1 do
  1172. if currentanim ~= "Walking" or not cananim then break end
  1173. 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)
  1174. 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)
  1175. 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)
  1176. 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)
  1177. 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)
  1178. 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)
  1179. 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)
  1180. 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)
  1181. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  1182. 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)
  1183. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  1184. 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)
  1185. swait()
  1186. end
  1187. local rslastc0 = rs.C0
  1188. local rslastc1 = rs.C1
  1189. local lslastc0 = ls.C0
  1190. local lslastc1 = ls.C1
  1191. local rhlastc0 = rh.C0
  1192. local rhlastc1 = rh.C1
  1193. local lhlastc0 = lh.C0
  1194. local lhlastc1 = lh.C1
  1195. local necklastc0 = neck.C0
  1196. local necklastc1 = neck.C1
  1197. local rjlastc0 = rj.C0
  1198. local rjlastc1 = rj.C1
  1199. local max = 0.6
  1200. for i = 0, max, 0.1 do
  1201. if currentanim ~= "Walking" or not cananim then break end
  1202. 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)
  1203. 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)
  1204. 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)
  1205. 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)
  1206. 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)
  1207. 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)
  1208. 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)
  1209. 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)
  1210. neck.C0 = necklastc0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  1211. 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)
  1212. rj.C0 = rjlastc0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  1213. 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)
  1214. swait()
  1215. end
  1216. for i = 0, 0.6, 0.1 do
  1217. if currentanim ~= "Walking" or not cananim then break end
  1218. 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)
  1219. 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)
  1220. 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)
  1221. 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)
  1222. 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)
  1223. 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)
  1224. 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)
  1225. 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)
  1226. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  1227. 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)
  1228. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  1229. 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)
  1230. swait()
  1231. end
  1232. local rslastc0 = rs.C0
  1233. local rslastc1 = rs.C1
  1234. local lslastc0 = ls.C0
  1235. local lslastc1 = ls.C1
  1236. local rhlastc0 = rh.C0
  1237. local rhlastc1 = rh.C1
  1238. local lhlastc0 = lh.C0
  1239. local lhlastc1 = lh.C1
  1240. local necklastc0 = neck.C0
  1241. local necklastc1 = neck.C1
  1242. local rjlastc0 = rj.C0
  1243. local rjlastc1 = rj.C1
  1244. local max = 0.6
  1245. for i = 0, max, 0.1 do
  1246. if currentanim ~= "Walking" or not cananim then break end
  1247. 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)
  1248. 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)
  1249. 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)
  1250. 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)
  1251. 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)
  1252. 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)
  1253. 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)
  1254. 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)
  1255. neck.C0 = necklastc0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  1256. 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)
  1257. rj.C0 = rjlastc0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  1258. 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)
  1259. wait()
  1260. end
  1261. end
  1262. if currentanim == "Idle" and cananim then
  1263. for i = 0, 5, 0.1 do
  1264. if currentanim ~= "Idle" or not cananim then break end
  1265. 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)
  1266. 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)
  1267. 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)
  1268. 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)
  1269. 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)
  1270. 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)
  1271. 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)
  1272. 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)
  1273. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  1274. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  1275. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  1276. 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)
  1277. swait()
  1278. end
  1279. for i = 0, 5, 0.1 do
  1280. if currentanim ~= "Idle" or not cananim then break end
  1281. 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)
  1282. 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)
  1283. 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)
  1284. 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)
  1285. 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)
  1286. 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)
  1287. 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)
  1288. 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)
  1289. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  1290. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  1291. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  1292. 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)
  1293. swait()
  1294. end
  1295. end
  1296. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement