return Instance from Instance.__Index
This commit is contained in:
parent
58edaf3291
commit
a23e8fc36f
@ -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::<super::cframe::CFrame>::into(cf).into_lua(lua),
|
||||
Some(&rbx_types::Variant::Vector3(v))=>return Into::<super::vector3::Vector3>::into(v).into_lua(lua),
|
||||
other=>println!("instance.properties.get(i)={other:?}"),
|
||||
|
Loading…
Reference in New Issue
Block a user