i have this script
local uis = game:GetService("UserInputService") uis.InputBegan:Connect(function(input) local keyIn = input.KeyCode if keyIn == Enum.KeyCode.A then print("A was pressed!") end end)
and it's in a local script parented to a part and i don't understand why it doesn't work any help would be apriciated
If you're using roblox's "UserInputService" it's basically in the name of it "user" you can't really put it somewhere else and want it to still capture, you need to place it into the localplayer's directory or startergui