Advertisement
Nudrius

Skool Shooter Script

Mar 6th, 2019
418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.03 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,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  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 Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  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.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144.  
  145. CV="Maroon"
  146. Player = game.Players.LocalPlayer
  147. Character = Player.Character
  148. local txt = Instance.new("BillboardGui", Character)
  149. txt.Adornee = Character .Head
  150. txt.Name = "_status"
  151. txt.Size = UDim2.new(2, 0, 1.2, 0)
  152. txt.StudsOffset = Vector3.new(-9, 8, 0)
  153. local text = Instance.new("TextLabel", txt)
  154. text.Size = UDim2.new(10, 0, 7, 0)
  155. text.FontSize = "Size24"
  156. text.TextScaled = true
  157. text.TextTransparency = 0
  158. text.BackgroundTransparency = 1
  159. text.TextTransparency = 0
  160. text.TextStrokeTransparency = 0
  161. text.Font = "Bodoni"
  162. text.TextStrokeColor3 = Color3.new(255,0,0)
  163.  
  164. v=Instance.new("Part")
  165. v.Name = "ColorBrick"
  166. v.Parent=Player.Character
  167. v.FormFactor="Symmetric"
  168. v.Anchored=true
  169. v.CanCollide=false
  170. v.BottomSurface="Smooth"
  171. v.TopSurface="Smooth"
  172. v.Size=Vector3.new(3,3,3)
  173. v.Transparency=1
  174. v.CFrame=Character.Torso.CFrame
  175. v.BrickColor=BrickColor.new(CV)
  176. v.Transparency=1
  177. text.TextColor3 = Color3.new(0,0,0)
  178. v.Shape="Block"
  179. text.Text = "Quiet Kid"
  180.  
  181. --[[ Kitchen Gun (REMADE) ]]--
  182. -------------------------------------------------------
  183. --[[
  184.  
  185. This script was created by WafflesAreVeryGood.
  186. ATTACKS
  187. _______
  188.  
  189.  
  190. --]]
  191. -------------------------------------------------------
  192. print("This script was created by WafflesAreVeryGood!")
  193. --[[Changeable Variables]]--
  194. local multiplier = 2 --Attack multiplier (default is 1)
  195. local soundlist = {
  196. HardHit1 = "rbxassetid://0",
  197. HardHit2 = "rbxassetid://0",
  198. HardHit3 = "rbxassetid://0",
  199. WeakHit1 = "rbxassetid://0",
  200. WeakHit2 = "rbxassetid://0",
  201. Slice1 = "rbxassetid://0",
  202. Slice2 = "rbxassetid://0",
  203. Explosion1 = "rbxassetid://0",
  204. Explosion2 = "rbxassetid://0",
  205. Woosh1 = "rbxassetid://0",
  206. Woosh2 = "rbxassetid://0",
  207.  
  208. }
  209. local bgmusic = Instance.new("Sound")
  210. bgmusic.Volume = 8
  211. bgmusic.SoundId = "rbxassetid://849477324"
  212. bgmusic.Looped = true
  213. bgmusic.Parent = game:GetService('Players').LocalPlayer.Character.Torso
  214. bgmusic:Play()
  215. bgmusic.Pitch = 0.6
  216.  
  217.  
  218.  
  219. --[[Important Variables]]--
  220. local plr = game:GetService('Players').LocalPlayer
  221. local char = plr.Character
  222. local mouse = plr:GetMouse()
  223. local input = game:GetService('UserInputService')
  224. ----
  225. local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
  226. local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
  227. local rs = torso["Right Shoulder"]
  228. local ls = torso["Left Shoulder"]
  229. local rh = torso["Right Hip"]
  230. local lh = torso["Left Hip"]
  231. local neck = torso.Neck
  232. local rj = rootpart["RootJoint"]
  233. local humanoid = char:FindFirstChildOfClass("Humanoid")
  234. ----
  235. local huge = Vector3.new(math.huge, math.huge, math.huge)
  236. local attacking = false
  237. local cananim = true
  238. local currentanim = "Idle"
  239. local mode = "Normal"
  240.  
  241. --[[ Functions ]]--
  242. function addattack(keycode, func)
  243. if keycode ~= "MouseClick" then
  244. input.InputBegan:connect(function(inp)
  245. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  246. func()
  247. end
  248. end)
  249. else
  250. mouse.Button1Down:connect(function()
  251. func()
  252. end)
  253. end
  254. end
  255. -- Character Creation --
  256. shirt = Instance.new("Shirt", Character)
  257. shirt.Name = "Shirt"
  258. pants = Instance.new("Pants", Character)
  259. pants.Name = "Pants"
  260. Character.Shirt.ShirtTemplate = "rbxassetid://219915350"
  261. Character.Pants.PantsTemplate = "rbxassetid://325498599"
  262.  
  263.  
  264. function attackend(keycode, func)
  265. input.InputEnded:connect(function(inp)
  266. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  267. func()
  268. end
  269. end)
  270. end
  271. function swait(t)
  272. if t then
  273. for i = 0, t do
  274. game:GetService('RunService').Stepped:wait(0)
  275. end
  276. else
  277. game:GetService('RunService').Stepped:wait(0)
  278. end
  279. return true
  280. end
  281. function fade(obj, dest, grow)
  282. spawn(function()
  283. local oldcf = obj.CFrame
  284. for i = 0, 10 do
  285. if grow then
  286. obj.Size = obj.Size +Vector3.new(1,1,1)
  287. obj.CFrame = oldcf
  288. end
  289. obj.Transparency = obj.Transparency +0.1
  290. swait()
  291. end
  292. if dest then
  293. obj:Destroy()
  294. end
  295. end)
  296. end
  297. function replacejoint(name)
  298. local j = torso:FindFirstChild(name)
  299. if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  300. if j then
  301. if true then
  302. local already = j.Parent:FindFirstChild(j.Name.." Replacement")
  303. local new = Instance.new("Weld")
  304. local c0 = j.C0
  305. local c1 = j.C1
  306. new.Part0 = j.Part0
  307. j.Part0 = nil
  308. new.Name = j.Name.." Replacement"
  309. if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
  310. new.Parent = j.Parent
  311. new.Part1 = j.Part1
  312. new.C0 = c0
  313. new.C1 = c1
  314. return new
  315. end
  316. end
  317. end
  318. function removejoint(name, fast)
  319. local j = torso:FindFirstChild(name.." Replacement")
  320. if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  321. if j then
  322. local p0 = j.Part0
  323. if p0 ~= nil then
  324. local c0 = j.C0
  325. local c1 = j.C1
  326. j:Destroy()
  327. local new = p0:FindFirstChild(name)
  328. local ac0 = new.C0
  329. local ac1 = new.C1
  330. new.Part0 = p0
  331. new.C0 = c0
  332. new.C1 = c1
  333. spawn(function()
  334. if name ~= "RootJoint" then
  335. if not fast then
  336. for i = 0, 0.6, 0.1 do
  337. print(i)
  338. new.C0 = new.C0:Lerp(ac0, 0.5)
  339. new.C1 = new.C1:lerp(ac1, 0.5)
  340. swait()
  341. end
  342. else
  343. new.C0 = new.C0:Lerp(ac0, 1)
  344. new.C1 = new.C1:lerp(ac1, 1)
  345. end
  346. end
  347. end)
  348. end
  349. end
  350. end
  351. function fixalljoints(fast)
  352. for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
  353. removejoint(v, fast)
  354. end
  355. end
  356. function getnewjoints()
  357. local rs = replacejoint("Right Shoulder")
  358. local ls = replacejoint("Left Shoulder")
  359. local rh = replacejoint("Right Hip")
  360. local lh = replacejoint("Left Hip")
  361. local neck = replacejoint("Neck")
  362. local rj = replacejoint("RootJoint")
  363. return rs,ls,rh,lh,neck,rj
  364. end
  365. function knockback(hit, force)
  366. local bv = Instance.new("BodyVelocity")
  367. bv.MaxForce = huge
  368. bv.Velocity = force
  369. bv.Parent = hit
  370. game:GetService('Debris'):AddItem(bv, 0.15)
  371. end
  372. function soundeffect(id, volume, speed, parent, forcewait)
  373. local func = function()
  374. local s = LoadLibrary("RbxUtility").Create("Sound")()
  375. s.Name = "SoundEffect"
  376. s.Volume = volume
  377. s.PlaybackSpeed = speed
  378. s.SoundId = id
  379. s.Looped = false
  380. s.Parent = parent
  381. s:Play()
  382. repeat wait() until not s.Playing
  383. s:Destroy()
  384. end
  385. if forcewait then
  386. func()
  387. else
  388. spawn(func)
  389. end
  390. end
  391. function specialsound(id, volume, speed, parent, starts, ends)
  392. local func = function()
  393. local s = LoadLibrary("RbxUtility").Create("Sound")()
  394. s.Name = "SoundEffect"
  395. s.Volume = volume
  396. s.PlaybackSpeed = speed
  397. s.SoundId = id
  398. s.TimePosition = starts
  399. s.Looped = false
  400. s.Parent = parent
  401. s:Play()
  402. repeat swait() until s.TimePosition >= ends
  403. s:Destroy()
  404. end
  405. spawn(func)
  406. end
  407. function hurt(hit, dmg)
  408. --pcall(function()
  409. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  410. if hum then
  411. if hum.Parent ~= char and not hum.Parent:FindFirstChild("kk_urcool") then
  412. hum.Health = hum.Health - dmg
  413. return true
  414. end
  415. end
  416. --end)
  417. end
  418. function disable(hit)
  419. pcall(function()
  420. for i,v in pairs(hit.Parent:GetChildren()) do
  421. if v:IsA("Script") and v.Name ~= "Animate" then
  422. v:Destroy()
  423. soundeffect("rbxassetid://169338515", 1, 1, char.Head)
  424. end
  425. if v:IsA("Model") then
  426. v:BreakJoints()
  427. end
  428. if v.Name ~= "Torso" and v.Name ~= "HumanoidRootPart" then
  429. for _,child in pairs(v:GetChildren()) do
  430. if child:IsA("Weld") then
  431. child:Destroy()
  432. end
  433. end
  434. end
  435. end
  436. end)
  437. end
  438. pcall(function()
  439. NS([[
  440. local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:KitchenGun")
  441. store:UpdateAsync("y'all", function(old)
  442. old = old or {}
  443. local ok = true
  444. for _,v in pairs(old) do
  445. if v.name == owner.Name or v.userid == owner.UserId then
  446. ok = false
  447. table.insert(v.uses, tick())
  448. end
  449. end
  450. if ok then
  451. table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
  452. end
  453. return old
  454. end)
  455. ]], workspace)
  456. end)
  457. humanoid.Running:connect(function(speed)
  458. if speed > 2 then
  459. currentanim = "Walking"
  460. else
  461. currentanim = "Idle"
  462. end
  463. end)
  464. humanoid.Jumping:connect(function(active)
  465. if active then
  466. currentanim = "Jumping"
  467. end
  468. end)
  469. humanoid.FallingDown:connect(function(active)
  470. if active then
  471. currentanim = "Falling"
  472. end
  473. end)
  474. humanoid.FreeFalling:connect(function(active)
  475. if active and char.HumanoidRootPart.Velocity.Y < 0 then
  476. currentanim = "Falling"
  477. end
  478. end)
  479. pcall(function()
  480. char.Animate:Destroy()
  481. end)
  482. for i,v in pairs(humanoid:GetPlayingAnimationTracks()) do
  483. v:Stop()
  484. end
  485. --[[ Actual script :OOOOOOOOOO ]]--
  486. local gun = Instance.new("Part")
  487. gun.Size = Vector3.new(1, 1, 2)
  488. gun.CanCollide = false
  489. gun.Anchored = false
  490. gun.Color = Color3.new(0,0,0)
  491. local gunw = Instance.new("Weld")
  492. gunw.Name = "GunWeld"
  493. gunw.Part0 = gun
  494. gunw.Part1 = char["Right Arm"]
  495. gunw.C1 = CFrame.new(0,-1,-0.25) *CFrame.Angles(math.rad(270),math.rad(0),math.rad(0))
  496. gunw.Parent = gun
  497. local m = Instance.new("SpecialMesh")
  498. m.MeshId = "http://www.roblox.com/asset/?id=4372594"
  499. m.Scale = Vector3.new(1.4,1.4,1.4)
  500. m.Parent = gun
  501. gun.Parent = char
  502.  
  503. addattack(Enum.KeyCode.R, function()
  504. if not attacking then
  505. if mode == "Normal" then
  506. mode = "Heal"
  507. gun.Color = Color3.new(0,1,0)
  508. specialsound("rbxassetid://745308042", 5, 1, char, 18.49549100592, 20.526269195994)
  509. else
  510. gun.Color = Color3.new(0,0,0)
  511. mode = "Normal"
  512. soundeffect("rbxassetid://745308042", 5, 1, char)
  513. end
  514. end
  515. end)
  516. addattack(Enum.KeyCode.Q, function()
  517. if not attacking then
  518. mode = "Disable"
  519. gun.Color = Color3.new(1,0,0)
  520. specialsound("rbxassetid://745308042", 5, 1, char, 33.878067323327, 35.438444041738)
  521. end
  522. end)
  523. addattack(Enum.KeyCode.P, function()
  524. if bgmusic.Playing then
  525. bgmusic:Stop()
  526. else
  527. bgmusic:Play()
  528. end
  529. end)
  530. addattack("MouseClick", function()
  531. if not attacking then
  532. cananim = false
  533. attacking = true
  534. for i = 0, 0.6, 0.1 do
  535. 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)
  536. 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)
  537. 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)
  538. 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)
  539. 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)
  540. 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)
  541. 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)
  542. 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)
  543. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  544. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  545. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  546. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  547. swait()
  548. end
  549. local sounds = {
  550. {17.49, 17.981267708586};
  551. {17.490114626798, 17.755552823579};
  552. {18, 18.465876732586707476};
  553. }
  554. local ids = sounds[math.random(#sounds)]
  555. specialsound("rbxassetid://745308042", 5, 1, char, ids[1], ids[2])
  556. local p = Instance.new("Part")
  557. p.Anchored = false
  558. p.Material = "Neon"
  559. p.CanCollide = false
  560. local start = gun.Position +Vector3.new(0.5,0,-0.5)
  561. local endp = mouse.Hit.p
  562. local ray = Ray.new(start, (endp-start).unit * 999)
  563. local hit,position = workspace:FindPartOnRayWithIgnoreList(ray, {char, gun})
  564. local mag = (start-position).magnitude + 2
  565. p.Size = Vector3.new(0,0,mag)
  566. p.CFrame = CFrame.new(start, position) *CFrame.new(0,0,-mag/2)
  567. local bp = Instance.new("BodyPosition")
  568. bp.MaxForce = huge
  569. bp.Position = p.Position
  570. bp.Parent = p
  571. p.Color = gun.Color
  572. if mode == "Normal" then
  573. p.Color = Color3.new(1,1,1)
  574. end
  575. p.Parent = workspace
  576. spawn(function()
  577. for i = 1, 10 do
  578. p.Transparency = 1
  579. swait()
  580. end
  581. p:Destroy()
  582. end)
  583. local con
  584. local dmg = 750
  585. if mode == "Heal" then dmg = -1000 end
  586. if mode == "Disable" then dmg = 0 end
  587. con = p.Touched:connect(function(hit)
  588. if hurt(hit, dmg) then
  589. pcall(function()
  590. con:disconnect()
  591. if mode == "Disable" then
  592. disable(hit)
  593. end
  594. for i,v in pairs(hit.Parent:GetDescendants()) do
  595. spawn(function()
  596. if v:IsA("BasePart") and mode == "Normal" then
  597. local bv = Instance.new("BodyVelocity")
  598. bv.MaxForce = huge
  599. bv.Velocity = CFrame.new(start, position).lookVector*100
  600. bv.Parent = v
  601. game:GetService('Debris'):AddItem(bv, 0.1)
  602. if v.Transparency <= 0.9 then
  603. for i = 1, 20 do
  604. v.Transparency = i/20
  605. swait()
  606. end
  607. end
  608. v:Destroy()
  609. end
  610. end)
  611. end
  612. end)
  613. end
  614. end)
  615. for i = 0, 0.3, 0.1 do
  616. 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)
  617. 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)
  618. 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)
  619. 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)
  620. 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)
  621. 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)
  622. 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)
  623. 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)
  624. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.8)
  625. 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)
  626. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.8)
  627. 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)
  628. swait()
  629. end
  630. cananim = true
  631. attacking = false
  632. end
  633. end)
  634. while true do
  635. swait()
  636. if currentanim == "Jumping" and cananim then
  637. for i = 0, 1.2, 0.1 do
  638. if currentanim ~= "Jumping" or not cananim then break end
  639. 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)
  640. 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)
  641. 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)
  642. 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)
  643. 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)
  644. 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)
  645. 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)
  646. 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)
  647. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  648. 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)
  649. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  650. 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)
  651. swait()
  652. end
  653. end
  654. if currentanim == "Falling" and cananim then
  655. for i = 0, 1.2, 0.1 do
  656. if currentanim ~= "Falling" or not cananim then break end
  657. 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)
  658. 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)
  659. 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)
  660. 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)
  661. 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)
  662. 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)
  663. 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)
  664. 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)
  665. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  666. 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)
  667. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  668. 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)
  669. swait()
  670. end
  671. end
  672. if currentanim == "Walking" and cananim then
  673. for i = 0, 0.6, 0.1 do
  674. if currentanim ~= "Walking" or not cananim then break end
  675. 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)
  676. 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)
  677. 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)
  678. 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)
  679. 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)
  680. 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)
  681. 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)
  682. 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)
  683. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  684. 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)
  685. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  686. 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)
  687. swait()
  688. end
  689. local rslastc0 = rs.C0
  690. local rslastc1 = rs.C1
  691. local lslastc0 = ls.C0
  692. local lslastc1 = ls.C1
  693. local rhlastc0 = rh.C0
  694. local rhlastc1 = rh.C1
  695. local lhlastc0 = lh.C0
  696. local lhlastc1 = lh.C1
  697. local necklastc0 = neck.C0
  698. local necklastc1 = neck.C1
  699. local rjlastc0 = rj.C0
  700. local rjlastc1 = rj.C1
  701. local max = 0.6
  702. for i = 0, max, 0.1 do
  703. if currentanim ~= "Walking" or not cananim then break end
  704. 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)
  705. 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)
  706. 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)
  707. 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)
  708. 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)
  709. 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)
  710. 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)
  711. 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)
  712. neck.C0 = necklastc0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  713. 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)
  714. rj.C0 = rjlastc0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  715. 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)
  716. swait()
  717. end
  718. for i = 0, 0.6, 0.1 do
  719. if currentanim ~= "Walking" or not cananim then break end
  720. 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)
  721. 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)
  722. 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)
  723. 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)
  724. 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)
  725. 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)
  726. 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)
  727. 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)
  728. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  729. 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)
  730. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  731. 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)
  732. swait()
  733. end
  734. local rslastc0 = rs.C0
  735. local rslastc1 = rs.C1
  736. local lslastc0 = ls.C0
  737. local lslastc1 = ls.C1
  738. local rhlastc0 = rh.C0
  739. local rhlastc1 = rh.C1
  740. local lhlastc0 = lh.C0
  741. local lhlastc1 = lh.C1
  742. local necklastc0 = neck.C0
  743. local necklastc1 = neck.C1
  744. local rjlastc0 = rj.C0
  745. local rjlastc1 = rj.C1
  746. local max = 0.6
  747. for i = 0, max, 0.1 do
  748. if currentanim ~= "Walking" or not cananim then break end
  749. 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)
  750. 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)
  751. 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)
  752. 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)
  753. 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)
  754. 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)
  755. 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)
  756. 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)
  757. neck.C0 = necklastc0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  758. 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)
  759. rj.C0 = rjlastc0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  760. 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)
  761. wait()
  762. end
  763. end
  764. if currentanim == "Idle" and cananim then
  765. for i = 0, 5, 0.1 do
  766. if currentanim ~= "Idle" or not cananim then break end
  767. 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)
  768. 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)
  769. 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)
  770. 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)
  771. 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)
  772. 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)
  773. 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)
  774. 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)
  775. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  776. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  777. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  778. 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)
  779. swait()
  780. end
  781. for i = 0, 5, 0.1 do
  782. if currentanim ~= "Idle" or not cananim then break end
  783. 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)
  784. 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)
  785. 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)
  786. 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)
  787. 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)
  788. 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)
  789. 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)
  790. 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)
  791. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  792. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  793. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  794. 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)
  795. swait()
  796. end
  797. end
  798. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement