How do I teleport a player based on their score? What I want to do is if a player goes below zero (money) on the score board they will be teleported to a certain location. I’m on bedrock 1.16 - here's my code so far, but this does not work:

/execute if @a[scores={money=..0}] run tp 1908 64 -1293

Try running:

tp @a[scores={money=0}] 1908 64 -1293

This selects any player with a score of exactly zero, and then teleports them. The /execute command you tried to use doesn’t work like that in Bedrock and wouldn’t have worked anyway.

  • thank you so much
    – Braeden
    Dec 26 '20 at 1:52
  • @Braeden your welcome! If this has fixed the problem, consider marking it as answered by clicking the grey checkmark. It will mark the question as answered and give both you and me some reputation!
    – Penguin
    Dec 26 '20 at 6:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.