Log in to vote

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

Asked by 7 months ago
Edited 7 months ago

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.

Closed as Non-Descriptive by JesseSong

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?

1 answer

Log in to vote
Answered by 7 months ago

So we can do that using this function from the service 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


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)