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