Hello all scripting wizards,
Is there a way of controlling a player via just sending / controlling, the user input.
So there are easy ways of getting user input
`local UserInputService = game:GetService(“UserInputService”)
local Kinput = false
local Iinput = false
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if input.UserInputType == Enum.UserInputType.Keyboard then
if input.KeyCode == Enum.KeyCode.K then -- reverse
Kinput = true
blah blah
’
etc , but instead of reading it, actually sending the key stoke and other normal scripts are listening and doing what is then read by the players input.
Easy example, user via their controls, make it PC to keep it simple presses W and goes forward, things happen …
Can we script it, so we are sending W keystrokes, (Not scripting movement on the players, but just controlling the user input)
Thanks, and thoughts, or script example would be sweet.