#Give to command not working

9 messages · Page 1 of 1 (latest)

thin flicker
#

it’s cuz ur overwriting ‘chat’ variable

#

splits chat message

#
game.Players.PlayerAdded:Connect(function(plr)
    plr.Chatted:Connect(function(chat)
        local args = string.split(chat, " ")
        if args[1] == "/giveto" then
            local to = args[2]
            wait()
            print(to)
        end
    end)
end)
#

added a new variable called args

#

should work

near ice
#

theres a new textchatcommand

#

you can use

#

just put it in textchatservice

#

it automatically hides their message if its the command