#[Solved] how would i make this work

1 messages · Page 1 of 1 (latest)

hoary sparrow
#

!format

noble otterBOT
#

Code Blocks

To make it easier for others to read your code, it is asked that you send it in a code block. On Discord, you can simply send this:

```
Code here
```

hoary sparrow
#
command /spawn <text>:
    trigger:
        if arg-1 isnt set:
            teleport player to {spawn}
        if arg-1 is "set"
            if player has permission "spawn.set":
                set {_pitch} to player's pitch
                set {_yaw} to player's yaw
                set {spawn} to location at player
                set {spawn}'s pitch to {_pitch}
                set {spawn}'s yaw to {_yaw}
                send "&4|Beta| &f&lSpawn Has Been Set To %{spawn}%"

hoary sparrow
spiral knoll
#

set {spawn} to player's location

hoary sparrow
#

what i want it to do is teleport player to spawn

spiral knoll
#

by doing [<text>] instead of <text>

rapid pawn
spiral knoll
#

wait

rapid pawn
#

Oh

spiral knoll
#

wait is setting a players coords to a var not setting their pitch and yaw in it too?

rapid pawn
#

It is

spiral knoll
#

then why is he setting the pitch and yaw in local vars

grim compass
grim compass
#

yes, yes it is

spiral knoll
#

setting the players location in a var saves their pitch and yaw

grim compass
#

yeah thats true, but if he wants to do it that way who is going to stop him?

spiral knoll
#

it’s redundant

rapid pawn
spiral knoll
#

yep

hoary sparrow
#

[Solved] how would i make this work

frozen cloak
#

Pov: you marked the post as solved