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

Is it possible to detect the cmd key on mac?

1 answer

✓ Accepted answer

I'm not sure if you can detect that specific key or not as I've never owned a mac, but you can make a script which prints the value of every key you press, then press the cmd key and see if it printed anything.

game:GetService("UserInputService").InputBegan:Connect(function(iobj, gp)
	if gp then return end
	print(iobj.KeyCode, iobj.KeyCode.Value)
end)

1 comment

0

Didn't thought on doing that. And, it prints Left and Right Control (Yeah, I have a Mac and it sucks for game dev). Maybe the error is in my script.. Thanks!

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