Advertisement
Ryubunao

Custom Gun FE Pastebin

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