
385 Views
21 Executions
Manual key press
Universal Script 📌
Joyful_PizzaPartylPublished 50
8 months ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
YOU HAVE TO EDIT "Youraltusername" with your alts user, "Yourmainusername" to your user.
local Players = game:GetService("Players")
local VirtualInputManager = game:GetService("VirtualInputManager")
local player = Players.LocalPlayer
local ALT_USERNAME = "YourAltUsername"
local CONTROLLER_USERNAME = "YourMainUsername"
local IS_ALT = (player.Name == ALT_USERNAME)
local function getKeyCode(keyString)
keyString = keyString:upper()
-- adding this because roblox stupid enum just doesnt uses numbers..
local numberMap = {
["1"] = "One", ["2"] = "Two", ["3"] = "Three",
["4"] = "Four", ["5"] = "Five", ["6"] = "Six",
["7"] = "Seven", ["8"] = "Eight", ["9"] = "Nine",
["0"] = "Zero"
}
-- Arrow because same reason as before.
local arrowMap = {
["UP"] = "Up",
["DOWN"] = "Down",
["LEFT"] = "Left",
["RIGHT"] = "Right"
}
-- Esc
if keyString == "ESC" then
return Enum.KeyCode.Escape
end
-- F1–F12
if keyString:match("^F%d+$") then
local number = tonumber(keyString:sub(2))
if number and number >= 1 and number <= 12 then
return Enum.KeyCode[keyString]









what this do
Use !key press (key) or key hold (key) (how much second you want to press)