学ぶ
エンジンクラス
Controller
作成できません

*このコンテンツは、ベータ版のAI(人工知能)を使用して翻訳されており、エラーが含まれている可能性があります。このページを英語で表示するには、 こちら をクリックしてください。


概要
方法
BindButton(button: Enum.Button,caption: string):()
bindButton(button: Enum.Button,caption: string):()
非推奨
getButton(button: Enum.Button):boolean
非推奨
継承されたメンバー

APIリファレンス
方法
BindButton
Controller:BindButton(
button:Enum.Button, caption:string
):()
パラメータ
caption:string
戻り値
()
コードサンプル
コントローラー:BindButton1
local ControllerService = game:GetService("ControllerService")
local humanoidController = ControllerService:FindFirstChildOfClass("HumanoidController")
humanoidController:BindButton(Enum.Button.Dismount, "勝利!")

bindButton
非推奨

GetButton
Controller:GetButton(button:Enum.Button):boolean
パラメータ
戻り値

getButton
非推奨

UnbindButton
Controller:UnbindButton(button:Enum.Button):()
パラメータ
戻り値
()

イベント
ButtonChanged
Controller.ButtonChanged(button:Enum.Button):RBXScriptSignal
パラメータ

©2026 Roblox Corporation。Roblox(ロブロックス)、RobloxロゴおよびPowering Imaginationは、米国並びにその他の国における登録商標および非登録商標です。