Answers for "roblox voice chat"

2

roblox chat tag

local ServerScriptService = game:GetService("ServerScriptService")
local ChatService = require(ServerScriptService:WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
local Players = game:GetService("Players")

local Admins = {'MrMuppetTheMan'}

ChatService.SpeakerAdded:Connect(function(PlrName)
	local Speaker = ChatService:GetSpeaker(PlrName)
	for _, v in pairs(Admins) do
		if Players[PlrName].Name == v then
			Speaker:SetExtraData('Tags', {{TagText = "Muppet/Cool", TagColor = Color3.fromRGB(141, 141, 141)}}) 
		end
	end
end)
-- Put into workspace or ServerScriptService
-- Anymore help message me Muppet#6931
Posted by: Guest on February-26-2021
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
0

chat speaker roblox

local ChatService = require(game:GetService("ServerScriptService"):WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
local server = ChatService:AddSpeaker("Server")
server:JoinChannel("All")
server:SetExtraData("NameColor", Color3.fromRGB(255, 255, 255))
server:SetExtraData("ChatColor", Color3.fromRGB(0, 255, 255))


script.Parent.Touched:Connect(function(hit)
    local char = hit:FindFirstAncestorOfClass("Model")

    server:SayMessage(char.Name.." has completed!", "All")
end)
Posted by: Guest on July-19-2021

Browse Popular Code Answers by Language