Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

where to put my local script for my user input service to work?

where should i put my local script for my user input service to work? i have been struggling with this for a while. if you have an answer please detail it

2 answers

✓ Accepted answer

A LocalScript can be placed anywhere the client runs to run UserInputService
Examples :

-- StarterPlayer
-- StarterCharacter
-- StarterGui
-- StarterPack

Please upvote if this helped you :D

1 comment

0

thank you for the in depth answer!

You can put the LocalScript anywhere where the client can run it, like StarterPlayerScripts or StarterGui. Get it by doing

game:GetService("UserInputService")

Your problem is probably that you are not using it correctly, please explain your problem further so we can help you easier.

1 comment

0

your answer also helped but the other one was better for me

This discussion is preserved as it was. New answers, comments, and votes are closed.