Displace players||doc136793

September 20, 2022

Format

 Player:setForceMoveToAll(pos,time) 

Describe

According to the time parameter, make the player move towards the specified target point


parameter

Variable name Type Describe
pos Vector3 Coordinates to be displaced (world coordinates)
time  number Time (frame)


Code example

Move the player to the target point within 5 frames

entity:setForceMoveToAll(entity:getPosition() + Vector3.new(3,0,0),5)