Im trying to use the following skript on my minehut server:
on player death:
trigger:
make player gamemode spectator
wait 1 tick
show title "You Died! Respawning in 3..." to player
wait 10000000 ticks
show title "You Died! Respawning in 2..." to player
wait 10000000 ticks
show title "You Died! Respawning in 1..." to player
wait 10000000 ticks
make player gamemode survival
teleport player to -112 11 -26
But every time i reload, it says all code has to be put in triggers...
i have no idea what to do because clearly its all in triggers...
on player death:
trigger:
make player gamemode spectator
wait 1 tick
show title "You Died! Respawning in 3..." to player
wait 10000000 ticks
show title "You Died! Respawning in 2..." to player
wait 10000000 ticks
show title "You Died! Respawning in 1..." to player
wait 10000000 ticks
make player gamemode survival
teleport player to -112 11 -26
But every time i reload, it says all code has to be put in triggers...
i have no idea what to do because clearly its all in triggers...