1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can i do a fake spectator mode

Discussion in 'Skript' started by AkroDogy2005, Mar 24, 2020.

Thread Status:
Not open for further replies.
  1. AkroDogy2005

    AkroDogy2005 Member

    Joined:
    Apr 20, 2018
    Messages:
    18
    Likes Received:
    1
    I searched a lot but i can do when the player is in spectator mode to can t go in blocks like to don t go through blocks?
    --- Double Post Merged, Mar 27, 2020, Original Post Date: Mar 24, 2020 ---
    .
     
  2. Goose

    Supporter

    Joined:
    Nov 23, 2019
    Messages:
    429
    Likes Received:
    30
    Please wait 24 hours before bumping.

    This was really hard to read, but I assume you want spectator mode but people cannot go through blocks. This can be done by making some sort of pseudo spectator thing.
    Code (Text):
    1. command spectator:
    2.     trigger:
    3.         if {spectators::*} doesn't contain player:
    4.             add player to {spectators::*}
    5.             hide player from all players
    6.             set player's flight mode to true
    7.         else:
    8.             remove player from {spectators::*}
    9.             reveal player to all players
    10.             set player's flight mode to false
    11.  
    12. on join:
    13.     loop all players in {spectators::*}:
    14.         hide loop-player from player
    15.  
    16. on disconnect:
    17.     loop all players in {spectators::*}:
    18.         reveal loop-player to player
     
  3. Nikola

    Nikola Member

    Joined:
    Jul 10, 2019
    Messages:
    38
    Likes Received:
    1
    If you use essentials, just run this command from console "espeed fly 0 %player%" and your players won't be able to move.
     
  4. Goose

    Supporter

    Joined:
    Nov 23, 2019
    Messages:
    429
    Likes Received:
    30
    He wants the players to be able to move, just not able to go through solid blocks (eg. going through the blocks and seeing underground cave systems, bases, mineshafts, etc)
     
Thread Status:
Not open for further replies.

Share This Page

Loading...