I’m trying to make players face their mouse or finger in a top-down game. It works perfectly fine for desktop users, however for mobile users, since gameProcessedEvent doesn’t include the mobile thumbstick movement, moving makes them face the thumbstick as well as their other finger, which causes a glitching effect.
I had a look at some top-down shooter games from the app store to see how they make their game work, and most of them seem to have two thumbsticks: one for movement and the other to shoot and point. So I tried to duplicate the default mobile thumbstick but since I never use module scripts I have basically no idea what to do.
self.rotationalThumbstickFrame = self.thumbstickFrame:Clone()
self.rotationalThumbstickFrame.Position = UDim2.new(0.6, 0, 1/3, 0)
self.rotationalThumbstickFrame.Parent = parentFrame
I added this bit of code to the bottom of the DynamicThumbstick module, but it doesn’t seem to do anything. I also tried duplicating the module and changing the position of the duplicated frame which also did not work. I don’t know why this happens because when I change the position of the default frame it successfully moves.
No errors show up in the output.
Edit: In the end I ended up not cloning it in the default module script, instead I recreated the thumbstick in a local script inside of a gui.