📜  玩家聊天功能 roblox - 任何代码示例

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

代码示例1
game.Players.PlayerAdded:Connect(function(player)
    player.Chatted:Connect(function(msg)
        if string.sub(msg,1,10) == "hey" then
            print(player.Name.." said hi!")
        end
    end
end)