Advertisement
xdfromxd

mreeme

Apr 23rd, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.51 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86. --[[ Kitchen Gun (REMADE) ]]--
  87. -------------------------------------------------------
  88. --[[
  89.  
  90. This script was created by WafflesAreVeryGood.
  91. ATTACKS
  92. _______
  93.  
  94.  
  95. --]]
  96. -------------------------------------------------------
  97. print("This script was created by WafflesAreVeryGood!")
  98. --[[Changeable Variables]]--
  99. local multiplier = 1 --Attack multiplier (default is 1)
  100. local soundlist = {
  101. HardHit1 = "rbxassetid://565207203",
  102. HardHit2 = "rbxassetid://541909913",
  103. HardHit3 = "rbxassetid://541909983",
  104. WeakHit1 = "rbxassetid://558642292",
  105. WeakHit2 = "rbxassetid://541907812",
  106. Slice1 = "rbxassetid://260429964",
  107. Slice2 = "rbxassetid://260430015",
  108. Explosion1 = "rbxassetid://138186576",
  109. Explosion2 = "rbxassetid://157878578",
  110. Woosh1 = "rbxassetid://541909867",
  111. Woosh2 = "rbxassetid://541909763",
  112.  
  113. }
  114. local bgmusic = Instance.new("Sound")
  115. bgmusic.Volume = 3.5
  116. bgmusic.SoundId = "rbxassetid://877658690"
  117. bgmusic.Looped = true
  118. bgmusic.Parent = owner
  119. bgmusic:Play()
  120.  
  121. --[[Important Variables]]--
  122. local plr = owner
  123. local char = plr.Character
  124. local input = game:GetService('UserInputService')
  125. ----
  126. local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
  127. local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
  128. local rs = torso["Right Shoulder"]
  129. local ls = torso["Left Shoulder"]
  130. local rh = torso["Right Hip"]
  131. local lh = torso["Left Hip"]
  132. local neck = torso.Neck
  133. local rj = rootpart["RootJoint"]
  134. local humanoid = char:FindFirstChildOfClass("Humanoid")
  135. ----
  136. local huge = Vector3.new(math.huge, math.huge, math.huge)
  137. local attacking = false
  138. local cananim = true
  139. local currentanim = "Idle"
  140. local mode = "Normal"
  141.  
  142. --[[ Functions ]]--
  143. function addattack(keycode, func)
  144. if keycode ~= "MouseClick" then
  145. input.InputBegan:connect(function(inp)
  146. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  147. func()
  148. end
  149. end)
  150. else
  151. mouse.Button1Down:connect(function()
  152. func()
  153. end)
  154. end
  155. end
  156. function attackend(keycode, func)
  157. input.InputEnded:connect(function(inp)
  158. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  159. func()
  160. end
  161. end)
  162. end
  163. function swait(t)
  164. if t then
  165. for i = 0, t do
  166. game:GetService('RunService').Stepped:wait(0)
  167. end
  168. else
  169. game:GetService('RunService').Stepped:wait(0)
  170. end
  171. return true
  172. end
  173. function fade(obj, dest, grow)
  174. spawn(function()
  175. local oldcf = obj.CFrame
  176. for i = 0, 10 do
  177. if grow then
  178. obj.Size = obj.Size +Vector3.new(1,1,1)
  179. obj.CFrame = oldcf
  180. end
  181. obj.Transparency = obj.Transparency +0.1
  182. swait()
  183. end
  184. if dest then
  185. obj:Destroy()
  186. end
  187. end)
  188. end
  189. function replacejoint(name)
  190. local j = torso:FindFirstChild(name)
  191. if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  192. if j then
  193. if true then
  194. local already = j.Parent:FindFirstChild(j.Name.." Replacement")
  195. local new = Instance.new("Weld")
  196. local c0 = j.C0
  197. local c1 = j.C1
  198. new.Part0 = j.Part0
  199. j.Part0 = nil
  200. new.Name = j.Name.." Replacement"
  201. if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
  202. new.Parent = j.Parent
  203. new.Part1 = j.Part1
  204. new.C0 = c0
  205. new.C1 = c1
  206. return new
  207. end
  208. end
  209. end
  210. function removejoint(name, fast)
  211. local j = torso:FindFirstChild(name.." Replacement")
  212. if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  213. if j then
  214. local p0 = j.Part0
  215. if p0 ~= nil then
  216. local c0 = j.C0
  217. local c1 = j.C1
  218. j:Destroy()
  219. local new = p0:FindFirstChild(name)
  220. local ac0 = new.C0
  221. local ac1 = new.C1
  222. new.Part0 = p0
  223. new.C0 = c0
  224. new.C1 = c1
  225. spawn(function()
  226. if name ~= "RootJoint" then
  227. if not fast then
  228. for i = 0, 0.6, 0.1 do
  229. print(i)
  230. new.C0 = new.C0:Lerp(ac0, 0.5)
  231. new.C1 = new.C1:lerp(ac1, 0.5)
  232. swait()
  233. end
  234. else
  235. new.C0 = new.C0:Lerp(ac0, 1)
  236. new.C1 = new.C1:lerp(ac1, 1)
  237. end
  238. end
  239. end)
  240. end
  241. end
  242. end
  243. function fixalljoints(fast)
  244. for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
  245. removejoint(v, fast)
  246. end
  247. end
  248. function getnewjoints()
  249. local rs = replacejoint("Right Shoulder")
  250. local ls = replacejoint("Left Shoulder")
  251. local rh = replacejoint("Right Hip")
  252. local lh = replacejoint("Left Hip")
  253. local neck = replacejoint("Neck")
  254. local rj = replacejoint("RootJoint")
  255. return rs,ls,rh,lh,neck,rj
  256. end
  257. function knockback(hit, force)
  258. local bv = Instance.new("BodyVelocity")
  259. bv.MaxForce = huge
  260. bv.Velocity = force
  261. bv.Parent = hit
  262. game:GetService('Debris'):AddItem(bv, 0.15)
  263. end
  264. function soundeffect(id, volume, speed, parent, forcewait)
  265. local func = function()
  266. local s = LoadLibrary("RbxUtility").Create("Sound")()
  267. s.Name = "SoundEffect"
  268. s.Volume = volume
  269. s.PlaybackSpeed = speed
  270. s.SoundId = id
  271. s.Looped = false
  272. s.Parent = parent
  273. s:Play()
  274. repeat wait() until not s.Playing
  275. s:Destroy()
  276. end
  277. if forcewait then
  278. func()
  279. else
  280. spawn(func)
  281. end
  282. end
  283. function specialsound(id, volume, speed, parent, starts, ends)
  284. local func = function()
  285. local s = LoadLibrary("RbxUtility").Create("Sound")()
  286. s.Name = "SoundEffect"
  287. s.Volume = volume
  288. s.PlaybackSpeed = speed
  289. s.SoundId = id
  290. s.TimePosition = starts
  291. s.Looped = false
  292. s.Parent = parent
  293. s:Play()
  294. repeat swait() until s.TimePosition >= ends
  295. s:Destroy()
  296. end
  297. spawn(func)
  298. end
  299. function hurt(hit, dmg)
  300. --pcall(function()
  301. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  302. if hum then
  303. if hum.Parent ~= char and not hum.Parent:FindFirstChild("kk_urcool") then
  304. hum.Health = hum.Health - dmg
  305. return true
  306. end
  307. end
  308. --end)
  309. end
  310. function disable(hit)
  311. pcall(function()
  312. for i,v in pairs(hit.Parent:GetChildren()) do
  313. if v:IsA("Script") and v.Name ~= "Animate" then
  314. v:Destroy()
  315. soundeffect("rbxassetid://1132948877", 1, 1, char.Head)
  316. end
  317. if v:IsA("Model") then
  318. v:BreakJoints()
  319. end
  320. if v.Name ~= "Torso" and v.Name ~= "HumanoidRootPart" then
  321. for _,child in pairs(v:GetChildren()) do
  322. if child:IsA("Weld") then
  323. child:Destroy()
  324. end
  325. end
  326. end
  327. end
  328. end)
  329. end
  330. humanoid.Running:connect(function(speed)
  331. if speed > 2 then
  332. currentanim = "Walking"
  333. else
  334. currentanim = "Idle"
  335. end
  336. end)
  337. humanoid.Jumping:connect(function(active)
  338. if active then
  339. currentanim = "Jumping"
  340. end
  341. end)
  342. humanoid.FallingDown:connect(function(active)
  343. if active then
  344. currentanim = "Falling"
  345. end
  346. end)
  347. humanoid.FreeFalling:connect(function(active)
  348. if active and char.HumanoidRootPart.Velocity.Y < 0 then
  349. currentanim = "Falling"
  350. end
  351. end)
  352. pcall(function()
  353. char.Animate:Destroy()
  354. end)
  355. for i,v in pairs(humanoid:GetPlayingAnimationTracks()) do
  356. v:Stop()
  357. end
  358. --[[ Actual script :OOOOOOOOOO ]]--
  359. local gun = Instance.new("Part")
  360. gun.Size = Vector3.new(1, 1, 2)
  361. gun.CanCollide = false
  362. gun.Anchored = false
  363. gun.Color = Color3.new(0,0,0)
  364. local gunw = Instance.new("Weld")
  365. gunw.Name = "GunWeld"
  366. gunw.Part0 = gun
  367. gunw.Part1 = char["Right Arm"]
  368. gunw.C1 = CFrame.new(0,-1,-0.25) *CFrame.Angles(math.rad(270),math.rad(0),math.rad(0))
  369. gunw.Parent = gun
  370. local m = Instance.new("SpecialMesh")
  371. m.MeshId = "http://www.roblox.com/asset/?id=4372594"
  372. m.Scale = Vector3.new(1.2,1.2,1.2)
  373. m.Parent = gun
  374. gun.Parent = char
  375.  
  376. addattack(Enum.KeyCode.R, function()
  377. if not attacking then
  378. if mode == "Normal" then
  379. mode = "Heal"
  380. gun.Color = Color3.new(0,1,0)
  381. specialsound("rbxassetid://741894739", 5, 1, char, 18.49549100592, 20.526269195994)
  382. else
  383. gun.Color = Color3.new(0,0,0)
  384. mode = "Normal"
  385. soundeffect("rbxassetid://833797091", 5, 1, char)
  386. end
  387. end
  388. end)
  389. addattack(Enum.KeyCode.Q, function()
  390. if not attacking then
  391. mode = "Disable"
  392. gun.Color = Color3.new(1,0,0)
  393. specialsound("rbxassetid://741894739", 5, 1, char, 33.878067323327, 35.438444041738)
  394. end
  395. end)
  396. addattack(Enum.KeyCode.P, function()
  397. if bgmusic.Playing then
  398. bgmusic:Stop()
  399. else
  400. bgmusic:Play()
  401. end
  402. end)
  403. addattack("MouseClick", function()
  404. if not attacking then
  405. cananim = false
  406. attacking = true
  407. for i = 0, 0.6, 0.1 do
  408. 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)
  409. 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)
  410. 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)
  411. 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)
  412. 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)
  413. 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)
  414. 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)
  415. 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)
  416. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  417. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  418. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  419. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  420. swait()
  421. end
  422. local sounds = {
  423. {17.49, 17.981267708586};
  424. {17.490114626798, 17.755552823579};
  425. {18, 18.465876732586707476};
  426. }
  427. local ids = sounds[math.random(#sounds)]
  428. specialsound("rbxassetid://741894739", 5, 1, char, ids[1], ids[2])
  429. local p = Instance.new("Part")
  430. p.Anchored = false
  431. p.Material = "Neon"
  432. p.CanCollide = false
  433. local start = gun.Position +Vector3.new(0.5,0,-0.5)
  434. local endp = mouse.Hit.p
  435. local ray = Ray.new(start, (endp-start).unit * 999)
  436. local hit,position = workspace:FindPartOnRayWithIgnoreList(ray, {char, gun})
  437. local mag = (start-position).magnitude + 2
  438. p.Size = Vector3.new(0.1,0.1,mag)
  439. p.CFrame = CFrame.new(start, position) *CFrame.new(0,0,-mag/2)
  440. local bp = Instance.new("BodyPosition")
  441. bp.MaxForce = huge
  442. bp.Position = p.Position
  443. bp.Parent = p
  444. p.Color = gun.Color
  445. if mode == "Normal" then
  446. p.Color = Color3.new(1,1,1)
  447. end
  448. p.Parent = workspace
  449. spawn(function()
  450. for i = 1, 10 do
  451. p.Transparency = i/10
  452. swait()
  453. end
  454. p:Destroy()
  455. end)
  456. local con
  457. local dmg = 750
  458. if mode == "Heal" then dmg = -1000 end
  459. if mode == "Disable" then dmg = 0 end
  460. con = p.Touched:connect(function(hit)
  461. if hurt(hit, dmg) then
  462. pcall(function()
  463. con:disconnect()
  464. if mode == "Disable" then
  465. disable(hit)
  466. end
  467. for i,v in pairs(hit.Parent:GetDescendants()) do
  468. spawn(function()
  469. if v:IsA("BasePart") and mode == "Normal" then
  470. local bv = Instance.new("BodyVelocity")
  471. bv.MaxForce = huge
  472. bv.Velocity = CFrame.new(start, position).lookVector*100
  473. bv.Parent = v
  474. game:GetService('Debris'):AddItem(bv, 0.1)
  475. if v.Transparency <= 0.9 then
  476. for i = 1, 20 do
  477. v.Transparency = i/20
  478. swait()
  479. end
  480. end
  481. v:Destroy()
  482. end
  483. end)
  484. end
  485. end)
  486. end
  487. end)
  488. for i = 0, 0.3, 0.1 do
  489. 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)
  490. 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)
  491. 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)
  492. 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)
  493. 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)
  494. 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)
  495. 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)
  496. 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)
  497. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.8)
  498. 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)
  499. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.8)
  500. 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)
  501. swait()
  502. end
  503. cananim = true
  504. attacking = false
  505. end
  506. end)
  507. while true do
  508. swait()
  509. if currentanim == "Jumping" and cananim then
  510. for i = 0, 1.2, 0.1 do
  511. if currentanim ~= "Jumping" or not cananim then break end
  512. 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)
  513. 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)
  514. 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)
  515. 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)
  516. 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)
  517. 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)
  518. 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)
  519. 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)
  520. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  521. 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)
  522. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  523. 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)
  524. swait()
  525. end
  526. end
  527. if currentanim == "Falling" and cananim then
  528. for i = 0, 1.2, 0.1 do
  529. if currentanim ~= "Falling" 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.389569163, -0.799008012, -0.155881107, 0.00388455181, 0.987768173, 0.0170185864, -0.999833226, 0.00661772862, 0.987629175, 0.0178419873, 0.155789018), 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.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)
  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, 1, -1.49011612e-08, -0.0421661586, 0.0827250704, 0.995679915, -0.0600035824, 0.994557679, -0.085172914, -0.997307122, -0.0633357614, -0.0369728766), 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.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)
  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.313415587, -0.0163925812, -0.996639967, -0.0819067881, 0, 0.00564728118, -0.0687159598, 0.997620344, -0.0817118809, 0.994268239, 0.068947643), 0.4)
  542. swait()
  543. end
  544. end
  545. if currentanim == "Walking" and cananim then
  546. for i = 0, 0.6, 0.1 do
  547. if currentanim ~= "Walking" 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.6)
  549. 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)
  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.6)
  551. 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)
  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.6)
  553. 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)
  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.6)
  555. 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)
  556. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  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.6)
  558. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  559. 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)
  560. swait()
  561. end
  562. local rslastc0 = rs.C0
  563. local rslastc1 = rs.C1
  564. local lslastc0 = ls.C0
  565. local lslastc1 = ls.C1
  566. local rhlastc0 = rh.C0
  567. local rhlastc1 = rh.C1
  568. local lhlastc0 = lh.C0
  569. local lhlastc1 = lh.C1
  570. local necklastc0 = neck.C0
  571. local necklastc1 = neck.C1
  572. local rjlastc0 = rj.C0
  573. local rjlastc1 = rj.C1
  574. local max = 0.6
  575. for i = 0, max, 0.1 do
  576. if currentanim ~= "Walking" or not cananim then break end
  577. 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)
  578. 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)
  579. 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)
  580. 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)
  581. 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)
  582. 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)
  583. 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)
  584. 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)
  585. neck.C0 = necklastc0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  586. 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)
  587. rj.C0 = rjlastc0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  588. 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)
  589. swait()
  590. end
  591. for i = 0, 0.6, 0.1 do
  592. if currentanim ~= "Walking" or not cananim then break end
  593. 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)
  594. 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)
  595. 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)
  596. 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)
  597. 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)
  598. 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)
  599. 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)
  600. 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)
  601. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  602. 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)
  603. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  604. 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)
  605. swait()
  606. end
  607. local rslastc0 = rs.C0
  608. local rslastc1 = rs.C1
  609. local lslastc0 = ls.C0
  610. local lslastc1 = ls.C1
  611. local rhlastc0 = rh.C0
  612. local rhlastc1 = rh.C1
  613. local lhlastc0 = lh.C0
  614. local lhlastc1 = lh.C1
  615. local necklastc0 = neck.C0
  616. local necklastc1 = neck.C1
  617. local rjlastc0 = rj.C0
  618. local rjlastc1 = rj.C1
  619. local max = 0.6
  620. for i = 0, max, 0.1 do
  621. if currentanim ~= "Walking" or not cananim then break end
  622. 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)
  623. 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)
  624. 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)
  625. 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)
  626. 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)
  627. 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)
  628. 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)
  629. 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)
  630. neck.C0 = necklastc0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  631. 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)
  632. rj.C0 = rjlastc0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  633. 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)
  634. wait()
  635. end
  636. end
  637. if currentanim == "Idle" and cananim then
  638. for i = 0, 5, 0.1 do
  639. if currentanim ~= "Idle" or not cananim then break end
  640. 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)
  641. 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)
  642. 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)
  643. 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)
  644. 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)
  645. 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)
  646. 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)
  647. 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)
  648. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  649. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  650. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  651. 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)
  652. swait()
  653. end
  654. for i = 0, 5, 0.1 do
  655. if currentanim ~= "Idle" or not cananim then break end
  656. 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)
  657. 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)
  658. 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)
  659. 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)
  660. 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)
  661. 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)
  662. 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)
  663. 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)
  664. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  665. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  666. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  667. 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)
  668. swait()
  669. end
  670. end
  671. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement