Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to detect if input is being held down, using UserInputService?

How to detect if input is being held down, using UserInputService?

2 comments

0

Please attempt this code yourself and post it here so we can help you understand how to fix this issue. This is not a request site.

0

bruh

1 answer

Here is a answer of my question, now make it your, understand how does it works and then edit it, good luck:

script.Parent.MouseButton1Down:Connect(function()
    local isholding = true
    script.Parent.MouseButton1Up:Connect(function()
        isholding = false
    end)
    wait()
    if isholding then
    end
end)

Ok hope you can do it

1 comment

0

ok, thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.