I put a UIS in a server script and the script isn't working i was wondering is it because of the UIS?
✓ ANSWER ACCEPTED
Can you put a UserInputService in a server script?
2 answers
✓ Accepted answer
You can only use this service in a LocalScript.
UserInputService allows a LocalScript to perform different actions depending on the device, and in turn, helps developers provide the best experience for the end user.
More info regarding this can be found here https://developer.roblox.com/en-us/api-reference/class/UserInputService
UserInputService is a client-only service meaning it can only be used inside of local scripts. If you want to use UserInputService you need to move it to a local script.
Read more about it here: https://developer.roblox.com/en-us/api-reference/class/UserInputService
This discussion is preserved as it was. New answers, comments, and votes are closed.
