# ValueCurve(ロブロックス クラス) > A sorted list of time-value pairs that define a curve. Used to animate any type of value. - URL:https://roblox.minecraft-okinawa.com/reference/classes/ValueCurve/ - 公式:https://create.roblox.com/docs/reference/engine/classes/ValueCurve - 受け継いでいるクラス:Instance ## プロパティ - `ValueCurve.Length: int`:Number of keys in the value curve. - `ValueCurve.ValueType: string`:Read-only value indicating the type held in this curve. ## メソッド - `ValueCurve:GetKeyAtIndex(index: int): ValueCurveKey`:Returns a copy of a key at a given index. - `ValueCurve:GetKeyIndicesAtTime(time: float): Array`:Returns the index of the last and first key of a period of time. - `ValueCurve:GetKeys(): Array`:Returns a copy of all the keys in the ValueCurve as a Luau array of Datatype.ValueCurveKey|ValueCurveKeys. - `ValueCurve:GetValueAtTime(time: float): Variant?`:Samples the value curve at a given time passed as argument. - `ValueCurve:InsertKey(key: ValueCurveKey): Array`:Adds the key passed as an argument to this curve. If a key at the same time is found, it will be replaced. - `ValueCurve:InsertKeyValue(time: float, value: Variant, Interpolation: KeyInterpolationMode): Array`:Creates a key for the given value and inserts it at the given time. If a key at the same time is found, it will be replaced. - `ValueCurve:RemoveKeyAtIndex(startingIndex: int, count: int): int`:Removes a given number of keys starting from a given index. - `ValueCurve:SetKeys(keys: Array): int`:Resets this curve's keys using the ValueCurveKey array passed as an argument. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)