How to make a Part chat (script)

I used

local message = "IputAmessageHere"
game:GetService("Chat"):Chat(script.Parent, message Enum.ChatColor.White )

and didn’t work

Are you trying something like that?

part1
part2
Screenshot_3

i am not trying to do a dialog, but the second picture, yes. If it is a dialog then no

color must be a ChatColor enum

so “Blue” should be replaced by Enum.ChatColor.Blue

local CS = game:GetService("Chat")
local part = --part
local color = Enum.ChatColor.Blue -- color choices are Blue, Green, Red, & White

CS:Chat(part, "text here", color)

i apologize if i necroposted

The Sevice CHAT is Depricted.
You should use

game:getService("TextChatService")

– Sorry if this is bumping…

1 Like