เรียนรู้
Engine Class
Controller
ไม่สามารถสร้าง

*เนื้อหานี้แปลโดยใช้ AI (เวอร์ชัน Beta) และอาจมีข้อผิดพลาด หากต้องการดูหน้านี้เป็นภาษาอังกฤษ ให้คลิกที่นี่


สรุป
วิธีการ
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
ส่งค่ากลับ
()
ตัวอย่างโค้ด
ตัวควบคุม:ผูกปุ่ม1
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 เป็นส่วนหนึ่งของเครื่องหมายการค้าที่จดทะเบียน และไม่ได้จดทะเบียนของเราในสหรัฐฯ และประเทศอื่นๆ