From 8ca9e9b440673c9fb4a985b5ffae68756f133e70 Mon Sep 17 00:00:00 2001 From: sindri <33976067+isarsindri@users.noreply.github.com> Date: Tue, 3 Mar 2026 13:49:09 +0100 Subject: [PATCH] Check for TweenInfo existence before use fixed check fail --- src/tween.luau | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tween.luau b/src/tween.luau index 5397af9..403785d 100644 --- a/src/tween.luau +++ b/src/tween.luau @@ -1,11 +1,13 @@ -- src/tween.luau local TweenService = game and game:GetService("TweenService") or nil +local HasTweenInfo = (TweenInfo ~= nil) -- Factory: inject action + cleanup so tweens are stopped on scope destruction return function(action, cleanup) local tween = {} -- Presets (simple, useful) + if HasTweenInfo then tween.presets = { instant = TweenInfo.new(0), fast = TweenInfo.new(0.12, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),