#it doesn't work can anybody give me a hand..??
1 messages · Page 1 of 1 (latest)
just make it true or false, and set the variable to something more scaleable since now, it technically only works with 1 player
thank you ! and also ill keep in mind!
okay
so u know what i mean or do i need to explain further?
no
hum...
also don't use % if it isn't in varibles or strings
but
set {sb.%player's uuid%} to true
and then call it
and maybe make it a list
lists always better
oh...
also
location doesn't work like that
the variables is local which means it can only be used in the same event
or is there any thing like better then "on gamemode change:"???
somethiong like "on gamemode spectator?"
im trying to make spectator mode to be stuck
.
its just
oh let me try !!
?
on gamemode change to spectator
yes
what?
you could make an on join event then
but i see why that would be more complicated
or make the player survival on quit
hum...
if player is not op:
set {_location} to player's location
while player's gamemode = spectator:
if distance between player's location and {_location} > 0.5:
teleport player to {_location}
wait 10 ticks```
so this is the best way??
does it work?
i said what you can do up there
on join:
if player"s gamemode is spectator:
{SET LOCATION}??
AH.!
and don't make the location local
delete the _
and make it the player's uuid
and then if you want, delete the location variable on survival change
ill try!
if player is not op:
set {_location} to player's location
while player's gamemode = spectator:
if distance between player's location and {_location} > 0.5:
teleport player to {_location}
wait 10 ticks
on join:
if player's gamemode is spectator:
if player is not op:
set {_location} to player's location
while player's gamemode = spectator:
if distance between player's location and {_location} > 0.5:
teleport player to {_location}
wait 10 ticks```
im not used to in varable
but this works!
if it works it works
thanks alot