MoveMouse (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>NXTBoy
Example: Cleared floats
>NXTBoy
Example: Cleared floats
(No difference)

Revision as of 08:49, 26 October 2010

MoveMouse( Vector2 position )
Returns nil
Description: Allows the ability to set where the Pseudo like Mouse for the VirtualUser is located.
Member of: [[RBX.lua.VirtualUser (Object)|VirtualUser]]

Example

local VU = game:GetService("VirtualUser")
--Using the GetService method on an instanceable service will create one if it does not exist already and it places it in its' proper spot.
x = 0, y = 0
--Set some variables for reference
while wait() do -- This will show an accurate example of said method --
    VU:MoveMouse(Vector2.new(x,y)) --Move the mouse to the spcified position
    x = x + 0.1
    y = y + 0.1 --Increment the position counter
end

Limitations

Currently this method is locked and of no use.