#how do i fix the teleport party a sync

1 messages · Page 1 of 1 (latest)

lethal sparrow
#

i tried everything it still doesnt work

crude ermine
lethal sparrow
#

a sec

#

bro i cant send it

#

wait lemme try smth else

#

group was broken

crude ermine
#

what are you attempting to do here

lethal sparrow
#

like i made a folder in replicated storage

crude ermine
#

this code looks extremely confusing and odd

dreamy solsticeBOT
#

studio** You are now Level 1! **studio

lethal sparrow
#

k yknow what

#

ill optimize it for you

#

but it desnt work

crude ermine
#

can you show me how it looks in studio

#

you can just copy it and do this

final cobalt
#

Also what is it supposed to do

lethal sparrow
#

no no thats the optimized one

#

local function teleportGroup()
local group = {}
for _, tag in pairs(game.ReplicatedStorage.Elevator_A:GetChildren()) do
local plr = tag.Value
table.insert(group, plr)
print("Teleport group contents:")
end
for i, player in ipairs(group) do
print(i, player, player.ClassName, player:IsA("Player"))
end
if #group > 0 and #group < 8 then
game["Teleport Service"]:Teleport(76409751846992, group)
else
warn("Elevator is empty. No teleporting.")
end
end
teleportGroup()
task.wait(3)

crude ermine
#

oh the code is fine

lethal sparrow
lethal sparrow
crude ermine
crude ermine
#

can you send the whole thing

lethal sparrow
#

alr

crude ermine
lethal sparrow
#

like ss or text file?

crude ermine
#

like format it

lethal sparrow
#

is it readable

crude ermine
#

yeah it's readable

lethal sparrow
#

ok so thats the code whats the issue

#

when it runs it says player is invalid

crude ermine
#

what line does it error at

lethal sparrow
#

on the line when i use teleport service and when i call the function

nova knot
lethal sparrow
#

so when you touch a part it puts your player value into a object value

#

and when the timer in the code ends it teleports these player values

nova knot
#

why are you complicating yourself

#

just get the player using players:GetPlayerFromCharacter()

lethal sparrow
#

bro there are 2 scripts

#

one of them gets the player value

#

and the other one tps them

#

but ok

#

ill try to make 1 script

#

give me a min

#

ok now its 1 script and when you touch the part it puts your player to the group

#

then tps the group

#

if that doesnt work

nova knot
#

Teleport() only works for single player

#

use TeleportAsync

final cobalt
lethal sparrow
dreamy solsticeBOT
#

studio** You are now Level 2! **studio

lethal sparrow