#Skript Afk Pool Help
8 messages · Page 1 of 1 (latest)
Region events, while loops and variables
It’s simple, add a player to list when they enter the region of your AFK pool and add smth to their inventory or Wtv using a while loop and then remove them when they exit the region
This is the skript i used can you fix it?
`region {afkpool} = cuboid(835851, 115, 21997692, 835855, 121, 21997698)
players in afkpool: []
on enter of player:
if player's location is in {afkpool}:
add player to players in afkpool
while player is in {afkpool}:
wait 5 seconds
give diamond to player
remove player from players in afkpool`
Error(s)?