Jump to content

Why isn't this working?


FunnyNAmeGuy3248

Recommended Posts

3 minutes ago, FunnyNAmeGuy3248 said:

on join:
    while player is online:
      set {_x} to player's x velocity
      set {_y} to player's y velocity
      set {_z} to player's z velocity
      set {_speed} to abs({_x}) + abs({_y}) + abs({_z})
      send action bar "&7SPEED: &f%{_speed}%&7 / &f2" to player
        wait 2 ticks

ill take a look, but im not the best...

Link to comment
Share on other sites

every 1 ticks:
 loop all players
      set {_x} to loop-player's x velocity
      set {_y} to loop-player's y velocity
      set {_z} to loop-player's z velocity
      set {_speed} to abs({_x}) + abs({_y}) + abs({_z})
      send action bar "&7SPEED: &f%{_speed}%&7 / &f2" to loop-player
        wait 2 ticks

 

Try this!

Link to comment
Share on other sites

4 hours ago, Darth1013 said:

every 1 ticks:
 loop all players
      set {_x} to loop-player's x velocity
      set {_y} to loop-player's y velocity
      set {_z} to loop-player's z velocity
      set {_speed} to abs({_x}) + abs({_y}) + abs({_z})
      send action bar "&7SPEED: &f%{_speed}%&7 / &f2" to loop-player
        wait 2 ticks

 

Try this!

didn't work 😞

Link to comment
Share on other sites

every 1 ticks:
 loop all players
      set {_x} to x of loop-player's velocity
      set {_y} to y of loop-player's velocity
      set {_z} to z of loop-player's velocity
      set {_speed} to abs({_x}) + abs({_y}) + abs({_z})
      send action bar "&7SPEED: &f%{_speed}%&7 / &f2" to loop-player
        wait 2 ticks

You want to use (x|y|z) of %vector% as the velocity of an entity is a vector. https://skripthub.net/docs/?id=986

Zora

💬 » Discord: @reportcards

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...