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

How do I change a key press to a right click?

Asked by 3 years ago
Edited 3 years ago

I'm working on a scope for a sniper right now and I want to change "q" to a right click. How do I do that? Herse the code

elseif string.lower(Key) == "q" then
            if not Reloading and AimDown == false and Module.SniperEnabled then
                Workspace.CurrentCamera.FieldOfView = Module.FieldOfView
                --[[local GUI = game.Players.LocalPlayer.PlayerGui:FindFirstChild("ZoomGui") or Tool.ZoomGui:Clone()
                GUI.Parent = game.Players.LocalPlayer.PlayerGui]]
                GUI.Scope.Visible = true
                game.Players.LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
                script["Mouse Sensitivity"].Disabled = false
                AimDown = true
                Mouse.Icon="http://www.roblox.com/asset?id=187746799"

0
mousebutton2 RebornedSnoop 175 — 3y
0
You do a simple code of, MouseButton2Down:Connect(function() MrSmartyPants126 0 — 3y

Answer this question