Universal Script 📌
2.1k Views
18 Executions

talker

Universal Script 📌
crischip123456
crischip123456Published 10
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

say :talk all {message}

Updates

  1. Script edited: Update script

View Raw
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)



Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!