TransWikia.com

How do I teleport a player based on their score?

Arqade Asked by Braeden on May 1, 2021

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

One Answer

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.

Answered by Penguin on May 1, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP