Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function teleportPlayer(ply, ent, distance)
- ply:SetPos(ent:GetPos() + ent:GetForward() * distance)
- end
- -- Teleports the first found player 200 units in front of the specified entity
- teleportPlayer(player.GetAll()[1], Entity(123), 200)
Advertisement
Add Comment
Please, Sign In to add comment