ChunkerDunkers Posted October 13, 2020 Share Posted October 13, 2020 I have made a vanish Skript where on your actionbar, it has a message saying that you are vanished. command /vanish: aliases: /v permission: Staff.vanish trigger: if {v.%player%} is true: set {v.%player%} to false set {vanish::%player%} to false reveal player to all players message "&8[&3Staff&8] &aVanish is now disabled" broadcast "&8[&a+&8] &7%player%" else: set {v.%player%} to true set {vanish::%player%} to true hide player from all players message "&8[&3Staff&8] &aVanish is now enabled." broadcast "&8[&4-&8] &7%player%" every 1 seconds: loop all players: if {vanish::%loop-player%} is true: send action bar from "&a&lYou are in Vanish" to loop-player every 30 seconds: loop all players: if {vanish::%loop-player%} is true: send "&8[&3Staff&8] &aPlease note you are vanished" to loop-player on quit: delete {vanish::%player%} Hello, I'm Nolan! Cool Links Vote Please - bit.ly/3tMXajE MC Server - bit.ly/3hqYAOy Please leave a like if I helped! Link to comment Share on other sites More sharing options...
_Tarna_ Posted October 13, 2020 Share Posted October 13, 2020 Nice! But why do you set to vanish variables and only use one of them? You should delete the {v.%player%} variable since two are not needed and you could just use one. Also instead of looping all players for the action bar and the other message, you could just use a while loop, if you know what that is. And in the action bar expression, you put send action bar from. There is no from in that expression. It is just send action bar " " to loop-player. Another thing is that in your skript, the player gets hidden from all players including other staff and maybe even other vanished players. You can do hide player from all players where [input does not have permission "staff.vanish"] and it will hide them from everyone on the server who does not have that permission node. Just some things to note but the skript should work anyways after changing the action bar thing. Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 | 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - now Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now