# Chat(ロブロックス クラス) > Houses the Luau code responsible for running the legacy chat system. - URL:https://roblox.minecraft-okinawa.com/reference/classes/Chat/ - 公式:https://create.roblox.com/docs/reference/engine/classes/Chat - 受け継いでいるクラス:Instance ## プロパティ - `Chat.BubbleChatEnabled: boolean`:Determines whether player's chat messages will appear above their in-game avatar. - `Chat.LoadDefaultChat: boolean`:Toggles whether the default chat framework should be automatically loaded when the game runs. ## メソッド - `Chat:CanUserChatAsync(userId: int64): boolean`:Will return false if the player with the specified Player.UserId is not allowed to chat because of their account settings. - `Chat:CanUsersChatAsync(userIdFrom: int64, userIdTo: int64): boolean`:Will return false if the two users cannot communicate because their account settings do not allow it. - `Chat:Chat(partOrCharacter: Instance, message: string, color: ChatColor): ()`:Fires the Chat.Chatted event with the parameters specified in this method. - `Chat:FilterStringAsync(stringToFilter: string, playerFrom: Player, playerTo: Player): string`:Filters a string sent from a player to another player using filtering that is appropriate to the players' account settings. - `Chat:FilterStringForBroadcast(stringToFilter: string, playerFrom: Player): string`:Filters a string sent from a player meant for broadcast to no particular target. More restrictive than Class.Chat:FilterStringAsync(). - `Chat:InvokeChatCallback(callbackType: ChatCallbackType, callbackArguments: Tuple): Tuple`:Invoke a chat callback function registered by Class.Chat:RegisterChatCallback()|RegisterChatCallback. Used by the Luau Chat System. - `Chat:RegisterChatCallback(callbackType: ChatCallbackType, callbackFunction: Function): ()`:Register a function to be called upon the invocation of some chat system event (Class.Chat:InvokeChatCallback()|InvokeChatCallback). - `Chat:SetBubbleChatSettings(settings: Variant): ()`:Customizes various settings of the in-game bubble chat. ## イベント - `Chat.Chatted(part: Instance, message: string, color: ChatColor)`:Fires when Class.Chat:Chat() is called. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)