Answers for "roblox chatted function"

2

roblox lua on player chatted

game.Players.PlayerAdded:Connect(function(player)
  player.Chatted:Connect(function(msg)
        -- do stuff with msg and player
  end)
end)
Posted by: Guest on November-29-2020
1

player chatted function roblox

game.Players.PlayerAdded:Connect(function(player)
	player.Chatted:Connect(function(msg)
    	if string.sub(msg,1,10) == "hey" then
        	print(player.Name.." said hi!")
        end
    end
end)
Posted by: Guest on March-17-2021

Browse Popular Code Answers by Language