File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed
content/en-us/reference/engine/classes Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -14,20 +14,19 @@ description: |
1414
1515 ```lua title='LocalScript - Retrieving and Using TextChatMessageProperties'
1616 local TextChatService = game:GetService("TextChatService")
17+
1718 TextChatService.OnIncomingMessage = function(message: TextChatMessage)
18- -- deriving TextChatMessageProperties
19- local properties = TextChatService.ChatWindowConfiguration:DeriveNewMessageProperties()
20-
21- -- changing color of messsage
22- properties.TextColor3 = Color3.fromRGB(255, 121, 121)
23-
24- -- setting message's chatwindowmessageproperties
25- message.ChatWindowMessageProperties = properties
26-
27- return properties
19+ -- Derive chat message properties
20+ local properties = TextChatService.ChatWindowConfiguration:DeriveNewMessageProperties()
21+
22+ -- Change color of message
23+ properties.TextColor3 = Color3.fromRGB(255, 121, 121)
24+
25+ -- Set chat window message properties
26+ message.ChatWindowMessageProperties = properties
27+
28+ return properties
2829 end
29- ```
30-
3130code_samples : []
3231inherits :
3332 - Instance
You can’t perform that action at this time.
0 commit comments