#how do I make a afk room
1 messages · Page 1 of 1 (latest)
well what do you have
on region enter:
if event-region = "afk" parsed as region:
set {afk::%player's uuid%} to true
while {afk::%player's uuid%} = true:
send action bar "&d&lYou are afk" to player
wait 1 tick
on region exit:
if event-region = "afk" parsed as region:
set {afk::%player's uuid%} to false
It's not working
be more specific
Wdym
what part isnt working
Idk
I suck at doing skript
so?
So idk what to do
I also have this one
on region enter: afk
wait 1 tick
while player is in region "afk":
wait 5 minutes
give player 1 of tripwire hook named "AFK Key"
wait 1 tick```
on region enter: afk why the afk
thats not how that works
ye
Ok
on region enter:
wait 1 tick
while player is in region "afk":
wait 5 minutes
give player 1 of tripwire hook named "AFK Key"
wait 1 tick```
?
i dont think while player is in region "afk": is a thing either
Ok
on region enter: afk
wait 1 tick
wait 5 minutes
give player 1 of tripwire hook named "AFK Key"
wait 1 tick```
?
you need the while loop
Where
There was no while loop
...
while player is in region "afk":
I need to keep it?
yes
You told me to remove it
no
on region enter:
wait 1 tick
while player is in region "afk":
wait 5 minutes
give player 1 of tripwire hook named "AFK Key"
wait 1 tick```
i said you are making up syntax
What do I remove
nothing
Ok
you need to fix the while loop
What do I need to put
look back at your other code
Ok
you had a working thing there
on region enter:
if event-region = "afk" parsed as region:
set {afk::%player's uuid%} to true
while {afk::%player's uuid%} = true:
send action bar "&d&lYou are afk" to player
wait 1 tick
on region exit:
if event-region = "afk" parsed as region:
set {afk::%player's uuid%} to false
why are you sending it
well idk what wrong with this code, you would have to debug. But you can borrow the region check and adjust it to fix your other code