Advertisement
Kapalsya123

Fe bow script

Mar 4th, 2022
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.84 KB | None | 0 0
  1. https://www.roblox.com/catalog/5944291607/RB-Battles-Archer-Pack
  2.  
  3. --// SETTINGS \\ --
  4.  
  5. local Fling = true --// Recommended: true
  6. local FlingBlockInvisible = true --// Recommended: false (So you can see the flinging block)
  7. local HighlightFlingBlock = true --// Recommended: true
  8. local FlingHighlightColor = Color3.fromRGB(238,130,238)
  9. local GunHatId = 5944291607-- // (Red Sci-Fi Scattergun)
  10. --// GunHatId is the HatId you will use as the gun for the script, you must have the hat equipped.
  11.  
  12.  
  13.  
  14.  
  15. -- // MAIN \\ --
  16.  
  17. local HAT_NAME = game:GetObjects("rbxassetid://"..tostring(GunHatId))[1].Name
  18.  
  19. -- // Uses Mizt's bypass \\ --
  20.  
  21. Bypass = "death"
  22. loadstring(game:GetObjects("rbxassetid://5325226148")[1].Source)()
  23.  
  24. local IsDead = false
  25. local StateMover = true
  26.  
  27. local playerss = workspace.non
  28. local bbv,bullet
  29. if Bypass == "death" then
  30. bullet = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  31. bullet.Transparency = (FlingBlockInvisible ~= true and 0 or 1)
  32. bullet.Massless = true
  33. if bullet:FindFirstChildOfClass("Attachment") then
  34. for _,v in pairs(bullet:GetChildren()) do
  35. if v:IsA("Attachment") then
  36. v:Destroy()
  37. end
  38. end
  39. end
  40.  
  41. bbv = Instance.new("BodyPosition",bullet)
  42. bbv.Position = playerss.Torso.CFrame.p
  43. end
  44.  
  45. if Bypass == "death" then
  46. coroutine.wrap(function()
  47. while true do
  48. if not playerss or not playerss:FindFirstChildOfClass("Humanoid") or playerss:FindFirstChildOfClass("Humanoid").Health <= 0 then IsDead = true; return end
  49. if StateMover then
  50. bbv.Position = playerss.Torso.CFrame.p
  51. bullet.Position = playerss.Torso.CFrame.p
  52. end
  53. game:GetService("RunService").RenderStepped:wait()
  54. end
  55. end)()
  56. end
  57.  
  58. --[[local force = Instance.new("BodyForce",bullet)
  59. force.Force = Vector3.new(800,800,800)]]--
  60.  
  61. if HighlightFlingBlock ~= false then
  62. local Highlight = Instance.new("SelectionBox")
  63. Highlight.Adornee = bullet
  64. Highlight.Color3 = (typeof(FlingHighlightColor)=="Color3" and FlingHighlightColor) or (Color3.fromRGB(255,0,0))
  65. Highlight.Parent = bullet
  66. Highlight.Name = "HighlightBox"
  67. end
  68.  
  69. bbav = Instance.new("BodyAngularVelocity",bullet)
  70. bbav.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  71. bbav.P = 100000000000000000000000000000
  72. bbav.AngularVelocity = Vector3.new(10000000000000000000000000000000,100000000000000000000000000,100000000000000000)
  73.  
  74. local CDDF = {}
  75. local DamageFling = function(DmgPer)
  76. if Fling ~= true then return end
  77. if IsDead or Bypass ~= "death" or (DmgPer.Name == playerss.Name and DmgPer.Name == "non") or CDDF[DmgPer] or not DmgPer or not DmgPer:FindFirstChildOfClass("Humanoid") or DmgPer:FindFirstChildOfClass("Humanoid").Health <= 0 then return end
  78. CDDF[DmgPer] = true; StateMover = false
  79. local PosFling = (DmgPer:FindFirstChild("HumanoidRootPart") and DmgPer:FindFirstChild("HumanoidRootPart") .CFrame.p) or (DmgPer:FindFirstChildOfClass("Part") and DmgPer:FindFirstChildOfClass("Part").CFrame.p)
  80. bullet.Rotation = playerss.Torso.Rotation
  81. bbav = Instance.new("BodyAngularVelocity",bullet)
  82. bbav.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  83. bbav.P = 100000000000000000000000000000
  84. bbav.AngularVelocity = Vector3.new(10000000000000000000000000000000,100000000000000000000000000,100000000000000000)
  85.  
  86. for _=1,15 do
  87. bbv.Position = PosFling
  88. bullet.Position = PosFling
  89. wait(0.03)
  90. end
  91. bbav:Destroy()
  92. bbv.Position = playerss.Torso.CFrame.p
  93. bullet.Position = playerss.Torso.CFrame.p
  94. CDDF[DmgPer] = false; StateMover = true
  95. end
  96.  
  97. wait(.2)
  98.  
  99.  
  100. local Aligns = 0
  101. function Align(Part0,Part1,Position,Rotation)
  102. Aligns = Aligns + 1
  103. local a0,a1 = Instance.new("Attachment",Part0), Instance.new("Attachment",Part1)
  104. a1.Position = Position or Vector3.new()
  105. a1.Rotation = Rotation or Vector3.new()
  106. local ap = Instance.new("AlignPosition", Part0)
  107. ap.Attachment0 = a0
  108. ap.Attachment1 = a1
  109. local ao = Instance.new("AlignOrientation", Part0)
  110. ao.Name = "AO-"..Aligns
  111. ap.Name = "AP-"..Aligns
  112. ao.Attachment0 = a0
  113. ao.Attachment1 = a1
  114. ap.ApplyAtCenterOfMass = true;
  115. ap.MaxForce = 67752;
  116. ap.MaxVelocity = math.huge/9e110;
  117. ap.ReactionForceEnabled = false;
  118. ap.Responsiveness = 200;
  119. ap.RigidityEnabled = false;
  120. ao.MaxAngularVelocity = math.huge/9e110;
  121. ao.MaxTorque = 67752;
  122. ao.PrimaryAxisOnly = false;
  123. ao.ReactionTorqueEnabled = false;
  124. ao.Responsiveness = 200;
  125. ao.RigidityEnabled = false;
  126. return a1
  127. end
  128.  
  129. local HumanoidIsDead = false
  130.  
  131. local Player=game.Players.LocalPlayer
  132. local Character=workspace.non
  133. local Gun = Character[HAT_NAME]
  134. local GunHandle = Gun.Handle
  135. GunHandle.AccessoryWeld:Destroy()
  136. GunHandle.SpecialMesh:Destroy()
  137. wait()
  138. GunHandle.Parent=workspace
  139. local hum = Character.Humanoid
  140. local LeftArm=Character["Left Arm"]
  141. local LeftLeg=Character["Left Leg"]
  142. local RightArm=Character["Right Arm"]
  143. local RightLeg=Character["Right Leg"]
  144. local Root=Character["HumanoidRootPart"]
  145. local Head=Character["Head"]
  146. local Torso=Character["Torso"]
  147. local Neck=Torso["Neck"]
  148. local mouse = Player:GetMouse()
  149. local walking = false
  150. local jumping = false
  151. local attacking = false
  152. local firsttime = false
  153. local tauntdebounce = false
  154. local position = nil
  155. local MseGuide = true
  156. local running = false
  157. local settime = 0
  158. local sine = 0
  159. local t = 0
  160. local ws = 18
  161. local change = 1
  162. local combo1 = true
  163. local equip = false
  164. local dgs = 75
  165. local combo2 = false
  166. local switch1 = true
  167. local switch2 = false
  168. local firsttime2 = false
  169. local combo3 = false
  170. local gunallowance = false
  171. local shooting = false
  172. local RunSrv = game:GetService("RunService")
  173. local RenderStepped = game:GetService("RunService").RenderStepped
  174. local removeuseless = game:GetService("Debris")
  175.  
  176. coroutine.wrap(function()
  177. while true do
  178. wait()
  179. if not Character or not Character:FindFirstChild("Humanoid") or Character:FindFirstChild("Humanoid").Health <= 0 then
  180. HumanoidIsDead = true
  181. break
  182. end
  183. end
  184. end)()
  185.  
  186. local HEADLERP = Instance.new("ManualWeld")
  187. HEADLERP.Parent = Head
  188. HEADLERP.Part0 = Head
  189. HEADLERP.Part1 = Head
  190. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  191.  
  192. local TORSOLERP = Instance.new("ManualWeld")
  193. TORSOLERP.Parent = Root
  194. TORSOLERP.Part0 = Torso
  195. TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  196.  
  197. local ROOTLERP = Instance.new("ManualWeld")
  198. ROOTLERP.Parent = Root
  199. ROOTLERP.Part0 = Root
  200. ROOTLERP.Part1 = Torso
  201. ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  202.  
  203. local RIGHTARMLERP = Instance.new("ManualWeld")
  204. RIGHTARMLERP.Parent = RightArm
  205. RIGHTARMLERP.Part0 = RightArm
  206. RIGHTARMLERP.Part1 = Torso
  207. RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  208.  
  209. local LEFTARMLERP = Instance.new("ManualWeld")
  210. LEFTARMLERP.Parent = LeftArm
  211. LEFTARMLERP.Part0 = LeftArm
  212. LEFTARMLERP.Part1 = Torso
  213. LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  214.  
  215. local RIGHTLEGLERP = Instance.new("ManualWeld")
  216. RIGHTLEGLERP.Parent = RightLeg
  217. RIGHTLEGLERP.Part0 = RightLeg
  218. RIGHTLEGLERP.Part1 = Torso
  219. RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  220.  
  221. local LEFTLEGLERP = Instance.new("ManualWeld")
  222. LEFTLEGLERP.Parent = LeftLeg
  223. LEFTLEGLERP.Part0 = LeftLeg
  224. LEFTLEGLERP.Part1 = Torso
  225. LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  226.  
  227. local function weldBetween(a, b)
  228. local weld = Instance.new("ManualWeld", a)
  229. weld.Part0 = a
  230. weld.Part1 = b
  231. weld.C0 = a.CFrame:inverse() * b.CFrame
  232. return weld
  233. end
  234.  
  235. function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR)
  236. A = Instance.new("Attachment", PARENT)
  237. A.Position = POSITION1
  238. A.Name = "A"
  239. B = Instance.new("Attachment", PARENT)
  240. B.Position = POSITION2
  241. B.Name = "B"
  242. tr1 = Instance.new("Trail", PARENT)
  243. tr1.Attachment0 = A
  244. tr1.Attachment1 = B
  245. tr1.Enabled = true
  246. tr1.Lifetime = LIFETIME
  247. tr1.TextureMode = "Static"
  248. tr1.LightInfluence = 0
  249. tr1.Color = COLOR
  250. tr1.Transparency = NumberSequence.new(0, 1)
  251. end
  252.  
  253. tommygun = Instance.new("Part",Character)
  254. tommygun.Size = Vector3.new(2,2,2)
  255. tommygun.CFrame = RightArm.CFrame
  256. tommygun.CanCollide = false
  257. tommygun.Transparency=1
  258. tommygunweld = Instance.new("Weld",tommygun)
  259. GUN_A1=Align(GunHandle,tommygun,Vector3.new(),Vector3.new(115,-100,60))
  260. tommygunweld.Part0 = tommygun
  261. tommygunweld.Part1 = RightArm
  262. tommygunweld.C0 = tommygun.CFrame:inverse() * RightArm.CFrame * CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0)
  263. mtommygun = Instance.new("SpecialMesh", tommygun)
  264. mtommygun.MeshType = "FileMesh"
  265. mtommygun.Scale = Vector3.new(1, 1, 1)
  266. mtommygun.MeshId,mtommygun.TextureId = 'http://www.roblox.com/asset/?id=116679805','http://www.roblox.com/asset/?id=116679995'
  267. shootbox = Instance.new("Part",Character)
  268. shootbox.Size = Vector3.new(.2,.2,.2)
  269. shootbox.Transparency=1
  270. shootbox.CanCollide = false
  271. shootbox.Transparency = 1
  272. shootbox.CFrame = tommygun.CFrame
  273. shootboxweld = weldBetween(shootbox,tommygun)
  274. shootboxweld.C0 = CFrame.new(0,-.05,2.62)
  275. light = Instance.new("PointLight", shootbox)
  276. light.Color = BrickColor.new("Bright yellow").Color
  277. light.Range = 5
  278. light.Brightness = 11
  279. light.Enabled = false
  280. particlemiter1 = Instance.new("ParticleEmitter", shootbox)
  281. particlemiter1.Enabled = false
  282. particlemiter1.Texture = "rbxassetid://0"
  283. particlemiter1.Lifetime = NumberRange.new(.1)
  284. particlemiter1.Size = NumberSequence.new(1,0)
  285. particlemiter1.Rate = 20
  286. particlemiter1.RotSpeed = NumberRange.new(0)
  287. particlemiter1.Speed = NumberRange.new(0)
  288. tommygunammo = Instance.new("Part",Character)
  289. tommygunammo.Size = Vector3.new(2,2,2)
  290. tommygunammo.CFrame = tommygun.CFrame
  291. tommygunammo.CanCollide = false
  292. tommygunammoweld = Instance.new("Weld",tommygunammo)
  293. tommygunammoweld.Part0 = tommygunammo
  294. tommygunammoweld.Part1 = tommygun
  295. tommygunammo.Transparency = 1
  296. tommygunammoweld.C0 = tommygun.CFrame:inverse() * tommygun.CFrame * CFrame.new(0,.4,.25) * CFrame.Angles(math.rad(0),math.rad(0),0)
  297. mtommygunammo = Instance.new("SpecialMesh", tommygunammo)
  298. mtommygunammo.MeshType = "FileMesh"
  299. mtommygunammo.Scale = Vector3.new(1, 1, 1)
  300. mtommygunammo.MeshId,mtommygunammo.TextureId = 'http://www.roblox.com/asset/?id=116740155','http://www.roblox.com/asset/?id=116679995'
  301.  
  302.  
  303. coroutine.wrap(function()
  304. for i,v in pairs(Character:GetChildren()) do
  305. if v.Name == "Animate" then v:Remove()
  306. end
  307. end
  308. end)()
  309.  
  310. function damagealll(Radius,Position)
  311. local Returning = {}
  312. for _,v in pairs(workspace:GetChildren()) do
  313. if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then
  314. if v:FindFirstChild("Torso") then
  315. local Mag = (v.Torso.Position - Position).magnitude
  316. if Mag < Radius then
  317. table.insert(Returning,v)
  318. end
  319. elseif v:FindFirstChild("UpperTorso") then
  320. local Mag = (v.UpperTorso.Position - Position).magnitude
  321. if Mag < Radius then
  322. table.insert(Returning,v)
  323. end
  324. end
  325. end
  326. end
  327. return Returning
  328. end
  329.  
  330. function swait(num)
  331. if num == 0 or num == nil then
  332. game:service("RunService").Stepped:wait(0)
  333. else
  334. for i = 0, num do
  335. game:service("RunService").Stepped:wait(0)
  336. end
  337. end
  338. end
  339.  
  340. doomtheme = Instance.new("Sound", Torso)
  341. doomtheme.Volume = 1
  342. doomtheme.Name = "doomtheme"
  343. doomtheme.Looped = true
  344. doomtheme.SoundId = "rbxassetid://0"
  345. doomtheme:Play()
  346.  
  347. Torso.ChildRemoved:connect(function(removed)
  348. if removed.Name == "doomtheme" then
  349.  
  350. doomtheme = Instance.new("Sound", Torso)
  351. doomtheme.Volume = 1
  352. doomtheme.Name = "doomtheme"
  353. doomtheme.Looped = true
  354. doomtheme.SoundId = "rbxassetid://318812395"
  355. doomtheme:Play()
  356. end
  357. end)
  358.  
  359. function SOUND(PARENT,ID,VOL,LOOP,REMOVE)
  360. so = Instance.new("Sound")
  361. so.Parent = PARENT
  362. so.SoundId = "rbxassetid://"..ID
  363. so.Volume = VOL
  364. so.Looped = LOOP
  365. so:Play()
  366. removeuseless:AddItem(so,REMOVE)
  367. end
  368.  
  369. mouse.KeyDown:connect(function(Press)
  370. Press=Press:lower()
  371. if Press=='t' then
  372. if tauntdebounce then return end
  373. tauntdebounce = true
  374. local b1 = Instance.new("BillboardGui",Head)
  375. b1.Size = UDim2.new(0,4,0,1.6)
  376. b1.StudsOffset = Vector3.new(0,0,0)
  377. b1.Name = "laff"
  378. b1.AlwaysOnTop = true
  379. b1.StudsOffset = Vector3.new(0,2,0)
  380. b1.Adornee = Head
  381. removeuseless:AddItem(b1,3)
  382. local b2 = Instance.new("TextLabel",b1)
  383. b2.BackgroundTransparency = 1
  384. b2.Text = "HeHeHeHeHeHeHe..."
  385. b2.Font = "Garamond"
  386. b2.TextSize = 30
  387. b2.Name = "lafftext"
  388. b2.TextStrokeTransparency = 0
  389. b2.TextColor3 = BrickColor.new("Grey").Color
  390. b2.TextStrokeColor3 = Color3.new(0,0,0)
  391. b2.Size = UDim2.new(1,0,.5,0)
  392. laff = Instance.new("Sound",Head)
  393. laff.SoundId = "rbxassetid://2126502539"
  394. laff.Volume = 5
  395. laff:Play()
  396. wait(5)
  397. laff:Remove()
  398. tauntdebounce = false
  399. end
  400. end)
  401.  
  402. mouse.KeyDown:connect(function(Press)
  403. Press=Press:lower()
  404. if Press=='e' then
  405. if debounce then return end
  406. if equip then
  407. g1:Remove()
  408. light.Enabled = false
  409. pcall(function()
  410. temmy:Remove()
  411. end)
  412. for i,v in pairs(tommygun:GetDescendants()) do
  413. if v.Name == "temmy" then v:Remove()
  414. end
  415. end
  416. light.Enabled = false
  417. particlemiter1.Enabled = false
  418. hum.CameraOffset = Vector3.new(0,0,0)
  419. attacking = false
  420. equip = false
  421. shooting = false
  422. gunallowance = false
  423. ws = 18
  424. else
  425. g1 = Instance.new("BodyGyro", Root)
  426. g1.D = 175
  427. g1.P = 20000
  428. g1.MaxTorque = Vector3.new(0,9000,0)
  429. g1.CFrame = CFrame.new(Root.Position,mouse.Hit.p)
  430. attacking = true
  431. debounce = true
  432. equip = true
  433. coroutine.wrap(function()
  434. while equip do
  435. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.1)
  436. ws = 10
  437. swait()
  438. if Root.Velocity.y > 1 then
  439. position = "Jump3"
  440. elseif Root.Velocity.y < -1 then
  441. position = "Falling3"
  442. elseif Root.Velocity.Magnitude > 2 and running == false and attacking == true then
  443. position = "Walk3"
  444. elseif Root.Velocity.Magnitude < 2 and running == false and attacking == true then
  445. position = "Idle4"
  446. end
  447. end
  448. end)()
  449. coroutine.wrap(function()
  450. while equip do
  451. swait()
  452. settime = 0.05
  453. sine = sine + change
  454. if position == "Jump3" and attacking and not running then
  455. change = .65
  456. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  457. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4)
  458. elseif position == "Falling3" and attacking and not running then
  459. change = .65
  460. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.4)
  461. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.4)
  462. elseif position == "Walk3" and attacking == true and running == false then
  463. change = .65
  464. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0.05*math.sin(sine/4), 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)),.2)
  465. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0), math.cos(25 * math.cos(sine/8))), 0.1)
  466. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) , math.cos(25 * math.cos(sine/8))), 0.1)
  467. elseif position == "Idle4" and attacking == true and running == false then
  468. change = .65
  469. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/25), 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)),.1)
  470. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  471. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/25), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1)
  472. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  473. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/25), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.1)
  474. end
  475. end
  476. end)()
  477. SOUND(RightArm,898163129,6,false,2)
  478. for i = 1, 30 do
  479. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.68,1.25) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-12)),.25)
  480. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1, 0.1, 0.4) * CFrame.Angles(math.rad(-90), math.rad(-60), math.rad(0)), 0.25)
  481. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)), 0.25)
  482. swait()
  483. end
  484. gunallowance = true
  485. mouse.Button1Down:connect(function()
  486. if gunallowance then
  487. particlemiter1.Enabled = true
  488. temmy = Instance.new("Sound",tommygun)
  489. temmy.SoundId = "rbxassetid://0"
  490. temmy.Volume = 6
  491. temmy.Name = "temmy"
  492. temmy.Looped = true
  493. temmy:Play()
  494. shooting = true
  495. end
  496. end)
  497. mouse.Button1Up:connect(function()
  498. if gunallowance then
  499. hum.CameraOffset = Vector3.new(0,0,0)
  500. light.Enabled = false
  501. particlemiter1.Enabled = false
  502. pcall(function()
  503. temmy:Remove()
  504. end)
  505. for i,v in pairs(tommygun:GetDescendants()) do
  506. if v.Name == "temmy" then v:Remove()
  507. end
  508. end
  509. shooting = false
  510. end
  511. end)
  512. coroutine.wrap(function()
  513. if firsttime2 then return end
  514. firsttime2 = true
  515. while true do
  516. swait(3)
  517. if shooting then
  518. if switch1 then
  519. switch1 = false
  520. switch2 = true
  521. light.Enabled = true
  522. elseif switch2 then
  523. switch1 = true
  524. switch2 = false
  525. light.Enabled = false
  526. end
  527. pcall(function()
  528. if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then
  529. DamageFling(mouse.Target.Parent)
  530. end
  531. end)
  532. end
  533. end
  534. end)()
  535. coroutine.wrap(function()
  536. if firsttime then return end
  537. firsttime = true
  538. while true do
  539. if shooting then
  540. pcall(function()
  541. if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then
  542. DamageFling(mouse.Target.Parent)
  543. end
  544. end)
  545. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90), math.rad(0 - 10 * math.sin(sine)), math.rad(0)), 0.25)
  546. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1, 0.1 + .4 * math.sin(sine), 0.4) * CFrame.Angles(math.rad(-90), math.rad(-60), math.rad(0)), 0.25)
  547. elseif not shooting then
  548. end
  549. swait()
  550. end
  551. end)()
  552. debounce = false
  553. end
  554. end
  555. end)
  556.  
  557. mouse.KeyDown:connect(function(Press)
  558. Press=Press:lower()
  559. if Press=='z' then
  560. print("Music switched to 1")
  561. id = 2199374985
  562. doomtheme.SoundId = "rbxassetid://"..id
  563. doomtheme:Play()
  564. end
  565. end)
  566.  
  567. mouse.KeyDown:connect(function(Press)
  568. Press=Press:lower()
  569. if Press=='v' then
  570. print("Music switched to 4")
  571. id = 2111948183
  572. doomtheme.SoundId = "rbxassetid://"..id
  573. doomtheme:Play()
  574. end
  575. end)
  576.  
  577. mouse.KeyDown:connect(function(Press)
  578. Press=Press:lower()
  579. if Press=='x' then
  580. print("Music switched to 2")
  581. id = 318812395
  582. doomtheme.SoundId = "rbxassetid://"..id
  583. doomtheme:Play()
  584. end
  585. end)
  586.  
  587. mouse.KeyDown:connect(function(Press)
  588. Press=Press:lower()
  589. if Press=='c' then
  590. print("Music switched to 3")
  591. id = 180337897
  592. doomtheme.SoundId = "rbxassetid://"..id
  593. doomtheme:Play()
  594. end
  595. end)
  596.  
  597. mouse.KeyDown:connect(function(Press)
  598. Press=Press:lower()
  599. if Press=='b' then
  600. print("Music switched to 5")
  601. id = 649148458
  602. doomtheme.SoundId = "rbxassetid://"..id
  603. doomtheme:Play()
  604. end
  605. end)
  606.  
  607.  
  608. checks1 = coroutine.wrap(function() -------Checks
  609. while true do
  610. if HumanoidIsDead then break end
  611. if Root.Velocity.y > 1 then
  612. position = "Jump"
  613. elseif Root.Velocity.y < -1 then
  614. position = "Falling"
  615. elseif Root.Velocity.Magnitude < 2 then
  616. position = "Idle"
  617. elseif Root.Velocity.Magnitude < 20 then
  618. position = "Walking"
  619. elseif Root.Velocity.Magnitude > 20 then
  620. position = "Running"
  621. else
  622. end
  623. wait()
  624. end
  625. end)
  626. checks1()
  627.  
  628. function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  629. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  630. end
  631.  
  632. function ray2(StartPos, EndPos, Distance, Ignore)
  633. local DIRECTION = CFrame.new(StartPos,EndPos).lookVector
  634. return ray(StartPos, DIRECTION, Distance, Ignore)
  635. end
  636.  
  637. OrgnC0 = Neck.C0
  638. local movelimbs = coroutine.wrap(function()
  639. while RunSrv.RenderStepped:wait() do
  640. if HumanoidIsDead then break end
  641. TrsoLV = Torso.CFrame.lookVector
  642. Dist = nil
  643. Diff = nil
  644. if not MseGuide then
  645. print("Failed to recognize")
  646. else
  647. local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  648. Dist = (Head.CFrame.p-Point).magnitude
  649. Diff = Head.CFrame.Y-Point.Y
  650. local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  651. Dist2 = (LeftArm.CFrame.p-Point).magnitude
  652. Diff2 = LeftArm.CFrame.Y-Point.Y
  653. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  654. Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1)
  655. end
  656. end
  657. end)
  658. movelimbs()
  659. immortal = {}
  660. for i,v in pairs(Character:GetDescendants()) do
  661. if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then
  662. if v ~= Root and v ~= Torso and v ~= Head and v ~= RightArm and v ~= LeftArm and v ~= RightLeg and v.Name ~= "lmagic" and v.Name ~= "rmagic" and v ~= LeftLeg then
  663. v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  664. end
  665. table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency})
  666. elseif v:IsA("JointInstance") then
  667. table.insert(immortal,{v,v.Parent,nil,nil,nil})
  668. end
  669. end
  670. for e = 1, #immortal do
  671. if immortal[e] ~= nil then
  672. local STUFF = immortal[e]
  673. local PART = STUFF[1]
  674. local PARENT = STUFF[2]
  675. local MATERIAL = STUFF[3]
  676. local COLOR = STUFF[4]
  677. local TRANSPARENCY = STUFF[5]
  678. if levitate then
  679. if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  680. PART.Material = MATERIAL
  681. PART.Color = COLOR
  682. PART.Transparency = TRANSPARENCY
  683. end
  684. PART.AncestryChanged:connect(function()
  685. PART.Parent = PARENT
  686. end)
  687. else
  688. if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  689. PART.Material = MATERIAL
  690. PART.Color = COLOR
  691. PART.Transparency = TRANSPARENCY
  692. end
  693. PART.AncestryChanged:connect(function()
  694. PART.Parent = PARENT
  695. end)
  696. end
  697. end
  698. end
  699. coroutine.wrap(function()
  700. while true do
  701. if HumanoidIsDead then break end
  702. if hum.Health < .1 then
  703. deadsound = Instance.new("Sound", Torso)
  704. deadsound.Volume = 6
  705. deadsound.SoundId = "rbxassetid://1411352723"
  706. deadsound:Play()
  707. end
  708. wait()
  709. end
  710. end)()
  711.  
  712. local anims = coroutine.wrap(function()
  713. while true do
  714. if HumanoidIsDead then break end
  715. settime = 0.05
  716. sine = sine + change
  717. if position == "Jump" and attacking == false then
  718. change = 1
  719. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25)
  720. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  721. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  722. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  723. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  724. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.4)
  725. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  726. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4)
  727. elseif position == "Jump2" and attacking == false then
  728. change = 1
  729. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3)
  730. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3)
  731. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3)
  732. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3)
  733. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3)
  734. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  735. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3)
  736. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3)
  737. elseif position == "Falling" and attacking == false then
  738. change = 1
  739. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25)
  740. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  741. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  742. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  743. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2)
  744. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.2)
  745. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
  746. elseif position == "Falling2" and attacking == false then
  747. change = 1
  748. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3)
  749. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3)
  750. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3)
  751. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3)
  752. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3)
  753. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  754. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3)
  755. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3)
  756. elseif position == "Walking" and attacking == false and running == false then
  757. change = 1.2
  758. walking = true
  759. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25)
  760. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,1,0) * CFrame.Angles(math.rad(180),math.rad(1),math.rad(10)), 0.1)
  761. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  762. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  763. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5 + Root.RotVelocity.Y / 85,.35,.5*math.sin(sine/8)) * CFrame.Angles(math.rad(-35*math.sin(sine/8)),math.rad(0*math.sin(sine/8)),math.rad(10 + Root.RotVelocity.Y / 10, math.sin(20 * math.sin(sine/4)))),.3)
  764. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0.05*math.sin(sine/4), 0) * CFrame.Angles(math.rad(-10), math.rad(5 * math.cos(sine/7)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/10))), 0.1)
  765. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0), math.cos(25 * math.cos(sine/8))), 0.3)
  766. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) , math.cos(25 * math.cos(sine/8))), 0.3)
  767. elseif position == "Idle" and attacking == false and running == false then
  768. change = .5
  769. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25)
  770. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),.1)
  771. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3 + .1 * math.sin(sine/12),1 + .1 * math.sin(sine/12),0) * CFrame.Angles(math.rad(180),math.rad(1),math.rad(8 + 5 * math.sin(sine/12))), 0.1)
  772. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.59 - .05 * math.sin(sine/12), 0.1 -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(-2), math.rad(2), math.rad(8 - 6 * math.sin(sine/12))), .2)
  773. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  774. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1)
  775. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  776. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.1)
  777. elseif position == "Idle2" and attacking == false and running == false then
  778. change = .75
  779. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0 - 3 * math.sin(sine/9)),0,0),.1)
  780. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  781. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(-.2,.2,0) * CFrame.Angles(0,0,0),.1)
  782. LEFTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)
  783. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.8 - .1 * math.sin(sine/9), 0) * CFrame.Angles(math.rad(0), math.rad(0 + 3 * math.sin(sine/9)), math.rad(35 - 5 * math.sin(sine/9))), 0.4)
  784. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.6, 0.8 - .1 * math.sin(sine/9), 0) * CFrame.Angles(math.rad(0), math.rad(0 - 3 * math.sin(sine/9)), math.rad(-35 + 5 * math.sin(sine/9))), 0.4)
  785. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.4)
  786. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2.0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10 + 2 * math.sin(sine/9))), 0.4)
  787. elseif position == "Walking2" and attacking == false and running == false then
  788. ws = 50
  789. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3)
  790. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3)
  791. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3)
  792. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3)
  793. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3)
  794. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  795. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3)
  796. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3)
  797. elseif position == "Running" and attacking == false then
  798. change = 1
  799. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
  800. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-1.24+.6*math.sin(sine/4)/1.4, 0.54, 0-0.8*math.sin(sine/4))*CFrame.Angles(math.rad(6+140*math.sin(sine/4)/1.2), math.rad(0), math.rad(20+70*math.sin(sine/4))), 0.3)
  801. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  802. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(-20 - 0 * math.sin(sine/4)), math.rad(0 + 6 * math.sin(sine/4)), math.rad(0) + Root.RotVelocity.Y / 30, math.sin(10 * math.sin(sine/4))), 0.3)
  803. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3)
  804. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.6+0.1*math.sin(sine/4),.7*-math.sin(sine/4)) * CFrame.Angles(math.rad(15+ -50 * math.sin(sine/4)),0,0),.3)
  805. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3)
  806. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.6-0.1*math.sin(sine/4),.7*math.sin(sine/4)) * CFrame.Angles(math.rad(15 + 50 * math.sin(sine/4)),0,0),.3)
  807. end
  808. swait()
  809. end
  810. end)
  811. anims()
  812. game:GetService("StarterGui"):SetCore("SendNotification",{Title = "Edit",Text = "kezmme#0001",Duration = 12})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement