Advertisement
DoggoClan

DogeGun

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