Hello! I will try to make this quick. So I have this skript, I will let it speak for itself.
on right click:
if faction at player is set:
if name of held item is "&b&l<> &9UNDETECTABLE &1&LBLOCK &b&l<>":
set block under player to bedrock
wait 5 seconds
set block to air
else:
cancel event
send "&d&l* &7You must be in a &dClaimed &7Land to place this!"
in the part
set block under player to bedrock
wait 5 seconds
set block to air
The "set block to air" does not work, as it does not affect the block that was set. I am looking for this to set the same block that was placed under the player, to air. If I changed it to "set block under player to air", than if the player moved it would set the block that is under the player after 5 seconds, rather than the block that was placed earlier in the sequence.
on right click:
if faction at player is set:
if name of held item is "&b&l<> &9UNDETECTABLE &1&LBLOCK &b&l<>":
set block under player to bedrock
wait 5 seconds
set block to air
else:
cancel event
send "&d&l* &7You must be in a &dClaimed &7Land to place this!"
in the part
set block under player to bedrock
wait 5 seconds
set block to air
The "set block to air" does not work, as it does not affect the block that was set. I am looking for this to set the same block that was placed under the player, to air. If I changed it to "set block under player to air", than if the player moved it would set the block that is under the player after 5 seconds, rather than the block that was placed earlier in the sequence.