Freez skript not working :(

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

LOSTJOST

Member
May 10, 2021
4
0
1
23
Hello,
I want to make a "freeze" skript for my server. So if {sch} is true it should freez all players. Does anyone know why it is not working?



options:
version: 1.0

variables:
{freez} = "true"


on any movement:
if {freez} is "true":
play sound "block.note_block.pling"
cancel the event
 
I don't know how the "variables" thing work, try this:
Code:
command /freezeall [<text>]:
  trigger:
    if {freezeall} is true:
      delete {freezeall}
      send "Player's can now move"
    else:
      set {freezeall} to true
      send "All Player's are now frezed"

on any movement:
  if {freezeall} is true:
    cancel event
 
I don't know how the "variables" thing work, try this:
Code:
command /freezeall [<text>]:
  trigger:
    if {freezeall} is true:
      delete {freezeall}
      send "Player's can now move"
    else:
      set {freezeall} to true
      send "All Player's are now frezed"

on any movement:
  if {freezeall} is true:
    cancel event
thx
 
I don't know how the "variables" thing work, try this:
Code:
command /freezeall [<text>]:
  trigger:
    if {freezeall} is true:
      delete {freezeall}
      send "Player's can now move"
    else:
      set {freezeall} to true
      send "All Player's are now frezed"

on any movement:
  if {freezeall} is true:
    cancel event
This is very inneficient you can just set all players speed to 0 so they can only move and set player's jump height to 0 too
 
Status
Not open for further replies.