Goal:
I am currently making a magic move,when player press the keybinds it will execute the move and make the player say something on his character.Like calling out the move name.
Make the player say something on his character.
Attempts:
I tried a few times using :Chat(“Fireball!”) but didnt work.
I used in different ways but didnt work:
1)player.Character:Chat(“Fireball!”)
2)player:Chat(“Fireball!”)
3)player.Character.Head:Chat(“Fireball!”) --I dunno why i tried this one lul 
4)game.Players:Chat(“the thing whatever”)
This I think it worked but I do not understand what does it mean by this:

I tried finding topics related to this on google and Dev Forum but I don’t seem to found any.
Feel free to help out,helps would be appreciated. 
You need to use the Chat Service, Then you need to use the :Chat() function and pass some parameters. (PartOrCharacter, Message)
It would look like this:
-- Services
local Players = game:GetService("Players")
local Chat = game:GetService("Chat")
-- LocalPlayer
local LocalPlayer = Players.LocalPlayer
local LocalCharacter = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local CharacterHead = LocalCharacter:WaitForChild("Head")
-- Main
Chat:Chat(CharacterHead, "MessageHere")
Note that it doesn’t needs to specifically be the Character’s Head. It can be anything else (But i recommend using the Character’s Head) And also beware that if you want Players to write their own messages and send them to everyone, You would need to use Chat:FilterStringForBroadcast()
2 Likes