I Am making A Four Corners Game...
What I need Is A Script .. Which Has An Onchat Function
When I Say "Game" I would Like A Message to appear at the top saying Game in progress When I Say "End" I Would Like it to say A New Game Will Start Soon
Extra Info : I Want Just Me To Have The Command
You want to use the Chatted event, then if statements to check if it's you chatting and what the message is.
http://wiki.roblox.com/index.php?title=Chatted_%28Event%29 You want to use it like this:
game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(message) --code end) end)
Just as a note, the parameter "message" is a variable for the message that the player chatted. message == "this is my chat"
--MightyWanderer
h = Instance.new("Hint", game.Workspace) names = {"Player1"} --Where you put your name. game.Players.PlayerAdded:connect(function(player) for i, v in pairs(names) do if v == player.Name then player.Chatted:connect(function(chatmsg) if chatmsg:sub(1,4) == "game" then if game.Lighting:FindFirstChild(map) then h.Text = "Whatever Your Message Is" wait(5) h:Remove() end end end)