Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to use VirtualUserService:MouseButton1Click function?

Asked by 3 years ago

Hello, I tried to search it up, but I did not find anything what could help me.

local vs = game:GetService("VirtualUser")
vs:CaptureController()
local pos = [Gui_I_want_to_click_on].AbsolutePosition
vs:ClickButton1(Vector2.new(pos))

It is actually clicking, but at totally wrong position. I dont know what to do anymore, please help me. Thank you.

Answer this question