uis.InputBegan:connect(function(input,process)
if not process and input.KeyCode == Enum.KeyCode.H then
edited
uis.InputBegan:connect(function(input,process)
if not process and input.MouseButton1 then
uis.InputBegan:connect(function(input,process)
if not process and input.KeyCode == Enum.KeyCode.H then
edited
uis.InputBegan:connect(function(input,process)
if not process and input.MouseButton1 then
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
The inputObject contains the input type and states.
I edited it, but it says MouseButton1 is not a valid member of InputObject
I think it’s supposed to be “input.UserInputType.MouseButton1” or “input.UserInputType == Enum.UserInputType.MouseButton1”.
I tried the second one, and it worked, thanks.