Teleporting not working

My script isn’t working. I’m trying to make all players teleport to a place in game. I tried to do HumanoidRootPart and Vector3. I have tried everything but I couldn’t make this work. It’s a script for a disaster that tp all players to a location, I have tried both local script, script and also StarterPlayerScripts. Can someone please help me?

1 Like

What is your current script? I believe this should work: (Also if you have NPCs with the Humanoid’s name “Humanoid” it will teleport the NPCs too! Rename the humanoid to NPC.)

local TPart = --path to teleport part
for _, char in pairs(workspace:GetChildren()) do
if char:FindFirstChild("Humanoid") then
char.HumanoidRootPart.CFrame = TPart.CFrame
end
end
2 Likes

We can’t help you without seeing your script.

4 Likes