Trouble Detecting last input type “Touch”

You should still listen for changes in the LastInputType using UserInputService.LastInputTypeChanged considering there exists touchscreen laptops.
Otherwise, you should just do UserInputService:GetLastInputType() to determine the LastInputType.

Personally I’d use ContextActionService as it’s more fit for the job, however if it’s absolutely necessary for it to be connected in RenderStepped, use the above method.

2 Likes

Actually I might use context action service I didn’t know I could of used that I’ll try that out I just think context action survive is difficult because when I tryed unbundling functions it wouldn’t do it and took a hour to get it working. Thanks for the suggestion lol.