Advertisement
Domadicoof-28363

Untitled

Jun 9th, 2023
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local ImageButton = Instance.new("ImageButton")
  3.  
  4. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  5. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  6.  
  7. ImageButton.Parent = ScreenGui
  8. ImageButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  9. ImageButton.BorderSizePixel = 0
  10. ImageButton.Position = UDim2.new(0.1208337, 0, 0.0952890813, 0)
  11. ImageButton.Size = UDim2.new(0, 50, 0, 50)
  12. ImageButton.Image = "http://www.roblox.com/asset/?id=12523036534"
  13. ImageButton.MouseButton1Down:connect(function()
  14. game:GetService("VirtualInputManager"):SendKeyEvent(true,305,false,game)
  15. game:GetService("VirtualInputManager"):SendKeyEvent(false,305,false,game)
  16. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement