on rightclick of an item hides all players

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

RunaYoutube

Member
Nov 10, 2019
34
1
8
28
Hello there,

I am working on a hub for my server and I'm wondering how to make a item hide all visible players and change the dye color to green when you right click it here is the code that I'm using

on rightclick with pink dye:
if name of tool of player is "&8» &bPlayer Visibility &8«":
hide all players
set slot 8 of player to lime dye named "&8» &bPlayer Visibility &8«"
 
Okay, I'll test it out.
[doublepost=1574559591,1574559433][/doublepost]It works, but do you know the skript to toggle it back to its original state?
 
Code:
show all players to player

This doesn't work as it shows your inventory from when you click it
 
Last edited:
Status
Not open for further replies.