We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a1a239 commit 6c80613Copy full SHA for 6c80613
src/playerutils/src/Shared/RxPlayerUtils.lua
@@ -87,6 +87,17 @@ function RxPlayerUtils.observeLocalPlayerBrio(): Observable.Observable<Brio.Brio
87
end)
88
end
89
90
+--[=[
91
+ Observes the current local player's humanoid
92
+]=]
93
+function RxPlayerUtils.observeLocalPlayerHumanoidBrio(): Observable.Observable<Brio.Brio<Player>>
94
+ return RxPlayerUtils.observeLocalPlayerBrio():Pipe({
95
+ RxBrioUtils.switchMapBrio(function(player)
96
+ return RxCharacterUtils.observeLastHumanoidBrio(player)
97
+ end) :: any,
98
+ }) :: any
99
+end
100
+
101
--[=[
102
Observe players as they're added, and as they are.
103
@param predicate ((Player) -> boolean)?
0 commit comments