Universal Script 📌
385 Views
21 Executions

Manual key press

Universal Script 📌
Joyful_PizzaPartyl
Joyful_PizzaPartylPublished 50
8 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No 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.

View Raw
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]


Comments

2
Log in to join the conversation. Login
enzoerosdu73's profile picture
enzoerosdu736 months ago

what this do

1
Joyful_PizzaPartyl's profile picture
Joyful_PizzaPartylUploader8 months ago

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

1

More universal scripts

See all
Script hub
265.4k
102.3k
Bumped 44 minutes ago
Key System
Script hub
281.5k
916.9k
Bumped 3 hours ago
Key System

Script hub

#21 this week

Verified script badgeAxon Hub 60+ Games & 800+ Features

Script hub
2.1M
704.6k
Bumped 4 hours ago
Key System

Script hub

#5 today

Verified script badgeLumin Hub | #1 | Insta Steal

Universal Script 📌
29.9k
88.2k
Bumped 5 hours ago
Script hub
19.0k
65.5k
Bumped 6 hours ago
Key System
Universal Script 📌
1.8k
6.7k
Bumped 7 hours ago
Key System
Script hub
194
33
Approved 7 hours ago
Paid

Script hub

anmultv hub

Universal Script 📌
170
52
Approved 7 hours ago