Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why wont this print? I have no errors and i can't find help on these things elsewhere

local userInputService = game:GetService("UserInputService")
userInputService.InputBegan:Connect(function(input)
	if input.KeyCode == Enum.KeyCode.LeftControl then
	print("LeftControl")	
	end
end)

1 comment

0

Run it on a localscript

1 answer

The script has to be run on a LocalScript; UserInputService is only available through the Client.

This discussion is preserved as it was. New answers, comments, and votes are closed.