Okay so I'm making a party system and I want it so when the party leader gets teleported everyone else in the party gets teleported this is an rpg type game with portals that teleports you to a different place like the teleport system
I really dont know where to start how would i cast the array through all the players when theyre object values
heres the party script
game.Players.PlayerAdded:Connect(function(player)
local PartyFolder = Instance.new("Folder",player)
PartyFolder.Name = "Party"
local User = Instance.new("ObjectValue",PartyFolder)
User.Name = player.Name
User.Value = player
print(User.Value)
end)

4 comments
It says unable to cast a value through objects
That doesn't make sense. What are you trying to do to the player? Are any of the folder's children not object values? Remember you're supposed to fit this to your function since this is just a way to iterate through the children of a folder.
Im trying to teleport the player to a different place
Then the issue is with teleporting. How are you teleporting the player? Could you show it on your question.