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

Is there a way to put a max distance on a part so if you don't use it close enough it wont work?

Asked by
danglt 185
5 years ago
game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
    if inputObject.KeyCode == Enum.KeyCode.E then

        print("E was pressed")

    end 
end)
0
what do you mean by "if you dont use it close enough" ? ieatandisbaconhair 77 — 5y
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 danglt 185 — 5y
0
also i got to leave if i got an awnser ill check later today, thanks. danglt 185 — 5y
0
magnitude DeceptiveCaster 3761 — 5y

Answer this question