New Input Action System scripting help

I’m trying to detect when a button is being held using this input system. In my last script, I used MouseButtonDown and MouseButtonUp events to handle held and released states for my weapons system. Though, with the current system, I can only find the .Pressed event, which only detects when the button is initially pressed - not when it’s released. I’m not sure if detecting held input is possible with this system!

there is a serious lack of documentation with this beta feature lol

Any help is greatly appreciated!

Solved! I totally missed the released event, for people in the future trying to get the same effect, heres my code

- - Fire action is just the inputaction object!


local held = false

FireAction.Pressed:Connect(function()
	held = true
end)

FireAction.Released:Connect(function()
	held = false
end)
while true do
	wait(0.1)
	print(held)
end

Doesn’t look like theres a way to just get the down state sadly, but this’ll have to do!