why does this not work

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

McTonnie

Member
Oct 23, 2019
1
0
0
22
command /list:
trigger:
wait 8 ticks
open chest with 6 rows named "&b&lPlayers" to player
set {_n} to 0
loop all players:
wait 3 ticks
if {_n} is less than 45:
format slot {_n} of player with skull of loop-player named "&7%loop-player%" to run [execute player command "tp %loop-player% "]
add 1 to {_n}



the [execute player command "tp %loop-player% "] dosent work for me instead of teleporting to the player i presed i teleport to 1 player no mater what player i pres it will still tp tp that same player i am using minecrfat 1.14.4



 
Code:
command /list:
    trigger:
        wait 8 ticks
        open chest with 6 rows named "&b&lPlayers" to player
        set {_n} to 0
        loop all players:
            wait 3 ticks
            if {_n} is less than 45:
            format slot {_n} of player with skull of loop-player named "&7%loop-player%" to run [execute player command "tp %loop-player% "]
            add 1 to {_n}

What version are you using?
what do you want to do with this skript?
any Addons?
 
Status
Not open for further replies.