Hello guys, I don't really know how to explain this without showing the code.
Here is the thing, I want to teleport everyone in a certain area to two different positions, according to something.
(It can be: LookFeet color, Storage Value, anything)
Here is the piece of code:
I want something like:
I don't know if its possible, anyway .. hope someone know how to fix it. <3 Thanks =)
Here is the thing, I want to teleport everyone in a certain area to two different positions, according to something.
(It can be: LookFeet color, Storage Value, anything)
Here is the piece of code:
Code:
upper5 = {x = 1071, y = 993, z = 5}
up5 = getSpectators(upper5,4,2)
if up5 then
for i = 1,#up5 do
doTeleportThing(up5[i],{x = getPlayerStorageValue(up5[i], "campos1"), y = getPlayerStorageValue(up5[i], "campos2"), z = 5})
end
end
I want something like:
Code:
if getPlayerStorageValue(up5[i], X) == Y then
newpos = newposX
else
newpos = newposY
end
I don't know if its possible, anyway .. hope someone know how to fix it. <3 Thanks =)