How do you make a custom thumpad?

I’m not really seeing any tutorials on this and would like to make one for my game. If you know how to, please help!

Could you elaborate on what the thumbpad would look like?

Something like this(The one in Cleaning Simulator)

image

Ah okay. I’m not gonna actually make it but I’ll just tell you how you’d do it (ONE WAY).

You’ll also want to remove the default one (UIS.ModalEnabled = false)

You could also use ContextActionService but for the sake of simplicity ima just use a TextButton :slight_smile:

Here we gooo:

  • Create a TextLabel and a TextButton
  • In the TextButton add a LocalScript
  • In the LocalScript detect when the button is clicked
  • With UserInputService detect when the mouse moves
  • Move the Player and the position of the TextButton (you’re gonna have to calculate that cuz I suck at math lol)
  • When they stop dragging it, move the TextButton back to its original position

!! THIS IS PROBABLY INACCURATE AND DONT WORK CUZ I DIDNT WRITE THIS IN STUDIO !!

local UIS = game:GetService(“UserInputService”)
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Mouse = Player:GetMouse()
local TextLabel = path.to.label
local TextButton = path.to.button
local Origin = TextButton.Position

script.Parent.MouseButton1Click:Connect(function()
UIS.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement then
-- do calculations and move the TextButton and Character
end
end)
UIS.InputEnded:Connect(function()
-- move the TextButton back to its original position
TextButton.Position = Origin
end)
end)