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

is it possible to press a key for the player?

Asked by 3 years ago

i have this issue where the error will only fire if the player has not pressed wasd first

so i want to press the keys for the player before they join in but i dont know if thats even possible

0
It is not currently possible to simulate a key press for a client. appxritixn 2235 — 3y
0
yea, i don't think that is possible. JesseSong 3916 — 3y

2 answers

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

For security reasons, no, but if you learn python it could do it for you, right, people won't do that, nvm about the python. Just don't try to press a key for them, if you want to simulate a keypress, just activate whatever trigger you want that usually is triggered from mouse press.

Ad
Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

https://developer.roblox.com/en-us/api-reference/class/VirtualUser

This service hasn’t been maintained in several years, so it doesn’t work very well anymore. said by the developer wiki. I saw this service but I don't know if this will help you. Check it out though.

0
hmm.. i might try this one out when i can proROBLOXkiller5 112 — 3y
0
it looks pretty promising reading in the api proROBLOXkiller5 112 — 3y
0
nah i could only use the api in command bar not scripts, well too bad proROBLOXkiller5 112 — 3y

Answer this question