Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Chat gui problem ? [closed]

Asked by 9 years ago

https://gyazo.com/b5f604e6d66d1fadc2fdf8b69a97f455

Like the photo above , it can produce words without player saying in the chat gui but how to make this?

Closed as Not Constructive by LetThereBeCode, Azmidium, M39a9am3R, and ImageLabel

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
M39a9am3R 3210 Moderation Voter Community Moderator
9 years ago

This question has been answered in another topic, which you can check out here. However, I will answer it again here.

The image you showed us was using ROBLOX's CoreGui to display messages. After an update early in September, ROBLOX has released the function :SetCore() to provide more of manipulation toward the ROBLOX CoreGuis such as the Chat and Notifications. To achieve what you showed us in the image, you are going to want to create a LocalScript and use the below code.

game:GetService('StarterGui'):SetCore('ChatMakeSystemMessage', {})

Inside the brackets in the above code, you're going to want to add the properties. Those should look something like {Text = 'Hello', Color = Color3.new(0,0,0)}. I will put the list of editable properties for the message.


Text required - The message you want displayed in the function.
Color optional - Color of the chat message, will default to a shade of white, must be a Color3 Value.
Font optional - Defaults to SourceSansBold, sets font to desired design.
FontSize optional - Defaults to Size18, sets size to desired design.


Overall when the code it done it should look something like below.

game:GetService('StarterGui'):SetCore('ChatMakeSystemMessage',{
    Text = 'Hello World!',
    Color = Color3.new(1,1,0),
    Font = Enum.Font.SourceSansItalics,
    FontSize = Enum.Size.Size48
})

A couple things to remember about the SetCore function is, not all the functions work and some are still in development. As well as SetCore will only work in a LocalScript.

If this answer helped, leave a upvote. If it solved your problem, then hit that accept answer button to the right.
Ad