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

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

Asked by
seikkatsu 110
4 years ago

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

Log in to vote
1
Answered by 4 years ago
Edited 4 years ago

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

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

Please upvote if this helped you :D

0
thank you for the in depth answer! seikkatsu 110 — 4y
Ad
Log in to vote
0
Answered by
Lucke0051 165
4 years ago

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.

0
your answer also helped but the other one was better for me seikkatsu 110 — 4y

Answer this question