Im trying to make my gun automatic and I decided to try out uis. Im not sure how id detect that input ended happened.
You can use two seperate functions one being when the input has began, two being when the input has ended.
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function()
-- Code here
end)
UserInputService.InputEnded:Connect(function()
-- Code here
end)
2 Likes
