--BROUGHT TO YOU BY RobloxScripter.com!--
local Vault = game.Workspace:FindFirstChild("Vault")
local Player1 = Vault:FindFirstChild("Player1")
local Player2 = Vault:FindFirstChild("Player2")
local Screen1 = Player1:FindFirstChild("Screen")
local ScreenGui1 = Screen1:FindFirstChild("SurfaceGui")
local stopAfter = 100
local currentRun = 0
local Connection
Connection = ScreenGui1:FindFirstChild("TextLabel").Changed:connect(function(p)
if p == "Text" then
currentRun = currentRun + 1
if currentRun == stopAfter then
Connection:Disconnect()
end
for i,v in pairs(Player1:FindFirstChild("Locks"):GetChildren()) do
if v:FindFirstChild("Display") and v.Display:FindFirstChild("SurfaceGui") then
if v.Display.SurfaceGui.TextLabel.Text == ScreenGui1.TextLabel.Text then
fireclickdetector(v.Display.ClickDetector)
end
end
end
end
end)