# HapticEffect(ロブロックス クラス) > An object that provides waveform-based haptic feedback (vibrations and rumbles) on supported controllers and mobile devices. - URL:https://roblox.minecraft-okinawa.com/reference/classes/HapticEffect/ - 公式:https://create.roblox.com/docs/reference/engine/classes/HapticEffect - 受け継いでいるクラス:Instance ## プロパティ - `HapticEffect.Looped: boolean`:Whether the haptic effect loops continuously. - `HapticEffect.Position: Vector3`:Along with Class.HapticEffect.Radius|Radius, specifies the impact position relative to the input device and, effectively, how broadly that impact effects nearby motors. - `HapticEffect.Radius: float`:Along with Class.HapticEffect.Position|Position, specifies the impact radius relative to the input device and, effectively, how broadly that impact effects nearby motors. - `HapticEffect.Type: HapticEffectType`:HapticEffectType describing the haptic type. ## メソッド - `HapticEffect:Play(): ()`:Plays the haptic effect. - `HapticEffect:GetWaveformKeys(): Array`:Returns the custom waveform as an array of FloatCurveKey objects. - `HapticEffect:SetWaveformKeys(keys: Array): ()`:Defines a custom waveform as a table and applies it to the haptic. This method takes in an array of FloatCurveKey objects. - `HapticEffect:Stop(): ()`:Stops the haptic effect. ## イベント - `HapticEffect.Ended()`:Fires when the HapticEffect has completed playback and stopped. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)