Sorry to keep bothering you, but how can I let the player know that there have to be 2 cops?
Uh… You just let your playerbase know that 2 cops are required to be ingame to rob. Maybe using a UI that pops up saying “2 cops are required to rob” when the requirement to rob is not met?
ok, I create a TextLabel! sorry!
local teams = game:GetService("Teams")
local policia = teams.Policia
local prompt = script.Parent
local part = prompt.Parent
local robo = part.robo
prompt.Triggered:Connect(function(plr)
if #policia:GetPlayers() >= 2 then
plr.leaderstats.Dinero.Value += math.random(35, 50) * 1000
prompt.Style = "Custom"
prompt.Enabled = false
robo.Enabled = true
task.wait(600)
prompt.Enabled = true
prompt.Style = "Default"
robo.Enabled = true
end
end)