Armor that give potion effect

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

RedDiamond

Member
Nov 30, 2020
21
0
1
23
So I want to make a skript that when player wear a player head/armor with a specific name it gives them haste effect to the player and when they do not wear the armor the effect remove, but I don't know how to make it work, can someone help me with it.
 
Code:
on armor change:
    if event-item is golden helmet named "&eHaste Helmet":
        while player is wearing golden helmet named "&eHaste Helmet":
            apply haste without particles to player for 5 seconds
            wait 5 seconds
 
ca
Code:
on armor change:
    if event-item is golden helmet named "&eHaste Helmet":
        while player is wearing golden helmet named "&eHaste Helmet":
            apply haste without particles to player for 5 seconds
            wait 5 seconds
can i change it to player head? is it still gonna work?