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

How to make my character say something while doing a move?

I need help with making a game. I have looked at some games and when you press a key, your character says something while doing it. Like in some DragonBall Z games, when they're saying "kamehameha"! Please help me.

2 answers

This is called the "Chatted event" on roblox. So in a nutshell you say something like ff:me and it will give you a force field. This is how you would do it!

game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
if (msg == "ff") then -- the message to say 
if player and player.Character then --Checking if the player is alive
ff = Instance.new("Force Field",player.Character) -- Creating the force field.
end)
end)

for more help go to: http://wiki.roblox.com/index.php?title=Chat_commands

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