Jump to content

Help! I have a little prob with skript.


JelmerDL

Recommended Posts

HELP!!

I just want to change the location of a player by a skript comman but i dont know how it workss!

I've already got this:

command //warps:
  trigger:
    open virtual chest inventory with size 1 named "&0Warp Menu" to player
    format gui slot 0 of player with nether star named "&5Warp 1" to run:
      set location of player to 136 121 -137        <-----
      send "all set" to player

the one underlined doesn't work pls help me.

Link to comment
Share on other sites

You would have to teleport the player rather than setting their location. The correct syntax for teleporting would be:

teleport player to location(x, y, z, world("world"))

There is also a yaw & pitch option within the location function (the location function is the location(stuff)), yaw & pitch is used to set a player's direction, to use it, replace the location above with location(x, y, z, world("world"), 0.01, 0.01).

[VIP] 2019

[JR.MOD] 10/29/2019

[MOD] 12/30/2019

nerd3.png

ok.png

sure.png

q.png

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