Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local TouchGui = Instance.new("ScreenGui")
- local A = Instance.new("TextLabel")
- local D = Instance.new("TextLabel")
- local S = Instance.new("TextLabel")
- local W = Instance.new("TextLabel")
- local Mouse = Instance.new("TextLabel")
- local LeftClick = Instance.new("TextLabel")
- local RightClick = Instance.new("TextLabel")
- local Space = Instance.new("TextLabel")
- local Shift = Instance.new("TextLabel")
- local RShift = Instance.new("TextLabel")
- --Properties:
- TouchGui.Name = "TouchGui"
- TouchGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- TouchGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- A.Name = "A"
- A.Parent = TouchGui
- A.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- A.Position = UDim2.new(0.702274323, 0, 0.803736329, 0)
- A.Size = UDim2.new(0.0433134809, 0, 0.0890868604, 0)
- A.Font = Enum.Font.SourceSans
- A.Text = "A"
- A.TextColor3 = Color3.fromRGB(0, 0, 0)
- A.TextScaled = true
- A.TextSize = 14.000
- A.TextWrapped = true
- D.Name = "D"
- D.Parent = TouchGui
- D.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- D.Position = UDim2.new(0.799969554, 0, 0.802622736, 0)
- D.Size = UDim2.new(0.0433134809, 0, 0.0902003795, 0)
- D.Font = Enum.Font.SourceSans
- D.Text = "D"
- D.TextColor3 = Color3.fromRGB(0, 0, 0)
- D.TextScaled = true
- D.TextSize = 14.000
- D.TextWrapped = true
- S.Name = "S"
- S.Parent = TouchGui
- S.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- S.Position = UDim2.new(0.751002014, 0, 0.803736329, 0)
- S.Size = UDim2.new(0.0433134809, 0, 0.0890868604, 0)
- S.Font = Enum.Font.SourceSans
- S.Text = "S"
- S.TextColor3 = Color3.fromRGB(0, 0, 0)
- S.TextScaled = true
- S.TextSize = 14.000
- S.TextWrapped = true
- W.Name = "W"
- W.Parent = TouchGui
- W.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- W.Position = UDim2.new(0.751002014, 0, 0.702122629, 0)
- W.Size = UDim2.new(0.0433134809, 0, 0.0890868604, 0)
- W.Font = Enum.Font.SourceSans
- W.Text = "W"
- W.TextColor3 = Color3.fromRGB(0, 0, 0)
- W.TextScaled = true
- W.TextSize = 14.000
- W.TextWrapped = true
- Mouse.Name = "Mouse"
- Mouse.Parent = TouchGui
- Mouse.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Mouse.Position = UDim2.new(0.859231114, 0, 0.842984378, 0)
- Mouse.Size = UDim2.new(0.06497024, 0, 0.111358657, 0)
- Mouse.Font = Enum.Font.SourceSans
- Mouse.Text = ""
- Mouse.TextColor3 = Color3.fromRGB(0, 0, 0)
- Mouse.TextScaled = true
- Mouse.TextSize = 14.000
- Mouse.TextWrapped = true
- LeftClick.Name = "LeftClick"
- LeftClick.Parent = TouchGui
- LeftClick.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- LeftClick.Position = UDim2.new(0.859231114, 0, 0.753897488, 0)
- LeftClick.Size = UDim2.new(0.0324851125, 0, 0.0890869349, 0)
- LeftClick.Font = Enum.Font.SourceSans
- LeftClick.Text = ""
- LeftClick.TextColor3 = Color3.fromRGB(0, 0, 0)
- LeftClick.TextScaled = true
- LeftClick.TextSize = 14.000
- LeftClick.TextWrapped = true
- RightClick.Name = "RightClick"
- RightClick.Parent = TouchGui
- RightClick.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- RightClick.Position = UDim2.new(0.891716242, 0, 0.753897488, 0)
- RightClick.Size = UDim2.new(0.0324851125, 0, 0.0890869349, 0)
- RightClick.Font = Enum.Font.SourceSans
- RightClick.Text = ""
- RightClick.TextColor3 = Color3.fromRGB(0, 0, 0)
- RightClick.TextScaled = true
- RightClick.TextSize = 14.000
- RightClick.TextWrapped = true
- Space.Name = "Space"
- Space.Parent = TouchGui
- Space.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Space.Position = UDim2.new(0.702399433, 0, 0.909799576, 0)
- Space.Size = UDim2.new(0.140883535, 0, 0.0668152273, 0)
- Space.Font = Enum.Font.SourceSans
- Space.Text = ""
- Space.TextColor3 = Color3.fromRGB(0, 0, 0)
- Space.TextScaled = true
- Space.TextSize = 14.000
- Space.TextWrapped = true
- Shift.Name = "Shift"
- Shift.Parent = TouchGui
- Shift.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Shift.Position = UDim2.new(0.702274323, 0, 0.702206433, 0)
- Shift.Size = UDim2.new(0.0433134809, 0, 0.0890868604, 0)
- Shift.Font = Enum.Font.SourceSans
- Shift.Text = "Shift"
- Shift.TextColor3 = Color3.fromRGB(0, 0, 0)
- Shift.TextScaled = true
- Shift.TextSize = 14.000
- Shift.TextWrapped = true
- RShift.Name = "RShift"
- RShift.Parent = TouchGui
- RShift.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- RShift.Position = UDim2.new(0.799930513, 0, 0.702206433, 0)
- RShift.Size = UDim2.new(0.0433134809, 0, 0.0890868604, 0)
- RShift.Font = Enum.Font.SourceSans
- RShift.Text = "RightShift"
- RShift.TextColor3 = Color3.fromRGB(0, 0, 0)
- RShift.TextScaled = true
- RShift.TextSize = 14.000
- RShift.TextWrapped = true
- -- Scripts:
- local function PVOHSU_fake_script() -- TouchGui.KeyboardScript
- local script = Instance.new('LocalScript', TouchGui)
- -- Getting the player's mouse and keyboard
- local uis = game:GetService("UserInputService")
- local plr = game.Players.LocalPlayer
- local mouse = plr:GetMouse()
- -- Creating variables
- local screenGui = script.Parent
- local W = screenGui:WaitForChild("W")
- local wColor = W.BackgroundColor3
- local A = screenGui:WaitForChild("A")
- local aColor = A.BackgroundColor3
- local S = screenGui:WaitForChild("S")
- local sColor = S.BackgroundColor3
- local D = screenGui:WaitForChild("D")
- local dColor = D.BackgroundColor3
- local SP = screenGui:WaitForChild("Space")
- local spColor = SP.BackgroundColor3
- local Shift = screenGui:WaitForChild("Shift")
- local ShiftColor = Shift.BackgroundColor3
- local RShift = screenGui:WaitForChild("RShift")
- local RShiftColor = RShift.BackgroundColor3
- local rmb = screenGui:WaitForChild("RightClick")
- local rColor = rmb.BackgroundColor3
- local lmb = screenGui:WaitForChild("LeftClick")
- local lColor = lmb.BackgroundColor3
- -- Sensing when the mouse is held down
- local LeftDown = false -- NOT MANDATORY!!!
- local RightDown = false -- NOT MANDATORY!!!
- mouse.Button1Down:Connect(function()
- LeftDown = true -- Sending a signal that the left mouse button is down
- lmb.BackgroundColor3 = Color3.fromRGB(100, 100, 100) -- Color, from RGB. Change it if you'd like
- mouse.Button1Up:Connect(function()
- LeftDown = false -- Sending a signal that the left mouse button is up
- lmb.BackgroundColor3 = lColor
- end)
- end)
- mouse.Button2Down:Connect(function() -- Same thing for the left mouse button, so I am not going to explain it again
- RightDown = true
- rmb.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
- mouse.Button2Up:Connect(function()
- RightDown = false
- rmb.BackgroundColor3 = rColor
- end)
- end)
- --W KEY (This is by far not the simplest way to do it, but it works)
- uis.InputBegan:Connect(function(inputObj, process)
- if inputObj.KeyCode == Enum.KeyCode.W then
- W.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
- end
- end)
- uis.InputEnded:Connect(function(inputObj, process)
- if inputObj.KeyCode == Enum.KeyCode.W then
- W.BackgroundColor3 = wColor
- end
- end)
- -- A KEY
- uis.InputBegan:Connect(function(inputObj, process)
- if inputObj.KeyCode == Enum.KeyCode.A then
- A.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
- end
- end)
- uis.InputEnded:Connect(function(inputObj, process)
- if inputObj.KeyCode == Enum.KeyCode.A then
- A.BackgroundColor3 = aColor
- end
- end)
- -- S KEY
- uis.InputBegan:Connect(function(inputObj, process)
- if inputObj.KeyCode == Enum.KeyCode.S then
- S.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
- end
- end)
- uis.InputEnded:Connect(function(inputObj, process)
- if inputObj.KeyCode == Enum.KeyCode.S then
- S.BackgroundColor3 = sColor
- end
- end)
- -- D KEY
- uis.InputBegan:Connect(function(inputObj, process)
- if inputObj.KeyCode == Enum.KeyCode.D then
- D.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
- end
- end)
- uis.InputEnded:Connect(function(inputObj, process)
- if inputObj.KeyCode == Enum.KeyCode.D then
- D.BackgroundColor3 = dColor
- end
- end)
- -- SPACE
- uis.InputBegan:Connect(function(inputObj, process)
- if inputObj.KeyCode == Enum.KeyCode.Space then
- SP.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
- end
- end)
- uis.InputEnded:Connect(function(inputObj, process)
- if inputObj.KeyCode == Enum.KeyCode.Space then
- SP.BackgroundColor3 = spColor
- end
- end)
- -- LEFTSHIFT
- uis.InputBegan:Connect(function(inputObj, process)
- if inputObj.KeyCode == Enum.KeyCode.LeftShift then
- Shift.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
- end
- end)
- uis.InputEnded:Connect(function(inputObj, process)
- if inputObj.KeyCode == Enum.KeyCode.LeftShift then
- Shift.BackgroundColor3 = ShiftColor
- end
- end)
- -- RIGHTSHIFT
- uis.InputBegan:Connect(function(inputObj, process)
- if inputObj.KeyCode == Enum.KeyCode.RightShift then
- RShift.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
- end
- end)
- uis.InputEnded:Connect(function(inputObj, process)
- if inputObj.KeyCode == Enum.KeyCode.RightShift then
- RShift.BackgroundColor3 = RShiftColor
- end
- end)
- end
- coroutine.wrap(PVOHSU_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement