Get the interactive location point||doc135647

September 20, 2022

Format

 Blockman:getClickPos() 
  • The class to which the function belongs:Blockman

Description

Returns the point where the user interacts with the device (mouse click, touch screen).


Value Returned

type Description
Vector2 Click the coordinates


Code Samples

local pos = Blockman.Instance():getClickPos()
print(pos.x)
print(pos.y)