Advertisement
voidscriptbuilderr

another fe kitchen gun

Jul 11th, 2019
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.06 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Talon")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152. local plr = game.Players.LocalPlayer
  153. local char = plr.Character
  154. local mouse = plr:GetMouse()
  155. local torso = char.Torso
  156. local rs = torso["Right Shoulder"]
  157. local ls = torso["Left Shoulder"]
  158. local rh = torso["Right Hip"]
  159. local lh = torso["Left Hip"]
  160. local rj = char.HumanoidRootPart.RootJoint
  161. local neck = torso.Neck
  162. local animpose = "Idle"
  163. local attacking = false
  164. local cananim = true
  165. local rage = false
  166. local shield
  167. local sprint = false
  168. local canrage = true
  169. local legs = true
  170. local bc = char:WaitForChild("Body Colors")
  171. local multiplier = 1
  172. local lac = char["Body Colors"].LeftArmColor
  173. local rac = char["Body Colors"].RightArmColor
  174. local rlc = char["Body Colors"].RightArmColor
  175. local llc = char["Body Colors"].LeftLegColor
  176. local hc = char["Body Colors"].HeadColor
  177. local tc = char["Body Colors"].TorsoColor
  178. local humanoid = char:FindFirstChildOfClass("Humanoid")
  179. local huge = Vector3.new(math.huge, math.huge, math.huge)
  180. local mobs = Instance.new("Sound", char)
  181. mobs.SoundId = "rbxassetid://245913129"
  182. mobs.Looped = true
  183. mobs.Volume = 3
  184. humanoid.MaxHealth = math.huge
  185. wait()
  186. humanoid.Health = math.huge
  187. humanoid.Name = "BOOM BOOM BOOOMMMM!"
  188. mobs:Play()
  189. if char:FindFirstChild("Animate") then
  190. char.Animate:Destroy()
  191. end
  192. if char:FindFirstChildOfClass("Humanoid"):FindFirstChild("Animator") then
  193. char:FindFirstChildOfClass("Humanoid").Animator:Destroy()
  194. end
  195. function legsonly()
  196. spawn(function()
  197. for i = 0, 10 do
  198. wait(0.001)
  199. if attacking then
  200. break
  201. end
  202. end
  203. if not attacking then
  204. legs = false
  205. end
  206. end)
  207. end
  208. function swait(t)
  209. if t == nil or t == 0 then
  210. game:service("RunService").Stepped:wait(0)
  211. else
  212. for i = 0, t do
  213. game:service("RunService").Stepped:wait(0)
  214. end
  215. end
  216. end
  217. function KICK(PLAYER)
  218. spawn(function()
  219. local function SKICK()
  220. if PLAYER.Character and PLAYER.Character:FindFirstChild("HumanoidRootPart") and PLAYER.Character:FindFirstChild("Torso") then
  221. PLAYER.Character.HumanoidRootPart.CFrame = CFrame.new(math.random(999000, 1001000), 1000000, 1000000)
  222. do
  223. local SP = Instance.new("SkateboardPlatform", PLAYER.Character)
  224. SP.Position = PLAYER.Character.HumanoidRootPart.Position
  225. SP.Transparency = 1
  226. spawn(function()
  227. repeat
  228. swait()
  229. if PLAYER.Character and PLAYER.Character:FindFirstChild("HumanoidRootPart") then
  230. SP.Position = PLAYER.Character.HumanoidRootPart.Position
  231. end
  232. until not game:GetService("Players"):FindFirstChild(PLAYER.Name)
  233. end)
  234. PLAYER.Character.Torso.Anchored = true
  235. end
  236. end
  237. end
  238. spawn(function()
  239. repeat
  240. wait()
  241. if PLAYER ~= nil then
  242. SKICK()
  243. end
  244. until not game:GetService("Players"):FindFirstChild(PLAYER.Name)
  245. if not game:GetService("Players"):FindFirstChild(PLAYER.Name) then
  246. print("REMOVED " .. PLAYER.Name)
  247. end
  248. end)
  249. end)
  250. end
  251. function hurt(hit, dmg)
  252. if hit.Parent then
  253. if hit.Parent:IsA("LocalScript") then
  254. print("bocks!11")
  255. hit.Parent:Destroy()
  256. end
  257. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  258. if hum and hum.Parent.Name ~= plr.Name then
  259. if dmg == "Kill" or hum.Health > 100000 then
  260. hit.Parent:BreakJoints()
  261. return true
  262. else
  263. if math.random(0, 100) == 50 then
  264. hum.Health = hum.Health - dmg * multiplier * 2.5
  265. else
  266. hum.Health = hum.Health - dmg * multiplier
  267. end
  268. return true
  269. end
  270. end
  271. end
  272. end
  273. function soundeffect(id, volume, speed, parent)
  274. spawn(function()
  275. local s = Instance.new("Sound")
  276. s.SoundId = id
  277. s.Volume = volume
  278. s.PlaybackSpeed = speed
  279. s.Parent = parent
  280. s:Play()
  281. repeat
  282. wait()
  283. until not s.Playing
  284. s:Destroy()
  285. end)
  286. end
  287. function gethum(obj)
  288. if obj.Parent and obj.Parent:FindFirstChild("Humanoid") and obj.Parent.Name ~= plr.Name then
  289. return obj.Parent:FindFirstChildOfClass("Humanoid")
  290. end
  291. end
  292. function smooth(obj)
  293. local sides = {
  294. "Left",
  295. "Right",
  296. "Top",
  297. "Bottom",
  298. "Front",
  299. "Back"
  300. }
  301. for i, v in pairs(sides) do
  302. obj[v .. "Surface"] = "SmoothNoOutlines"
  303. end
  304. end
  305. function fade(obj, dest, grow)
  306. spawn(function()
  307. local oldcf = obj.CFrame
  308. for i = 0, 10 do
  309. if grow then
  310. obj.Size = obj.Size + Vector3.new(1, 1, 1)
  311. obj.CFrame = oldcf
  312. end
  313. obj.Transparency = obj.Transparency + 0.1
  314. swait()
  315. end
  316. if dest then
  317. obj:Destroy()
  318. end
  319. end)
  320. end
  321. local keyamount = 0
  322. mouse.KeyDown:connect(function(key)
  323. if key == "w" or key == "a" or key == "s" or key == "d" then
  324. keyamount = keyamount + 1
  325. if animpose ~= "Falling" then
  326. if keyamount > 3 then
  327. keyamount = 0
  328. end
  329. animpose = "Walking"
  330. end
  331. end
  332. end)
  333. mouse.KeyUp:connect(function(key)
  334. if key == "w" or key == "a" or key == "s" or key == "d" then
  335. keyamount = keyamount - 1
  336. if keyamount < 0 then
  337. keyamount = 0
  338. end
  339. if keyamount == 0 then
  340. animpose = "Idle"
  341. end
  342. end
  343. end)
  344. local gun = Instance.new("Part")
  345. gun.Size = Vector3.new(3.175, 1.916, 0.465)
  346. gun.CanCollide = false
  347. local m = Instance.new("SpecialMesh", gun)
  348. m.MeshId = "rbxassetid://468351345"
  349. m.TextureId = "rbxassetid://468351348"
  350. m.Scale = Vector3.new(0.1, 0.1, 0.1)
  351. gun.CFrame = char.Torso.CFrame
  352. gun.Parent = char
  353. local gunw = Instance.new("Weld", gun)
  354. gunw.Part0 = gun
  355. gunw.Part1 = char["Right Arm"]
  356. gunw.C0 = CFrame.new(-1.7838248, -0.410839319, 0, -0.0871557146, -0.996194541, 0, 0.996194541, -0.0871557146, 0, 0, 0, 1)
  357. mouse.Button1Down:connect(function()
  358. local cf = gun.CFrame * CFrame.new(0, 0, 0.958)
  359. local mag = (gun.Position - mouse.Hit.p).magnitude
  360. local p = Instance.new("Part")
  361. p.CanCollide = false
  362. p.Anchored = false
  363. p.BrickColor = BrickColor.random()
  364. p.Size = Vector3.new(0.2, 0.2, mag)
  365. smooth(p)
  366. p.Material = "Neon"
  367. p.CFrame = CFrame.new(gun.Position, mouse.Hit.p) * CFrame.new(0, 0, -mag / 2)
  368. local m = Instance.new("SpecialMesh", p)
  369. m.MeshType = "Brick"
  370. p.Parent = workspace
  371. p.Touched:connect(function(hit)
  372. hurt(hit, "Kill")
  373. if hit.Size.X > 100 and 100 < hit.Size.Z and hit.Size.Y < 3 then
  374. elseif hit.Parent and hit.Parent.Name ~= plr.Name then
  375. fade(hit, true)
  376. end
  377. end)
  378. local bp = Instance.new("BodyPosition", p)
  379. bp.MaxForce = huge
  380. bp.Position = p.Position
  381. local saved = p.CFrame
  382. for i = 1, 10 do
  383. p.Size = p.Size + Vector3.new(0.01, 0.01, 0.01)
  384. p.CFrame = saved
  385. p.Velocity = Vector3.new(0, 0, 100)
  386. p.Transparency = p.Transparency + 0.1
  387. wait()
  388. end
  389. p:Destroy()
  390. end)
  391. mouse.KeyDown:connect(function(key)
  392. if key == "l" then
  393. function a(b)
  394. pcall(function()
  395. for i, v in pairs(b:children()) do
  396. pcall(function()
  397. if v:IsA("BasePart") and v.Parent and v.Parent.Name == "WafflesAreVeryGood" and v.Anchored then
  398. v.Anchored = false
  399. end
  400. if v:IsA("Sound") and v.Parent.Name ~= "WafflesAreVeryGood" then
  401. v:Destroy()
  402. end
  403. if v:IsA("ParticleEmitter") then
  404. v:Destroy()
  405. end
  406. a(v)
  407. end)
  408. end
  409. end)
  410. end
  411. a(game)
  412. end
  413. if key == "q" then
  414. local cf = gun.CFrame * CFrame.new(0, 0, 0.958)
  415. local mag = (gun.Position - mouse.Hit.p).magnitude
  416. local p = Instance.new("Part")
  417. p.CanCollide = false
  418. p.Anchored = false
  419. p.BrickColor = BrickColor.new("Really red")
  420. p.Size = Vector3.new(0.2, 0.2, mag)
  421. smooth(p)
  422. p.Material = "Neon"
  423. p.CFrame = CFrame.new(gun.Position, mouse.Hit.p) * CFrame.new(0, 0, -mag / 2)
  424. local m = Instance.new("SpecialMesh", p)
  425. m.MeshType = "Brick"
  426. p.Parent = workspace
  427. p.Touched:connect(function(hit)
  428. if gethum(hit) then
  429. for i, v in pairs(hit.Parent:children()) do
  430. if v:IsA("Model") then
  431. v:BreakJoints()
  432. end
  433. local ok = false
  434. for i, e in pairs({
  435. "Right Arm",
  436. "Left Arm",
  437. "Right Leg",
  438. "Left Leg",
  439. "Head",
  440. "Torso",
  441. "HumanoidRootPart"
  442. }) do
  443. if v.Name == e then
  444. ok = true
  445. end
  446. end
  447. if v:IsA("BasePart") and not ok then
  448. fade(v, true)
  449. end
  450. end
  451. end
  452. if hit:FindFirstChildOfClass("TouchTransmitter") then
  453. hit:FindFirstChildOfClass("TouchTransmitter"):Destroy()
  454. end
  455. end)
  456. local bp = Instance.new("BodyPosition", p)
  457. bp.MaxForce = huge
  458. bp.Position = p.Position
  459. local saved = p.CFrame
  460. for i = 1, 10 do
  461. p.Size = p.Size + Vector3.new(0.01, 0.01, 0.01)
  462. p.CFrame = saved
  463. p.Velocity = Vector3.new(0, 0, 100)
  464. p.Transparency = p.Transparency + 0.1
  465. wait()
  466. end
  467. p:Destroy()
  468. end
  469. if key == "e" then
  470. local cf = gun.CFrame * CFrame.new(0, 0, 0.958)
  471. local mag = (gun.Position - mouse.Hit.p).magnitude
  472. local p = Instance.new("Part")
  473. p.CanCollide = false
  474. p.Anchored = false
  475. p.BrickColor = BrickColor.new("New Yeller")
  476. p.Size = Vector3.new(0.2, 0.2, mag)
  477. smooth(p)
  478. p.Material = "Neon"
  479. p.CFrame = CFrame.new(gun.Position, mouse.Hit.p) * CFrame.new(0, 0, -mag / 2)
  480. local m = Instance.new("SpecialMesh", p)
  481. m.MeshType = "Brick"
  482. p.Parent = workspace
  483. p.Touched:connect(function(hit)
  484. if gethum(hit) then
  485. local target = game.Players:FindFirstChild(hit.Parent.Name)
  486. if target then
  487. KICK(target)
  488. end
  489. end
  490. end)
  491. local bp = Instance.new("BodyPosition", p)
  492. bp.MaxForce = huge
  493. bp.Position = p.Position
  494. local saved = p.CFrame
  495. for i = 1, 10 do
  496. p.Size = p.Size + Vector3.new(0.01, 0.01, 0.01)
  497. p.CFrame = saved
  498. p.Velocity = Vector3.new(0, 0, 100)
  499. p.Transparency = p.Transparency + 0.1
  500. wait()
  501. end
  502. p:Destroy()
  503. end
  504. if key == "r" then
  505. local cf = gun.CFrame * CFrame.new(0, 0, 0.958)
  506. local mag = (gun.Position - mouse.Hit.p).magnitude
  507. local p = Instance.new("Part")
  508. p.CanCollide = false
  509. p.Anchored = false
  510. p.BrickColor = BrickColor.new("Lime green")
  511. p.Size = Vector3.new(0.2, 0.2, mag)
  512. smooth(p)
  513. p.Material = "Neon"
  514. p.CFrame = CFrame.new(gun.Position, mouse.Hit.p) * CFrame.new(0, 0, -mag / 2)
  515. local m = Instance.new("SpecialMesh", p)
  516. m.MeshType = "Brick"
  517. p.Parent = workspace
  518. p.Touched:connect(function(hit)
  519. local hum = gethum(hit)
  520. if hum then
  521. hum.Health = hum.MaxHealth
  522. end
  523. end)
  524. local bp = Instance.new("BodyPosition", p)
  525. bp.MaxForce = huge
  526. bp.Position = p.Position
  527. local saved = p.CFrame
  528. for i = 1, 10 do
  529. p.Size = p.Size + Vector3.new(0.01, 0.01, 0.01)
  530. p.CFrame = saved
  531. p.Velocity = Vector3.new(0, 0, 100)
  532. p.Transparency = p.Transparency + 0.1
  533. wait()
  534. end
  535. p:Destroy()
  536. end
  537. end)
  538. game:GetService("RunService").Stepped:connect(function()
  539. local x, z
  540. local dir = CFrame.new(char.HumanoidRootPart.Position, mouse.Hit.p).lookVector
  541. x = dir.X
  542. z = dir.Z
  543. local cf = CFrame.new(char.HumanoidRootPart.Position, char.HumanoidRootPart.Position + Vector3.new(x, 0, z))
  544. char.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame:Lerp(cf, 0.5)
  545. humanoid.AutoRotate = false
  546. end)
  547. while wait() do
  548. if animpose == "Walking" and cananim and legs then
  549. for i = 0, 0.7, 0.1 do
  550. if animpose == "Walking" and cananim and legs then
  551. ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.104528472, -0.994522035, 0, 0.994522035, 0.104528472, 1, 0, 0), 0.2)
  552. rs.C0 = rs.C0:Lerp(CFrame.new(1.54167628, 0.0454798974, 0, -0.482965499, -0.871292651, -0.087155737, -0.0422539636, -0.0762281716, 0.996195912, -0.874620378, 0.484809875, 0), 0.2)
  553. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.500000656, -0.866026223, 0, -1.61309954E-9, 9.31323796E-10, 1.00000024, -0.866026342, 0.500000715, -1.86264515E-9), 0.2)
  554. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.469472021, 0.882948279, 0, 0, 0, 1, 0.882948279, 0.469472021, 0), 0.2)
  555. lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -0.0219629817, 0.02712203, -0.999390841, -0.628937364, 0.776673257, 0.0348994955, 0.777146697, 0.6293208, 0), 0.4)
  556. rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0.0238014236, -0.0255239103, 0.999390841, -0.681583524, 0.73090899, 0.0348994955, -0.731354535, -0.681998909, 0), 0.4)
  557. wait()
  558. else
  559. break
  560. end
  561. end
  562. for i = 0, 0.7, 0.1 do
  563. if animpose == "Walking" and cananim and legs then
  564. ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.104528472, -0.994522035, 0, 0.994522035, 0.104528472, 1, 0, 0), 0.2)
  565. rs.C0 = rs.C0:Lerp(CFrame.new(1.54167628, 0.0454798974, 0, -0.482965499, -0.871292651, -0.087155737, -0.0422539636, -0.0762281716, 0.996195912, -0.874620378, 0.484809875, 0), 0.2)
  566. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.500000656, -0.866026223, 0, -1.61309954E-9, 9.31323796E-10, 1.00000024, -0.866026342, 0.500000715, -1.86264515E-9), 0.2)
  567. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.469472021, 0.882948279, 0, 0, 0, 1, 0.882948279, 0.469472021, 0), 0.2)
  568. lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0.0205134545, 0.0282343514, -0.999390841, 0.587428331, 0.808525503, 0.0348994955, 0.809018135, -0.587786257, 0), 0.4)
  569. rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -0.0224330258, -0.0267346334, 0.999390841, 0.642397523, 0.765579402, 0.0348994955, -0.76604569, 0.642788768, 0), 0.4)
  570. wait()
  571. else
  572. break
  573. end
  574. end
  575. end
  576. if animpose == "Idle" and cananim and legs then
  577. ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.104528472, -0.994522035, 0, 0.994522035, 0.104528472, 1, 0, 0), 0.2)
  578. rs.C0 = rs.C0:Lerp(CFrame.new(1.54167628, 0.0454798974, 0, -0.482965499, -0.871292651, -0.087155737, -0.0422539636, -0.0762281716, 0.996195912, -0.874620378, 0.484809875, 0), 0.2)
  579. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.500000656, -0.866026223, 0, -1.61309954E-9, 9.31323796E-10, 1.00000024, -0.866026342, 0.500000715, -1.86264515E-9), 0.2)
  580. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.469472021, 0.882948279, 0, 0, 0, 1, 0.882948279, 0.469472021, 0), 0.2)
  581. lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0, 0.0523359552, -0.99862957, 0, 0.99862957, 0.0523359552, 1, 0, 0), 0.5)
  582. rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0, -0.0523359627, 0.998629689, 0, 0.998629689, 0.0523359627, -1, 0, 0), 0.5)
  583. end
  584. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement