feat: add conversion logic and main conversion daemon

This commit is contained in:
2026-03-25 23:51:36 -04:00
parent 5816f39ad6
commit a339875856
2 changed files with 87 additions and 0 deletions
+16
View File
@@ -1,5 +1,21 @@
local Players = game:GetService("Players")
local reface = {}
local convert = require("@self/convert")
local function onPlayerAdded(player: Player)
player.CharacterAdded:Connect(function(character: Model)
convert.convertCharacter(character.Humanoid)
end)
if player.Character then
convert.convertCharacter(player.Character.Humanoid)
end
end
function reface.init()
Players.PlayerAdded:Connect(onPlayerAdded)
for _, player in Players:GetPlayers() do
onPlayerAdded(player)
end
end
return reface