kingstyboiYT Posted January 28, 2023 Share Posted January 28, 2023 I need a skript that teleport a player on right click to the nearest play if anyone could do that  thx Link to comment Share on other sites More sharing options...
ApexSplat Posted February 1, 2023 Share Posted February 1, 2023 (edited) on right click: loop all players: add loop-player's location to {locations::*} loop {locations::*}: set {_distance} to distance between player and loop-value if {tpDistance::%player%} is set: if {tpDistance::%player%} > {_distance}: if loop-value isn't location of player: set {tpDistance::%player%} to {_distance} set {tp::%player%} to loop-value else: set {tpDistance::%player%} to {_distance} teleport player to {tp::%player%} delete {locations::*} delete {tpDistance::%player%} Â Edited February 1, 2023 by ApexSplat Discord: Dead#6905 Love anime! Link to comment Share on other sites More sharing options...
Recommended Posts
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