Solved check that does nothing

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

funpvp

Member
Oct 7, 2023
47
1
8
22
im trying to make a strafe check on my anticheat, dosent do anything tho

on any movement:
set {za.%player%} to z pos of player
wait 1 ticks
set {za2.%player%} to z pos of player
set {za1.%player%} to {za2.%player%} - {za.%player%}
{z.%player%} > -0.1
wait 1 ticks
{z.%player%} < 0.1
add 1 to {vvl.%player%}
loop all players:
if {vvl.%player%} > 2:
add 1 to {vl.%player%}
teleport player to {speed.setback.%player%}
set {allowsetbacks.%player%} to true
loop-player has permission "watched.alerts"
send "&9Watched &7> &9%player% &7failed &9Speed (Strafe) &7[&9%{vl.%player%}%VL&7]" to loop-player
set {vvl.%player%} to 0
else:
{verbose.%loop-player%} is true
teleport player to {speed.setback.%player%}
set {allowsetbacks.%player%} to false
send "&fWatched &7> &f%player% &7failed &fSpeed (Strafe) &7[&f%{vvl.%player%}%VL&7]" to loop-player

im using on any movement as packets dosent work on skript it gives an error
 
I just realised how stupid i am lmao, i did z.%player% and forgot to change it