Struct roblox::instance::Humanoid [−][src]
pub struct Humanoid<'a> {Show 62 fields
pub auto_jump_enabled: bool,
pub auto_rotate: bool,
pub automatic_scaling_enabled: bool,
pub break_joints_on_death: bool,
pub camera_offset: Vector3,
pub display_distance_type: HumanoidDisplayDistanceType,
pub display_name: &'a str,
pub floor_material: Material,
pub health: f32,
pub health_display_distance: f32,
pub health_display_type: HumanoidHealthDisplayType,
pub hip_height: f32,
pub jump: bool,
pub jump_height: f32,
pub jump_power: f32,
pub max_health: f32,
pub max_slope_angle: f32,
pub move_direction: Vector3,
pub name_display_distance: f32,
pub name_occlusion: NameOcclusion,
pub platform_stand: bool,
pub requires_neck: bool,
pub rig_type: HumanoidRigType,
pub root_part: Option<InstanceRef>,
pub seat_part: Option<InstanceRef>,
pub sit: bool,
pub target_point: Vector3,
pub use_jump_power: bool,
pub walk_speed: f32,
pub walk_to_part: Option<InstanceRef>,
pub walk_to_point: Vector3,
pub archivable: bool,
pub class_name: &'a str,
pub name: &'a str,
pub parent: Option<InstanceRef>,
pub roblox_locked: bool,
pub source_asset_id: i64,
pub climbing: RBXScriptSignal<f32>,
pub cluster_composition_finished: RBXScriptSignal<()>,
pub died: RBXScriptSignal<()>,
pub falling_down: RBXScriptSignal<bool>,
pub free_falling: RBXScriptSignal<bool>,
pub getting_up: RBXScriptSignal<bool>,
pub health_changed: RBXScriptSignal<f32>,
pub jumping: RBXScriptSignal<bool>,
pub move_to_finished: RBXScriptSignal<bool>,
pub platform_standing: RBXScriptSignal<bool>,
pub ragdoll: RBXScriptSignal<bool>,
pub running: RBXScriptSignal<f32>,
pub seated: RBXScriptSignal<(bool, Option<InstanceRef>)>,
pub state_changed: RBXScriptSignal<(HumanoidStateType, HumanoidStateType)>,
pub state_enabled_changed: RBXScriptSignal<(HumanoidStateType, bool)>,
pub strafing: RBXScriptSignal<bool>,
pub swimming: RBXScriptSignal<f32>,
pub touched: RBXScriptSignal<(Option<InstanceRef>, Option<InstanceRef>)>,
pub ancestry_changed: RBXScriptSignal<(Option<InstanceRef>, Option<InstanceRef>)>,
pub attribute_changed: RBXScriptSignal<&'a str>,
pub changed: RBXScriptSignal<&'a str>,
pub child_added: RBXScriptSignal<Option<InstanceRef>>,
pub child_removed: RBXScriptSignal<Option<InstanceRef>>,
pub descendant_added: RBXScriptSignal<Option<InstanceRef>>,
pub descendant_removing: RBXScriptSignal<Option<InstanceRef>>,
}Expand description
The Humanoid Instance Class
Fields
auto_jump_enabled: boolauto_rotate: boolautomatic_scaling_enabled: boolbreak_joints_on_death: boolcamera_offset: Vector3display_distance_type: HumanoidDisplayDistanceTypedisplay_name: &'a strfloor_material: Materialhealth: f32health_display_distance: f32health_display_type: HumanoidHealthDisplayTypehip_height: f32jump: booljump_height: f32jump_power: f32max_health: f32max_slope_angle: f32move_direction: Vector3name_display_distance: f32name_occlusion: NameOcclusionplatform_stand: boolrequires_neck: boolrig_type: HumanoidRigTyperoot_part: Option<InstanceRef>seat_part: Option<InstanceRef>sit: booltarget_point: Vector3use_jump_power: boolwalk_speed: f32walk_to_part: Option<InstanceRef>walk_to_point: Vector3archivable: boolInherited from Instance
class_name: &'a strInherited from Instance
name: &'a strInherited from Instance
parent: Option<InstanceRef>Inherited from Instance
roblox_locked: boolInherited from Instance
source_asset_id: i64Inherited from Instance
climbing: RBXScriptSignal<f32>cluster_composition_finished: RBXScriptSignal<()>died: RBXScriptSignal<()>falling_down: RBXScriptSignal<bool>free_falling: RBXScriptSignal<bool>getting_up: RBXScriptSignal<bool>health_changed: RBXScriptSignal<f32>jumping: RBXScriptSignal<bool>move_to_finished: RBXScriptSignal<bool>platform_standing: RBXScriptSignal<bool>ragdoll: RBXScriptSignal<bool>running: RBXScriptSignal<f32>seated: RBXScriptSignal<(bool, Option<InstanceRef>)>state_changed: RBXScriptSignal<(HumanoidStateType, HumanoidStateType)>state_enabled_changed: RBXScriptSignal<(HumanoidStateType, bool)>strafing: RBXScriptSignal<bool>swimming: RBXScriptSignal<f32>touched: RBXScriptSignal<(Option<InstanceRef>, Option<InstanceRef>)>ancestry_changed: RBXScriptSignal<(Option<InstanceRef>, Option<InstanceRef>)>Inherited from Instance
attribute_changed: RBXScriptSignal<&'a str>Inherited from Instance
changed: RBXScriptSignal<&'a str>Inherited from Instance
child_added: RBXScriptSignal<Option<InstanceRef>>Inherited from Instance
child_removed: RBXScriptSignal<Option<InstanceRef>>Inherited from Instance
descendant_added: RBXScriptSignal<Option<InstanceRef>>Inherited from Instance
descendant_removing: RBXScriptSignal<Option<InstanceRef>>Inherited from Instance
Implementations
Creates a new Humanoid object.
Equivalent to Instance.new(“Humanoid”) in Luau.
pub fn get_accessory_handle_scale(
&self,
instance: Option<InstanceRef>,
part_type: BodyPartR15
) -> Vector3
pub fn replace_body_part_r15(
&self,
body_part: BodyPartR15,
part: Option<InstanceRef>
) -> bool
pub fn apply_description(
&self,
humanoid_description: Option<InstanceRef>,
asset_type_verification: AssetTypeVerification
)
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
pub fn find_first_child_which_is_a(
&self,
class_name: &'a str,
recursive: bool
) -> Option<InstanceRef>
pub fn find_first_child_which_is_a(
&self,
class_name: &'a str,
recursive: bool
) -> Option<InstanceRef>
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Humanoid<'a>
impl<'a> UnwindSafe for Humanoid<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more