The prompt having a custom UI to it.
When coding the Custom Prompt UI and the prompt when someone is on the “Counter Staff” team, it doesn’t make the UI and the prompt visible for them.
Code:
local folder = game.Workspace.PopCorn_Machine
local Prompt = folder.PopCornMachinePrompt:FindFirstChild("ProximityPrompt")
local PromptUI = Prompt.CustomPrompt
local function onPromptTriggered(player)
if player.Team == game.Teams.CounterStaff then
PromptUI.Enabled = true
else
PromptUI.Enabled = false
end
end
Prompt.Triggered:Connect(onPromptTriggered)
When testing this, it doesn’t show the UI or the prompt