From a23e8fc36f7501b64f9cece59559a1d8d8e56277 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Sat, 5 Oct 2024 21:52:41 -0700 Subject: [PATCH] return Instance from Instance.__Index --- src/runner/instance.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runner/instance.rs b/src/runner/instance.rs index c38e7e4..d0d1a77 100644 --- a/src/runner/instance.rs +++ b/src/runner/instance.rs @@ -244,6 +244,7 @@ impl mlua::UserData for Instance{ Some(&rbx_types::Variant::Int64(val))=>return val.into_lua(lua), Some(&rbx_types::Variant::Float32(val))=>return val.into_lua(lua), Some(&rbx_types::Variant::Float64(val))=>return val.into_lua(lua), + Some(&rbx_types::Variant::Ref(val))=>return Instance::new(val).into_lua(lua), Some(&rbx_types::Variant::CFrame(cf))=>return Into::::into(cf).into_lua(lua), Some(&rbx_types::Variant::Vector3(v))=>return Into::::into(v).into_lua(lua), other=>println!("instance.properties.get(i)={other:?}"),