📜  roblox studio 如何获取角色 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:54.359000             🧑  作者: Mango

代码示例1
local player = game.Players.LocalPlayer
local character = player.Character
if not character or not character.Parent then
    character = player.CharacterAdded:wait()
end