VirtualUser:ClickButton1 help

Hello i found this service in the darkest parts of roblox’s api (im kidding) and i want to learn how it works.
this service seems very intresting as iv never seen something like it and iv been wondering how to do something like it.

im trying to send a left click onto my testgui

SCRIPT (its not working btw)

local TestButton = Instance.new("TextButton")
TestButton.Position = UDim2.new(0.337, 0,0.714, 0)
TestButton.Size = UDim2.new(0.3, 0,0.15, 0)

local VirtualUser=game:service'VirtualUser'
VirtualUser:CaptureController()
VirtualUser:ClickButton1(TestButton.AbsolutePosition)

so it uses VirtualUser:ClickButton1 which should be a left click then makes the vector2 the Exercising Absolute Position which should always click the button no mater how big the users screen size is.

IT HAS TO CLICK BUTTON NO MATER HOW BIG USERS SCREEN SIZE IS AS A REQUIRMENT

1 Like

It might be broken.