So I'm trying to create a skript that'll give a player poison and nausea if they get too close to a player, but turns out what I did was outdated:
on join:
wait 1 tick
while player is alive:
if players in radius of 5 of player is true:
apply nausea 2 to the player for 5 seconds
apply poison 2 to the player for 5 seconds
wait 1 second
The error it gives me is "Numeric ids are not supported anymore" in line 4 only. Anyone know how I can fix this? Thanks! IF THIS IS SUPPOSED TO BE IN A DIFFERENT FORMAT OR LOCATION PLEASE TELL ME, I'M NEW HERE!