How to fork DynamicThumbstick for custom character

I want to be able to either

A: hook into the DynamicThumbstick module and make it work for a custom character (don’t think that’s possible)

B: fork the DynamicThumbstick module and use it for a custom character

I’m trying to dissect the module so that I can edit and use it standalone, but I am having trouble making sense of it.

Help appreciated, thanks.
image

So, what I understand from you that you are trying to get the move direction from the Thumbstick to move you custom character with?

I like to abandon the PlayerModule entirely when making projects

In this case, if you’re just wanting thumbstick inputs (which is where I believe @NarakuLite is heading), you can most likely utilize ContextActionService’s binds with the thumbsticks and get whatever values you need

… on a side note, the PlayerModule isn’t very well documented as far as I can tell (and the script itself uses/has used deprecated functions/poor noting for a long time). That’s just a problem you have to deal with when using it.

Exactly, but the default DynamicThumbstick will only work with the default Roblox Character.

@PuffoThePufferfish

Update:

I managed to figure out how to utilize DynamicThumbstick without the default character and without forking the PlayerModule.

First,

-- Trick the ControlModule into thinking the TouchGui is enabled
Player.PlayerGui.TouchGui.Enabled = true
Player.PlayerGui.TouchGUi:GetPropertyChangedSignal("Enabled"):Connect(function()
    Player.PlayerGui.TouchGui.Enabled = true
end)

Next, get the ControlModule and call GetMoveVector

local ControlModule = require(PlayerGui:WaitForChild("PlayerModule"):WaitForChild("ControlModule")

local moveVector = ControlModule:GetMoveVector() -- put this in a RenderStepped event
2 Likes

well I did that too in my game by editing the player module itself but that works too.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.