# ProximityPromptService(ロブロックス クラス) > Allows developers to interact with ProximityPrompt objects in a global way. - URL:https://roblox.minecraft-okinawa.com/reference/classes/ProximityPromptService/ - 公式:https://create.roblox.com/docs/reference/engine/classes/ProximityPromptService - 受け継いでいるクラス:Instance ## プロパティ - `ProximityPromptService.Enabled: boolean`:Whether Class.ProximityPrompt|ProximityPrompts are enabled, and therefore shown, in-experience. - `ProximityPromptService.MaxIndicatorsVisible: int`:Maximum number of prompt indicators that can be visible at once. - `ProximityPromptService.MaxPromptsVisible: int`:Maximum number of Class.ProximityPrompt|ProximityPrompts that will be shown to the player. ## イベント - `ProximityPromptService.IndicatorHidden(prompt: ProximityPrompt)`:Triggers client-side when a prompt's indicator becomes hidden. - `ProximityPromptService.IndicatorShown(prompt: ProximityPrompt)`:Triggers client-side when a prompt's indicator becomes visible. - `ProximityPromptService.PromptButtonHoldBegan(prompt: ProximityPrompt, playerWhoTriggered: Player)`:Triggers when the player begins holding down the Class.ProximityPrompt.KeyboardKeyCode|KeyboardKeyCode key/button on a prompt with a non-zero Class.ProximityPrompt.HoldDuration|HoldDuration. - `ProximityPromptService.PromptButtonHoldEnded(prompt: ProximityPrompt, playerWhoTriggered: Player)`:Triggers when the player stops holding down the Class.ProximityPrompt.KeyboardKeyCode|KeyboardKeyCode key/button on a prompt with a non-zero Class.ProximityPrompt.HoldDuration|HoldDuration. - `ProximityPromptService.PromptHidden(prompt: ProximityPrompt)`:Triggers client-side when a prompt becomes hidden. - `ProximityPromptService.PromptShown(prompt: ProximityPrompt, inputType: ProximityPromptInputType)`:Triggers client-side when a prompt becomes visible. - `ProximityPromptService.PromptTriggered(prompt: ProximityPrompt, playerWhoTriggered: Player)`:Triggers when the user interacts with this prompt. - `ProximityPromptService.PromptTriggerEnded(prompt: ProximityPrompt, playerWhoTriggered: Player)`:Triggers when the player stops holding down the Class.ProximityPrompt.KeyboardKeyCode|KeyboardKeyCode key/button while triggering a prompt. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)