Hello. When making E to interact's, I usually make a LocalScript inside of the StarterGui and type in the following:
local function Epress(keyCode)
if keyCode.keyCode == Enum.KeyCode.E then
print("E has been pressed")
end
end
game:GetService("UserInputService").InputBegan:Connect(Epress)
But however, when I create multiple objects to interact with...
..It gets messy.
Loads of LocalScripts, unnamed in the StarterGui, clogging all the space and risking more bugs.
Is there a more effective way to do this without clogging up a service? (Aside from workspace)

4 comments
Idk man maybe make one script with different functions
I ususally use ModuleScripts on the ServerScriptService and re-use the function of the Script. So it's more effective.
And start creating Folder to store all the things I need. And it doesn't get messy.
^ that boi is spitting pure fax