-
What do you want to achieve? disable mobile control (Thumbstick/Joystick) without disable the jump button
-
What is the issue? idk how to disable the mobile control (Thumbstick/Joystick) without disable the jump button
-
What solutions have you tried so far? I tried to put the DevTouchMovementMode (In StarterPlayer) to scriptable but when I do this the jump button disabled too but I want to disable the Thumbstick/Joystick only
Have you tried changing the Player’s Walk speed to 0
?
I tried this method, and it worked for me! If it didn’t work let me know by replying back. If it did mark this post as a solution post so others, know it got solved.
This is good method but not for me because I’m making the force the player to move forward but I don’t want it to move right and left so I want to disable the Thumbstick/Joystick only without disable the jump button
Why no one replays.
,
I tried, as well. I think what you need is to change it to Scriptable
, and then you make a Custom UI that says “Jump”. It should work out like this.
Start by putting in a TextButton
or an ImageButton
at your existing ScreenGUI
.
Then, go ahead and add the context to the script. It should work perfectly fine.
local defaultJumpPower = game:GetService("StarterPlayer").CharacterJumpPower
function OnClicked()
local humanoid = game.Players.LocalPlayer.Character.Humanoid
humanoid.Jump = true
wait(1)
humanoid.JumpPower = defaultJumpPower
end
script.Parent.MouseButton1Down:connect(OnClicked)
Let me know if you have any other problems!
Wont that make only the person who pressed the button see the jump?
idk how but the button do noting
wait wait its work I just forget to make it Scriptable tysm bro
I just realized that you’re right…
However, I tested it on a Local Server, and both Players can see the button.
Click on Output, and tell me if you see any problem.
I’m glad it worked for you! Good luck with your project!
tysm bro
(Extra Characters aksn)