I have a medieval style game. My problem is that when the player is walking and swinging a sword, his character stops and the player has to move again or, for example, the player cannot jump while walking.
The main problem is that the player cannot use 2 touches at the same time. For example, in mobile games like Call of Duty, you can even use four fingers at the same time, but this is not the case in Roblox.
How can I fix this problem? Because when I test on a device like a mobile through Roblox Studio, this problem exists.
For example, I saw many of my players having this problem.
If you make proper use of the gameProcessedEvent
which is supplied to most input events, you can make inputs which only happen when the user is not touching a UI element. If gameProcessedEvent
is true, that means the user is actually trying to interact with the UI, not whatever controller you have assigned.
Moreover, if you have a custom UI for movement (Roblox defaults do not have the issue you describe), make sure the UI has the Active
property set to true
so that it sinks user input.
Actually I use swords and ready made things that don’t have buttons to hit
I’m very weak in scripting and the only things I know are very simple scripts and remote events
Can you give me a server script service or a local script?
So are you saying the default Roblox mobile movement buttons do not support moving and jumping at the same time in your experience?
Yes, that’s the problem
For example, if I swing a sword while walking, the walking stops
Of course, anything that refers to two touches at the same time
I don’t know anything about scripting
In your game players vs noobs
, this issue does not exist. I just tested it for like 7 minutes on my phone and also talked to that NPC of yourself because I thought it was you . The weapons in that game don’t work at all though