talker
Key RequiredUniversal

talker

Universal Scriptcrischip123456crischip123456 2.1K views 9 executesUpdated Mar 21, 2025
5.0/ 5(1 votes)
10100% Positive
Lua Script•24 lines (941 chars)
local players = game:GetService("Players")
local localplayer = players.LocalPlayer
local chatservice = game:GetService("Chat")

localplayer.Chatted:Connect(function(msg)
    local args = msg:split(" ")
    if args[1] == ":talk" and args[2] and args[3] then
        local target = args[2]
        local message = msg:sub(#args[1] + #args[2] + 3)

        if target == "all" then
            for _, player in ipairs(players:GetPlayers()) do
                if player.Character and player.Character:FindFirstChild("Head") then
                    chatservice:Chat(player.Character.Head, message, Enum.ChatColor.White)
                end
            end
        else
            local player = players:FindFirstChild(target)
            if player and player.Character and player.Character:FindFirstChild("Head") then
                chatservice:Chat(player.Character.Head, message, Enum.ChatColor.White)
            end
        end
    end
end)

Features & Information

say :talk all {message}

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts