Is it possible to detect if a player has let off controller trigger?

i cant seem to find info if you can detect when the player lets off the trigger on the controller (buttonr2)

Cause i need it so it plays the sound when you lift the trigger not when you press the trigger down.

uis.InputBegan:Connect(function(key, processed)
	if processed then
		return
	end
	if key.KeyCode == Enum.KeyCode.ButtonR2 then
		carSeat.BoV:Play() -- i need this to play when the player lets off the trigger (car throttle)
	end
end)

The InputEnded event does exactly this. So for your script that would be.

uis.InputEnded:Connect(function(key, processed)
	if processed then
		return
	end
	if key.KeyCode == Enum.KeyCode.ButtonR2 then
		--input has ended
	end
end)
1 Like

ok! thanks for your help really appreciate it ;D