#Give to command not working
9 messages · Page 1 of 1 (latest)
9 messages · Page 1 of 1 (latest)
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