-
What do you want to achieve? Keep it simple and clear! I want to make it so a player can’t walk on mobile using the joystick. Even so, the player still runs and not walk when dragging the joystick for a short distance.
-
What is the issue? Include screenshots / videos if possible! I don’t know where to start.
I don’t understand what you mean, do you want to make it so mobile doesn’t have joystick functionality at all or you want to make it so your character moves at a constant speed?
Do you want the player to move or not? Clarify please.
The second one
character limittt
Managed to get it to work. Basically you need to edit the roblox’s default controller script called DynamicThumbstick. This part of it to be exact,
function DynamicThumbstick:DoMove(direction: Vector3)
local currentMoveVector: Vector3 = direction --print(currentMoveVector)
-- Scaled Radial Dead Zone
local inputAxisMagnitude: number = currentMoveVector.magnitude
if inputAxisMagnitude < self.radiusOfDeadZone then
currentMoveVector = ZERO_VECTOR3
else
currentMoveVector = currentMoveVector.unit--[[*(
1 - math.max(0, (self.radiusOfMaxSpeed - currentMoveVector.magnitude)/self.radiusOfMaxSpeed)
)]]
currentMoveVector = Vector3.new(currentMoveVector.x, 0, currentMoveVector.y)
end
self.moveVector = currentMoveVector
end
The line I commented out is the math formula that is used to move the character slower/faster depending on the magnitude. I’m gonna give you the modified module script which you should put inside of StarterPlayerScripts in order for it to work, PlayerModule (Mobile Joystick Constant Speed) - Roblox
If you mean hiding the joysticks, just change ModalEnabled, i cant remember which way round disables it.
https://developer.roblox.com/en-us/api-reference/property/UserInputService/ModalEnabled
Deprecated, would be true
though.