wait, is this a gui button you are connecting the event to? that makes sense, the event is connected the right way, but could you show us the full script?
Assuming this is a GUI button, it’s possible that the property MinB.Active is false, try setting it to true. If that doesn’t work, you might need to increase the property MinB.ZIndex to a higher value.
local GUI = script.Parent.SurfaceGui.Frame
local FaceGui = GUI.Face
local Cam = script.Parent.Parent.Cam
local ProxPrompt = Cam.ImageProx
local Sound = ProxPrompt.TakePictureSound
local MinB = GUI.Min
local MedB = GUI.Med
local MaxB = GUI.Max
local function ResetBoard()
GUI.OfficerName.Text = "Roblox"
GUI.Datum.Text = tostring(os.date("%d/%m/%Y %H:%M:%S"))
local Text = ("Name: [unknown] \n Age: [unknown] \n Crime: [unknown] \n Info: [unknown]")
GUI.Info.Text = Text
local succes, data = pcall(function()
return game.Players:GetUserThumbnailAsync(1,Enum.ThumbnailType.HeadShot,Enum.ThumbnailSize.Size180x180)
end)
if succes then
FaceGui.Image = data
else
warn("Could not get the UserThumbnail: "..data)
end
end
ProxPrompt.Triggered:Connect(function(TriggerPlayer)
--Check if the player is a officer with a high enough rank
local player = game.Players:WaitForChild("Misterx114",10)
local succes, data = pcall(function()
return game.Players:GetUserThumbnailAsync(player.UserId,Enum.ThumbnailType.HeadShot,Enum.ThumbnailSize.Size180x180)
end)
if succes then
FaceGui.Image = data
else
warn("Could not get the UserThumbnail: "..data)
end
Sound:Play()
local age = tostring(math.random(18,60))
local crime = "nothing"
local info = "Aggressive"
local Text = ("Name: "..player.DisplayName.." \n Age: "..age.." \n Crime: "..crime.." \n Info: "..info)
GUI.Info.Text = Text
GUI.OfficerName.Text = TriggerPlayer.DisplayName
local date = tostring(os.date("%d/%m/%Y %H:%M:%S"))
GUI.Datum.Text = date
task.wait(60*3)
if GUI.Datum.Text == date then
ResetBoard()
end
end)
MinB.Activated:Connect(function(inputObject: InputObject, clickCount: number)
print(inputObject.Name)
end)
--Check distance
ResetBoard()