Please improve grammaticallity of the given text.
When he stopped, he gave me a coloured bracelet that it would make me happier.
When he stopped, he gave me a colored bracelet and said that it would make me happier.