@quenty/characterutils 12.19.0 → 12.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/package.json +2 -2
- package/src/Shared/RootPartUtils.lua +19 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [12.20.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/characterutils@12.19.0...@quenty/characterutils@12.20.0) (2025-07-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **RootPartUtils:** getRootPart function ([e07270c](https://github.com/Quenty/NevermoreEngine/commit/e07270c0b1e1b3ab67620fb6e2af72e03580dc2a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [12.19.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/characterutils@12.18.3...@quenty/characterutils@12.19.0) (2025-05-10)
|
|
7
18
|
|
|
8
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/characterutils",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.20.0",
|
|
4
4
|
"description": "CharacterUtils",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "b2387bbbc347e784216a6e9e2d1abefd23c1d375"
|
|
40
40
|
}
|
|
@@ -70,4 +70,23 @@ function RootPartUtils.promiseRootPart(humanoid: Humanoid): Promise.Promise<Base
|
|
|
70
70
|
return promise
|
|
71
71
|
end
|
|
72
72
|
|
|
73
|
+
--[=[
|
|
74
|
+
Gets the root part of a character, if it exists
|
|
75
|
+
@param character Model
|
|
76
|
+
@return BasePart? -- Nil if not found
|
|
77
|
+
]=]
|
|
78
|
+
function RootPartUtils.getRootPart(character: Model): BasePart?
|
|
79
|
+
local humanoid = character:FindFirstChildOfClass("Humanoid")
|
|
80
|
+
if not humanoid then
|
|
81
|
+
return nil
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
local rootPart = humanoid.RootPart
|
|
85
|
+
if not rootPart then
|
|
86
|
+
return nil
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
return rootPart
|
|
90
|
+
end
|
|
91
|
+
|
|
73
92
|
return RootPartUtils
|