i'm new to skript, and im gonna start by saying that im not trying to get into it either, i just wanna make cool stuff for a server im working on. so basically im not looking for a tutorial, im just looking for an answer.
i'm trying to make a weapon that creates a cloud of wither effect when you right click, im currently using this code to do it but it isnt working:
if colored name of player's tool is "&dSacred Spear":
spawn 1 area effect cloud at location of player
add wither to potion effects of last spawned area effect cloud```
i cant find the answer anywhere else, so i figured id ask here. If anyone knows how to do this that would be greatly appreciated. :)