Author Topic: [Scripts] How to teleport someone to you  (Read 182 times)

0 Members and 1 Guest are viewing this topic.

L3g3nD

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
    • Awards
  • Xbox: Br4zK L3g3nDv2
[Scripts] How to teleport someone to you
« on: December 12, 2016, 10:46:01 AM »
We can't teleport someone to you so I made a script for that.
You need to use 2 script for that :

Run this script to save your position :

Code: [Select]
var [x] = [pos:x]
var [y] = [pos:y] + [1]
var [z] [pos:z]
History [x] [x]
History [y] [y]
History [z] [z]


Run this script on the player you want to teleport to you :

Code: [Select]
var [x] = [syshistory:x]
var [y] = [syshistory:y]
var [z] = [syshistory:z]

Teleport [player] [x,y,z]



(Click on this logo)

Lunar

  • Elite Member
  • *****
  • Posts: 878
  • The God of the Galaxy
  • Awards 1 year on site+100 posts
    • View Profile
    • Awards
  • Xbox: Qvzw
  • PSN: Widumn_Boise
Re: How to teleport someone to you
« Reply #1 on: December 12, 2016, 09:30:28 PM »
Nifty thing to teleport the nearest player in a range of 500 blocks to you..

Code: [Select]
If
Intersect [box] [prel:250,200,250] [prel:-250,-200,-250]
Then
var [x] = [pos:x]
var [y] = [pos:y]
var [z] = [pos:z]
Context [player] [target]
Teleport [player] [x,y,z]
Else
EndIf