how can i make that Criminal true if the criminal button is clicked?
local Target = {["Criminal"] = false, ["Police"] = false}
Criminal.MouseButton1Click:connect(function()
Target = {["Criminal"] = true]
end)
Police.MouseButton1Click:connect(function()
Target = {["Police"] = true]
end)
wait(1)
for i,v in pairs(game.Workspace:GetChildren()) do
if Target[v.Name] then
print(v.Parent)
end
end
this doesn't seem to work when i try to activate both, as it only prints the other 1

2 comments
Thanks it worked.
yw ;D glad i could help