block position||doc135450

September 20, 2022

Format

 Entity:curBlockPos() 
  • The class to which the function belongs:Entity

Description

Get the block position occupied by the current entity.


Value Returned

type Description
Vector3 block position


Code Samples

on the client side of the objectmount script, get the block position occupied by the current entity

local pos = this:curBlockPos()