game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
    if inputObject.KeyCode == Enum.KeyCode.E then
	
        print("E was pressed")

    end 
end)

4 comments

0

what do you mean by "if you dont use it close enough" ?

0

if you are so far away from the part it will not work you ave to set a max distance like how the click detector has

0

also i got to leave if i got an awnser ill check later today, thanks.

0

magnitude