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

How do I to detect player movement on all platforms with keyboard, joystick, and touch?

Asked by 5 years ago

So I know how to get movement input from keyboard with PlayerActions, and I think there is some way to detect joystick movement on console, but I do not know a way to consistently detect simple player movement on all platforms. I do not believe there is a way on ContextActionService, but I may be mistaken.

I would really appreciate it if someone could solve my problem. I am relatively new to roblox scripting, so this may be a dumb question.

Hope you all can solve it!

0
The UserInputService has everything you need. Just make sure to receive the input on the client. DeceptiveCaster 3761 — 5y
0
Oh ok, thank you! I actually managed to use the Vehicle Seat to detect steer and throttle, and that works for all platforms. But I will remember this information :) Sir_Ragealot 72 — 5y

1 answer

Log in to vote
0
Answered by
sheepposu 561 Moderation Voter
5 years ago

It's called UserInputService - It's fairly simple to learn. Either watch some tutorials or read about it here - https://developer.roblox.com/api-reference/class/UserInputService

Ad

Answer this question