From 127f49ac7f76daa7c27d84e4699cbe98e4d448fa Mon Sep 17 00:00:00 2001 From: frames <68570351+workframes@users.noreply.github.com> Date: Fri, 26 Jun 2026 13:06:04 -0700 Subject: [PATCH] Update ParallelSimulation.luau --- src/ParallelSimulation.luau | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ParallelSimulation.luau b/src/ParallelSimulation.luau index 46bc9cb6..50d0827f 100644 --- a/src/ParallelSimulation.luau +++ b/src/ParallelSimulation.luau @@ -51,7 +51,7 @@ local casts_RayDisplacement = {} :: { [number]: number } local casts_ID = {} :: { number } local casts_ID_Index = {} :: { [number]: number } -local casts_FastCastEvents = {} :: { [number]: ModuleScript } +local casts_FastCastEvents = {} :: { [number]: TypeDef.FastCastEvents } -- Types @@ -485,7 +485,7 @@ function ParallelSimulation.Register(cast: any) casts_ID_Index[id] = #casts_ID local eventModule = cast.RayInfo.FastCastEventsModule - casts_FastCastEvents[id] = (typeof(eventModule) == "ModuleScript" or (typeof(eventModule) == "Instance" and eventModule:IsA("ModuleScript"))) and require(eventModule) or nil + casts_FastCastEvents[id] = (typeof(eventModule) == "Instance" and eventModule:IsA("ModuleScript")) and require(eventModule) or nil local position = GetPositionAtTime( casts_TotalRunTime[id], @@ -958,4 +958,4 @@ function ParallelSimulation.Stop() end end -return ParallelSimulation \ No newline at end of file +return ParallelSimulation