#[Solved] how would i make this work
1 messages · Page 1 of 1 (latest)
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
```
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}%"
Also theres no errors
bro-
set {spawn} to player's location
when i do /spawn it says usage: /spawn <text>
what i want it to do is teleport player to spawn
make the arg optional then
by doing [<text>] instead of <text>
Why do you have the <text>
wait
Oh
wait is setting a players coords to a var not setting their pitch and yaw in it too?
It is
then why is he setting the pitch and yaw in local vars
because its dumb to put a variable to global when it only needed there
its not needed
yes, yes it is
setting the players location in a var saves their pitch and yaw
yeah thats true, but if he wants to do it that way who is going to stop him?
it’s redundant
Top 10 things no programmer wants to hear:
yep
Ohhh I did <text> not [<text>]
[Solved] how would i make this work
Pov: you marked the post as solved