Skip to content

Commit c534cc2

Browse files
foshesssIgnisRBX
andauthored
Update content/en-us/reference/engine/classes/TextChatMessageProperties.yaml
Co-authored-by: IgnisRBX <[email protected]>
1 parent d171214 commit c534cc2

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

content/en-us/reference/engine/classes/TextChatMessageProperties.yaml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff 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-
3130
code_samples: []
3231
inherits:
3332
- Instance

0 commit comments

Comments
 (0)