I put urgent in the title because I really need help with this, and help is very much appreciated, and just so whoever reads this knows, it is a local script.
EDIT: UIS Is UserInputService. which seems kind of obvious I guess but I should probably provide as much information as I can
So I've got some code here, and I was wondering how I would make it so after the KeyCode is pressed, but only if the KeyCode is pressed first, and then the left mouse button is clicked, it would fire the event, instead of just firing the event when the KeyCode is pressed.
UIS.InputBegan:Connect(function(key)
if key.KeyCode == Enum.KeyCode.Q then
-- I'm assuming the left click/mousebutton1 thing would go here
game.ReplicatedStorage.Events.Wall:FireServer()
end
end)

1 comment
Thank you @Officer_DuckyC, I should have provided more information though, UIS is UserInputService and I got it implemented into the script with no errors, but the problem is that it says MouseButton1Click is not a valid member of UserInputService, any idea on how I could get around that?