-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] local UserInputService = game:GetService("UserInputService") local VirtualInputManager = game:GetService("VirtualInputManager") local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local oldIndex oldIndex = hookmetamethod(game, "__index", function(self, key) if not checkcaller() and self == UserInputService then if key == "TouchEnabled" then return false elseif key == "KeyboardEnabled" or key == "MouseEnabled" then return true end end return oldIndex(self, key) end) local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "VirtualPCButtons" ScreenGui.ResetOnSpawn = false ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui") local function createButton(name, text, position, size, keyCode) local btn = Instance.new("TextButton") btn.Name = name btn.Text = text btn.Size = size btn.Position = position btn.BackgroundColor3 = Color3.fromRGB(35, 35, 35) btn.BackgroundTransparency = 0.3 btn.TextColor3 = Color3.fromRGB(255, 255, 255) btn.Font = Enum.Font.SourceSansBold btn.TextSize = 20 btn.Parent = ScreenGui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 8) corner.Parent = btn btn.MouseButton1Down:Connect(function() VirtualInputManager:SendKeyEvent(true, keyCode, false, game) end) btn.MouseButton1Up:Connect(function() VirtualInputManager:SendKeyEvent(false, keyCode, false, game) end) end createButton("BtnW", "W", UDim2.new(0.15, 0, 0.65, 0), UDim2.new(0, 50, 0, 50), Enum.KeyCode.W) createButton("BtnA", "A", UDim2.new(0.08, 0, 0.74, 0), UDim2.new(0, 50, 0, 50), Enum.KeyCode.A) createButton("BtnS", "S", UDim2.new(0.15, 0, 0.74, 0), UDim2.new(0, 50, 0, 50), Enum.KeyCode.S) createButton("BtnD", "D", UDim2.new(0.22, 0, 0.74, 0), UDim2.new(0, 50, 0, 50), Enum.KeyCode.D) createButton("BtnJump", "SPACE", UDim2.new(0.80, 0, 0.74, 0), UDim2.new(0, 80, 0, 50), Enum.KeyCode.Space) createButton("BtnE", "E", UDim2.new(0.80, 0, 0.63, 0), UDim2.new(0, 80, 0, 50), Enum.KeyCode.E)