Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local VirtualInputManager = game:GetService("VirtualInputManager")
- local camera = workspace.CurrentCamera
- local size = camera.ViewportSize
- local x = size.X / 2
- local y = size.Y / 2
- VirtualInputManager:SendMouseButtonEvent(x, y, 0, true, game, 1)
- task.wait(0.05)
- VirtualInputManager:SendMouseButtonEvent(x, y, 0, false, game, 1)
Advertisement
Add Comment
Please, Sign In to add comment