please see this
local _x,_y,_z = ConsoleCommandPlayer().Transform:GetWorldPosition(); local size, step, x, z; size = 800; step = 40; x,z = -size,-size; local function tp() if x <= size + step then if z <= size + step then z = z + step else x = x + step; z = -size; end else return true end end; local function dotp() ConsoleCommandPlayer().Physics:Teleport(x,0,z) if not tp() then TheWorld:DoTaskInTime( 0.033, dotp ) else ConsoleCommandPlayer().Physics:Teleport(_x,_y,_z) end end dotp()
Steps to Reproduce
local _x,_y,_z = ConsoleCommandPlayer().Transform:GetWorldPosition(); local size, step, x, z; size = 800; step = 40; x,z = -size,-size; local function tp() if x <= size + step then if z <= size + step then z = z + step else x = x + step; z = -size; end else return true end end; local function dotp() ConsoleCommandPlayer().Physics:Teleport(x,0,z) if not tp() then TheWorld:DoTaskInTime( 0.033, dotp ) else ConsoleCommandPlayer().Physics:Teleport(_x,_y,_z) end end dotp()
A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now