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

is it possible to press a key for the player?

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

2 comments

0

It is not currently possible to simulate a key press for a client.

0

yea, i don't think that is possible.

2 answers

✓ Accepted answer

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.

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.

3 comments

0

hmm.. i might try this one out when i can

0

it looks pretty promising reading in the api

0

nah i could only use the api in command bar not scripts, well too bad

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