Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[DETAILS]]--
- --[[
- 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)
- Upon seeing red box, equip rocket jumper and watch the crasher (hopefully) be blown into next week!
- --]]
- --settings--
- local checktime = 0.10 --in seconds, how often you want the script to check everyones backpack for bo staff
- local isrunning = true
- local targets = {}
- function alert(p1,p2,p3)
- kill = coroutine.create(function(TargetPlayer)
- while wait() do
- if anticrash == true then
- wait()
- for index = 1,#targets do
- local value = targets[index]
- 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))
- end
- end
- end
- end)
- local base = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
- local tb = Instance.new("TextBox",base)
- tb.Size = UDim2.new(0.2,0,0.2,0)
- tb.BackgroundColor3 = Color3.fromRGB(255,0,0)
- tb.TextScaled = true
- tb.TextWrapped = true
- if p1 and p2 and p3 then
- tb.Text = "BoStaff found in "..p1.." and "..p2.. " and "..p3.."!"
- wait(4)
- targets[1] = nil
- targets[2] = nil
- targets[3] = nil
- base:Destroy()
- elseif p1 and p2 then
- tb.Text = "BoStaff found in "..p1.." and "..p2.."!"
- wait(4)
- targets[1] = nil
- targets[2] = nil
- base:Destroy()
- elseif p1 then
- tb.Text = "BoStaff found in "..p1.."!"
- wait(4)
- targets[1] = nil
- base:Destroy()
- end
- end
- function equip()
- local sword = "RocketJumper"
- if game.Players.LocalPlayer:FindFirstChild("Backpack"):FindFirstChild(sword) then
- print("did done")
- elseif not game.Players.LocalPlayer:FindFirstChild("Backpack"):FindFirstChild(sword) and not game.Players.LocalPlayer.Character:FindFirstChild(sword) then
- game.ReplicatedStorage.Remotes.ToggleAsset:InvokeServer(169602103)
- end
- end
- while wait(checktime) do
- anticrash = true
- for i,v in pairs(game.Players:GetChildren()) do
- if game.Players:FindFirstChild(v.Name) then
- if game.Players[v.Name]:FindFirstChild("Backpack"):FindFirstChild("DragonBoStaff") then
- table.insert(targets,v.Name)
- if #targets == 1 then
- alert(targets[1])
- elseif #targets == 2 then
- alert(targets[1], targets[2])
- elseif #targets == 3 then
- alert(targets[1], targets[2], targets[3])
- end
- coroutine.resume(kill,v.Name)
- equip()
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement