HighBoss

gun script

Apr 2nd, 2022
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. wait(math.random(0, 200) / 200)
  2.  
  3. if _G.Ignore_Code then
  4. if (not game.Workspace:FindFirstChild("Ignore_Model_".._G.Ignore_Code)) then
  5. local Ignore_Model = Instance.new("Model")
  6. Ignore_Model.Name = "Ignore_Model_".._G.Ignore_Code
  7. Ignore_Model.Parent = game.Workspace
  8.  
  9. spawn(function()
  10. while true do
  11. Ignore_Model.Parent = game.Workspace
  12. wait(1 / 20)
  13. end
  14. end)
  15. end
  16.  
  17. script.Parent:WaitForChild("Gun_Main"):WaitForChild("Ignore_Code").Value = _G.Ignore_Code
  18. else
  19. _G.Ignore_Code = math.random(1, 1e4)
  20.  
  21. if (not game.Workspace:FindFirstChild("Ignore_Model_".._G.Ignore_Code)) then
  22. local Ignore_Model = Instance.new("Model")
  23. Ignore_Model.Name = "Ignore_Model_".._G.Ignore_Code
  24. Ignore_Model.Parent = game.Workspace
  25.  
  26. spawn(function()
  27. while true do
  28. Ignore_Model.Parent = game.Workspace
  29. wait(1 / 20)
  30. end
  31. end)
  32. end
  33.  
  34. script.Parent:WaitForChild("Gun_Main"):WaitForChild("Ignore_Code").Value = _G.Ignore_Code
  35. end
  36.  
  37. spawn(function()
  38. repeat wait() until _G.Ignore_Code
  39. local Ignore_Model = game.Workspace:WaitForChild("Ignore_Model_".._G.Ignore_Code)
  40. while true do
  41. for _, Gun_Ignore in pairs(Ignore_Model:GetChildren()) do
  42. if (not game.Players:FindFirstChild(Gun_Ignore.Name:sub(12))) then
  43. Gun_Ignore:Destroy()
  44. end
  45. end
  46. wait(1 / 20)
  47. end
  48. end)
Advertisement
Add Comment
Please, Sign In to add comment