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

How to make a two key click?

I know how to make it so that if you click a key, than a certain thing will happen. What if I want it to be that if you click two keys than something will happen? I'm not requesting I'm asking for the method.

2 comments

0

I can do that but please, this is not a site that takes requests, how about you make a script first then upload it here or you PAY someone good ROBUX to make the script for you.

0

ok lets add this last part to my question AGAIN

1 answer

✓ Accepted answer

Here you are. Free of charge.

local keyQ = false
local keyE = false
local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
mouse.KeyDown:connect(function(key)
	if key == "q" then
		keyQ = true
	elseif key == "e" then
		keyE = true
	end
end)
mouse.KeyUp:connect(function(key)
	if key == "q" then
		keyQ = false
	elseif key == "e" then
		keyE = false
	end
end)

1 comment

0

so then you would say "if keyQ = true and keyE = true than ......(put stuff here) ??

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