#MouseButton1Down and TouchLongPress together

1 messages · Page 1 of 1 (latest)

crude rover
#

I'm working on a colour wheel and colour UI for my game. So far, I've managed to get it working with PC, but it doesn't work for mobile.

Before, I used to use MouseButton1Down. Now that I want it working on both PC and mobile, I assigned both PC input and Mobile to a variable, but it didn't work, and the slider/wheel do not move. Can anyone help?

colorInput = colourWheel.MouseButton1Down or colourWheel.TouchLongPress

darkInput = darknessPicker.MouseButton1Down or darknessPicker.TouchLongPress


--Replace "colourWheel.MouseButton1Down" with colorInput
colorInput.MouseButton1Down:Connect(function()
    buttonDown = true
end)

--Replace "darknessPicker.MouseButton1Down" with darkInput
darkInput.MouseButton1Down:Connect(function()
    movingSlider = true
end)

strong plume
#

Use .Activated

#

Your ai doesn’t know this?

crude rover
#

I didn't use AI, these were just notes I got down in my code incase I forgot

crude rover
# strong plume Use .Activated

I tried this, but it didn't seem to work

colourWheel.Activated:Connect(function()
    buttonDown = true
end)

darknessPicker.Activated:Connect(function()
    movingSlider = true
end)