fix: add CharacterModel type and create typing submodule
This commit is contained in:
+2
-1
@@ -1,9 +1,10 @@
|
|||||||
local Players = game:GetService("Players")
|
local Players = game:GetService("Players")
|
||||||
local reface = {}
|
local reface = {}
|
||||||
local convert = require("@self/convert")
|
local convert = require("@self/convert")
|
||||||
|
local typing = require("@self/typing")
|
||||||
|
|
||||||
local function onPlayerAdded(player: Player)
|
local function onPlayerAdded(player: Player)
|
||||||
player.CharacterAppearanceLoaded:Connect(function(character: Model)
|
player.CharacterAppearanceLoaded:Connect(function(character: typing.CharacterModel)
|
||||||
convert.convertCharacter(character.Humanoid)
|
convert.convertCharacter(character.Humanoid)
|
||||||
end)
|
end)
|
||||||
if player.Character then
|
if player.Character then
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
local typing = {}
|
||||||
|
|
||||||
|
export type CharacterModel = Model & {
|
||||||
|
Humanoid: Humanoid,
|
||||||
|
PrimaryPart: BasePart
|
||||||
|
}
|
||||||
|
|
||||||
|
return typing
|
||||||
Reference in New Issue
Block a user