Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

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

Asked by 3 days ago
Edited 3 days 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
0
Answered by 3 days ago

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) 
Ad