Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to create custom commands?

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

1 comment

1 answer

✓ Accepted answer
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.