Player has a default movement.speed of 0.1
doing "/attribute @p minecraft:generic.movement_speed base set 0.5" sets it to 0.5 only briefly before returning to default speed
Putting it in a repeating command block doesn't make it work at all
Linked issues
Comments 2

Thank you for your report!
We're tracking this issue in MC-179851, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automagically! Please report any issues in Discord or Reddit
Relates to MC-161071.