local mobnumb = script.mobnumber local bosstp = CFrame.new(989, 38, 450) if mobnumb.Value == 0 then for _, plr in pairs(game.Players:GetChildren()) do plr.Character.HumanoidRootPart.CFrame = newCFrame end end
You're gonna wanna look into :SetPrimaryPartCFrame() for teleporting the players out.