How could i use local-only things in a require

okay i know this question might be a little confusing, but i’m gonna try to explain it as best as i can

so let’s say you only have 2 scripts, a script requiring the module script and the module script.

image

how would i be able to implement stuff like user input service only using a module script nothing else.

You can directly use UserInputService in a module required by a LocalScript.

1 Like

The same way you would use UserInputService anywhere else? There aren’t really any limitations or differences as to what modules can do.

i don’t want to do that though

That is how you do it. If you’re asking how you can make a module like UserInputService, you can’t, as UIS is the only way you can detect key presses. Roblox only gives you access to that stuff through their API, because of security concerns.