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)
Are there any code examples left?
New code examples in category Other