Pou_help

Untitled

Apr 18th, 2019
596
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.44 KB | None | 0 0
  1.  
  2.  
  3. Rapid_Fire_Speed = 20
  4.  
  5. Tool_Name = "RocketLauncher"
  6. Aim_Setting = false
  7. Hide_Inventory = false
  8.  
  9. local Rapid_Fire_Speed_2 = Rapid_Fire_Speed
  10. local toolamount = 14
  11. local LocalPlayer = game:GetService("Players").LocalPlayer
  12. local runservice = game:GetService("RunService")
  13. local characters = {}
  14. LocalPlayer.Character:FindFirstChild("Humanoid"):UnequipTools()
  15. local currentamount = #LocalPlayer.Backpack:GetChildren()
  16. LocalPlayer.Character.Archivable = true
  17. local tempchar = LocalPlayer.Character:Clone()
  18. tempchar.Parent = workspace
  19. local savepos = LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame
  20. local stepped = runservice.Stepped:Connect(function()
  21. workspace.CurrentCamera.CameraSubject = tempchar:FindFirstChild("Humanoid")
  22. for _, tool in pairs(LocalPlayer.Backpack:GetChildren()) do
  23. if tool:IsA("Tool") then
  24. tool.Parent = LocalPlayer
  25. end
  26. end
  27. LocalPlayer.Character:ClearAllChildren()
  28. local char = Instance.new("Model", workspace)
  29. table.insert(characters, char)
  30. Instance.new("Humanoid", char)
  31. LocalPlayer.Character = char
  32. repeat runservice.Stepped:Wait() until LocalPlayer.Character ~= nil
  33. end)
  34. repeat runservice.Stepped:Wait() until #LocalPlayer:GetChildren() - 4 - currentamount >= toolamount - 1
  35. stepped:Disconnect()
  36. repeat runservice.Stepped:Wait() until LocalPlayer.Character:FindFirstChild("HumanoidRootPart") ~= nil
  37. for _, char in pairs(characters) do
  38. char:Destroy()
  39. end
  40. for _, tool in pairs(LocalPlayer:GetChildren()) do
  41. if tool:IsA("Tool") then
  42. tool.Parent = LocalPlayer.Backpack
  43. end
  44. end
  45. LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = savepos
  46. tempchar:Destroy()
  47. if Hide_Inventory == true then
  48. game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
  49. else
  50. if Hide_Inventory == false then
  51. game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
  52. end
  53. end
  54. for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  55. if (v:IsA("Tool")) then
  56. if v.Name == Tool_Name then
  57. else
  58. v:Remove()
  59. end
  60. end
  61. end
  62. if Aim_Setting == true then
  63. repeat
  64. game.Players.LocalPlayer.Backpack:FindFirstChildOfClass("Tool").Parent = game.Players.LocalPlayer.Character
  65. game.Players.LocalPlayer.Character[Tool_Name]:Activate()
  66. if Rapid_Fire_Speed >= 30 then
  67. game:GetService("RunService").RenderStepped:wait()
  68. else
  69. if Rapid_Fire_Speed_2 >= 40 then
  70. game:GetService("RunService").Stepped:wait()
  71. else
  72. wait(1/Rapid_Fire_Speed)
  73. end
  74. end
  75. game.Players.LocalPlayer.Character[Tool_Name].Parent = game.Players.LocalPlayer
  76. game.Players.LocalPlayer[Tool_Name].Parent = game.Players.LocalPlayer.Backpack
  77. until game.Players.LocalPlayer.Character.Humanoid.Health == 0
  78. else
  79. if Aim_Setting == false then
  80. repeat
  81. game.Players.LocalPlayer.Backpack:FindFirstChildOfClass("Tool").Parent = game.Players.LocalPlayer.Character
  82. game.Players.LocalPlayer.Character[Tool_Name]:Activate()
  83. game.Players.LocalPlayer.Character[Tool_Name].Parent = game.Players.LocalPlayer
  84. if Rapid_Fire_Speed >= 30 then
  85. game:GetService("RunService").RenderStepped:wait()
  86. else
  87. if Rapid_Fire_Speed_2 >= 40 then
  88. game:GetService("RunService").Stepped:wait()
  89. else
  90. wait(1/Rapid_Fire_Speed)
  91. end
  92. end
  93. game.Players.LocalPlayer[Tool_Name].Parent = game.Players.LocalPlayer.Backpack
  94. until game.Players.LocalPlayer.Character.Humanoid.Health == 0
  95. end
  96. end
  97. LocalPlayer.Character:ClearAllChildren()
  98. wait(5.25)
  99. game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
Advertisement
Add Comment
Please, Sign In to add comment