I have a chatted event script which when you say "yes" it will say "it's lonely, should sit with it." back. I see that it's putting the text in the 'output' but I want it to like pop up on screen then disappear.
This is the script (it's in the ServerScriptService) V V
game:GetService("Players").PlayerAdded:connect(function(Player) Player.Chatted:connect(function(Message) if Message == "yes" then print("It's lonely, should sit with it?") end end) end)
You can't do Player.Chatted in an actual script since it doesn't have the level of permission to do so, but the command line does, so, you have to use an event in the service, 'game.Players'; game.Players.PlayerChatted.
Here's how you can do it:
game.Players.PlayerChatted:Connect(function(Player, Message) --// Code here end)