Like the topic says.
I’m trying to see if I can create an input from a studio script rather than the player itself.
It doesn’t have to actually interfere with the player’s input but at least fires the InputBegan
event.
Any help is appreciated!
Like the topic says.
I’m trying to see if I can create an input from a studio script rather than the player itself.
It doesn’t have to actually interfere with the player’s input but at least fires the InputBegan
event.
Any help is appreciated!
I don’t understand what you are talking about, but you can only fire custom (bindable) events.
I mean as if the InputBegan event could be executed without the player manually executing it
I understand now. But no, this is not possible.
Why don’t you want to use BinableEvent?
Is there any way I can produce an alternative to this?
Why do you even want to do this?
I can but I don’t see how I can use it to add automatically inputted inputs.
Like if I wanted InputBegan
to be fired by a script with X
as the KeyCode and if it has a function for it, it will happen.
How would I go about doing this with BindableEvents?
I’m testing to see if I can make a macro recorder inside roblox studio.
Record a key being pressed and then it inserts the custom input itself when you run it.
cant u just directly fire it?!
That has already been answered above. No.
So if you play the recorded macro and there is a key W, the player starts to run forward?
I think the VirtualUser is what you are looking for. It has functions for recording and playing the macro, but it is not guaranteed to work since it wasn’t maintained for several years.
And there is a reason for that. UserInputService.InputBegan
is a RBXScriptSignal
, not a BindableEvent
.
Thank you very much, I’ll try to make great use of this even if it’s in bad shape.
I just realized that all of the functions of VirtualUser are marked as LocalUserSecurity, means they can only be used in command bar. You’ll have to create your own system for this (you won’t achieve a good result because of the limitations, though) , sadly.