Buildism Lua question
#1
Ok so, I am trying to make a script that teleports the player, but I don't know how to change the position?
Reply
#2
player.Character.Body.Position = Vec2D(xposition, yposition)

or

char.Body.Position = Vec2D(xposition, yposition)

where in the first line, player is the Player and in the second, char is the Character. xposition is the X-value of where you want to go to and yposition is the Y-value.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)