What I have so far:
game.Players:WaitForChild("MageMasterHD")
game.Players.MageMasterHD.Chatted:Connect(function (msg)
if msg == "/test" then
print (msg)
end
end)
This works but I want the message if it is a command to be not sended
What I have so far:
game.Players:WaitForChild("MageMasterHD")
game.Players.MageMasterHD.Chatted:Connect(function (msg)
if msg == "/test" then
print (msg)
end
end)
This works but I want the message if it is a command to be not sended
game:GetService("Players").PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(msg)
if msg == "/test" then
print(msg)
end
end)
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
https://www.robloxdev.com/articles/Chat-Modules