Solved Blind item

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Sunbex

New Member
Sep 13, 2021
8
0
1
24
I just started skript yesterday so I don’t know much. Can someone write some code that would blind other people but not the user?
 
I mean, just give them the blindless effect

apply blindness x to all players where [input is not player] for x days or seconds or whatever
 
Code:
on right click:
 if name of player's tool is "blind item":
  set player's tool to air
  loop all players:
   if loop-player is not player:
     apply blindness to loop-player
 
Code:
on right click:
 if name of player's tool is "blind item":
  set player's tool to air
  loop all players:
   if loop-player is not player:
     apply blindness to loop-player
That applies blindness to them for 5 minutes. Use
code_language.skript:
apply blindness to loop-player for 10 seconds # applies blindness for 10 seconds
to use it for a shorter amount of time.
 
I just started skript yesterday so I don’t know much. Can someone write some code that would blind other people but not the user?

perhaps something like
Code:
on event:
    loop all players:
        if loop-player is not event-player:
            apply blindness to loop-player for %timespan%
 
Last edited:
Status
Not open for further replies.