# Why does my character move randomly

**URL:** <https://forums.unrealengine.com/t/why-does-my-character-move-randomly/489306>\
**Category:** Character & Animation\
**Tags:** unreal-engine, bug-problem, question\
**Created:** [September 28, 2021, 6:26pm UTC](https://forums.unrealengine.com/t/why-does-my-character-move-randomly/489306 "2021-09-28T18:26:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DD\_Lander](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DD\_Lander](https://forums.unrealengine.com/u/DD_Lander)\
**Post date:** [September 28, 2021, 6:26pm UTC](https://forums.unrealengine.com/t/why-does-my-character-move-randomly/489306/1 "2021-09-28T18:26:20Z")

</div>

I just put a weapon code for the player

 ![349537-screenshot-4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/c/a/4ca1a81dcea5e06bbef2f4853ffb674e60186853.png)

and when I went to press play this happened [Imgur: The magic of the Internet](https://imgur.com/a/DVJ1UrX)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 29, 2021, 9:26am UTC](https://forums.unrealengine.com/t/why-does-my-character-move-randomly/489306/2 "2021-09-29T09:26:24Z")

</div>

Perhaps the gun is colliding with the player? Set the gun’s collision to Ignore Pawn.
