diff --git a/src/runner/instance.rs b/src/runner/instance.rs index cef224f..b3e12ba 100644 --- a/src/runner/instance.rs +++ b/src/runner/instance.rs @@ -194,11 +194,11 @@ impl Instance{ instance.properties.insert(index_str.to_owned(),rbx_types::Variant::Float32(typed_value)); }, rbx_types::Variant::Enum(_)=>{ - let typed_value:super::r#enum::Enum=value.as_userdata().ok_or(mlua::Error::runtime("Expected Userdata"))?.take()?; + let typed_value:super::r#enum::Enum=value.as_userdata().ok_or(mlua::Error::runtime("Expected Enum"))?.take()?; instance.properties.insert(index_str.to_owned(),rbx_types::Variant::Enum(typed_value.into())); }, rbx_types::Variant::Color3(_)=>{ - let typed_value:super::color3::Color3=value.as_userdata().ok_or(mlua::Error::runtime("Expected Userdata"))?.take()?; + let typed_value:super::color3::Color3=value.as_userdata().ok_or(mlua::Error::runtime("Expected Color3"))?.take()?; instance.properties.insert(index_str.to_owned(),rbx_types::Variant::Color3(typed_value.into())); }, other=>return Err(mlua::Error::runtime(format!("Unimplemented property type: {other:?}"))),