Advertisement
Ryubunao

Dev Deck Gun Fling FE Script Pastebin

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