Rojhann10

Untitled

Aug 8th, 2026
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. local VirtualInputManager = game:GetService("VirtualInputManager")
  2.  
  3. local camera = workspace.CurrentCamera
  4. local size = camera.ViewportSize
  5. local x = size.X / 2
  6. local y = size.Y / 2
  7.  
  8. VirtualInputManager:SendMouseButtonEvent(x, y, 0, true, game, 1)
  9. task.wait(0.05)
  10. VirtualInputManager:SendMouseButtonEvent(x, y, 0, false, game, 1)
Advertisement
Add Comment
Please, Sign In to add comment