From 32360a52524f51ca6739aae3d6d75b93845156b8 Mon Sep 17 00:00:00 2001 From: tacheometry Date: Mon, 16 Sep 2024 04:32:20 +0300 Subject: [PATCH] Refine Humanoid.Seated (#1306) Edit made by Osyris. Makes sure that whenever `active` is true, `currentSeatPart` is guaranteed to exist. --- include/customDefinitions.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/customDefinitions.d.ts b/include/customDefinitions.d.ts index a145c45cb..809d9fb2c 100644 --- a/include/customDefinitions.d.ts +++ b/include/customDefinitions.d.ts @@ -511,7 +511,11 @@ interface HttpService extends Instance { interface Humanoid extends Instance { readonly AnimationPlayed: RBXScriptSignal<(animationTrack: AnimationTrack) => void>; - readonly Seated: RBXScriptSignal<(active: boolean, currentSeatPart: Seat | VehicleSeat | undefined) => void>; + readonly Seated: RBXScriptSignal< + ( + ...args: [active: true, currentSeatPart: Seat | VehicleSeat] | [active: false, currentSeatPart: undefined] + ) => void + >; readonly Touched: RBXScriptSignal<(touchingPart: BasePart, humanoidPart: BasePart) => void>; GetAppliedDescription(this: Humanoid): HumanoidDescription; GetPlayingAnimationTracks(this: Humanoid): Array;