Guest User

tpplyrelative

a guest
Mar 1st, 2021
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. local function teleportPlayer(ply, ent, pos)
  2.     ply:SetPos(ent:LocalToWorld(pos))
  3. end
  4.  
  5. -- Teleports the first found player 200 units in front and 50 units up of the specified entity
  6. teleportPlayer(player.GetAll()[1], Entity(123), Vector(200, 0, 50))
Advertisement
Add Comment
Please, Sign In to add comment