Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make a tool that makes you say dialog?

I want to make a tool that makes you say a dialog (like a spell or something) . I am just not sure how to do it.

1 answer

✓ Accepted answer

So we can do that using this function from the service Chat https://developer.roblox.com/en-us/api-reference/function/Chat/Chat

So, first thing is it parameters:

partOrCharacter: has to be an instance, its the part that the message should appear above

message: Has to be a string, its the message.

color: This is the color the message will have, use this for reference when setting https://developer.roblox.com/en-us/api-reference/enum/ChatColor

EXAMPLES

This is going to display a BubbleChat above the player head.

--// Services
local Players = game:GetService("Players") 
local ChatService = game:GetService("Chat")

--// Constants
local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()

ChatService:Chat(Character.Head, "Message", Enum.ChatColor.Green) 

This discussion is preserved as it was. New answers, comments, and votes are closed.