continue the script: Game.Players.mathrandom.GetChildren
let the children have been selected but it is necessary that this selected children be teleported to the coordinates -687.5, 34.7, 520.5
This will choose a random player and teleport them to the location
local plrs = game.Players:GetPlayers() local chosenPlr = plrs[math.random(1,#plrs)] --set chosenPlr to a random player if chosenPlr.Character and chosenPlr.Character:FindFirstChild("HumanoidRootPart") then chosenPlr.Character.HumanoidRootPart.CFrame = CFrame.new(-687.5, 34.7, 520.5) end
Assuming that plrs are the selected Players
Local location = yourcoordshere for i,v in pairs(plrs) do pcall(function() v.Character.Torso.CFrame = CFrame.new(location) end) end
Please let me know if this works. Make sure to upvote if it does. This script might be subject to errors