Question - Why use UIS?

I see very players and devs using the UIS to make a script to when a player click in a key something happend, but why use UIS?

I can make this without UIS, so why use it?

Local Script in StarterCharacterScripts

local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()

mouse.KeyDown:Connect(function(key)
if key == "q" then
	print("Q")
end
end)

Mouse is the old method for getting mouse input. UIS is newer and accommodates tablet and console input as well.

2 Likes