diff --git a/src/runner/instance.rs b/src/runner/instance.rs index 2da9a52..3059157 100644 --- a/src/runner/instance.rs +++ b/src/runner/instance.rs @@ -248,7 +248,7 @@ impl mlua::UserData for Instance{ 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), None=>(), - other=>println!("instance.properties.get(i)={other:?}"), + other=>return Err(mlua::Error::runtime(format!("Instance.__index Unsupported property type instance={} index={index_str} value={other:?}",instance.name))), } //find a function with a matching name if let Some(function)=class_functions_mut(lua,|cf|{