Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a two key click?

Asked by 9 years ago

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.

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. EzraNehemiah_TF2 3552 — 9y
0
ok lets add this last part to my question AGAIN salmonbear242 50 — 9y

1 answer

Log in to vote
0
Answered by
hudzell 238 Moderation Voter
9 years ago

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)
0
so then you would say "if keyQ = true and keyE = true than ......(put stuff here) ?? salmonbear242 50 — 9y
Ad

Answer this question