Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. --[[DETAILS]]--
  2. --[[
  3. If the script detects somebody has bo staff, a common crashing gear, you will be given (NOT EQUIPPED) Rocket Jumper, as well as a red box that will tell you the name of the potential crasher, or crashers (supports up to 3 people at once)
  4. Upon seeing red box, equip rocket jumper and watch the crasher (hopefully) be blown into next week!
  5. --]]
  6. --settings--
  7. local checktime = 0.10 --in seconds, how often you want the script to check everyones backpack for bo staff
  8. local isrunning = true
  9. local targets = {}
  10. function alert(p1,p2,p3)
  11. kill = coroutine.create(function(TargetPlayer)
  12. while wait() do
  13. if anticrash == true then
  14. wait()
  15. for index = 1,#targets do
  16. local value = targets[index]
  17. game.Players.LocalPlayer.Character:WaitForChild("RocketJumper").FireRocket:FireServer(workspace:FindFirstChild(value).Head.Position,workspace:FindFirstChild(TargetPlayer).Head.Position + Vector3.new(0.2,0.2,0.25))
  18. end
  19. end
  20. end
  21. end)
  22. local base = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
  23. local tb = Instance.new("TextBox",base)
  24. tb.Size = UDim2.new(0.2,0,0.2,0)
  25. tb.BackgroundColor3 = Color3.fromRGB(255,0,0)
  26. tb.TextScaled = true
  27. tb.TextWrapped = true
  28. if p1 and p2 and p3 then
  29. tb.Text = "BoStaff found in "..p1.." and "..p2.. " and "..p3.."!"
  30. wait(4)
  31. targets[1] = nil
  32. targets[2] = nil
  33. targets[3] = nil
  34. base:Destroy()
  35. elseif p1 and p2 then
  36. tb.Text = "BoStaff found in "..p1.." and "..p2.."!"
  37. wait(4)
  38. targets[1] = nil
  39. targets[2] = nil
  40. base:Destroy()
  41. elseif p1 then
  42. tb.Text = "BoStaff found in "..p1.."!"
  43. wait(4)
  44. targets[1] = nil
  45. base:Destroy()
  46. end
  47. end
  48. function equip()
  49. local sword = "RocketJumper"
  50. if game.Players.LocalPlayer:FindFirstChild("Backpack"):FindFirstChild(sword) then
  51. print("did done")
  52. elseif not game.Players.LocalPlayer:FindFirstChild("Backpack"):FindFirstChild(sword) and not game.Players.LocalPlayer.Character:FindFirstChild(sword) then
  53. game.ReplicatedStorage.Remotes.ToggleAsset:InvokeServer(169602103)
  54. end
  55. end
  56. while wait(checktime) do
  57. anticrash = true
  58. for i,v in pairs(game.Players:GetChildren()) do
  59. if game.Players:FindFirstChild(v.Name) then
  60. if game.Players[v.Name]:FindFirstChild("Backpack"):FindFirstChild("DragonBoStaff") then
  61. table.insert(targets,v.Name)
  62. if #targets == 1 then
  63. alert(targets[1])
  64. elseif #targets == 2 then
  65. alert(targets[1], targets[2])
  66. elseif #targets == 3 then
  67. alert(targets[1], targets[2], targets[3])
  68. end
  69. coroutine.resume(kill,v.Name)
  70. equip()
  71. end
  72. end
  73. end
  74. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement