The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Fe Flinging Minigun script pastebin roblox
By Fe Flinging Minigun on 2024-09-22 08:00 am | Syntax: LUA | Views: 10



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. --https://www.roblox.com/catalog/5154115297/Type-40-Juggernauts-Chain-Gun
  2. --Keybinds
  3. _G.UnReanimateKey = "q" --The keybind for unreanimating.
  4. _G.ReanimateKey = "e" --The keybind for reanimating.
  5. _G.R6ToggleKey = "r" --The keybind for toggling R15 to R6.
  6. _G.GodmodeToggleKey = "t" --The keybind for toggling godmode.
  7. --Options
  8. _G.CharacterBug = false --Set to true if your uppertorso floats when you use godmode with R15.
  9. _G.GodMode = true --Set to true if you want godmode.
  10. _G.R6 = false --Set to true if you wanna enable R15 to R6 when your R15.
  11. _G.FastLoading = true --Set to true if you want godmode to load faster.
  12. _G.AutoReanimate = true --Set to true if you want to auto reanimate and disable keybinds after executing.
  13.  
  14. loadstring(game:HttpGet("https://paste.ee/r/e4oZ2/0"))()
  15.  
  16. repeat wait() until _G.MSG.Text == ""
  17. wait(0.5)
  18. Player = game:GetService("Players").LocalPlayer
  19. PlayerGui = Player.PlayerGui
  20. Cam = workspace.CurrentCamera
  21. Backpack = Player.Backpack
  22. Character = game:GetService("Players").LocalPlayer.Character["NullwareReanim"]
  23. Humanoid = Character.Humanoid
  24. Mouse = Player:GetMouse()
  25. RootPart = Character.HumanoidRootPart
  26. Torso = Character.Torso
  27. Head = Character.Head
  28. RightArm = Character["Right Arm"]
  29. LeftArm = Character["Left Arm"]
  30. RightLeg = Character["Right Leg"]
  31. LeftLeg = Character["Left Leg"]
  32. RootJoint = RootPart.RootJoint
  33. Neck = Torso.Neck
  34. RightShoulder = Torso["Right Shoulder"]
  35. LeftShoulder = Torso["Left Shoulder"]
  36. RightHip = Torso["Right Hip"]
  37. LeftHip = Torso["Left Hip"]
  38. Equipped = false
  39. local running = false
  40. local MOUSEPOS = RootPart.Position
  41. local TIME = 0
  42. local gun = false
  43. local shooting = false
  44. local sniper = false
  45. local hammer = false
  46.  
  47. local mouseup = false
  48. local plrs = game:GetService("Players")
  49. local plr = plrs.LocalPlayer
  50. local char = plr.Character
  51. local hrp = char.HumanoidRootPart
  52. local hrp2 = hrp:Clone()
  53.  
  54. hrp2.Parent = char
  55. hrp.Name = "hi"
  56. hrp.Transparency = 0
  57. hrp.Anchored = false
  58. if hrp:FindFirstChildOfClass("AlignPosition") then
  59.  hrp:FindFirstChildOfClass("AlignPosition"):Destroy()
  60. end
  61. if hrp:FindFirstChildOfClass("AlignOrientation") then
  62.  hrp:FindFirstChildOfClass("AlignOrientation"):Destroy()
  63. end
  64. local bp = Instance.new("BodyPosition", hrp)
  65. bp.Position = hrp.Position
  66. bp.D = 9999999
  67. bp.P = 999999999999999
  68. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  69. flinger = Instance.new("BodyAngularVelocity",hrp)
  70. flinger.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  71. flinger.P = 1000000000000000000000000000
  72. flinger.AngularVelocity = Vector3.new(10000,10000,10000)
  73.  
  74. spawn(function()
  75.  while wait() do
  76.   if shooting == false then
  77.    bp.Position = game:GetService("Players").LocalPlayer.Character["NullwareReanim"].HumanoidRootPart.Position
  78.   end
  79.  end
  80. end)
  81.  
  82. plr:GetMouse().Button1Down:Connect(function()
  83.  repeat wait() until shooting == true
  84.  repeat
  85.   wait()
  86.   bp.Position = game:GetService("Players").LocalPlayer:GetMouse().Hit.p
  87.  until shooting == false
  88. end)
  89.  
  90. coroutine.wrap(function()
  91.  while true do
  92.   wait()
  93.   if not Character or not Character:FindFirstChild("Humanoid") or Character:FindFirstChild("Humanoid").Health <= 0 then
  94.    HumanoidIsDead = true
  95.    break
  96.   end
  97.  end
  98. end)()
  99.  
  100. Theme = Instance.new("Sound", Character)
  101. Theme.Volume = 10
  102. Theme.Looped = true
  103. Theme.TimePosition = 0
  104. Theme.PlaybackSpeed = 1
  105. Theme.Pitch = 1
  106. Theme.SoundId = "rbxassetid://130761235"
  107. Theme.Name = "cooltheme"
  108. Theme:Play()
  109.  
  110. weld = function(parent, part0, part1, c0)
  111.  local weld = it("Weld")
  112.  weld.Parent = parent
  113.  weld.Part0 = part0
  114.  weld.Part1 = part1
  115.     weld.C0 = c0
  116.     return weld
  117. end
  118.  
  119. function unanchor()
  120.  if UNANCHOR == true then
  121.   g = CharacterA:GetChildren()
  122.   for i = 1, #g do
  123.    if g[i].ClassName == "Part" then
  124.     g[i].Anchored = false
  125.    end
  126.   end
  127.  end
  128. end
  129.  
  130. IT = Instance.new
  131. CF = CFrame.new
  132. VT = Vector3.new
  133. RAD = math.rad
  134. C3 = Color3.new
  135. UD2 = UDim2.new
  136. BRICKC = BrickColor.new
  137. ANGLES = CFrame.Angles
  138. EULER = CFrame.fromEulerAnglesXYZ
  139. COS = math.cos
  140. ACOS = math.acos
  141. SIN = math.sin
  142. ASIN = math.asin
  143. ABS = math.abs
  144. MRANDOM = math.random
  145. FLOOR = math.floor
  146. --//=================================\\
  147. --||        USEFUL VALUES
  148. --\\=================================//
  149.  
  150. Animation_Speed = 2
  151. Frame_Speed = 0.016666666666666666
  152. local FORCERESET = false
  153. local MODE = 1
  154. Frame_Speed = 1 / 80 -- (1 / 60) OR (1 / 80)
  155. local Speed = 25
  156. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  157. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  158. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  159. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  160. local DAMAGEMULTIPLIER = 1
  161. local ANIM = "Idle"
  162. local ATTACK = false
  163. local HOLD = false
  164. local Rooted = false
  165. local SINE = 0
  166. local SIZE = 1
  167. local UserInputService = game:GetService("UserInputService")
  168. local KEYHOLD = false
  169. local CHANGE = 2 / Animation_Speed
  170. local WALKINGANIM = false
  171. local VALUE1 = false
  172. local VALUE2 = false
  173. local ROBLOXIDLEANIMATION = IT("Animation")
  174. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  175. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  176. local ANIMATOR = Humanoid.Animator
  177. local ANIMATE = Character:FindFirstChild("Animate")
  178. local UNANCHOR = true
  179.  
  180. function Swait(NUMBER)
  181.  if NUMBER == 0 or NUMBER == nil then
  182.   game:GetService("RunService").RenderStepped:wait()
  183.  else
  184.   for i = 1, NUMBER do
  185.    game:GetService("RunService").RenderStepped:wait()
  186.   end
  187.  end
  188. end
  189.  
  190. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  191.  return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  192. end
  193.  
  194. function QuaternionFromCFrame(cf)
  195.  local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  196.  local trace = m00 + m11 + m22
  197.  if trace > 0 then
  198.   local s = math.sqrt(1 + trace)
  199.   local recip = 0.5 / s
  200.   return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  201.  else
  202.   local i = 0
  203.   if m11 > m00 then
  204.    i = 1
  205.   end
  206.   if m22 > (i == 0 and m00 or m11) then
  207.    i = 2
  208.   end
  209.   if i == 0 then
  210.    local s = math.sqrt(m00 - m11 - m22 + 1)
  211.    local recip = 0.5 / s
  212.    return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  213.   elseif i == 1 then
  214.    local s = math.sqrt(m11 - m22 - m00 + 1)
  215.    local recip = 0.5 / s
  216.    return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  217.   elseif i == 2 then
  218.    local s = math.sqrt(m22 - m00 - m11 + 1)
  219.    local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  220.   end
  221.  end
  222. end
  223.  
  224. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  225.  local xs, ys, zs = x + x, y + y, z + z
  226.  local wx, wy, wz = w * xs, w * ys, w * zs
  227.  local xx = x * xs
  228.  local xy = x * ys
  229.  local xz = x * zs
  230.  local yy = y * ys
  231.  local yz = y * zs
  232.  local zz = z * zs
  233.  return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  234. end
  235.  
  236. function QuaternionSlerp(a, b, t)
  237.  local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  238.  local startInterp, finishInterp;
  239.  if cosTheta >= 0.0001 then
  240.   if (1 - cosTheta) > 0.0001 then
  241.    local theta = ACOS(cosTheta)
  242.    local invSinTheta = 1 / SIN(theta)
  243.    startInterp = SIN((1 - t) * theta) * invSinTheta
  244.    finishInterp = SIN(t * theta) * invSinTheta
  245.   else
  246.    startInterp = 1 - t
  247.    finishInterp = t
  248.   end
  249.  else
  250.   if (1 + cosTheta) > 0.0001 then
  251.    local theta = ACOS(-cosTheta)
  252.    local invSinTheta = 1 / SIN(theta)
  253.    startInterp = SIN((t - 1) * theta) * invSinTheta
  254.    finishInterp = SIN(t * theta) * invSinTheta
  255.   else
  256.    startInterp = t - 1
  257.    finishInterp = t
  258.   end
  259.  end
  260.  return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  261. end
  262.  
  263. function Clerp(a, b, t)
  264.  local qa = {QuaternionFromCFrame(a)}
  265.  local qb = {QuaternionFromCFrame(b)}
  266.  local ax, ay, az = a.x, a.y, a.z
  267.  local bx, by, bz = b.x, b.y, b.z
  268.  local _t = 1 - t
  269.  return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  270. end
  271.  
  272. function weld(parent,part1,part0,c0,c1)
  273. local weld = Instance.new("Weld")
  274. weld.Parent=parent
  275. weld.Part1=part1
  276. weld.Part0=part0
  277. weld.C0=c0
  278. weld.C1=c1
  279. return weld
  280. end
  281.  
  282.  
  283. function theme(ID, timepos, pitch, vol)
  284.  local kanz = kan
  285.  kanz.PlaybackSpeed = pitch
  286.  kanz.Pitch = pitch
  287.  kanz.SoundId = ID
  288.  kanz.Name = "wrecked"
  289.  kanz.Looped = true
  290. end
  291.  
  292. --weld
  293.  
  294. local chr = game:GetService("Players").LocalPlayer.Character["NullwareReanim"]
  295. local yes = chr["Juggernaut's Chaingun"]
  296.  
  297. yes.Handle:FindFirstChild("AccessoryWeld"):Remove()
  298.  
  299. function weld(parent,part1,part0,c0,c1)
  300. local weld = Instance.new("Weld")
  301. weld.Parent=parent
  302. weld.Part1=part1
  303. weld.Part0=part0
  304. weld.C0=c0
  305. weld.C1=c1
  306. return weld
  307. end
  308.  
  309. local handleweld = yes.Handle
  310. handleweld = weld(handleweld,chr["Right Arm"],handleweld,CFrame.new(0, 0, 0), CFrame.new(-2, -1, -.7) * CFrame.Angles(math.rad(-30), math.rad(70), math.rad(10)))
  311.  
  312. -- sprint
  313.  
  314. Humanoid.WalkSpeed = 10
  315.  
  316. Mouse.KeyDown:connect(function(key)
  317.     if string.byte(key) == 50 then
  318.         Humanoid.WalkSpeed = 58.82
  319.     end
  320. end)
  321. Mouse.KeyUp:connect(function(key)
  322.     if string.byte(key) == 50 then
  323.         Humanoid.WalkSpeed = 10
  324.     end
  325. end)
  326.  
  327. function turnto(position)
  328.  RootPart.CFrame = CFrame.new(RootPart.CFrame.p, Vector3.new(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0)
  329. end
  330.  
  331. function Shoot()
  332.     HOLD = true
  333.         kan = Instance.new("Sound", Character)
  334.         kan.Volume = 10
  335.         kan.Looped = true
  336.         kan.TimePosition = 0
  337.         kan.PlaybackSpeed = 1
  338.         kan.Pitch = 1
  339.         kan.SoundId = "rbxassetid://3145784977"
  340.         kan.Name = "bang"
  341.         kan:Play()
  342.         while HOLD == true do
  343.         wait()
  344.         turnto(Mouse.Hit.p)
  345.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 , 0 , 0.2 + 0.1 * COS(SINE / 35)) * ANGLES(RAD(8), RAD(0), RAD(-75)), 0.15 / Animation_Speed)
  346.      RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.4+ 0.1 * SIN(SINE / 35), -.5) * ANGLES(RAD(20), RAD(10), RAD(-25 + 1 * COS(SINE / 35)))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  347.   LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.4 + 0.1 * SIN(SINE / 35), 0) * ANGLES(RAD(110), RAD(-10), RAD(45 + -1 * COS(SINE / 35))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  348.   RightHip.C0 = Clerp(RightHip.C0, CF(1, -1- 0.1 * COS(SINE / 35), 0) * ANGLES(RAD(0), RAD(86), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  349.   LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1- 0.1 * COS(SINE / 35) , 0) * ANGLES(RAD(0), RAD(-86), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  350.         wait()
  351.         turnto(Mouse.Hit.p)
  352.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 , 0 , 0.2 + 0.1 * COS(SINE / 35)) * ANGLES(RAD(8), RAD(0), RAD(-75)), 0.15 / Animation_Speed)
  353.      RightShoulder.C0 = Clerp(RightShoulder.C0, CF(3, 0.4+ 0.1 * SIN(SINE / 35), -.5) * ANGLES(RAD(20), RAD(10), RAD(-25 + 1 * COS(SINE / 35)))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  354.   LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-3, 0.4 + 0.1 * SIN(SINE / 35), 0) * ANGLES(RAD(110), RAD(-10), RAD(45 + -1 * COS(SINE / 35))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  355.   RightHip.C0 = Clerp(RightHip.C0, CF(1, -1- 0.1 * COS(SINE / 35), 0) * ANGLES(RAD(0), RAD(86), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  356.   LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1- 0.1 * COS(SINE / 35) , 0) * ANGLES(RAD(0), RAD(-86), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  357.     end
  358. end
  359.  
  360. function ShootReady()
  361.     ATTACK = true
  362.         Humanoid.WalkSpeed = 3
  363.     while ATTACK == true do
  364.     Swait()
  365.         turnto(Mouse.Hit.p)
  366.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 , 0 , 0.2 + 0.1 * COS(SINE / 35)) * ANGLES(RAD(8), RAD(0), RAD(-75)), 0.15 / Animation_Speed)
  367.      RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.4+ 0.1 * SIN(SINE / 35), -.5) * ANGLES(RAD(20), RAD(10), RAD(-25 + 1 * COS(SINE / 35)))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  368.   LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.4 + 0.1 * SIN(SINE / 35), 0) * ANGLES(RAD(110), RAD(-10), RAD(45 + -1 * COS(SINE / 35))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  369.   RightHip.C0 = Clerp(RightHip.C0, CF(1, -1- 0.1 * COS(SINE / 35), 0) * ANGLES(RAD(0), RAD(86), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  370.   LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1- 0.1 * COS(SINE / 35) , 0) * ANGLES(RAD(0), RAD(-86), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  371.     end
  372. end
  373.  
  374. Mouse.KeyDown:connect(function(k)
  375.     if k == "e" and ATTACK == false then
  376.         ATTACK = true
  377.         ShootReady()
  378.     elseif k == "e" and ATTACK == true then
  379.         Humanoid.WalkSpeed = 10
  380.         ATTACK = false
  381.         shooting = false
  382.     end
  383. end)
  384.  
  385. Mouse.Button1Down:connect(function()
  386.     if ATTACK == true then
  387.         shooting = true
  388.         Shoot()
  389.     end
  390. end)
  391.  
  392. Mouse.Button1Up:connect(function()
  393.     if ATTACK == true then
  394.         kan:Destroy()
  395.         HOLD = false
  396.         shooting = false
  397.     end
  398. end)
  399.  
  400. --animations
  401. while true do
  402.  Swait()
  403.  if Character:FindFirstChildOfClass("Humanoid") == nil then
  404.   Humanoid = IT("Humanoid",Character)
  405.  end
  406.  for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  407.      v:Stop();
  408.  end
  409.  
  410. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  411. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  412. local NameClan = 0
  413. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 5, Character)
  414. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  415.  SINE = SINE + CHANGE
  416.     if TORSOVELOCITY < 1 xss=removed xss=removed xss=removed ANIM = "Idle" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed ANIM = "Walk" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed> 25 and ATTACK == false and Equipped == false and HITFLOOR ~= nil then
  417.    ANIM = "Sprint"
  418.    RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0* 1, 0* 1, -0.175 + 0.025 * COS(SINE / 3.5) + -SIN(SINE / 3.5) / 7* 1) * ANGLES(RAD(26 - 4.5 * COS(SINE / 3.5)), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(15 * COS(SINE / 7))), 0.15)
  419.    RightHip.C0 = Clerp(RightHip.C0, CF(1* 1, -0.925 - 0.5 * COS(SINE / 7) / 2* 1, 0.7 * COS(SINE / 7) / 2* 1) * ANGLES(RAD(-15 - 55 * COS(SINE / 7)) - RightLeg.RotVelocity.Y / 75 + -SIN(SINE / 7) / 2.5, RAD(90 - 0.1 * COS(SINE / 7)), RAD(0)) * ANGLES(RAD(0 + 0.1 * COS(SINE / 7)), RAD(0), RAD(0)), 0.3)
  420.          LeftHip.C0 = Clerp(LeftHip.C0, CF(-1* 1, -0.925 + 0.5 * COS(SINE / 7) / 2* 1, -0.7 * COS(SINE / 7) / 2* 1) * ANGLES(RAD(-15 + 55 * COS(SINE / 7)) + LeftLeg.RotVelocity.Y / 75 + SIN(SINE / 7) / 2.5, RAD(-90 - 0.1 * COS(SINE / 7)), RAD(0)) * ANGLES(RAD(0 - 0.1 * COS(SINE / 7)), RAD(0), RAD(0)), 0.3)
  421.    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.4+ 0.1 * SIN(SINE / 35), -.5) * ANGLES(RAD(10), RAD(-10), RAD(-25 + 1 * COS(SINE / 35)))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  422.       LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.4 + 0.1 * SIN(SINE / 35), 0) * ANGLES(RAD(90), RAD(-10), RAD(15 + -1 * COS(SINE / 35))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  423.     end
  424. end
  425. unanchor()



  • Recent Roblox Scripts