#how do i fix the teleport party a sync
1 messages · Page 1 of 1 (latest)
what are you attempting to do here
like i made a folder in replicated storage
this code looks extremely confusing and odd
** You are now Level 1! **
Also what is it supposed to do
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)
oh the code is fine
teleport players into an another place
but it aint working
i just thought that it looked like this in studio aswell
alr
by the whole thing i mean this but formatted
like ss or text file?
is it readable
yeah it's readable
what line does it error at
on the line when i use teleport service and when i call the function
what does tag.Value hold
ok lemme just tell you do game idea
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
why are you complicating yourself
just get the player using players:GetPlayerFromCharacter()
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
you're teleporting players not player
Teleport() only works for single player
use TeleportAsync
tp individually...
then they go to different servers
** You are now Level 2! **
ill use teleport party a sync