Universal Script 📌
751 Views
204 Executions

67 pro lukinhas e pra mim keyboard city hangouto

Universal Script 📌
contareservadavi77
contareservadavi77First script
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

676767

View Raw
-- GUI
local player = game.Players.LocalPlayer
local gui = Instance.new("ScreenGui")
gui.Parent = game.CoreGui

local vim = game:GetService("VirtualInputManager")

-- desativar controles mobile
pcall(function()
    game.Players.LocalPlayer.PlayerScripts:WaitForChild("PlayerModule"):WaitForChild("ControlModule"):Disable()
end)

-- função pra segurar tecla
local function holdKey(key)
    vim:SendKeyEvent(true,key,false,game)
end

local function releaseKey(key)
    vim:SendKeyEvent(false,key,false,game)
end

-- criar botão
local function createButton(text,posX,posY,parent)
    local b = Instance.new("TextButton")
    b.Size = UDim2.new(0,60,0,60)
    b.Position = UDim2.new(posX,0,posY,0)
    b.Text = text
    b.TextScaled = true
    b.BackgroundColor3 = Color3.fromRGB(40,40,40)
    b.TextColor3 = Color3.new(1,1,1)
    b.Parent = parent
    return b
end

-- BOTÕES ESQUERDA
local up = createButton("↑",0.05,0.7,gui)
local left = createButton("←",0.0,0.8,gui)
local right = createButton("→",0.1,0.8,gui)
local down = createButton("↓",0.05,0.9,gui)



Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!