game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.E then
print("E was pressed")
end
end)
COMMUNITY QUESTION
Is there a way to put a max distance on a part so if you don't use it close enough it wont work?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
what do you mean by "if you dont use it close enough" ?
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
also i got to leave if i got an awnser ill check later today, thanks.
magnitude